Skip to main content

pyCaRM

PyPI version Python versions CI Ruff License: MIT

pyCaRM (CApacity Resistance Model) is a Python library for the simulation of borehole heat exchanger (BHE) systems. It models the transient thermal response of the ground and borehole, supporting single and multi-borehole configurations with surface boundary conditions.

📖 Documentation: https://betalab-team.github.io/pyCaRM/

Features

  • Single and multi-borehole field configurations
  • Supported BHE types: single U-tube, double U-tube, coaxial, helical
  • Ground stratification support
  • Surface boundary conditions (solar radiation, sky radiation, convection)
  • Voronoi-based field decomposition for multi-borehole layouts
  • Finite Line Source (FLS) thermal interference model
  • Parallel and series borehole connection modes
  • Heat flux mode: drive the simulation from a heat pump-side thermal load and supply temperature, with heat pump COP/EER performance accounted for
  • Time-variable grout thermophysical properties driven by soil moisture content (irrigation input)

Installation

Install from PyPI:

pip install pyCaRM-BHE

Alternatively, clone the repository and install from source:

git clone https://github.com/BETALAB-team/pyCaRM.git
cd pyCaRM
pip install .

Developers:

git clone https://github.com/BETALAB-team/pyCaRM.git
cd pyCaRM
pip install -e ".[dev]"

Optional Dependencies

  • CoolProp — for computing fluid thermophysical properties. Install with pip install pyCaRM-BHE[coolprop]. See Fluid Properties for usage.

Documentation

Full documentation is available at https://betalab-team.github.io/pyCaRM/.

Examples

Complete working scripts for all supported configurations are available in the examples/ folder. See also the documentation for detailed usage guides.

  • SingleUtube_multi_parallel.py — multi-borehole field, parallel mode
  • SingleUtube_multi_series.py — multi-borehole field, series mode
  • SingleUtube_multi_series_heat_flux.py — multi-borehole field, series mode, heat flux (COP/EER) mode
  • SingleUtube.py — single borehole, single U-tube
  • DoubleUtube.py — single borehole, double U-tube
  • Coaxial.py — single borehole, coaxial
  • Helical.py — single borehole, helical
  • Helical_variable_properties.py — single borehole, helical, time-variable grout properties from soil moisture

Authors

Developed at BETALAB – Department of Industrial Engineering, University of Padova.

  • Alessio Tollin
  • Angelo Zarrella

Citation

If you use CaRM in your research, please cite:

[Citation will be added after publication]

The models and methods CaRM builds on are listed in the References page of the documentation.

License

MIT License — see LICENSE for details.

Metadata

Release files for pyCaRM-BHE 0.2.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 pyCaRM-BHE 0.2.2
File Size Uploaded
pycarm_bhe-0.2.2.tar.gz 61.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pyCaRM-BHE 0.2.2
File Interpreter ABI Platform
pycarm_bhe-0.2.2-py3-none-any.whl Python 3 none any Details

Total release size: 117.3 kB

Release files / pycarm_bhe-0.2.2.tar.gz

Download URL pycarm_bhe-0.2.2.tar.gz
Size 61.7 kB
Tags Source
SHA-256 checksum
How to use checksums
d8835f23feaa2a99415b1a65b21d00266500a002a7a1caec0d03b2c811ffd326
BLAKE2b-256 checksum
How to use checksums
12df4d056a7ce973b79bf9c7d411bd39714d9d50d40bdb00f50f198d6fa8d00b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 13, 2026.

Transparency log

Release files / pycarm_bhe-0.2.2-py3-none-any.whl

Download URL pycarm_bhe-0.2.2-py3-none-any.whl
Size 55.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
11ecd56b72b479e69324e67df2cf9fddb47f011f629e0845f5e9102ffccd65c9
BLAKE2b-256 checksum
How to use checksums
90f0998995f8b90483c9f0a50dba95af3f0d1bb6c2cdec7bc3fc6540e9328ddf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 13, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.2.2 This release

2 release files

0.2.1

2 release files

0.2.0

2 release files

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