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)

🚀 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.0.8.tar.gz (85.3 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.0.8-py3-none-any.whl (102.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: thermopt-0.0.8.tar.gz
  • Upload date:
  • Size: 85.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.1 CPython/3.11.11 Linux/6.8.0-1021-azure

File hashes

Hashes for thermopt-0.0.8.tar.gz
Algorithm Hash digest
SHA256 e63ea797d9f470c00db860c1fee857b0f347f6b15498e57d43b27b95fd6bd07f
MD5 a84394b4815f3963bce7163570bf1959
BLAKE2b-256 4392f2ea18f3c482798d67a4d37b02a2b9f1fba088d42b85264ca81b73daf105

See more details on using hashes here.

File details

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

File metadata

  • Download URL: thermopt-0.0.8-py3-none-any.whl
  • Upload date:
  • Size: 102.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.1 CPython/3.11.11 Linux/6.8.0-1021-azure

File hashes

Hashes for thermopt-0.0.8-py3-none-any.whl
Algorithm Hash digest
SHA256 2c1f03f2aea1feb24128b8d083bd6fed4f1e603ef644f88bae6657b29c6f8c81
MD5 ada40f21771f924b66bc54418600236a
BLAKE2b-256 a605340dbbb4b2b95557c92847de1ea6ddf17434481656572907b7cc10d2a646

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