Skip to main content
https://img.shields.io/pypi/v/carbatpy.svg Documentation Status

carbatpy is a Python package for modelling Carnot batteries (thermal energy storage) based on heat pumps for charging, organic Rankine cycles (ORC) for discharging, and different storage concepts.

Currently, the main focus is on steady-state thermodynamic cycle simulation and evaluation (efficiency, costs, and optimisation). Time-dependent models are planned.

Documentation

Requirements (mandatory)

REFPROP is required for meaningful use of the package.

  • REFPROP (NIST): a valid license is required.

  • Python: >= 3.10

In addition, typical scientific Python packages are used (NumPy, SciPy, pandas, …); see pyproject.toml for the full list.

Optional components

carbatpy can optionally interface with additional tools. These are not required to install or import carbatpy. When available, they can be selected explicitly in various functions (they are not enabled automatically).

TREND

If TREND is installed and you want to use it for thermodynamic properties, enable it in carbatpy.cb_config.py by setting the dictionary _TREND accordingly (example):

  • {"USE_TREND": True, "TREND_DLL": "...", "TREND_PATH": "..."}

In addition, the relevant TREND paths typically need to be available as system environment variables (see documentation for details). TREND was developed and is authored by Prof. Roland Span and his co-workers (Chair of Thermodynamics, Ruhr University Bochum).

Note: currently, TREND support is limited to thermodynamic properties (no transport properties).

Machine models (SPP 2403)

Detailed machine models are available as an external add-on package (e.g. spp_machines). This add-on is developed and maintained separately and may have its own license conditions. It was originally developed in the context of SPP 2403 and may be available on request, it is authored by Steffen Folkers and Prof. Dieter Brillert (Chair of Turbomachinery, University of Duisburg-Essen).

If the add-on package is installed, it can be selected explicitly for the corresponding components; otherwise, carbatpy falls back to simplified models or disables the relevant functionality (with a clear error message).

Package structure

The main functionality is implemented in the subpackages under carbatpy.models:

  • cb_fluids: Fluid mixture properties (REFPROP; optional: TREND for thermodynamic data)

  • components: Models of individual devices such as compressors, turbines, heat exchangers, throttles, etc.

  • coupled: Coupled component models forming thermodynamic cycles and Carnot batteries

Features

  • Steady-state calculation of heat pumps, ORCs, and Carnot batteries

  • Optimisation of pressure levels and working fluid mixture composition for improved second-law efficiency

  • Cost estimation based on correlations from the literature

  • Reading cycle configurations and parameters from YAML input files

  • Quasi steady-state evaluation of efficiencies and costs

Roadmap / TODO

  • Time-dependent (dynamic) cycle simulation

  • Further validation and extended component models

Credits

Contact

Burak Atakan, University of Duisburg-Essen, Germany

  • atakan.thermodynamik.duisburg [at] gmail.com

License

  • MIT License

Metadata

Release files for carbatpy 0.5.6.post4

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

Source distribution (sdist)

Source distribution for carbatpy 0.5.6.post4
File Size Uploaded
carbatpy-0.5.6.post4.tar.gz 3.2 MB Details

Built distribution (wheel)

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

Total release size: 6.4 MB

Release files / carbatpy-0.5.6.post4.tar.gz

Download URL carbatpy-0.5.6.post4.tar.gz
Size 3.2 MB
Tags Source
SHA-256 checksum
How to use checksums
c28ada2ba19c718d096083bee59643023b4045b4a1e60e85e9aabd6d7c389574
BLAKE2b-256 checksum
How to use checksums
13fcae8ca7597d243b3158ca8575132b4a8a228c5031f391b39fe43b1d43dcdf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.0.0 CPython/3.12.10 Windows/11

Release files / carbatpy-0.5.6.post4-py3-none-any.whl

Download URL carbatpy-0.5.6.post4-py3-none-any.whl
Size 3.2 MB
Tags Python 3
SHA-256 checksum
How to use checksums
798cf8aa8f37cb35dd28410d2442ac5515a7559b585b6d7d92d82405a478c55e
BLAKE2b-256 checksum
How to use checksums
f126429e0391727c458fa90fd82a411d4bd7e176cf894fed6467efa0b8df8eb9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.0.0 CPython/3.12.10 Windows/11

Release history Release notifications | RSS feed

0.7.2

2 release files

0.7.1

2 release files

0.6.7

2 release files

0.6.6

2 release files

0.6.5

2 release files

0.6.4

2 release files

0.6.3

2 release files

0.6.2

2 release files

0.6.1

2 release files

This release

0.5.6.post4 This release

2 release files

0.5.6

2 release files

0.5.5

2 release files

0.5.4

2 release files

0.5.3

2 release files

0.5.2

2 release files

0.5.1

2 release files

0.5.0

2 release files

0.4.2

2 release files

0.4.1

2 release files

0.4.0

2 release files

0.3.12

2 release files

0.3.3

2 release files

0.3.2

2 release files

0.3.1

2 release files

0.3.0

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.8

2 release files

0.1.7

2 release files

0.1.6

2 release files

0.1.5

2 release files

0.1.4

1 release file

0.1.3

2 release files

0.1.2

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