Skip to main content

PyCFX is a Python wrapper for Ansys CFX, the gold standard CFD software for turbomachinery applications.

Project description

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.

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

ansys_cfx_core-0.2.3.tar.gz (981.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ansys_cfx_core-0.2.3-py3-none-any.whl (139.9 kB view details)

Uploaded Python 3

File details

Details for the file ansys_cfx_core-0.2.3.tar.gz.

File metadata

  • Download URL: ansys_cfx_core-0.2.3.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

Hashes for ansys_cfx_core-0.2.3.tar.gz
Algorithm Hash digest
SHA256 9f10d3764e0f7c0e4b6c03c6170fc0c1468af3cc5c234729d212237da91fcbc5
MD5 8650686bc8d81ca7b55e73518bdc1801
BLAKE2b-256 78a1b4fdbc27e502644accee0980a9142a42a4803e1dae5dacf61c5daa6db358

See more details on using hashes here.

Provenance

The following attestation bundles were made for ansys_cfx_core-0.2.3.tar.gz:

Publisher: ci_cd.yml on ansys/pycfx

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file ansys_cfx_core-0.2.3-py3-none-any.whl.

File metadata

  • Download URL: ansys_cfx_core-0.2.3-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

Hashes for ansys_cfx_core-0.2.3-py3-none-any.whl
Algorithm Hash digest
SHA256 06417e56f0afadeaf3390f6ce86943c71e7b14c2eb51d804f86c2108e9ffd87b
MD5 68bb2b198b7709a8d65d3060e5031b1c
BLAKE2b-256 96f7512d2ec6a233bd5358560dab6acac7ff1793c1eec944b0f61017feb3c3b8

See more details on using hashes here.

Provenance

The following attestation bundles were made for ansys_cfx_core-0.2.3-py3-none-any.whl:

Publisher: ci_cd.yml on ansys/pycfx

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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