honeybee_plus.radiance.material.mirror module

Radiance Mirror Material.

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

class honeybee_plus.radiance.material.mirror.Mirror(name, r_reflectance=0.95, g_reflectance=0.95, b_reflectance=0.95, modifier='void')[source]

Bases: honeybee_plus.radiance.material.materialbase.RadianceMaterial

Radiance mirror material.

property average_reflectance

Calculate average reflectance of mirror material.

b_reflectance = None

0).

Type

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

classmethod by_single_reflect_value(name, rgb_reflectance=0, modifier='void')[source]

Create mirror material with single reflectance value.

name

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

rgb_reflectance

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

modifier

Material modifier (Default: “void”).

Usage:

wallMaterial = Mirror.by_single_reflect_value(“generic wall”, .55) print(wallMaterial)

classmethod from_json(rec_json)[source]

Make radiance material from json {

“type”: “mirror”, // Material type “name”: “”, // Material Name “r_reflectance”: float, // Reflectance for red “g_reflectance”: float, // Reflectance for green “b_reflectance”: float, // Reflectance for blue “modifier”: modifier

}

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 partof the string or should be provided using modifier argument.

g_reflectance = None

0).

Type

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

r_reflectance = None

0).

Type

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

to_json()[source]

Translate radiance material to json {

“modifier”: modifier, “type”: “mirror”, // Material type “name”: “”, // Material Name “r_reflectance”: float, // Reflectance for red “g_reflectance”: float, // Reflectance for green “b_reflectance”: float // Reflectance for blue

}