Skip to main content

Barotropy

Enhance your two-phase turbomachinery CFD simulations with barotropy, a Python package designed to create barotropic fluid property models. 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!

Metadata

Release files for barotropy 0.4.4

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.4
File Size Uploaded
barotropy-0.4.4.tar.gz 72.4 kB Details

Built distribution (wheel)

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

Total release size: 156.3 kB

Release files / barotropy-0.4.4.tar.gz

Download URL barotropy-0.4.4.tar.gz
Size 72.4 kB
Tags Source
SHA-256 checksum
How to use checksums
e6a9f42ab5f94edd057a3701e4bee6291c67c2b6ea5b0bd51c439e3748eca522
BLAKE2b-256 checksum
How to use checksums
c66cecde36116d6a5c20242a8c620d14ecb7f056cfda2c4e55b93cd9a9434325
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.8.2 CPython/3.12.13 Linux/6.17.0-1008-azure

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

Download URL barotropy-0.4.4-py3-none-any.whl
Size 83.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d2cca9d18c608406a5bbda55c2c3180e40632425f6c820ae2003d5ccf605f751
BLAKE2b-256 checksum
How to use checksums
ba28fc4bcc7ac9aabef4d10ae4e0560676ac8d907420ea9fe76f438227f91080
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.8.2 CPython/3.12.13 Linux/6.17.0-1008-azure

Release history Release notifications | RSS feed

This release

0.4.4 This release

2 release files

0.4.3

2 release files

0.4.1

2 release files

0.4.0

2 release files

0.3.1

2 release files

0.3.0

2 release files

0.2.18

2 release files

0.2.17

2 release files

0.2.14

2 release files

0.2.13

2 release files

0.2.8

2 release files

0.2.7

2 release files

0.2.6

2 release files

0.2.4

2 release files

0.2.3

2 release files

0.2.2

2 release files

0.2.0

2 release files

0.1.1

2 release files

0.0.7

2 release files

0.0.6

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

2 release files

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