honeybee-radiance 1.66.190__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of honeybee-radiance might be problematic. Click here for more details.
- honeybee_radiance/__init__.py +11 -0
- honeybee_radiance/__main__.py +4 -0
- honeybee_radiance/_extend_honeybee.py +93 -0
- honeybee_radiance/cli/__init__.py +88 -0
- honeybee_radiance/cli/dc.py +400 -0
- honeybee_radiance/cli/edit.py +529 -0
- honeybee_radiance/cli/glare.py +118 -0
- honeybee_radiance/cli/grid.py +859 -0
- honeybee_radiance/cli/lib.py +458 -0
- honeybee_radiance/cli/modifier.py +133 -0
- honeybee_radiance/cli/mtx.py +226 -0
- honeybee_radiance/cli/multiphase.py +1034 -0
- honeybee_radiance/cli/octree.py +640 -0
- honeybee_radiance/cli/postprocess.py +1186 -0
- honeybee_radiance/cli/raytrace.py +219 -0
- honeybee_radiance/cli/rpict.py +125 -0
- honeybee_radiance/cli/schedule.py +56 -0
- honeybee_radiance/cli/setconfig.py +63 -0
- honeybee_radiance/cli/sky.py +545 -0
- honeybee_radiance/cli/study.py +66 -0
- honeybee_radiance/cli/sunpath.py +331 -0
- honeybee_radiance/cli/threephase.py +255 -0
- honeybee_radiance/cli/translate.py +400 -0
- honeybee_radiance/cli/util.py +121 -0
- honeybee_radiance/cli/view.py +261 -0
- honeybee_radiance/cli/viewfactor.py +347 -0
- honeybee_radiance/config.json +6 -0
- honeybee_radiance/config.py +427 -0
- honeybee_radiance/dictutil.py +50 -0
- honeybee_radiance/dynamic/__init__.py +5 -0
- honeybee_radiance/dynamic/group.py +479 -0
- honeybee_radiance/dynamic/multiphase.py +557 -0
- honeybee_radiance/dynamic/state.py +718 -0
- honeybee_radiance/dynamic/stategeo.py +352 -0
- honeybee_radiance/geometry/__init__.py +13 -0
- honeybee_radiance/geometry/bubble.py +42 -0
- honeybee_radiance/geometry/cone.py +215 -0
- honeybee_radiance/geometry/cup.py +54 -0
- honeybee_radiance/geometry/cylinder.py +197 -0
- honeybee_radiance/geometry/geometrybase.py +37 -0
- honeybee_radiance/geometry/instance.py +40 -0
- honeybee_radiance/geometry/mesh.py +38 -0
- honeybee_radiance/geometry/polygon.py +174 -0
- honeybee_radiance/geometry/ring.py +214 -0
- honeybee_radiance/geometry/source.py +182 -0
- honeybee_radiance/geometry/sphere.py +178 -0
- honeybee_radiance/geometry/tube.py +46 -0
- honeybee_radiance/lib/__init__.py +1 -0
- honeybee_radiance/lib/_loadmodifiers.py +72 -0
- honeybee_radiance/lib/_loadmodifiersets.py +69 -0
- honeybee_radiance/lib/modifiers.py +58 -0
- honeybee_radiance/lib/modifiersets.py +63 -0
- honeybee_radiance/lightpath.py +204 -0
- honeybee_radiance/lightsource/__init__.py +1 -0
- honeybee_radiance/lightsource/_gendaylit.py +479 -0
- honeybee_radiance/lightsource/dictutil.py +49 -0
- honeybee_radiance/lightsource/ground.py +160 -0
- honeybee_radiance/lightsource/sky/__init__.py +7 -0
- honeybee_radiance/lightsource/sky/_skybase.py +177 -0
- honeybee_radiance/lightsource/sky/certainirradiance.py +232 -0
- honeybee_radiance/lightsource/sky/cie.py +378 -0
- honeybee_radiance/lightsource/sky/climatebased.py +501 -0
- honeybee_radiance/lightsource/sky/hemisphere.py +160 -0
- honeybee_radiance/lightsource/sky/skydome.py +113 -0
- honeybee_radiance/lightsource/sky/skymatrix.py +163 -0
- honeybee_radiance/lightsource/sky/strutil.py +34 -0
- honeybee_radiance/lightsource/sky/sunmatrix.py +212 -0
- honeybee_radiance/lightsource/sunpath.py +247 -0
- honeybee_radiance/modifier/__init__.py +3 -0
- honeybee_radiance/modifier/material/__init__.py +30 -0
- honeybee_radiance/modifier/material/absdf.py +477 -0
- honeybee_radiance/modifier/material/antimatter.py +54 -0
- honeybee_radiance/modifier/material/ashik2.py +51 -0
- honeybee_radiance/modifier/material/brtdfunc.py +81 -0
- honeybee_radiance/modifier/material/bsdf.py +292 -0
- honeybee_radiance/modifier/material/dielectric.py +53 -0
- honeybee_radiance/modifier/material/glass.py +431 -0
- honeybee_radiance/modifier/material/glow.py +246 -0
- honeybee_radiance/modifier/material/illum.py +51 -0
- honeybee_radiance/modifier/material/interface.py +49 -0
- honeybee_radiance/modifier/material/light.py +206 -0
- honeybee_radiance/modifier/material/materialbase.py +36 -0
- honeybee_radiance/modifier/material/metal.py +167 -0
- honeybee_radiance/modifier/material/metal2.py +41 -0
- honeybee_radiance/modifier/material/metdata.py +41 -0
- honeybee_radiance/modifier/material/metfunc.py +41 -0
- honeybee_radiance/modifier/material/mirror.py +340 -0
- honeybee_radiance/modifier/material/mist.py +86 -0
- honeybee_radiance/modifier/material/plasdata.py +58 -0
- honeybee_radiance/modifier/material/plasfunc.py +59 -0
- honeybee_radiance/modifier/material/plastic.py +354 -0
- honeybee_radiance/modifier/material/plastic2.py +58 -0
- honeybee_radiance/modifier/material/prism1.py +57 -0
- honeybee_radiance/modifier/material/prism2.py +48 -0
- honeybee_radiance/modifier/material/spotlight.py +50 -0
- honeybee_radiance/modifier/material/trans.py +518 -0
- honeybee_radiance/modifier/material/trans2.py +49 -0
- honeybee_radiance/modifier/material/transdata.py +50 -0
- honeybee_radiance/modifier/material/transfunc.py +53 -0
- honeybee_radiance/modifier/mixture/__init__.py +6 -0
- honeybee_radiance/modifier/mixture/mixdata.py +49 -0
- honeybee_radiance/modifier/mixture/mixfunc.py +54 -0
- honeybee_radiance/modifier/mixture/mixpict.py +52 -0
- honeybee_radiance/modifier/mixture/mixtext.py +66 -0
- honeybee_radiance/modifier/mixture/mixturebase.py +28 -0
- honeybee_radiance/modifier/modifierbase.py +40 -0
- honeybee_radiance/modifier/pattern/__init__.py +9 -0
- honeybee_radiance/modifier/pattern/brightdata.py +49 -0
- honeybee_radiance/modifier/pattern/brightfunc.py +47 -0
- honeybee_radiance/modifier/pattern/brighttext.py +81 -0
- honeybee_radiance/modifier/pattern/colordata.py +56 -0
- honeybee_radiance/modifier/pattern/colorfunc.py +47 -0
- honeybee_radiance/modifier/pattern/colorpict.py +54 -0
- honeybee_radiance/modifier/pattern/colortext.py +73 -0
- honeybee_radiance/modifier/pattern/patternbase.py +34 -0
- honeybee_radiance/modifier/texture/__init__.py +4 -0
- honeybee_radiance/modifier/texture/texdata.py +29 -0
- honeybee_radiance/modifier/texture/texfunc.py +26 -0
- honeybee_radiance/modifier/texture/texturebase.py +27 -0
- honeybee_radiance/modifierset.py +1091 -0
- honeybee_radiance/mutil.py +60 -0
- honeybee_radiance/postprocess/__init__.py +1 -0
- honeybee_radiance/postprocess/annual.py +108 -0
- honeybee_radiance/postprocess/annualdaylight.py +425 -0
- honeybee_radiance/postprocess/annualglare.py +201 -0
- honeybee_radiance/postprocess/annualirradiance.py +187 -0
- honeybee_radiance/postprocess/electriclight.py +119 -0
- honeybee_radiance/postprocess/en17037.py +261 -0
- honeybee_radiance/postprocess/leed.py +304 -0
- honeybee_radiance/postprocess/solartracking.py +90 -0
- honeybee_radiance/primitive.py +554 -0
- honeybee_radiance/properties/__init__.py +1 -0
- honeybee_radiance/properties/_base.py +390 -0
- honeybee_radiance/properties/aperture.py +197 -0
- honeybee_radiance/properties/door.py +198 -0
- honeybee_radiance/properties/face.py +123 -0
- honeybee_radiance/properties/model.py +1291 -0
- honeybee_radiance/properties/room.py +490 -0
- honeybee_radiance/properties/shade.py +186 -0
- honeybee_radiance/properties/shademesh.py +116 -0
- honeybee_radiance/putil.py +44 -0
- honeybee_radiance/reader.py +214 -0
- honeybee_radiance/sensor.py +166 -0
- honeybee_radiance/sensorgrid.py +1008 -0
- honeybee_radiance/view.py +1101 -0
- honeybee_radiance/writer.py +951 -0
- honeybee_radiance-1.66.190.dist-info/METADATA +89 -0
- honeybee_radiance-1.66.190.dist-info/RECORD +152 -0
- honeybee_radiance-1.66.190.dist-info/WHEEL +5 -0
- honeybee_radiance-1.66.190.dist-info/entry_points.txt +2 -0
- honeybee_radiance-1.66.190.dist-info/licenses/LICENSE +661 -0
- honeybee_radiance-1.66.190.dist-info/top_level.txt +1 -0
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
"""Radiance Colortext Pattern.
|
|
2
|
+
|
|
3
|
+
http://radsite.lbl.gov/radiance/refer/ray.html#Colortext
|
|
4
|
+
"""
|
|
5
|
+
from .patternbase import Pattern
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
# TODO: Implement the class. It's currently only a generic Radiance Primitive
|
|
9
|
+
class Colortext(Pattern):
|
|
10
|
+
"""Radiance Colortext Pattern.
|
|
11
|
+
|
|
12
|
+
Colortext is dichromatic writing in a polygonal font. The font is defined in an
|
|
13
|
+
auxiliary file, such as helvet.fnt. The text itself is also specified in a separate
|
|
14
|
+
file, or can be part of the material arguments. The character size, orientation,
|
|
15
|
+
aspect ratio and slant is determined by right and down motion vectors. The upper left
|
|
16
|
+
origin for the text block as well as the foreground and background colors must also
|
|
17
|
+
be given.
|
|
18
|
+
|
|
19
|
+
.. code-block:: shell
|
|
20
|
+
|
|
21
|
+
mod colortext id
|
|
22
|
+
2 fontfile textfile
|
|
23
|
+
0
|
|
24
|
+
15+
|
|
25
|
+
Ox Oy Oz
|
|
26
|
+
Rx Ry Rz
|
|
27
|
+
Dx Dy Dz
|
|
28
|
+
rfore gfore bfore
|
|
29
|
+
rback gback bback
|
|
30
|
+
[spacing]
|
|
31
|
+
|
|
32
|
+
or:
|
|
33
|
+
|
|
34
|
+
.. code-block:: shell
|
|
35
|
+
|
|
36
|
+
mod colortext id
|
|
37
|
+
2+N fontfile . This is a line with N words ...
|
|
38
|
+
0
|
|
39
|
+
15+
|
|
40
|
+
Ox Oy Oz
|
|
41
|
+
Rx Ry Rz
|
|
42
|
+
Dx Dy Dz
|
|
43
|
+
rfore gfore bfore
|
|
44
|
+
rback gback bback
|
|
45
|
+
[spacing]
|
|
46
|
+
|
|
47
|
+
Args:
|
|
48
|
+
identifier: Text string for a unique Material ID. Must not contain spaces
|
|
49
|
+
or special characters. This will be used to identify the object across
|
|
50
|
+
a model and in the exported Radiance files.
|
|
51
|
+
modifier: Modifier. It can be primitive, mixture, texture or pattern.
|
|
52
|
+
(Default: None).
|
|
53
|
+
values: An array 3 arrays for primitive data. Each of the 3 sub-arrays
|
|
54
|
+
refer to a line number in the radiance primitive definitions and the
|
|
55
|
+
values in each array correspond to values occurring within each line.
|
|
56
|
+
is_opaque: A boolean to indicate whether this primitive is opaque.
|
|
57
|
+
dependencies: A list of primitives that this primitive depends on. This
|
|
58
|
+
argument is only useful for defining advanced primitives that are
|
|
59
|
+
defined based on other primitives. (Default: []).
|
|
60
|
+
|
|
61
|
+
Properties:
|
|
62
|
+
* identifier
|
|
63
|
+
* display_name
|
|
64
|
+
* values
|
|
65
|
+
* modifier
|
|
66
|
+
* dependencies
|
|
67
|
+
* is_modifier
|
|
68
|
+
* is_material
|
|
69
|
+
* is_opaque
|
|
70
|
+
"""
|
|
71
|
+
__slots__ = ()
|
|
72
|
+
|
|
73
|
+
pass
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"""Base Radiance Pattern class.
|
|
2
|
+
|
|
3
|
+
Patterns are used to modify the reflectance of materials.
|
|
4
|
+
More information on Radiance Patterns can be found at:
|
|
5
|
+
|
|
6
|
+
http://radsite.lbl.gov/radiance/refer/ray.html#Patterns
|
|
7
|
+
"""
|
|
8
|
+
from ..modifierbase import Modifier
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
class Pattern(Modifier):
|
|
12
|
+
"""Base class for Radiance patterns.
|
|
13
|
+
|
|
14
|
+
Patterns are used to modify the reflectance of materials.
|
|
15
|
+
|
|
16
|
+
Properties:
|
|
17
|
+
* identifier
|
|
18
|
+
* display_name
|
|
19
|
+
* values
|
|
20
|
+
* modifier
|
|
21
|
+
* dependencies
|
|
22
|
+
* is_modifier
|
|
23
|
+
* is_material
|
|
24
|
+
* is_texture
|
|
25
|
+
* is_pattern
|
|
26
|
+
* is_mixture
|
|
27
|
+
* is_opaque
|
|
28
|
+
"""
|
|
29
|
+
__slots__ = ()
|
|
30
|
+
|
|
31
|
+
@property
|
|
32
|
+
def is_pattern(self):
|
|
33
|
+
"""Get a boolean noting whether this object is a pattern modifier."""
|
|
34
|
+
return True
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"""Radiance Texdata Texture.
|
|
2
|
+
|
|
3
|
+
A texture is a perturbation of the surface normal, and is given by either a function or
|
|
4
|
+
data.
|
|
5
|
+
|
|
6
|
+
http://radsite.lbl.gov/radiance/refer/ray.html#Texdata
|
|
7
|
+
"""
|
|
8
|
+
from .texturebase import Texture
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
# TODO: Implement the class. It's currently only a generic Radiance Primitive
|
|
12
|
+
class Texdata(Texture):
|
|
13
|
+
"""Radiance Texdata Material.
|
|
14
|
+
|
|
15
|
+
A texdata texture uses three data files to get the surface normal perturbations. The
|
|
16
|
+
variables xfunc, yfunc and zfunc take three arguments each from the interpolated
|
|
17
|
+
values in xdfname, ydfname and zdfname.
|
|
18
|
+
|
|
19
|
+
.. code-block:: shell
|
|
20
|
+
|
|
21
|
+
mod texdata id
|
|
22
|
+
8+ xfunc yfunc zfunc xdfname ydfname zdfname vfname x0 x1 .. xf
|
|
23
|
+
0
|
|
24
|
+
n A1 A2 .. An
|
|
25
|
+
|
|
26
|
+
"""
|
|
27
|
+
__slots__ = ()
|
|
28
|
+
|
|
29
|
+
pass
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"""Radiance Texfunc Texture.
|
|
2
|
+
|
|
3
|
+
A texture is a perturbation of the surface normal, and is given by either a function or
|
|
4
|
+
data.
|
|
5
|
+
|
|
6
|
+
http://radsite.lbl.gov/radiance/refer/ray.html#Texfunc
|
|
7
|
+
"""
|
|
8
|
+
from .texturebase import Texture
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
# TODO: Implement the class. It's currently only a generic Radiance Primitive
|
|
12
|
+
class Texfunc(Texture):
|
|
13
|
+
"""Radiance Texfunc Material.
|
|
14
|
+
|
|
15
|
+
A texfunc uses an auxiliary function file to specify a procedural texture:
|
|
16
|
+
|
|
17
|
+
.. code-block:: shell
|
|
18
|
+
|
|
19
|
+
mod texfunc id
|
|
20
|
+
4+ xpert ypert zpert funcfile transform
|
|
21
|
+
0
|
|
22
|
+
n A1 A2 .. An
|
|
23
|
+
"""
|
|
24
|
+
__slots__ = ()
|
|
25
|
+
|
|
26
|
+
pass
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"""Base Radiance Texture class (Texfunc, Texdata).
|
|
2
|
+
|
|
3
|
+
A texture is a perturbation of the surface normal, and is given by either a
|
|
4
|
+
function or a data set. More information on Radiance Textures can be found at:
|
|
5
|
+
|
|
6
|
+
http://radsite.lbl.gov/radiance/refer/ray.html#Textures
|
|
7
|
+
"""
|
|
8
|
+
from ..modifierbase import Modifier
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
class Texture(Modifier):
|
|
12
|
+
"""Base class for Radiance texture (Texfunc, Texdata).
|
|
13
|
+
|
|
14
|
+
Properties:
|
|
15
|
+
* name
|
|
16
|
+
* values
|
|
17
|
+
* modifier
|
|
18
|
+
* dependencies
|
|
19
|
+
* is_modifier
|
|
20
|
+
* is_texture
|
|
21
|
+
"""
|
|
22
|
+
__slots__ = ()
|
|
23
|
+
|
|
24
|
+
@property
|
|
25
|
+
def is_texture(self):
|
|
26
|
+
"""Get a boolean noting whether this object is a texture modifier."""
|
|
27
|
+
return True
|