Skip to main content

PyCFX

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

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.

Metadata

Release files for ansys-cfx-core 0.4.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ansys-cfx-core 0.4.0
File Size Uploaded Provenance Actions
ansys_cfx_core-0.4.0.tar.gz 1.7 MB With provenance Details for ansys_cfx_core-0.4.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for ansys-cfx-core 0.4.0
File Interpreter ABI Platform Actions
ansys_cfx_core-0.4.0-py3-none-any.whl Python 3 none any Details for ansys_cfx_core-0.4.0-py3-none-any.whl

Total release size: 11.8 MB

Release files / ansys_cfx_core-0.4.0.tar.gz

Download URL ansys_cfx_core-0.4.0.tar.gz
Size 1.7 MB
Tags Source
SHA-256 checksum
How to use checksums
61a4d5946b392d60f56de3650ce8ce8aaeda4777feffa241600641c94b669639
BLAKE2b-256 checksum
How to use checksums
4147d21d9d1b941fb4d25a5ff527f0c3e027b92f75acffd21d457b6e44ab5202
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 13, 2026.

Transparency log

Release files / ansys_cfx_core-0.4.0-py3-none-any.whl

Download URL ansys_cfx_core-0.4.0-py3-none-any.whl
Size 10.1 MB
Tags Python 3
SHA-256 checksum
How to use checksums
e4c95276b96a222b66435d45ff3da70deb2f8937e24d8450de25a4b55888c505
BLAKE2b-256 checksum
How to use checksums
e7f249b15d89a93f4097067cd6885c365d3f5a50e400a49897a11656c119b644
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 13, 2026.

Transparency log

Security for ansys-cfx-core 0.4.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for ansys_cfx_core-0.4.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 13, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page