Skip to main content

carbatpy

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.6.1

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

Built distribution (wheel)

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

Total release size: 6.4 MB

Release files / carbatpy-0.6.1.tar.gz

Download URL carbatpy-0.6.1.tar.gz
Size 3.2 MB
Tags Source
SHA-256 checksum
How to use checksums
01faa02cf1aca04fc87f290ccb21bbc1293dc40436b7f2092ee7586be097aa99
BLAKE2b-256 checksum
How to use checksums
36799b13c29f3c156a970b92b881b5fb5b0398a804a4974941906047bc9b784a
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.6.1-py3-none-any.whl

Download URL carbatpy-0.6.1-py3-none-any.whl
Size 3.2 MB
Tags Python 3
SHA-256 checksum
How to use checksums
93c5637fada1ea70328ac573117a62e1e475a897985b15fc645b184433afb86f
BLAKE2b-256 checksum
How to use checksums
52607276e13f35bc34c6cd59f5e9a8aad28212d423c5ae69747af2ef1ea13073
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

This release

0.6.1 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