Please cite us if you use this library:
Check our new documentation in GitHub Pages: pybuildingenergy docs.
The new EPBD recast provides an update on building performance assessment through a methodology that must take into account various aspects such as the thermal characteristics of the building, the use of energy from renewable sources, building automation and control systems, ventilation, cooling, energy recovery, etc.
The methodology should represent the actual operating conditions, allow for the use of measured energy for accuracy and comparability purposes, and be based on hourly or sub-hourly intervals that take into account the variable conditions significantly impacting the operation and performance of the system, as well as internal conditions.
pyBuildingEnergy aims to provide an assessment of building performance both in terms of energy and comfort. In this initial release, it is possible to assess the energy performance of the building using ISO 52106-1:2018. Additional modules will be added for a more comprehensive evaluation of performance, assessing ventilation, renewable energies, systems, etc.
The actual calculation methods for the assessment of building performance are the following:
- the (sensible) energy need for heating and cooling, based on hourly or monthly calculations;
- the latent energy need for (de-)humidification, based on hourly or monthly calculations;
- the internal temperature, based on hourly calculations;
- the sensible heating and cooling load, based on hourly calculations;
- the moisture and latent heat load for (de-)humidification, based on hourly calculations;
- the design sensible heating or cooling load and design latent heat load using an hourly calculation interval;
- the conditions of the supply air to provide the necessary humidification and dehumidification.
The calculation methods can be used for residential or non-residential buildings, or a part of it, referred to as "the building" or the "assessed object".
ISO 52016-1:2018 also contains specifications for the assessment of thermal zones in the building or in the part of a building. The calculations are performed per thermal zone. In the calculations, the thermal zones can be assumed to be thermally coupled or not. ISO 52016-1:2018 is applicable to buildings at the design stage, to new buildings after construction and to existing buildings in the use phase.
--
The tool can use weather data coming from 2 main sources:
- PVGIS API (link) - PHOTOVOLTAIC GEOGRAPHICAL INFORMATION SYSTEM
.epwfile from Ladybug Tools EPWMap
More details in the example folder.
- Calculation of volume and energy need for domestic hot water according to ISO 12831-3.
- Assessment of thermal load based on the type of DHW system.
The EN 15316 series covers the calculation method for system energy requirements and system efficiencies. This family of standards is an integral part of the EPB set and covers:
- EN 15316-1: General and expression of energy performance (Modules M3-1, M3-4, M3-9, M8-1, M8-4)
- EN 15316-2: Emission systems (heating and cooling)
- EN 15316-3: Distribution systems (DHW, heating, cooling)
- EN 15316-4-X: Heat generation systems:
- 4-1: Combustion boilers
- 4-2: Heat pumps
- 4-3: Solar thermal and photovoltaic systems
- 4-4: Cogeneration systems
- 4-5: District heating
- 4-7: Biomass
- EN 15316-5: Storage systems
For space heating, applicable standards include EN 15316-1, EN 15316-2-1, EN 15316-2-3 and the appropriate parts of EN 15316-4 depending on the system type, including losses and control aspects.
EN ISO 52016 defines that:
The calculation now allows the definition of several thermal and non-thermal zones adjacent to the considered zone.
External Adjacent – Unheated Zone: It is possible to define an unheated adjacent zone in contact with the considered thermal zone.
The length of the separating wall may be entirely or partially connected to the considered zone.
The calculation involves:
- Determining the internal temperature of the non-thermal zone.
- Evaluating the heat exchange with the thermal zone.
External Adjacent – Heated Zone: In this case, the wall between the two zones is considered adiabatic (no heat exchange). Adjusted Coefficient: To account for the different temperatures between zones (e.g., thermal and non-thermal), an adjusted coefficient is calculated.
The standard defines various assumptions specified in section 6.5.3 — Assumptions and specific conditions.
In general, it aims to simplify the zoning approach by reducing the number of zones to a minimum (ISO EN 52016-2:2018).
It also emphasizes that:
A multi-zone calculation with interactions between the zones requires significant and often arbitrary input data (on transmission properties and air flow direction and size).
It can also lead to other technical and procedural complications that add uncertainties to the results.
A further complication can be the involvement of different heating, cooling and ventilation systems for different zones, which adds to the complexity and arbitrariness of the input and modelling.
Key Remark: Therefore, the benefits of calculations with thermally coupled zones can be smaller than the drawbacks.
Compute the ventilation heat transfer coefficient [W·K⁻¹] of the thermal zone either:
- from natural ventilation (ISO 16798-7:2017, single-sided airing via windows, wind/stack), or
- from occupancy-driven flow (simplified volumetric rate per floor area).
For more detail refers to natural ventilation.
Due to the need to have profiles of occupancy and consumption of buildings for some uses, tables of profiles useful for evaluating, occupancy, lights, heating, cooling, internal gains have been implemented. These tables are provided by ANNEX A of ISO EN 16798-1. In the tool they are available here: Table
The data provided before being used for the simulation are processed and evaluated to be considered fit for the simulation. This process includes a series of checks that allow to identify any potential errors. For more details refers to Input Quality check.
The library is developed with the intent of demonstrating specific elements of calculation procedures in the relevant standards. It is not intended to replace the regulations but to complement them, as the latter are essential for understanding the calculation. This library is meant to be used for demonstration and testing purposes and is therefore provided as open source, without protection against misuse or inappropriate use.
The information and views set out in this document are those of the authors and do not necessarily reflect the official opinion of the European Union.
The calculation is currently aimed at single-zone buildings with ground floor. The evaluation of multi-zone buildings is under evaluation.
Install the latest version of the library:
pip install pybuildingenergy- For building inputs refer to Building Inputs
- For heating system inputs (EN 15316-1) refer to Heating System Input
New examples will follow soon...
Bug reports / Questions
If you encounter a bug, please create an issue detailing it. Provide steps to reproduce and a code snippet if possible.
Code contributions
We welcome and appreciate contributions! Every contribution, no matter how small, makes a difference.
- Free software: BSD 3-Clause License
- Documentation: pyBuildingEnergy Docs
This work was carried out within European projects:
- Infinite — EU Horizon 2020 (grant agreement No. 958397)
- Moderate — Horizon Europe (grant agreement No. 101069834)
DHW Calculation developed with data and methods from EPBCenter spreadsheet.
- EPB Center - Energy Performance of Buildings Directive (EPBD)
- REHVA Journal - EN ISO 52000 family of standards
- European Commission - Energy Performance of Buildings Directive
- Directive (EU) 2024/1275 - Official Journal of the EU, May 8, 2024
- EN ISO 52010-1:2018 - External climatic conditions
- EN ISO 52016-1:2018 - Energy needs for heating and cooling
- EN ISO 52016-2:2018 - Explanation and justification of ISO 52016-1 and iso 52017-1
- EN 12831-3:2018 - DHW systems heat load and characterization
- EN 15316-1:2018 - System energy requirements and efficiencies
- EN 16798-7 & 16798-1 - Ventilation standards
