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. R.Span and his co-workers(Chair of Thermodynamics, RU 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 authored by S. Folkers and Prof. D. 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 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.post2

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.post2
File Size Uploaded
carbatpy-0.5.6.post2.tar.gz 3.2 MB Details

Built distribution (wheel)

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

Total release size: 6.4 MB

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

Download URL carbatpy-0.5.6.post2.tar.gz
Size 3.2 MB
Tags Source
SHA-256 checksum
How to use checksums
4d7bf450c9e7579c8e9b94cf38674f9fd326cc34335c61abd4c16a14a426db5b
BLAKE2b-256 checksum
How to use checksums
cf83ca88edad36be84078038398bb40a201847ec96c3ec27b9533dcdd64aa06e
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.post2-py3-none-any.whl

Download URL carbatpy-0.5.6.post2-py3-none-any.whl
Size 3.2 MB
Tags Python 3
SHA-256 checksum
How to use checksums
87c887db74dd13222869c8900082379efab9e30cf8975d67fa1e76c2fcb117e5
BLAKE2b-256 checksum
How to use checksums
e2bd4777305bc45b2795d62a960f16bbe10131a6b878e0079003fbefe32e1cd2
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.post2 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