On this page we are looking at how Glazing is handled in the publically available EPC Wrapper python reference code here:
Please be aware that the code we are looking at here (November 2026) should not be treated as a definitive representation of the final HEM/HEMIE methodology. This publicly available version is incomplete, remains under development and is subject to change. It should not be relied upon in any way.
The repository's README file makes this clear, stating:
“The EPC wrapper is currently in development and should not be used for any official purpose.”
The comments on this site are of the code at the time of anaylsis.
The comments on this site may be wrong.
Please use your own due diligence and look at the code yourself to confirm anything important.
The main file is:
hemie/src/hemie/models/window.py
Each window has a number of inputs, including:
| Input | What it represents |
|---|---|
age_band |
Age band of the window, A–M |
construction |
Reference to the window's construction details |
height |
Overall window height, including frame |
width |
Overall window width, including frame |
window_sections |
Configuration of opening sections |
has_trickle_vent |
Whether a trickle vent is present |
obstacle |
External obstruction affecting solar gains |
overhang |
Overhang above the window |
reveal |
Window reveal characteristics |
side_fin_left/right |
Side fins affecting solar exposure |
passive_vents |
Passive ventilation openings associated with the window |
mechanical_vents |
Mechanical ventilation associated with the window |
The construction details are held separately in:
hemie/src/hemie/models/constructions/window_construction.py
This includes the glazing type, gap, frame material, frame area fraction, g-value and potentially a directly specified U-value.
This separation is useful because several windows can reference the same construction.
The calculation is in:
hemie/src/hemie/rdsap10_data_tables/window_u_values.py
The code first checks whether a U-value has been supplied directly.
If a known U-value is supplied, it is used. Otherwise, the code looks up the U-value using the glazing type, window age band, glazing gap, frame material and whether it is a roof window.
In other words, the code can use a documented U-value rather than relying on its default lookup tables.
The relevant property in window.py is:
Window.u_value
Single glazing doesn't use the window age band.
| Window type | U-value (W/m²K) |
|---|---|
| Standard window, wood/PVC frame | 4.8 |
| Standard window, metal frame | 5.7 |
| Roof window | 5.3 |
Secondary glazing is treated differently.
The glazing gap is important:
| Secondary glazing type | U-value |
|---|---|
| Low emissivity | 2.2 |
| Normal emissivity | 2.9 |
Interestingly, these latter values do not vary according to frame material or whether the window is a roof window.
For double glazing, the lookup depends on the window age band.
The code divides the age bands into three groups:
| Window age band | Lookup category |
|---|---|
| A–I | Early years |
| J–L | Mid years |
| M | Late years |
For the early-years category, the glazing gap and frame material make a difference.
Values for standard vertical windows:
| Glazing gap | Wood/PVC frame | Metal frame |
|---|---|---|
| 6mm | 3.1 | 3.7 |
| 12mm | 2.8 | 3.4 |
| 16mm | 2.7 | 3.3 |
For roof windows, the corresponding values are:
| Glazing gap | Wood/PVC frame | Metal frame |
|---|---|---|
| 6mm | 3.4 | 3.4 |
| 12mm | 3.1 | 3.1 |
| 16mm | 3.0 | 3.0 |
For age bands J–L:
| Window type | U-value |
|---|---|
| Standard window, wood/PVC | 2.0 |
| Standard window, metal | 2.2 |
| Roof window | 2.3 |
For age band M:
| Window type | U-value |
|---|---|
| Standard window, wood/PVC | 1.4 |
| Standard window, metal | 2.2 |
| Roof window | 1.6 |
Notice that the glazing gap is no longer relevant in the mid- and late-years categories.
Triple glazing uses a similar lookup system.
For the early-years category, the U-values are:
Standard vertical windows:
| Glazing gap | Wood/PVC frame | Metal frame |
|---|---|---|
| 6mm | 2.4 | 2.9 |
| 12mm | 2.1 | 2.6 |
| 16mm | 2.0 | 2.5 |
Roof windows:
| Glazing gap | Wood/PVC frame | Metal frame |
|---|---|---|
| 6mm | 2.6 | 2.6 |
| 12mm | 2.3 | 2.3 |
| 16mm | 2.2 | 2.2 |
For the mid- and late-years categories, the code uses the same values as the double-glazing lookup.
The window has its own age_band field. However, the code in hemie/src/hemie/models/wall.py contains a mechanism to populate this from the parent wall
- The relevant logic is around line 390.
If the window does not have an age band specified, it inherits the age band of the wall it belongs to.
That means:
This is important because it means the model can distinguish between the age of the original dwelling and the age of replacement windows, provided the window age band is separately recorded.
The model also derives a g-value for each window.
This represents the proportion of solar energy transmitted through the glazed area.
If a specific g-value is provided, the code uses that.
Otherwise, it uses defaults based on the glazing type:
| Glazing type | Default g-value |
|---|---|
| Single | 0.85 |
| Double | 0.76 |
| Triple | 0.68 |
| Secondary, low emissivity | 0.72 |
| Secondary, normal emissivity | 0.85 |
This is important because glazing influences both heat loss and solar heat gains.
A lower g-value means less solar energy enters the dwelling through the glazing.
The model also accounts for the proportion of the overall window area occupied by the frame.
If a specific frame area fraction is provided, it uses that.
Otherwise, it uses the following defaults:
| Frame material | Frame area fraction |
|---|---|
| Wood/PVC | 0.30 |
| Metal | 0.20 |
This is passed into the HEM core as part of the transparent building element.
This is where the two folders come together.
The HEMIE window model creates a BuildingElementTransparent object for an external window.
The resulting object includes:
The EPC wrapper's building-element model also supports a transparent element with a U-value or thermal resistance, together with the solar and frame characteristics.
So the window isn't simply represented as a glazing type. HEMIE turns the input information into a set of thermal and solar properties which are then passed into the HEM core.
Window opening and ventilation
The model records the opening configuration of windows, including whether they are fully opening, top-opening, sliding, or have other opening arrangements.
It calculates the maximum opening area and uses this in the ventilation modelling.
Shading
The model accounts for:
These affect the solar radiation reaching the glazing.
Roof windows
Roof windows are treated separately in the U-value lookup. Their default U-values can differ from those of vertical windows.
Bay and dormer windows
There are separate models for bay windows and dormers. These can have their own age bands and window constructions.
tbc
|
|
|