honeybee_plus.radiance.material.glass module

Radiance Glass Material.

http://radsite.lbl.gov/radiance/refer/ray.html#Glass

class honeybee_plus.radiance.material.glass.Glass(name, r_transmittance=0.0, g_transmittance=0.0, b_transmittance=0.0, refraction_index=1.52, modifier='void')[source]

Bases: honeybee_plus.radiance.material.materialbase.RadianceMaterial

Radiance glass material.

property average_transmittance

Calculate average transmittance.

b_transmittance = None

0).

Type

Transmittance for blue. The value should be between 0 and 1 (Default

classmethod by_single_trans_value(name, rgb_transmittance=0, refraction_index=1.52, modifier='void')[source]

Create glass material with single transmittance value.

name

Material name as a string. Do not use white space and special character.

rgb_transmittance

Transmittance for red, green and blue. The value should be between 0 and 1 (Default: 0).

refraction

Index of refraction. 1.52 for glass and 1.4 for ETFE (Default: 1.52).

modifier

Material modifier (Default: “void”).

Usage:

glassMaterial = Glass.by_single_trans_value(“generic glass”, .65) print(glassMaterial)

classmethod from_json(rec_json)[source]

Make radiance material from json {

“name”: “”, // Material Name “r_transmittance”: float, // Transmittance for red “g_transmittance”: float, // Transmittance for green “b_transmittance”: float, // Transmittance for blue “refraction”: float, // Index of refraction “modifier”: “” // material modifier (Default: “void”)

}

classmethod from_string(material_string, modifier=None)[source]

Create a Radiance material from a string.

If the material has a modifier the modifier material should also be part of the string or should be provided using modifier argument.

g_transmittance = None

0).

Type

Transmittance for green. The value should be between 0 and 1 (Default

static get_transmissivity(transmittance)[source]

Calculate transmissivity based on transmittance value.

“Transmissivity is the amount of light not absorbed in one traversal of the material. Transmittance – the value usually measured - is the total light transmitted through the pane including multiple reflections.”

r_transmittance = None

0).

Type

Transmittance for red. The value should be between 0 and 1 (Default

refraction_index = None

1.52).

Type

Index of refraction. 1.52 for glass and 1.4 for ETFE (Default

to_json()[source]

Translate radiance material to json {

“type”: “glass”, // Material type “name”: “”, // Material Name “r_transmittance”: float, // Transmittance for red “g_transmittance”: float, // Transmittance for green “b_transmittance”: float, // Transmittance for blue “refraction_index”: float, // Index of refraction “modifier”: “” // material modifier (Default: “void”)

}