Skip to main content

BHResist

A pure Python library for calculating the effective thermal resistance of grouted single U-tube, parallel double U-tube, and coaxial borehole heat exchangers. The single- and double-U-tube models use first-order closed-form multipole approximations. The coaxial model uses a one-dimensional resistance network. Uniform heat-flux and uniform borehole-wall-temperature boundary conditions are supported.

The public calculation methods accept total borehole mass flow rate. For a parallel double U-tube, BHResist divides that flow equally between the two U-tubes. Thermal resistances are reported in K/(W/m), equivalently m-K/W.

BHResist is intended to be a lightweight library that can be imported into other Python applications without bulky dependencies.

Fluid properties

BHResist uses the public fluid API provided by SecondaryCoolantProps 1.5 or newer. Built-in fluids can be selected with the fluid_type and fluid_concentration initializer arguments.

User-defined fluids can contain constant or temperature-dependent properties:

from scp import get_fluid

custom_fluid = get_fluid(
    "user_defined",
    name="BoreholeFluid",
    viscosity=lambda temp: 0.003 - 1.0e-5 * temp,
    specific_heat=3200.0,
    density=lambda temp: 1050.0 - 0.4 * temp,
    conductivity=0.42,
    t_min=-20.0,
    t_max=80.0,
)

Pass this object as fluid=custom_fluid when initializing a borehole and omit fluid_type and fluid_concentration. An initialized model can adopt another SecondaryCoolantProps fluid with borehole.set_fluid(custom_fluid).

Documentation

Documentation for BHResist can be found at https://bhresist.readthedocs.io.

Citation

Mitchell, Matt, Adams, Sonja, Lee, Edwin, and Swindler, Alexander. BHResist [SWR-25-57]. Computer Software. https://github.com/NatLabRockies/BHResist. USDOE Office of Energy Efficiency and Renewable Energy (EERE), Renewable Power Office. Geothermal Technologies Office. 04 Apr. 2025. Web. doi:10.11578/dc.20250421.3.

References

Hellström, G. 1991. "Ground Heat Storage: Thermal Analyses of Duct Storage Systems." PhD dissertation. Department of Mathematical Physics, University of Lund, Sweden.

Grundmann, R.M. 2016. "Improved design methods for ground heat exchangers." Master’s thesis, Oklahoma State University.

Javed, S. and J.D. Spitler. 2016. "Calculation of borehole thermal resistance." In Advances in Ground-Source Heat Pump Systems. Ed. S.J. Rees. Woodhead Publishing. https://doi.org/10.1016/B978-0-08-100311-4.00003-0

Javed, S., and J.D. Spitler. 2017. "Accuracy of borehole thermal resistance calculation methods for grouted single U-tube ground heat exchangers." Applied Energy, 187:790-806. https://doi.org/10.1016/j.apenergy.2016.11.079

Claesson, J., and S. Javed. 2019. "Explicit multipole formulas and thermal network models for calculating thermal resistances of double U-pipe borehole heat exchangers." Science and Technology for the Built Environment, 25(8) pp. 980–992. https://doi.org/10.1080/23744731.2019.1620565

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

bhresist-0.4.0.tar.gz (15.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

bhresist-0.4.0-py3-none-any.whl (20.7 kB view details)

Uploaded Python 3

File details

Details for the file bhresist-0.4.0.tar.gz.

File metadata

  • Download URL: bhresist-0.4.0.tar.gz
  • Upload date:
  • Size: 15.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for bhresist-0.4.0.tar.gz
Algorithm Hash digest
SHA256 5d03ce0ceddba1f581b93d0cfb581c3e32b0d092f1ce660b846ca8dac12e55e6
MD5 267e705d92734e8e1ca0215244ed465c
BLAKE2b-256 d6f1344d9d6247e51b4c56e21f9a9731de4581ed5a2094ae9b2810e4184e5a69

See more details on using hashes here.

Provenance

The following attestation bundles were made for bhresist-0.4.0.tar.gz:

Publisher: release.yml on NatLabRockies/BHResist

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file bhresist-0.4.0-py3-none-any.whl.

File metadata

  • Download URL: bhresist-0.4.0-py3-none-any.whl
  • Upload date:
  • Size: 20.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for bhresist-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c768524ad8d486c7d03498cf1a18054e57fa299cd4070387971a73d31c2b510c
MD5 7239d6ba63e3c3ea2f0c76c38b8773e0
BLAKE2b-256 9b3e23da7f15e7c65d0e5e494586282735e1b73fe70fe3e3ca772ae10293e7e6

See more details on using hashes here.

Provenance

The following attestation bundles were made for bhresist-0.4.0-py3-none-any.whl:

Publisher: release.yml on NatLabRockies/BHResist

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

This release

0.4.0 This release

2 files

0.3

2 files

0.2.0

2 files

0.1

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page