honeybee_plus.radiance.geometry.source module

Radiance Source.

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

class honeybee_plus.radiance.geometry.source.Source(name, direction=None, angle=None, modifier=None)[source]

Bases: honeybee_plus.radiance.geometry.geometrybase.RadianceGeometry

Radiance Source.

A source is not really a surface, but a solid angle. It is used for specifying light sources that are very distant. The direction to the center of the source and the number of degrees subtended by its disk are given as follows:

mod source id 0 0 4 xdir ydir zdir angle

angle = None
direction = None
classmethod from_json(geo_json)[source]

Make radiance material from json {

“type”: “source”, // Geometry type “modifier”: {} or “void”, “name”: “”, // Geometry Name “direction”: {“x”: float, “y”: float, “z”: float}, “angle”: float

}

classmethod from_string(geometry_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.

to_json()[source]

Translate radiance material to json {

“type”: “source”, // Geometry type “modifier”: {} or void, // Modifier “name”: “”, // Geometry Name “direction”: {“x”: float, “y”: float, “z”: float}, “angle”: float

}