Desk with Laptop, Calculator, Files and small model of house with epc colours
Desk with Laptop, Calculator, Files and small model of house with epc colours
EPC Works
EPC Works

Glazing

Disclaimer

On this page we are looking at how Glazing is handled in the publically available EPC Wrapper python reference code here:

 

https://dev.azure.com/Sustenic/Home%20Energy%20Model%20Reference/_git/Energy%20Performance%20Certificate%20wrapper

 

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.

How a window is represented in HEMIE

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.

How is the U-value calculated?

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

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

Secondary glazing is treated differently.

 

The glazing gap is important:

  • If the gap is less than 16mm, the code falls back to the single-glazing U-value.
  • If the gap is 16mm or greater, it uses a fixed value depending on the secondary glazing type.

 

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.

 

Double glazing

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.

 

Early-years double glazing

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
 

Mid-years double glazing

For age bands J–L:

 

Window type U-value
Standard window, wood/PVC 2.0
Standard window, metal 2.2
Roof window 2.3
 

Late-years double glazing

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.

And triple glazing?

Triple glazing uses a similar lookup system.

 

For the early-years category, the U-values are:

 

Early-years triple glazing

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.

Glazing age 'inheritance'

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:

  • If the window has its own age band, that is used.
  • If it doesn't, the wall's age band is used.
  • The resulting age band is then used by the U-value lookup.

 

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.

Solar transmittance (g-values)

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.

Frame area fraction

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.

What actually gets passed into the HEM core?

This is where the two folders come together.

 

The HEMIE window model creates a BuildingElementTransparent object for an external window.

 

The resulting object includes:

  • U-value
  • G-value
  • Frame area fraction
  • Window dimensions
  • Orientation
  • Pitch
  • Shading characteristics
  • Window opening characteristics

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.

Other glazing-related features

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:

  • External obstacles
  • Overhangs
  • Window reveals
  • Left and right side fins

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.

An Energy Assessor's Observation

tbc


Call

E-mail