Skip to main content

A Python tool for barotropic fluid property modeling.

Project description

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!

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

barotropy-0.4.4.tar.gz (72.4 kB view details)

Uploaded Source

Built Distribution

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

barotropy-0.4.4-py3-none-any.whl (83.9 kB view details)

Uploaded Python 3

File details

Details for the file barotropy-0.4.4.tar.gz.

File metadata

  • Download URL: barotropy-0.4.4.tar.gz
  • Upload date:
  • Size: 72.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.2 CPython/3.12.13 Linux/6.17.0-1008-azure

File hashes

Hashes for barotropy-0.4.4.tar.gz
Algorithm Hash digest
SHA256 e6a9f42ab5f94edd057a3701e4bee6291c67c2b6ea5b0bd51c439e3748eca522
MD5 690de181411a8b8cb09d598e4fea440f
BLAKE2b-256 c66cecde36116d6a5c20242a8c620d14ecb7f056cfda2c4e55b93cd9a9434325

See more details on using hashes here.

File details

Details for the file barotropy-0.4.4-py3-none-any.whl.

File metadata

  • Download URL: barotropy-0.4.4-py3-none-any.whl
  • Upload date:
  • Size: 83.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.2 CPython/3.12.13 Linux/6.17.0-1008-azure

File hashes

Hashes for barotropy-0.4.4-py3-none-any.whl
Algorithm Hash digest
SHA256 d2cca9d18c608406a5bbda55c2c3180e40632425f6c820ae2003d5ccf605f751
MD5 c3f75ad75b3f2883772ab912228eea9f
BLAKE2b-256 ba28fc4bcc7ac9aabef4d10ae4e0560676ac8d907420ea9fe76f438227f91080

See more details on using hashes here.

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