Skip to content

GlazingSystem

frads.GlazingSystem dataclass

GlazingSystem(name, thickness=0, layers=list(), gaps=list(), visible_front_transmittance=list(), visible_back_transmittance=list(), visible_front_reflectance=list(), visible_back_reflectance=list(), solar_front_transmittance=list(), solar_back_transmittance=list(), solar_front_reflectance=list(), solar_back_reflectance=list(), solar_front_absorptance=list(), solar_back_absorptance=list())

Glazing system data object.

Attributes:

Name Type Description
name str

Name of the glazing system.

thickness float

Thickness of the glazing system.

layers List[Layer]

List of Layer objects.

gaps List[Gap]

List of Gap objects.

visible_front_transmittance List[List[float]]

Visible front transmittance matrix.

visible_back_transmittance List[List[float]]

Visible back transmittance matrix.

visible_front_reflectance List[List[float]]

Visible front reflectance matrix.

visible_back_reflectance List[List[float]]

Visible back reflectance matrix.

solar_front_transmittance List[List[float]]

Solar front transmittance matrix.

solar_back_transmittance List[List[float]]

Solar back transmittance matrix.

solar_front_reflectance List[List[float]]

Solar front reflectance matrix.

solar_back_reflectance List[List[float]]

Solar back reflectance matrix.

solar_front_absorptance List[List[float]]

Solar front absorptance matrix by layer.

solar_back_absorptance List[List[float]]

Solar back absorptance matrix by layer.

from_json classmethod

from_json(path)

Load a glazing system from a JSON file.

get_brtdfunc

get_brtdfunc()

Get a BRTDfunc primitive for the glazing system.

save

save(out)

Save the glazing system to a file.

to_xml

to_xml(out)

Save the glazing system to a file.

frads.create_glazing_system

create_glazing_system(name, layers, gaps=None)

Create a glazing system from a list of layers and gaps.

Parameters:

Name Type Description Default
name str

Name of the glazing system.

required
layers List[Union[Path, str, bytes]]

List of layers.

required
gaps Optional[List[Gap]]

List of gaps.

None

Returns:

Type Description
GlazingSystem

GlazingSystem object.

Raises:

Type Description
ValueError

Invalid layer type.

Examples:

>>> create_glazing_system(
...     "test",
...     [
...         Path("glass.json"),
...         Path("venetian.xml"),
...     ],
... )

frads.Gap dataclass

Gap(gas, thickness)

Gap data object.

Attributes:

Name Type Description
gas List[Gas]

List of Gas objects.

thickness float

Thickness of the gap.

frads.Gas dataclass

Gas(gas, ratio)

Gas data object.

Attributes:

Name Type Description
gas str

Gas type.

ratio float

Gas ratio.