|
1 | | -PyAnsys |
2 | | -======= |
3 | | -Welcome to the PyAnsys project. While this project originated as a single ``pyansys`` package, |
4 | | -it is now a collection of many Python packages for using Ansys products through Python: |
5 | | - |
6 | | -- `PyAEDT <https://aedtdocs.pyansys.com/>`__ : Pythonic interface to AEDT (Ansys Electronic Desktop) |
7 | | -- `PyDPF-Core <https://dpfdocs.pyansys.com/>`__ : Pythonic interface to DPF (Data Processing Framework) for building more advanced and customized workflows |
8 | | -- `PyDPF-Post <https://postdocs.pyansys.com/>`__ : Pythonic interface to DPF's postprocessing toolbox for manipulating and transforming simulation data |
9 | | -- `PyMAPDL <https://mapdldocs.pyansys.com/>`__ : Pythonic interface to MAPDL. |
10 | | -- `PyMAPDL Reader <https://readerdocs.pyansys.com/>`__: Pythonic interface to read legacy MAPDL result files (MAPDL 14.5 and later) |
11 | | -- `PyFluent <https://fluentdocs.pyansys.com/>`__ : Pythonic interface to Ansys Fluent |
12 | | -- `PyPIM <https://pypim.docs.pyansys.com/>`__: Pythonic interface to communicate with the PIM (Product Instance Management) API |
13 | | -- `Granta MI BoM Analytics <https://grantami.docs.pyansys.com/>`__: Pythonic interface to Granta MI BoM Analytics services |
| 1 | +PyAnsys metapackage |
| 2 | +=================== |
| 3 | +|pyansys| |python| |pypi| |GH-CI| |MIT| |black| |
| 4 | + |
| 5 | +.. |pyansys| image:: https://img.shields.io/badge/Py-Ansys-ffc107.svg?logo=data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAIAAACQkWg2AAABDklEQVQ4jWNgoDfg5mD8vE7q/3bpVyskbW0sMRUwofHD7Dh5OBkZGBgW7/3W2tZpa2tLQEOyOzeEsfumlK2tbVpaGj4N6jIs1lpsDAwMJ278sveMY2BgCA0NFRISwqkhyQ1q/Nyd3zg4OBgYGNjZ2ePi4rB5loGBhZnhxTLJ/9ulv26Q4uVk1NXV/f///////69du4Zdg78lx//t0v+3S88rFISInD59GqIH2esIJ8G9O2/XVwhjzpw5EAam1xkkBJn/bJX+v1365hxxuCAfH9+3b9/+////48cPuNehNsS7cDEzMTAwMMzb+Q2u4dOnT2vWrMHu9ZtzxP9vl/69RVpCkBlZ3N7enoDXBwEAAA+YYitOilMVAAAAAElFTkSuQmCC |
| 6 | + :target: https://docs.pyansys.com/ |
| 7 | + :alt: PyAnsys |
| 8 | + |
| 9 | +.. |python| image:: https://img.shields.io/pypi/pyversions/pyansys?logo=pypi |
| 10 | + :target: https://pypi.org/project/pyansys/ |
| 11 | + :alt: Python |
| 12 | + |
| 13 | +.. |pypi| image:: https://img.shields.io/pypi/v/pyansys.svg?logo=python&logoColor=white |
| 14 | + :target: https://pypi.org/project/pyansys/ |
| 15 | + :alt: PyPI |
| 16 | + |
| 17 | +.. |GH-CI| image:: https://github.com/pyansys/pyansys/actions/workflows/ci-build.yml/badge.svg |
| 18 | + :target: https://github.com/pyansys/pyansys/actions/workflows/ci-build.yml |
| 19 | + :alt: GH-CI |
| 20 | + |
| 21 | +.. |MIT| image:: https://img.shields.io/badge/License-MIT-yellow.svg |
| 22 | + :target: https://opensource.org/licenses/MIT |
| 23 | + :alt: MIT |
| 24 | + |
| 25 | +.. |black| image:: https://img.shields.io/badge/code%20style-black-000000.svg?style=flat |
| 26 | + :target: https://github.com/psf/black |
| 27 | + :alt: Black |
| 28 | + |
| 29 | +Welcome to the PyAnsys metapackage repository. This project originated as a single ``pyansys`` package, |
| 30 | +which provides support to Ansys product releases. Compatibility of these packages amongst themselves |
| 31 | +and with the Ansys product release they are linked to is ensured. |
| 32 | + |
| 33 | +At this moment, this package ensures the compatibility between the following PyAnsys packages: |
| 34 | + |
| 35 | +- `PyAEDT <https://aedt.docs.pyansys.com/>`_ : Pythonic interface to AEDT (Ansys Electronic Desktop) |
| 36 | +- `PyDPF-Core <https://dpf.docs.pyansys.com/>`_ : Pythonic interface to DPF (Data Processing Framework) for building more advanced and customized workflows |
| 37 | +- `PyDPF-Post <https://post.docs.pyansys.com/>`_ : Pythonic interface to DPF's postprocessing toolbox for manipulating and transforming simulation data |
| 38 | +- `PyFluent <https://fluent.docs.pyansys.com/>`_ : Pythonic interface to Ansys Fluent |
| 39 | +- `PyFluent-Parametric <https://fluentparametric.docs.pyansys.com/>`_ : Pythonic interface to Ansys Fluent parametric workflows |
| 40 | +- `PyFluent-Visualization <https://fluentvisualization.docs.pyansys.com/>`_ : Pythonic interface to visualize Ansys Fluent simulations using Python |
| 41 | +- `PyMAPDL <https://mapdl.docs.pyansys.com/>`_ : Pythonic interface to MAPDL. |
| 42 | +- `PyMAPDL Reader <https://reader.docs.pyansys.com/>`_: Pythonic interface to read legacy MAPDL result files (MAPDL 14.5 and later) |
| 43 | +- `PyPIM <https://pypim.docs.pyansys.com/>`_: Pythonic interface to communicate with the PIM (Product Instance Management) API |
| 44 | +- `Granta MI BoM Analytics <https://grantami.docs.pyansys.com/>`_: Pythonic interface to Granta MI BoM Analytics services |
14 | 45 | - `Shared Components <https://shared.docs.pyansys.com/>`_: Shared software components to enable package interoperability and minimize maintenance |
15 | 46 |
|
16 | 47 | Much effort is underway to continue expanding and developing packages in the |
17 | 48 | `PyAnsys GitHub <https://github.com/pyansys/>`__ account. On the ``Issues`` page |
18 | 49 | for each package, you can post issues and request new features. You can also email |
19 | 50 | questions to ` PyAnsys Support < mailto:[email protected]>`_. |
20 | 51 |
|
21 | | -Package installation |
22 | | --------------------- |
23 | | -You must install the applicable packages for an Ansys product on your local machine. |
24 | | -While there are multiple ways to install a Python package, using `pip |
25 | | -<https://pypi.org/project/pip/>`_, the package installer for Python, is recommended. |
26 | | -For your convenience, this section provides ``pip`` commands for downloading |
27 | | -and installing the most recent PyAnsys packages and links to comprehensive resources. |
28 | | - |
29 | | -PyAEDT |
30 | | -~~~~~~ |
31 | | - |
32 | | -.. code:: |
33 | | -
|
34 | | - pip install pyaedt |
35 | | -
|
36 | | -
|
37 | | -- `PyAEDT Documentation <https://aedtdocs.pyansys.com/>`_ |
38 | | -- `PyAEDT PyPI <https://pypi.org/project/pyaedt/>`_ |
39 | | -- `PyAEDT GitHub <https://github.com/pyansys/PyAEDT/>`_ |
40 | | - |
41 | | - |
42 | | -PyDPF-Core |
43 | | -~~~~~~~~~~ |
44 | | - |
45 | | -.. code:: |
| 52 | +By default, the PyAnsys package installs these core modules: |
46 | 53 |
|
47 | | - pip install ansys-dpf-core |
| 54 | +- `PyAEDT`_ |
| 55 | +- `PyDPF-Core`_ |
| 56 | +- `PyDPF-Post`_ |
| 57 | +- `PyFluent`_ |
| 58 | +- `PyMAPDL`_ |
| 59 | +- `PyPIM`_ |
| 60 | +- `Granta MI BoM Analytics`_ |
| 61 | +- `Shared Components`_ |
48 | 62 |
|
| 63 | +However, the ``pyansys`` package also contains certain extra targets, which can be installed upon request: |
49 | 64 |
|
50 | | -- `DPF-Core Documentation <https://dpfdocs.pyansys.com/>`__ |
51 | | -- `DPF-Core PyPI <https://pypi.org/project/ansys-dpf-core/>`__ |
52 | | -- `DPF-Core GitHub <https://github.com/pyansys/pydpf-core>`__ |
| 65 | +- **mapdl-all**: this target installs the core packages and `PyMAPDL Reader`_. |
| 66 | +- **fluent-all**: this target installs the core packages and `PyFluent-Parametric`_ and `PyFluent-Visualization`_. |
| 67 | +- **all**: this target install all extra ``pyansys`` packages. |
53 | 68 |
|
| 69 | +Package installation |
| 70 | +-------------------- |
54 | 71 |
|
55 | | -PyDPF-Post |
56 | | -~~~~~~~~~~ |
57 | | - |
58 | | -.. code:: |
59 | | -
|
60 | | - pip install ansys-dpf-post |
61 | | -
|
62 | | -
|
63 | | -- `DPF-Post Documentation <https://postdocs.pyansys.com/>`_ |
64 | | -- `DPF-Post PyPI <https://pypi.org/project/ansys-dpf-post/>`_ |
65 | | -- `DPF-Post GitHub <https://github.com/pyansys/pydpf-post>`_ |
66 | | - |
67 | | - |
68 | | -PyMAPDL |
69 | | -~~~~~~~ |
70 | | - |
71 | | -.. code:: |
| 72 | +Two installation modes are provided: user and offline. |
72 | 73 |
|
73 | | - pip install ansys-mapdl-core |
| 74 | +User mode installation |
| 75 | +^^^^^^^^^^^^^^^^^^^^^^ |
74 | 76 |
|
| 77 | +Before installing ``pyansys`` in user mode, ensure that you have the latest |
| 78 | +version of `pip <https://pypi.org/project/pip/>`_ with: |
75 | 79 |
|
76 | | -- `PyMAPDL Documentation <https://mapdldocs.pyansys.com/>`_ |
77 | | -- `PyMAPDL PyPI <https://pypi.org/project/ansys-mapdl-core/>`_ |
78 | | -- `PyMAPDL GitHub <https://github.com/pyansys/pymapdl/>`_ |
| 80 | +.. code:: bash |
| 81 | + |
| 82 | + python -m pip install -U pip |
79 | 83 |
|
| 84 | +Then, install ``pyansys`` with: |
80 | 85 |
|
81 | | -PyMAPDL Reader |
82 | | -~~~~~~~~~~~~~~ |
| 86 | +.. code:: bash |
83 | 87 |
|
84 | | -.. code:: |
| 88 | + python -m pip install pyansys |
85 | 89 |
|
86 | | - pip install ansys-mapdl-reader |
| 90 | +If you are interested in **installing an extra target** such as ``fluent-all``: |
87 | 91 |
|
| 92 | +.. code:: bash |
88 | 93 |
|
89 | | -- `Legacy PyMAPDL Reader Documentation <https://readerdocs.pyansys.com/>`_ |
90 | | -- `Legacy PyMAPDL Reader PyPI <https://pypi.org/project/ansys-mapdl-reader/>`_ |
91 | | -- `Legacy PyMAPDL Reader GitHub <https://github.com/pyansys/pymapdl-reader>`_ |
| 94 | + python -m pip install pyansys[fluent-all] |
92 | 95 |
|
| 96 | +If you are interested in **installing a specific version** such as ``2023.1.0``: |
93 | 97 |
|
94 | | -PyFluent |
95 | | -~~~~~~~~ |
| 98 | +.. code:: bash |
96 | 99 |
|
97 | | -.. code:: |
| 100 | + python -m pip install pyansys==2023.1.0 |
98 | 101 |
|
99 | | - pip install ansys-fluent-core |
| 102 | +Offline mode installation |
| 103 | +^^^^^^^^^^^^^^^^^^^^^^^^^ |
100 | 104 |
|
101 | | -- `PyFluent Documentation <https://fluentdocs.pyansys.com/>`_ |
102 | | -- `PyFluent PyPI <https://pypi.org/project/ansys-fluent-core>`_ |
103 | | -- `PyFluent GitHub <https://github.com/pyansys/pyfluent/>`_ |
| 105 | +If you lack an internet connection on your installation machine, the recommended way of installing |
| 106 | +the ``pyansys`` metapackage is downloading the wheelhouse archive from the |
| 107 | +`Releases Page <https://github.com/pyansys/pyansys/releases>`_ for your corresponding machine architecture. |
104 | 108 |
|
| 109 | +Each wheelhouse archive contains all the Python wheels necessary to install ``pyansys`` metapackage from |
| 110 | +scratch on Windows, Linux, and MacOS from Python 3.7 to 3.10. You can install this on an isolated system with |
| 111 | +a fresh Python installation or on a virtual environment. |
105 | 112 |
|
106 | | -PyPIM |
107 | | -~~~~~ |
| 113 | +For example, on Linux with Python 3.7, unzip the wheelhouse archive and install it with the following: |
108 | 114 |
|
109 | | -.. code:: |
| 115 | +.. code:: bash |
110 | 116 |
|
111 | | - pip install ansys-platform-instancemanagement |
| 117 | + unzip pyansys-v2023.1.dev0-wheelhouse-Linux-3.7-core.zip wheelhouse |
| 118 | + pip install pyansys -f wheelhouse --no-index --upgrade --ignore-installed |
112 | 119 |
|
| 120 | +If you're on Windows with Python 3.9, unzip to a wheelhouse directory and install using the same command as above. |
113 | 121 |
|
114 | | -- `PyPIM Documentation <https://pypim.docs.pyansys.com/>`_ |
115 | | -- `PyPIM PyPI <https://pypi.org/project/ansys-platform-instancemanagement/>`_ |
116 | | -- `PyPIM GitHub <https://github.com/pyansys/pypim/>`_ |
| 122 | +Consider installing using a `virtual environment <https://docs.python.org/3/library/venv.html>`_. |
117 | 123 |
|
| 124 | +Versioning system |
| 125 | +----------------- |
118 | 126 |
|
119 | | -Granta MI BoM Analytics |
120 | | -~~~~~~~~~~~~~~~~~~~~~~~ |
| 127 | +The ``pyansys`` metapackage follows a semantic-like versioning system, though it has been adapted to the |
| 128 | +Ansys product release mechanism. In that sense, the following kind of versioning system is followed: |
121 | 129 |
|
122 | | -.. code:: |
| 130 | +.. code:: bash |
123 | 131 |
|
124 | | - pip install ansys-grantami-bomanalytics |
| 132 | + XXXX.Y.ZZ |
125 | 133 |
|
| 134 | +Where: |
126 | 135 |
|
127 | | -- `Granta MI BoM Analytics Documentation <https://grantami.docs.pyansys.com/>`_ |
128 | | -- `Granta MI BoM Analytics PyPI <https://pypi.org/project/ansys-grantami-bomanalytics/>`_ |
129 | | -- `Granta MI BoM Analytics GitHub <https://github.com/pyansys/grantami-bomanalytics/>`_ |
| 136 | +- ``XXXX`` is the Ansys product release year (for example, 2022) |
| 137 | +- ``Y`` is the Ansys product release within the same year (for example, 1, which relates to R1) |
| 138 | +- ``ZZ`` is the patched versions to the ``pyansys`` metapackage, if any. |
130 | 139 |
|
| 140 | +Consequently, the first ``pyansys`` metapackage compatible with the 2024 R2 release would be: |
131 | 141 |
|
132 | | -Shared components |
133 | | -~~~~~~~~~~~~~~~~~ |
134 | | -The PyAnsys project publishes and consumes shared software components that enable |
135 | | -interoperability between PyAnsys packages and minimize maintenance. For more |
136 | | -information, see the `Shared Components documentation <https://shared.docs.pyansys.com/>`_. |
| 142 | +.. code:: bash |
137 | 143 |
|
| 144 | + 2024.2.0 |
138 | 145 |
|
139 | | -The OpenAPI Common library is a shared component. Here is the command for downloading |
140 | | -and installing the most recent package and links to its comprehensive resources: |
| 146 | +And any subsequent patched version of that package would be: |
141 | 147 |
|
142 | | -.. code:: |
| 148 | +.. code:: bash |
143 | 149 |
|
144 | | - pip install ansys-openapi-common |
| 150 | + 2024.2.1 |
| 151 | + 2024.2.2 |
| 152 | + 2024.2.3 |
| 153 | + ... |
145 | 154 |
|
| 155 | +You can request for a specific version install when pip installing your package: |
146 | 156 |
|
147 | | -- `OpenAPI Common Documentation <https://openapi.docs.pyansys.com/index.html/>`_ |
148 | | -- `OpenAPI Common PyPI <https://pypi.org/project/ansys-openapi-common/>`_ |
149 | | -- `OpenAPI Common GitHub <https://github.com/pyansys/openapi-common/>`_ |
| 157 | +.. code:: bash |
150 | 158 |
|
| 159 | + python -m pip install pyansys==2024.2.0 |
151 | 160 |
|
152 | 161 | License and acknowledgments |
153 | 162 | --------------------------- |
|
0 commit comments