Python package implementing the SAP2012 domestic building energy calculations
Project description
sap2012
SAP2012 energy calculation method in Python.
Introduction
SAP2012 is the Standard Assessment Procedure 2012, the UK Government's energy calculation method for the building regulation compliance for new dwellings.
SAP2012 is developed and published by the Building Research Establishment: https://www.bregroup.com/sap/standard-assessment-procedure-sap-2012/.
This Python package contains the calculation methods and data in the SAP2012 methodology. It allows the user to specify the inputs needed for a SAP calculation and then to run a SAP calculation based on these inputs.
Documentation
Full documentation is available on ReadTheDocs here: https://sap2012.readthedocs.io/en/latest/
Installation
Available on PyPi. Download using the command pip install sap2012
.
If using the Anaconda distribution, this command can be run using the Anaconda prompt.
Approach
The package is designed to represent the SAP calculation method as simply as possible, to allow for flexibility and customisation.
Each section of the SAP2012 calculation method is a separate Python function which takes the input data as a series of arguments and returns the calculation results. For example, the method for calculating ventilation rates is given in the ventilation_rates.py module.
A complete SAP calculation is run using the calculate_worksheet function.
Quick Example
This example runs a complete SAP2012 calculation using the inputs as stored in the 'inputs.json' file. The example prints the model outputs of the 'SAP_rating' section of the calculations.
from sap2012 import calculate_worksheet
import json
with open('inputs.json') as f:
inputs=json.load(f)
result=calculate_worksheet(inputs)
print(result['SAP_rating'])
{'energy_cost_factor': 1.7754795340546146, 'SAP_rating_value': 75.23206049993813}
Issues & feature requests?
Please raise them on the GitHub Issues page.
Contributions
All contributions welcome. Please send your pull requests.
Contacts
https://www.lboro.ac.uk/departments/abce/staff/steven-firth/
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 sap2012-0.0.1.tar.gz
.
File metadata
- Download URL: sap2012-0.0.1.tar.gz
- Upload date:
- Size: 36.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a34af4055fad9d83cded2e820a5ee705d370d5ea32574c14ee62bd664aea9f5a |
|
MD5 | c4e60ec1983933818e161927f70c53d5 |
|
BLAKE2b-256 | 9ecc9447be182e3c80b5f8c48b0f17d55baa89481023e115beebf4f6feb4d469 |
File details
Details for the file sap2012-0.0.1-py3-none-any.whl
.
File metadata
- Download URL: sap2012-0.0.1-py3-none-any.whl
- Upload date:
- Size: 43.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4bb2a0e179c12691b43faa6804590ff3bc0761f6fb4aaf1f42cb0c1cb8d2ca9a |
|
MD5 | ac13ea1c9412e85efc33f61ed52df2c3 |
|
BLAKE2b-256 | a8b653621ac724078b9bdabb0e2014ef922308ceb21f878a595a9e830df22543 |