Skip to main content

Pythonic interfaces to Ansys products

Project description

PyAnsys Python PyPI GH-CI MIT Black pre-commit.ci status

Welcome to the PyAnsys metapackage repository. The pyansys metapackage provides a single package of collected PyAnsys packages that ensures compatibility of these packages amongst themselves and the Ansys product release that they are linked to.

The pyansys metapackage ensures compatibility between these PyAnsys packages:

  • PyAEDT: Pythonic interface to AEDT (Ansys Electronics Desktop).

  • PyAnsys Math: Pythonic interface to PyAnsys Math libraries.

  • PyDPF - Core: Pythonic interface to Ansys DPF (Data Processing Framework) for building more advanced and customized workflows.

  • PyDPF - Post: Pythonic interface to access and post process Ansys solver result files.

  • PyDPF - Composites: Pythonic interface for DPF’s postprocessing of layered and short-fiber composite models.

  • PyDynamicReporting: Pythonic interface to Ansys Dynamic Reporting for service and control of its database and reports.

  • PyFluent: Pythonic interface to Ansys Fluent.

  • PyFluent - Parametric: Pythonic interface to Ansys Fluent parametric workflows.

  • PyFluent - Visualization: Pythonic interface to visualize Ansys Fluent simulations.

  • PyMAPDL: Pythonic interface to Ansys MAPDL (Mechanical APDL).

  • PyMAPDL Reader: Pythonic interface to read legacy MAPDL result files (MAPDL 14.5 and later).

  • PyMechanical: Pythonic interface to Ansys Mechanical.

  • PyMotorCAD: Pythonic interface to Ansys Motor-CAD.

  • PyOptislang: Pythonic interface to Ansys Optislang.

  • PyPIM: Pythonic interface to communicate with the Ansys PIM (Product Instance Management) API.

  • PyPrimeMesh: Pythonic interface to Ansys Prime Server, which delivers core Ansys meshing technology.

  • PySeascape: Pythonic interface to communicate with Ansys RedHawkSC and TotemSC.

  • PySherlock: Pythonic interface to communicate with Ansys Sherlock.

  • PySystemCoupling: Pythonic interface to communicate with Ansys System Coupling.

  • PyTwin: Pythonic interface to communicate with consumption workflows for Ansys digital twins.

  • Granta MI BoM Analytics: Pythonic interface to Ansys Granta MI BoM Analytics services.

  • Granta MI RecordLists: Pythonic interface to Ansys Granta MI Lists API.

  • Shared Components: Shared Ansys software components to enable package interoperability and minimize maintenance.

Much effort is underway to continue expanding and developing packages in the PyAnsys GitHub account. On the Issues page for each package, you can post issues and request new features. You can also feel free to post a question on the Ansys Developer Forums.

By default, the PyAnsys metapackage installs these core modules:

Additionally, the pyansys metapackage contains certain extra targets that can be installed upon request:

Package installation

Two installation modes are provided: user and offline.

User mode installation

Before installing the pyansys metapackage in user mode, ensure that you have the latest version of pip with this command:

python -m pip install -U pip

Then, install the pyansys metapackage with this command:

python -m pip install pyansys

If you are interested in installing an extra target such as fluent-all, you use a command like this:

python -m pip install pyansys[fluent-all]

If you are interested in installing a specific version such as 2023.1.0, you use a command like this:

python -m pip install pyansys==2023.1.0

Offline mode installation

If you lack an internet connection on your installation machine, the recommended way of installing the pyansys metapackage is downloading the wheelhouse archive from the Releases Page for your corresponding machine architecture.

Each wheelhouse archive contains all the Python wheels necessary to install the pyansys metapackage from scratch on Windows, Linux, and MacOS from Python 3.8 to 3.11. You can install this on an isolated system with a fresh Python installation or on a virtual environment.

For example, on Linux with Python 3.8, unzip the wheelhouse archive and install it with the following commands:

unzip pyansys-v2023.2.6-wheelhouse-Linux-3.8-core.zip wheelhouse
pip install pyansys -f wheelhouse --no-index --upgrade --ignore-installed

If you’re on Windows with Python 3.9, unzip to a wheelhouse directory and then install using the same pip command as in the previous example.

Consider installing using a virtual environment.

Versioning system

The pyansys metapackage follows a semantic-like versioning system, though it has been adapted to the Ansys product release mechanism. Thus, this kind of versioning system is followed:

XXXX.Y.ZZ

Where:

  • XXXX is the Ansys product release year (for example, 2022).

  • Y is the Ansys product release within the same year (for example, 1, which relates to R1).

  • ZZ is a patched version to the pyansys metapackage, if any.

Consequently, the first pyansys metapackage compatible with the 2024 R2 release would be:

2024.2.0

Any subsequent patched version of this package would be:

2024.2.1
2024.2.2
2024.2.3
...

You can request a specific version install when using pip to install your package:

python -m pip install pyansys==2024.2.0

License and acknowledgments

All PyAnsys libraries are licensed under the MIT license.

PyAnsys libraries make no commercial claim over Ansys whatsoever. These libraries extend the functionality of Ansys products by adding Python interfaces to legally obtained software products without changing the core behaviors or licenses of the original software.

For more information on Ansys products, visit the Ansys web site.

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pyansys-2023.2.6.tar.gz (5.8 kB view details)

Uploaded Source

Built Distribution

pyansys-2023.2.6-py3-none-any.whl (5.8 kB view details)

Uploaded Python 3

File details

Details for the file pyansys-2023.2.6.tar.gz.

File metadata

  • Download URL: pyansys-2023.2.6.tar.gz
  • Upload date:
  • Size: 5.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.12

File hashes

Hashes for pyansys-2023.2.6.tar.gz
Algorithm Hash digest
SHA256 da646e1b6e74108b195df987af693f4b1330e405a29e15d35c61bba15f4ff9c6
MD5 c4c93fd42354296d604ed4d5838400cc
BLAKE2b-256 c6e048357f04005326f57173dc6b5eb28f0ec93ace80108a0923450e87375b43

See more details on using hashes here.

File details

Details for the file pyansys-2023.2.6-py3-none-any.whl.

File metadata

  • Download URL: pyansys-2023.2.6-py3-none-any.whl
  • Upload date:
  • Size: 5.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.12

File hashes

Hashes for pyansys-2023.2.6-py3-none-any.whl
Algorithm Hash digest
SHA256 77915016ecb6878e1878f672620139af438284651330bd83a6bc932786ad910a
MD5 bc906ef55906af8d0929378d664acbd8
BLAKE2b-256 d69f1401a3a51f3f0096f84061bbcc5c1c6460ee2585b9584604f7b655a112c8

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page