A Python tool for the analysis and optimization of thermodynamic cycles.
Project description
ThermoOpt
ThermoOpt is a Python package for the modeling and optimization of thermodynamic cycles.
📚 Documentation: https://turbo-sim.github.io/thermopt/ (under construction)
📦 PyPI package: https://pypi.org/project/thermopt/
🚀 User installation (via PyPI)
If you just want to use ThermoOpt, the easiest way is to install it from PyPI:
pip install thermopt
You can then verify the installation with:
python -c "import thermopt; thermopt.print_package_info()"
🛠️ Developer installation (from source with Poetry)
This guide walks you through installation for development using Poetry, which manages both dependencies and virtual environments automatically.
-
Install Poetry
Follow the official guide: Poetry Installation
Then verify the installation:poetry --version -
Clone the repository
git clone https://github.com/turbo-sim/thermopt cd thermopt
-
Install dependencies and create a virtual environment
This installs all required packages listed inpyproject.toml:poetry install -
Activate the virtual environment
poetry shellTo deactivate:
exit -
Verify the installation
Run the following inside the Poetry shell or withpoetry run:poetry run python -c "import thermopt; thermopt.print_package_info()"
-
Install additional packages
To add a runtime dependency:poetry add <package-name>
To add a development-only dependency:
poetry add --dev <package-name>
📂 Examples
The examples directory contains a variety of ready-to-run thermodynamic cycle cases, covering different working fluids and applications.
Each example:
- Is defined in a
.yamlinput file - Is executed via a corresponding
run_optimization.pyscript - Outputs results in a subdirectory called
results/
To run any example, navigate to the corresponding subfolder and execute the optimization script.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file thermopt-0.2.0.tar.gz.
File metadata
- Download URL: thermopt-0.2.0.tar.gz
- Upload date:
- Size: 49.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.2 CPython/3.11.13 Linux/6.11.0-1015-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ad19584169a4d83331da6653bfeaa4395e7725fd4be5541e8a064a3b3763ee1a
|
|
| MD5 |
3d9b5201f67b025476425ea7ef1b566d
|
|
| BLAKE2b-256 |
68a2f9f97300e90e824421c8fc8315d206bcd8065c56251dec4ec31cca294c83
|
File details
Details for the file thermopt-0.2.0-py3-none-any.whl.
File metadata
- Download URL: thermopt-0.2.0-py3-none-any.whl
- Upload date:
- Size: 62.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.2 CPython/3.11.13 Linux/6.11.0-1015-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
903ec4e000073ac3c0582cb0c8cf5fad31330c90da5e51b90c475d15ce519a05
|
|
| MD5 |
d9581490f56dd33ef405e3a929d2f308
|
|
| BLAKE2b-256 |
8b861b4ff34b0614daa27d07255fd3009cd32303caf7ce9495877d1a10a4ea12
|