HEATPanel
2D model for a PVT system.
Model basics.
The model can be run as a python module from the command-line interface. The model exposes:
- an overall method, for running the entire model including analysis;
- an analysis module, which can be executed to run the figure generation only;
- and an enforcement module.
The model aims to simulate the running of an integrated PV-T, hot-water, and load system. The system modelled consists of a PV-T panel component, a hot-water tank, and a system for simulating the demands placed on the system by the end user.
Running the Model
The model can be executed with python3.7 from a command line by calling:
python3.7 -m pvt_model.
The model can be run as a decoupled panel or as an integrated (coupled) system.
For running the model, the following CLI arguments are required as a minimum:
--initial-month <month_number>- Specifies the month for which weather data should be used.--location <location_folder>- Specifies the location-related information. For an example location, see thesystem_data/londonfolder.--portion-covered <0-1>- Must be used to specify the portion of the panel which is covered with PV cells.--pvt-data-file <pv_data_file.yaml>- The PV-T data YAML file must be specified.--output <extension-independent output file name>- The name of the output file, to which data should be saved, independent of file extension, should be specified.
For running the model as a stand-alone (decoupled) panel, the following requirements are required as an addition to the minimum above:
--decoupled --steady-state- Must be used to specify that the run is decoupled and steady-state.--steady-state-data-file <steady-state system data file>- Information about the runs that should be conducted needs to be specified.--x-resolution <int>- Specifies the number of elements to use in the x-direction.--y-resolution <int>- Specifies the number of elements to use in the y-direction.
For running the model as an integrated (coupled) panel, the following requirements are required as an addition to the minimum above:
--dynamic- Must be used to specifiy that the run is coupled and dynamic.--exchanger-data-file <exchanger_data_file.yaml>- Must be used to specify the YAML data file for the heat exchanger.--resolution <int>- The temporal resolution to use for the model.--tank-data-file <tank_data_file.yaml>- Must be used to specify the YAML data file for the hot-water tank.
For ease of use, the following command-line arguments are recommended when conducting a dynamic and coupled run:
--average-irradiance- Stipulates that an average irradiance profile for the month must be used.--start-time <int>- The start time, in hours from midnight, for which to run the simularion.0is the default;
For help with the arguments needed in order to run the model, use the inbuilt help display:
python3.7 -m pvt_model --help.
NOTE: If you receive a KeyError: <int> on the command-line, it is likely that the argument --average-irradiance must be used. This is because solar-irradiance profiles are missing for certain days, and the command must be used to average over those profiles which are specified.
Running the Analysis Module
The analysis module can also be run from the command-line interface. This should be executed as a python module: py -m pvt_model.analysis -df <output_file_path_with_extension>.
Creating a Pull Request
All pull requests need to be approved by a repository administrator and need to pass a series of automated tests.
To confirm that your code will pass, run the scritp test-pvt-model.sh from the root of the repository to ensure that your code confirms to the standards required of the repository (regarding formatting and type annotations etc.), that all automated tests are passing, and that all type: ignore and pylint: disable flags are dedclared.
HPC Support
NOTE: Support is included to run the model on Imperial's high-performance computing (HPC) system. Scripts for deploying runs are located in the scripts directory. This directory can be safely ignored when deploying the model on a home-PC setup.
Copyright
Copyright Benedict Winchester, 2021
Metadata
Release files for heatpanel 1.1.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| heatpanel-1.1.4.tar.gz | 135.8 kB | Without provenance | Details for heatpanel-1.1.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| heatpanel-1.1.4-py3-none-any.whl | Python 3 | none | any | Details for heatpanel-1.1.4-py3-none-any.whl |
Total release size: 314.8 kB
Release files / heatpanel-1.1.4.tar.gz
| Download URL | heatpanel-1.1.4.tar.gz |
|---|---|
| Size | 135.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
579866484c2825a2926ad84a2df640871abe6d1f4879121a4b59c64a9f794479
|
|
BLAKE2b-256 checksum How to use checksums |
af0bccb25182ef35253400b61367499de82320273294842136d0552c466c411c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.5
|
Release files / heatpanel-1.1.4-py3-none-any.whl
| Download URL | heatpanel-1.1.4-py3-none-any.whl |
|---|---|
| Size | 179.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
65e8fbee2f8197d283e0359a73383452926dfe60c0de063cdaf8449c83764350
|
|
BLAKE2b-256 checksum How to use checksums |
34d417233801c44b272b0752c7c0c55e38664f9963261fecae3d7980f34b9f88
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.5
|
Security for heatpanel 1.1.4
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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.