Skip to main content

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/

Metadata

Release files for sap2012 0.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for sap2012 0.0.1
File Size Uploaded
sap2012-0.0.1.tar.gz 36.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for sap2012 0.0.1
File Interpreter ABI Platform
sap2012-0.0.1-py3-none-any.whl Python 3 none any Details

Total release size: 80.7 kB

Release files / sap2012-0.0.1.tar.gz

Download URL sap2012-0.0.1.tar.gz
Size 36.8 kB
Tags Source
SHA-256 checksum
How to use checksums
a34af4055fad9d83cded2e820a5ee705d370d5ea32574c14ee62bd664aea9f5a
BLAKE2b-256 checksum
How to use checksums
9ecc9447be182e3c80b5f8c48b0f17d55baa89481023e115beebf4f6feb4d469
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.9.7

Release files / sap2012-0.0.1-py3-none-any.whl

Download URL sap2012-0.0.1-py3-none-any.whl
Size 43.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4bb2a0e179c12691b43faa6804590ff3bc0761f6fb4aaf1f42cb0c1cb8d2ca9a
BLAKE2b-256 checksum
How to use checksums
a8b653621ac724078b9bdabb0e2014ef922308ceb21f878a595a9e830df22543
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.9.7

Release history Release notifications | RSS feed

This release

0.0.1 This release

2 release files

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