A thermal network solver for GHE sizing.
Project description
# ThermalNetwork
A library for sizing multiple ground heat exchangers distributed around a single-pipe thermal network.
# Installation
pip install ThermalNetwork
# Usage
This package has a command-line interface, intended to be used via URBANopt. To access the CLI directly, after installing call thermalnetwork –help for all the commands.
# Developer installation
Clone the repository: git clone https://github.com/NREL/ThermalNetwork.git
Change directories into the repository: cd ThermalNetwork
- As general guidance, we recommend using virtual environments to avoid dependencies colliding between your Python projects. [venv](https://docs.python.org/3/library/venv.html) is the Python native solution that will work everywhere, though other options may be more user-friendly.
- Some popular alternatives are:
[pyenv](https://github.com/pyenv/pyenv) and [the virtualenv plugin](https://github.com/pyenv/pyenv-virtualenv) work together nicely for Linux/Mac machines
[virtualenv](https://virtualenv.pypa.io/en/latest/)
[miniconda](https://docs.conda.io/projects/miniconda/en/latest/)
Activate pre-commit (only once, after making a new venv): pre-commit install
Runs automatically on your staged changes before every commit
Update pip and setuptools: pip install -U pip setuptools
Install the respository with developer dependencies: pip install -e .[dev]
- To check the whole repo, run pre-commit run –all-files
Settings and documentation links for pre-commit and ruff are in .pre-commit-config.yaml and pyproject.toml
# Testing
Once you are set up as a developer, run pytest from the root dir. Increase verbosity with -v and -vv.
Test files are in _thermalnetwork/tests/_
Test output will be written to _thermalnetwork/tests/test_output/_
# Releasing
Increment the version in thermalnetwork/__init__.py. Use [semantic versioning](https://semver.org/). When a new release is made in GitHub, a [workflow](https://github.com/marketplace/actions/pypi-publish) automatically releases to PyPI.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file ThermalNetwork-0.2.3rc3.tar.gz
.
File metadata
- Download URL: ThermalNetwork-0.2.3rc3.tar.gz
- Upload date:
- Size: 14.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/4.0.2 CPython/3.11.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 55bef279c6101225d76c44111f0720d5e6bb625d20cd733d1d27df326ac495e5 |
|
MD5 | bc6d8eeeca4762e4749dd80b259d35c9 |
|
BLAKE2b-256 | 9afc97f88e5540da843cdccc04bad5e43937a75fa1d96bdba2c82794596dfaf6 |
File details
Details for the file ThermalNetwork-0.2.3rc3-py3-none-any.whl
.
File metadata
- Download URL: ThermalNetwork-0.2.3rc3-py3-none-any.whl
- Upload date:
- Size: 18.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/4.0.2 CPython/3.11.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | afeea17b9dc9d00f472f06145c483db3a1085f2e11d2b0003a656f97b00fc901 |
|
MD5 | e48836ce96bda0937c9aca859868be16 |
|
BLAKE2b-256 | 1935e6cfa5d554fb7a2a8da3f1adacfa547a00d13c1f85c2cb8253e2bdd15330 |