Skip to main content

Streamlit App

heatpumps

Steady-state simulation of design and partload operation of a wide collection of heat pump topologies.

Key Features

  • Steady-state simulation of design and partload operation based on TESPy
  • Parametrization and result visualisation through a Streamlit dashboard
  • Water-water and air-water heat pumps
  • Industry standard, as well as topologies still in research and developement, supported
  • Sub- and transcritical processes
  • Wide variety of refrigerants due to the integration of CoolProp

Getting started

Below are instructions to quickly get started with heatpumps. For more information, see the official online documentation.

Installation

Installation of heatpumps is very easy using pip. If you are using Miniforge, you can create and activate a clean environment like this:

conda create -n my_new_env python=3.11
conda activate my_new_env

Then simply install heatpumps with the following command:

python -m pip install heatpumps

If you want to use an editable version of the package, e.g. if you want to contribute to the project and test your own changes, skip the command above, clone the repository from GitHub and use this one:

python -m pip install -e .[dev]

The addition of the "-e" flag allows for changes to directly have an effect and adding "[dev]" to the installation path tells pip to also install the optional dependencies for developers.

Run the dashboard

The heatpumps package comes with a command to run the dashboard directly from your terminal. Running the dashboard is as easy as typing the following command:

heatpumps-dashboard

Using the heat pump model classes

To use the heat pump model classes in your own scripts, you can import them as follows:

from heatpumps.models import HeatPumpSimple, HeatPumpEconIHX
from heatpumps.parameters import get_params

# Simple cycle model
params = get_params('HeatPumpSimple')

params['setup']['refrig'] = 'R1234yf'
params['fluids']['wf'] = 'R1234yf'

params['C3']['T'] = 85  # feed flow temperature of heat sink
params['C1']['T'] = 50  # return flow temperature of heat sink

hp = HeatPumpSimple(params=params)

hp.run_model()
hp.generate_state_diagram(diagram_type='logph', savefig=True, open_file=True)

# Serial compression with closed economizer and internal heat exchanger
econ_type = 'closed'
params = get_params('HeatPumpEconIHX', econ_type=econ_type)

params['ihx']['dT_sh'] = 7.5  # superheating by internal heat exchanger

hp = HeatPumpEconIHX(params=params, econ_type=econ_type)

hp.run_model()
hp.perform_exergy_analysis(print_results=True)
hp.generate_sankey_diagram().show()

License

Copyright (c) 2021-2026 Jonas Freißmann and Malte Fritz

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Metadata

Release files for heatpumps 1.5.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for heatpumps 1.5.2
File Size Uploaded
heatpumps-1.5.2.tar.gz 2.4 MB Details

Built distribution (wheel)

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

Total release size: 3.4 MB

Release files / heatpumps-1.5.2.tar.gz

Download URL heatpumps-1.5.2.tar.gz
Size 2.4 MB
Tags Source
SHA-256 checksum
How to use checksums
3b2ad0b1f5cfbddcf31f48f3eb4a9fbc372cdfd0ad7545ed0703ad8db6c3b42f
BLAKE2b-256 checksum
How to use checksums
bb0b3d6ee964b89ee78cca7b8be4d4ce05db9a932d74bc6ecff2b368ae172356
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via python-requests/2.32.3

Release files / heatpumps-1.5.2-py3-none-any.whl

Download URL heatpumps-1.5.2-py3-none-any.whl
Size 1.1 MB
Tags Python 3
SHA-256 checksum
How to use checksums
7c1d15dcd27ba25a70f1d7fc2624991a12a0aae2bf2e033f1399838ce6bc6045
BLAKE2b-256 checksum
How to use checksums
956d66aed27921e3c7ed21960e84c1c9130aab829f2a443a9b7c0c96247cd3a3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via python-requests/2.32.3

Release history Release notifications | RSS feed

This release

1.5.2 This release

2 release files

1.5.1

2 release files

1.5.0

2 release files

1.4.1

2 release files

1.4.0

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