Skip to main content

Barotropy

Python package for real-fluid and two-phase barotropic property models, with export to CFD solvers. The barotropic approximation assumes that fluid properties (e.g., density, viscosity, speed of sound) depend solely on pressure, which is a very accurate assumption for most turbomachinery flows. This simplification reduces computational costs while improving convergence reliability in simulations involving complex fluid property variations, such as supercritical CO₂ compressors or two-phase flows in nozzles and turbines.

📦 PyPI package: https://pypi.org/project/barotropy/

📚 Documentation: https://turbo-sim.github.io/barotropy/ (under construction)

🎓 Tutorials: https://turbo-sim.github.io/barotropy/source/tutorials.html
Step-by-step examples for using the barotropic model in CFD solvers like Ansys Fluent and CFX.

Key Features

  • Simplified fluid modeling: Generate barotropic models to lower computational cost and enhance solver robustness compared to real-gas fluid property tables.
  • Suited for homogeneous two-phase flows: Simulate two-phase flows with one or two-components using the Homogeneous Equilibrium Model (HEM) or the Delayed Equilibrium Model (DEM) assumptions..
  • Seamless integration with commercial CFD solvers: Easily export barotropic models as simple expressions ready to be copy-pasted into ANSYS Fluent or ANSYS CFX.

🚀 User installation (via PyPI)

To begin using barotropy, install it via pip:

pip install barotropy

After installation, verify that everything is set up correctly by running the following command in your terminal:

python -c "import barotropy; barotropy.print_package_info()"

For detailed information and examples, visit the documentation page.

🛠️ Developer installation (from source)

To install barotropy from source, clone the repository and install it using Poetry:

git clone https://github.com/turbo-sim/barotropy.git
cd barotropy
poetry install

After installation, verify that everything is set up correctly by running:

poetry run python -c "import barotropy; barotropy.print_package_info()"

License

The code in this repository is licensed under the terms of the MIT license. See the license file for more information.

Contact Information

The code in this repository was developed by the Sustainable Thermal Power group at DTU Construct. Drop us an email at roagr@dtu.dk if you have questions about the code or have a bug to report!

Development and citation

Roberto Agromayor is the main developer of Barotropy.

Citation metadata is provided in CITATION.cff. For version-specific reproducibility, also record the release or commit used.

Regression tests and benchmarks

See release validation and performance for the multi-fluid numerical suite, candidate jaxprop wheel validation, and repeatable timing comparisons.

Barotropy 0.4.5 requires JaxProp 0.6.x. See the changelog for fixes and validation details.

Metadata

Release files for barotropy 0.4.5

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

Source distribution (sdist)

Source distribution for barotropy 0.4.5
File Size Uploaded Provenance Actions
barotropy-0.4.5.tar.gz 75.8 kB Without provenance Details for barotropy-0.4.5.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for barotropy 0.4.5
File Interpreter ABI Platform Actions
barotropy-0.4.5-py3-none-any.whl Python 3 none any Details for barotropy-0.4.5-py3-none-any.whl

Total release size: 164.5 kB

Release files / barotropy-0.4.5.tar.gz

Download URL barotropy-0.4.5.tar.gz
Size 75.8 kB
Tags Source
SHA-256 checksum
How to use checksums
551b527588c2a5b79c1d2847dcfce87da0abfd396ff248204f0c760cc1bfb23e
BLAKE2b-256 checksum
How to use checksums
62f0383ffbe7b55201f53721f4ca8f5a0f9fe8743dff498bc5780a31ec95e231
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.1.2 CPython/3.12.16 Linux/7.0.0-1019-azure

Release files / barotropy-0.4.5-py3-none-any.whl

Download URL barotropy-0.4.5-py3-none-any.whl
Size 88.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7d84a59ad8ce39f186710e0bcb708dcd6433e1c57a9de87ceb78dd2476cf60de
BLAKE2b-256 checksum
How to use checksums
1330703f735563dd9fbfe0f37a175b82f97c5f1012d6d27032a4f62a95ae67cb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.1.2 CPython/3.12.16 Linux/7.0.0-1019-azure

Security for barotropy 0.4.5

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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