Skip to main content

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.

  1. Install Poetry
    Follow the official guide: Poetry Installation
    Then verify the installation:

    poetry --version
    
  2. Clone the repository

    git clone https://github.com/turbo-sim/thermopt
    cd thermopt
    
  3. Install dependencies and create a virtual environment
    This installs all required packages listed in pyproject.toml:

    poetry install
    
  4. Activate the virtual environment

    poetry shell
    

    To deactivate:

    exit
    
  5. Verify the installation
    Run the following inside the Poetry shell or with poetry run:

    poetry run python -c "import thermopt; thermopt.print_package_info()"
    
  6. 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 .yaml input file
  • Is executed via a corresponding run_optimization.py script
  • Outputs results in a subdirectory called results/

To run any example, navigate to the corresponding subfolder and execute the optimization script.

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

thermopt-0.2.1.tar.gz (49.6 kB view details)

Uploaded Source

Built Distribution

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

thermopt-0.2.1-py3-none-any.whl (62.8 kB view details)

Uploaded Python 3

File details

Details for the file thermopt-0.2.1.tar.gz.

File metadata

  • Download URL: thermopt-0.2.1.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

Hashes for thermopt-0.2.1.tar.gz
Algorithm Hash digest
SHA256 7c3930d4c9a41a25c54367b21a8c89976e08c767315110b3d9d6fd79c55604de
MD5 f4e7d3f27e2afa04bbb6c0cea4980c21
BLAKE2b-256 ab742f2568a0c775654a8d8b2ae81dbad6ef9480b9b6a6d91e86884c6fd906f0

See more details on using hashes here.

File details

Details for the file thermopt-0.2.1-py3-none-any.whl.

File metadata

  • Download URL: thermopt-0.2.1-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

Hashes for thermopt-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 0a148cb0c6175b4af55f89768661c3dafe57a8e768ccc68dc786d636ec4df6f8
MD5 8a46b3ada66f6d471ce9783f2e65ad17
BLAKE2b-256 388adf84d0bb080566d476ed1a9cb5ccd428ec7410683926ededd88b1c5355bf

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