PyCFX is a Python wrapper for Ansys CFX, the gold standard CFD software for turbomachinery applications.
Project description
Overview
PyCFX is a Python wrapper for Ansys CFX, the industry-leading CFD software for turbomachinery applications. You can use it to perform these tasks:
Launch CFX from a local Ansys installation.
Create, modify, and run CFX simulations in a Python environment.
Postprocess simulation results.
Documentation and issues
Documentation for the latest stable release of PyCFX is hosted at PyCFX documentation.
In the upper right corner of the documentation’s title bar, there is an option for switching from viewing the documentation for the latest stable release to viewing the documentation for the development version or previously released versions.
On the PyCFX Issues page, you can create issues to report bugs and request new features.
For general PyAnsys support, email pyansys.core@ansys.com.
Installation
PyCFX supports Python 3.10 through 3.14 on Windows and Linux.
You can install it from PyPI with this command:
pip install ansys-cfx-core
For developers
If you plan on doing local development of PyCFX with Git, install the latest release with these commands:
git clone https://github.com/ansys/pycfx
python -m pip install -U pip tox
cd pycfx
pip install -e .[doc,tests,style]
python codegen/allapigen.py # Generates the API files
Dependencies
You must have a licensed copy of Ansys CFX installed locally. PyCFX supports CFX 2025 R2 Service Pack 3 and later.
On Windows, the Ansys CFX installer automatically sets the required environment variables. For example, using CFX 2025 R2 installed in the default directory, the installer sets the AWP_ROOT252 environment variable to C:\Program Files\ANSYS Inc\v252.
On Linux, you must set the required environment variable manually. For example, using CFX 2025 R2 in the default directory, run this command:
export AWP_ROOT252=/usr/ansys_inc/v252
To make this setting persistent for the current user, add this same export command to the ~/.profile file or equivalent.
Getting started
Launch CFX
To launch CFX from Python using a local installation, run these commands:
import ansys.cfx.core as pycfx
pypre = pycfx.PreProcessing.from_install() # Start CFX-Pre
pysolve = pycfx.Solver.from_install() # Start a Solver session
pypost = pycfx.PostProcessing.from_install() # Start CFD-Post
Find examples in the examples/ folder of the repository.
License and acknowledgments
PyCFX is licensed under the MIT license.
PyCFX makes no commercial claim over Ansys whatsoever. This library extends the functionality of Ansys CFX by adding a Python interface to CFX without changing the core behavior or license of the original software. The use of PyCFX to run the CFX software requires a legally licensed copy of CFX.
For more information on CFX, see the Ansys CFX page on the Ansys website.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ansys_cfx_core-0.2.2.tar.gz.
File metadata
- Download URL: ansys_cfx_core-0.2.2.tar.gz
- Upload date:
- Size: 981.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
20b8f324d703da4e83444a44b0aefeae1142fa9d32b0ee9b9989e387e51e31c6
|
|
| MD5 |
37e5e727a142324a10bfc2fb2faeb9d9
|
|
| BLAKE2b-256 |
89c55565490a49704d2fb6acd64e4e1a32bc8dd577148a56cfa70bcd3b55f7eb
|
Provenance
The following attestation bundles were made for ansys_cfx_core-0.2.2.tar.gz:
Publisher:
ci_cd.yml on ansys/pycfx
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
ansys_cfx_core-0.2.2.tar.gz -
Subject digest:
20b8f324d703da4e83444a44b0aefeae1142fa9d32b0ee9b9989e387e51e31c6 - Sigstore transparency entry: 1396523256
- Sigstore integration time:
-
Permalink:
ansys/pycfx@d1002b67400e8f77033fa60103bfe11e4c04af9a -
Branch / Tag:
refs/tags/v0.2.2 - Owner: https://github.com/ansys
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
ci_cd.yml@d1002b67400e8f77033fa60103bfe11e4c04af9a -
Trigger Event:
push
-
Statement type:
File details
Details for the file ansys_cfx_core-0.2.2-py3-none-any.whl.
File metadata
- Download URL: ansys_cfx_core-0.2.2-py3-none-any.whl
- Upload date:
- Size: 139.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cd14a7618235600ecb01e3d9a1b3d5b632b6d23afcd26078d6a0c2afef3c275d
|
|
| MD5 |
16dd552ba5384ba8d3784bc510828795
|
|
| BLAKE2b-256 |
22d8d3fb1077714372d735879d05c60dc086c2c1c76c8b7626349604949080f5
|
Provenance
The following attestation bundles were made for ansys_cfx_core-0.2.2-py3-none-any.whl:
Publisher:
ci_cd.yml on ansys/pycfx
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
ansys_cfx_core-0.2.2-py3-none-any.whl -
Subject digest:
cd14a7618235600ecb01e3d9a1b3d5b632b6d23afcd26078d6a0c2afef3c275d - Sigstore transparency entry: 1396523265
- Sigstore integration time:
-
Permalink:
ansys/pycfx@d1002b67400e8f77033fa60103bfe11e4c04af9a -
Branch / Tag:
refs/tags/v0.2.2 - Owner: https://github.com/ansys
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
ci_cd.yml@d1002b67400e8f77033fa60103bfe11e4c04af9a -
Trigger Event:
push
-
Statement type: