honeybee-schema 1.59.1__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.
- honeybee_schema/__init__.py +1 -0
- honeybee_schema/__main__.py +4 -0
- honeybee_schema/_base.py +42 -0
- honeybee_schema/altnumber.py +18 -0
- honeybee_schema/boundarycondition.py +81 -0
- honeybee_schema/cli.py +115 -0
- honeybee_schema/comparison.py +208 -0
- honeybee_schema/doe2/__init__.py +0 -0
- honeybee_schema/doe2/properties.py +75 -0
- honeybee_schema/energy/__init__.py +0 -0
- honeybee_schema/energy/_base.py +64 -0
- honeybee_schema/energy/construction.py +324 -0
- honeybee_schema/energy/constructionset.py +359 -0
- honeybee_schema/energy/daylight.py +62 -0
- honeybee_schema/energy/designday.py +212 -0
- honeybee_schema/energy/generator.py +140 -0
- honeybee_schema/energy/global_constructionset.py +129 -0
- honeybee_schema/energy/hvac/__init__.py +0 -0
- honeybee_schema/energy/hvac/_template.py +38 -0
- honeybee_schema/energy/hvac/allair.py +257 -0
- honeybee_schema/energy/hvac/detailed.py +20 -0
- honeybee_schema/energy/hvac/doas.py +248 -0
- honeybee_schema/energy/hvac/heatcool.py +309 -0
- honeybee_schema/energy/hvac/idealair.py +107 -0
- honeybee_schema/energy/internalmass.py +25 -0
- honeybee_schema/energy/load.py +627 -0
- honeybee_schema/energy/material.py +949 -0
- honeybee_schema/energy/programtype.py +117 -0
- honeybee_schema/energy/properties.py +382 -0
- honeybee_schema/energy/schedule.py +350 -0
- honeybee_schema/energy/shw.py +53 -0
- honeybee_schema/energy/simulation.py +440 -0
- honeybee_schema/energy/ventcool.py +337 -0
- honeybee_schema/geometry.py +161 -0
- honeybee_schema/model.py +473 -0
- honeybee_schema/projectinfo.py +94 -0
- honeybee_schema/radiance/__init__.py +0 -0
- honeybee_schema/radiance/_base.py +22 -0
- honeybee_schema/radiance/asset.py +191 -0
- honeybee_schema/radiance/global_modifierset.py +92 -0
- honeybee_schema/radiance/modifier.py +373 -0
- honeybee_schema/radiance/modifierset.py +296 -0
- honeybee_schema/radiance/properties.py +149 -0
- honeybee_schema/radiance/state.py +69 -0
- honeybee_schema/updater/__init__.py +0 -0
- honeybee_schema/updater/version_1_39_12.py +14 -0
- honeybee_schema/updater/version_1_40_1.py +153 -0
- honeybee_schema/updater/version_1_43_1.py +18 -0
- honeybee_schema/updater/version_1_43_2.py +12 -0
- honeybee_schema/updater/version_1_43_5.py +11 -0
- honeybee_schema/validation.py +205 -0
- honeybee_schema-1.59.1.dist-info/METADATA +108 -0
- honeybee_schema-1.59.1.dist-info/RECORD +57 -0
- honeybee_schema-1.59.1.dist-info/WHEEL +5 -0
- honeybee_schema-1.59.1.dist-info/entry_points.txt +2 -0
- honeybee_schema-1.59.1.dist-info/licenses/LICENSE +23 -0
- honeybee_schema-1.59.1.dist-info/top_level.txt +1 -0
@@ -0,0 +1,949 @@
|
|
1
|
+
"""Material Schema"""
|
2
|
+
from pydantic import Field, validator, root_validator, constr, confloat
|
3
|
+
from typing import Union, List
|
4
|
+
from enum import Enum
|
5
|
+
|
6
|
+
from ._base import IDdEnergyBaseModel
|
7
|
+
from ..altnumber import Autocalculate
|
8
|
+
|
9
|
+
|
10
|
+
class Roughness(str, Enum):
|
11
|
+
"""Relative roughness of a particular material layer."""
|
12
|
+
very_rough = 'VeryRough'
|
13
|
+
rough = 'Rough'
|
14
|
+
medium_rough = 'MediumRough'
|
15
|
+
medium_smooth = 'MediumSmooth'
|
16
|
+
smooth = 'Smooth'
|
17
|
+
very_smooth = 'VerySmooth'
|
18
|
+
|
19
|
+
|
20
|
+
class MoistureDiffusionModel(str, Enum):
|
21
|
+
"""Acceptable values for the moisture diffusion model for vegetation."""
|
22
|
+
simple = 'Simple'
|
23
|
+
advanced = 'Advanced'
|
24
|
+
|
25
|
+
|
26
|
+
class EnergyMaterialNoMass(IDdEnergyBaseModel):
|
27
|
+
"""No mass opaque material representing a layer within an opaque construction.
|
28
|
+
|
29
|
+
Used when only the thermal resistance (R value) of the material is known.
|
30
|
+
"""
|
31
|
+
|
32
|
+
type: constr(regex='^EnergyMaterialNoMass$') = 'EnergyMaterialNoMass'
|
33
|
+
|
34
|
+
r_value: float = Field(
|
35
|
+
...,
|
36
|
+
ge=0.001,
|
37
|
+
description='The thermal resistance (R-value) of the material layer [m2-K/W].'
|
38
|
+
)
|
39
|
+
|
40
|
+
roughness: Roughness = Roughness.medium_rough
|
41
|
+
|
42
|
+
thermal_absorptance: float = Field(
|
43
|
+
0.9,
|
44
|
+
gt=0,
|
45
|
+
le=0.99999,
|
46
|
+
description='Fraction of incident long wavelength radiation that is absorbed by'
|
47
|
+
' the material. Default: 0.9.'
|
48
|
+
)
|
49
|
+
|
50
|
+
solar_absorptance: float = Field(
|
51
|
+
0.7,
|
52
|
+
ge=0,
|
53
|
+
le=1,
|
54
|
+
description='Fraction of incident solar radiation absorbed by the material.'
|
55
|
+
' Default: 0.7.'
|
56
|
+
)
|
57
|
+
|
58
|
+
visible_absorptance: float = Field(
|
59
|
+
0.7,
|
60
|
+
ge=0,
|
61
|
+
le=1,
|
62
|
+
description='Fraction of incident visible wavelength radiation absorbed by the'
|
63
|
+
' material. Default: 0.7.'
|
64
|
+
)
|
65
|
+
|
66
|
+
|
67
|
+
class EnergyMaterial(IDdEnergyBaseModel):
|
68
|
+
"""Opaque material representing a layer within an opaque construction."""
|
69
|
+
|
70
|
+
type: constr(regex='^EnergyMaterial$') = 'EnergyMaterial'
|
71
|
+
|
72
|
+
roughness: Roughness = Roughness.medium_rough
|
73
|
+
|
74
|
+
thickness: float = Field(
|
75
|
+
...,
|
76
|
+
gt=0,
|
77
|
+
le=3,
|
78
|
+
description='Thickness of the material layer in meters.'
|
79
|
+
)
|
80
|
+
|
81
|
+
conductivity: float = Field(
|
82
|
+
...,
|
83
|
+
gt=0,
|
84
|
+
description='Thermal conductivity of the material layer in W/m-K.',
|
85
|
+
)
|
86
|
+
|
87
|
+
density: float = Field(
|
88
|
+
...,
|
89
|
+
gt=0,
|
90
|
+
description='Density of the material layer in kg/m3.'
|
91
|
+
)
|
92
|
+
|
93
|
+
specific_heat: float = Field(
|
94
|
+
...,
|
95
|
+
ge=100,
|
96
|
+
description='Specific heat of the material layer in J/kg-K.'
|
97
|
+
)
|
98
|
+
|
99
|
+
thermal_absorptance: float = Field(
|
100
|
+
0.9,
|
101
|
+
gt=0,
|
102
|
+
le=0.99999,
|
103
|
+
description='Fraction of incident long wavelength radiation that is absorbed by'
|
104
|
+
' the material. Default: 0.9.'
|
105
|
+
)
|
106
|
+
|
107
|
+
solar_absorptance: float = Field(
|
108
|
+
0.7,
|
109
|
+
ge=0,
|
110
|
+
le=1,
|
111
|
+
description='Fraction of incident solar radiation absorbed by the material.'
|
112
|
+
' Default: 0.7.'
|
113
|
+
)
|
114
|
+
|
115
|
+
visible_absorptance: float = Field(
|
116
|
+
0.7,
|
117
|
+
ge=0,
|
118
|
+
le=1,
|
119
|
+
description='Fraction of incident visible wavelength radiation absorbed by the'
|
120
|
+
' material. Default: 0.7.'
|
121
|
+
)
|
122
|
+
|
123
|
+
|
124
|
+
class EnergyMaterialVegetation(IDdEnergyBaseModel):
|
125
|
+
"""Material representing vegetation on the exterior of an opaque construction."""
|
126
|
+
|
127
|
+
type: constr(regex='^EnergyMaterialVegetation$') = 'EnergyMaterialVegetation'
|
128
|
+
|
129
|
+
roughness: Roughness = Roughness.medium_rough
|
130
|
+
|
131
|
+
thickness: float = Field(
|
132
|
+
0.1,
|
133
|
+
gt=0,
|
134
|
+
le=3,
|
135
|
+
description='Thickness of the soil layer in meters.'
|
136
|
+
)
|
137
|
+
|
138
|
+
conductivity: float = Field(
|
139
|
+
0.35,
|
140
|
+
gt=0,
|
141
|
+
description='Thermal conductivity of the dry soil in W/m-K.',
|
142
|
+
)
|
143
|
+
|
144
|
+
density: float = Field(
|
145
|
+
1100,
|
146
|
+
gt=0,
|
147
|
+
description='Density of the dry soil in kg/m3.'
|
148
|
+
)
|
149
|
+
|
150
|
+
specific_heat: float = Field(
|
151
|
+
1200,
|
152
|
+
ge=100,
|
153
|
+
description='Specific heat of the dry soil in J/kg-K.'
|
154
|
+
)
|
155
|
+
|
156
|
+
soil_thermal_absorptance: float = Field(
|
157
|
+
0.9,
|
158
|
+
gt=0,
|
159
|
+
le=0.99999,
|
160
|
+
description='Fraction of incident long wavelength radiation that is absorbed by'
|
161
|
+
' the soil. Default: 0.9.'
|
162
|
+
)
|
163
|
+
|
164
|
+
soil_solar_absorptance: float = Field(
|
165
|
+
0.7,
|
166
|
+
ge=0,
|
167
|
+
le=1,
|
168
|
+
description='Fraction of incident solar radiation absorbed by the soil.'
|
169
|
+
' Default: 0.7.'
|
170
|
+
)
|
171
|
+
|
172
|
+
soil_visible_absorptance: float = Field(
|
173
|
+
0.7,
|
174
|
+
ge=0,
|
175
|
+
le=1,
|
176
|
+
description='Fraction of incident visible wavelength radiation absorbed by the'
|
177
|
+
' material. Default: 0.7.'
|
178
|
+
)
|
179
|
+
|
180
|
+
plant_height: float = Field(
|
181
|
+
0.2,
|
182
|
+
ge=0.005,
|
183
|
+
le=1.0,
|
184
|
+
description='The height of plants in the vegetation in meters.'
|
185
|
+
)
|
186
|
+
|
187
|
+
leaf_area_index: float = Field(
|
188
|
+
1.0,
|
189
|
+
ge=0.001,
|
190
|
+
le=5.0,
|
191
|
+
description='The projected leaf area per unit area of soil surface '
|
192
|
+
'(aka. Leaf Area Index or LAI). Note that the fraction of vegetation '
|
193
|
+
'cover is calculated directly from LAI using an empirical relation.'
|
194
|
+
)
|
195
|
+
|
196
|
+
leaf_reflectivity: float = Field(
|
197
|
+
0.22,
|
198
|
+
ge=0.005,
|
199
|
+
le=0.5,
|
200
|
+
description='The fraction of incident solar radiation that is reflected '
|
201
|
+
'by the leaf surfaces. Solar radiation includes the visible spectrum as '
|
202
|
+
'well as infrared and ultraviolet wavelengths. Typical values are 0.18 to 0.25.'
|
203
|
+
)
|
204
|
+
|
205
|
+
leaf_emissivity: float = Field(
|
206
|
+
0.95,
|
207
|
+
ge=0.8,
|
208
|
+
le=1.0,
|
209
|
+
description='The ratio of thermal radiation emitted from leaf surfaces to '
|
210
|
+
'that emitted by an ideal black body at the same temperature.'
|
211
|
+
)
|
212
|
+
|
213
|
+
min_stomatal_resist: float = Field(
|
214
|
+
180,
|
215
|
+
ge=50,
|
216
|
+
le=300,
|
217
|
+
description='The resistance of the plants to moisture transport [s/m]. '
|
218
|
+
'Plants with low values of stomatal resistance will result in higher '
|
219
|
+
'evapotranspiration rates than plants with high resistance.'
|
220
|
+
)
|
221
|
+
|
222
|
+
sat_vol_moist_cont: float = Field(
|
223
|
+
0.3,
|
224
|
+
ge=0.1,
|
225
|
+
le=0.5,
|
226
|
+
description='The saturation moisture content of the soil by volume.'
|
227
|
+
)
|
228
|
+
|
229
|
+
residual_vol_moist_cont: float = Field(
|
230
|
+
0.01,
|
231
|
+
ge=0.01,
|
232
|
+
le=0.1,
|
233
|
+
description='The residual moisture content of the soil by volume.'
|
234
|
+
)
|
235
|
+
|
236
|
+
init_vol_moist_cont: float = Field(
|
237
|
+
0.01,
|
238
|
+
ge=0.05,
|
239
|
+
le=0.5,
|
240
|
+
description='The initial moisture content of the soil by volume.'
|
241
|
+
)
|
242
|
+
|
243
|
+
moist_diff_model: MoistureDiffusionModel = MoistureDiffusionModel.simple
|
244
|
+
|
245
|
+
|
246
|
+
class EnergyWindowMaterialSimpleGlazSys(IDdEnergyBaseModel):
|
247
|
+
"""Describe an entire glazing system rather than individual layers.
|
248
|
+
|
249
|
+
Used when only very limited information is available on the glazing layers or when
|
250
|
+
specific performance levels are being targeted.
|
251
|
+
"""
|
252
|
+
|
253
|
+
type: constr(regex='^EnergyWindowMaterialSimpleGlazSys$') = \
|
254
|
+
'EnergyWindowMaterialSimpleGlazSys'
|
255
|
+
|
256
|
+
u_factor: float = Field(
|
257
|
+
...,
|
258
|
+
gt=0,
|
259
|
+
le=12,
|
260
|
+
description='The overall heat transfer coefficient for window system in W/m2-K. '
|
261
|
+
'Note that constructions with U-values above 5.8 should not be assigned to '
|
262
|
+
'skylights as this implies the resistance of the window is negative when '
|
263
|
+
'air films are subtracted.'
|
264
|
+
)
|
265
|
+
|
266
|
+
shgc: float = Field(
|
267
|
+
...,
|
268
|
+
gt=0,
|
269
|
+
lt=1,
|
270
|
+
description='Unit-less quantity for the Solar Heat Gain Coefficient (solar '
|
271
|
+
'transmittance + conduction) at normal incidence and vertical orientation.'
|
272
|
+
)
|
273
|
+
|
274
|
+
vt: float = Field(
|
275
|
+
0.54,
|
276
|
+
gt=0,
|
277
|
+
lt=1,
|
278
|
+
description='The fraction of visible light falling on the window that makes it'
|
279
|
+
' through the glass at normal incidence.'
|
280
|
+
)
|
281
|
+
|
282
|
+
|
283
|
+
class EnergyWindowMaterialGlazing(IDdEnergyBaseModel):
|
284
|
+
"""Describe a single glass pane corresponding to a layer in a window construction."""
|
285
|
+
|
286
|
+
type: constr(regex='^EnergyWindowMaterialGlazing$') = 'EnergyWindowMaterialGlazing'
|
287
|
+
|
288
|
+
thickness: float = Field(
|
289
|
+
0.003,
|
290
|
+
gt=0,
|
291
|
+
description='The surface-to-surface thickness of the glass in meters. Default: '
|
292
|
+
' 0.003.'
|
293
|
+
)
|
294
|
+
|
295
|
+
solar_transmittance: float = Field(
|
296
|
+
0.85,
|
297
|
+
ge=0,
|
298
|
+
le=1,
|
299
|
+
description='Transmittance of solar radiation through the glass at normal'
|
300
|
+
' incidence. Default: 0.85 for clear glass.'
|
301
|
+
)
|
302
|
+
|
303
|
+
solar_reflectance: float = Field(
|
304
|
+
0.075,
|
305
|
+
ge=0,
|
306
|
+
le=1,
|
307
|
+
description='Reflectance of solar radiation off of the front side of the glass'
|
308
|
+
' at normal incidence, averaged over the solar spectrum. Default: 0.075'
|
309
|
+
' for clear glass.'
|
310
|
+
)
|
311
|
+
|
312
|
+
solar_reflectance_back: Union[Autocalculate, float] = Field(
|
313
|
+
default=Autocalculate(),
|
314
|
+
ge=0,
|
315
|
+
le=1,
|
316
|
+
description='Reflectance of solar radiation off of the back side of the glass at'
|
317
|
+
' normal incidence, averaged over the solar spectrum.'
|
318
|
+
)
|
319
|
+
|
320
|
+
visible_transmittance: float = Field(
|
321
|
+
0.9,
|
322
|
+
ge=0,
|
323
|
+
le=1,
|
324
|
+
description='Transmittance of visible light through the glass at '
|
325
|
+
'normal incidence. Default: 0.9 for clear glass.'
|
326
|
+
)
|
327
|
+
|
328
|
+
visible_reflectance: float = Field(
|
329
|
+
0.075,
|
330
|
+
ge=0,
|
331
|
+
le=1,
|
332
|
+
description='Reflectance of visible light off of the front side of the glass at'
|
333
|
+
' normal incidence. Default: 0.075 for clear glass.'
|
334
|
+
)
|
335
|
+
|
336
|
+
visible_reflectance_back: Union[Autocalculate, float] = Field(
|
337
|
+
default=Autocalculate(),
|
338
|
+
ge=0,
|
339
|
+
le=1,
|
340
|
+
description='Reflectance of visible light off of the back side of the glass at'
|
341
|
+
' normal incidence averaged over the solar spectrum and weighted by the response'
|
342
|
+
' of the human eye.'
|
343
|
+
)
|
344
|
+
|
345
|
+
infrared_transmittance: float = Field(
|
346
|
+
0,
|
347
|
+
ge=0,
|
348
|
+
le=1,
|
349
|
+
description='Long-wave transmittance at normal incidence.'
|
350
|
+
)
|
351
|
+
|
352
|
+
emissivity: float = Field(
|
353
|
+
0.84,
|
354
|
+
ge=0,
|
355
|
+
le=1,
|
356
|
+
description='Infrared hemispherical emissivity of the front (outward facing)'
|
357
|
+
' side of the glass. Default: 0.84, which is typical for clear glass'
|
358
|
+
' without a low-e coating.'
|
359
|
+
)
|
360
|
+
|
361
|
+
emissivity_back: float = Field(
|
362
|
+
0.84,
|
363
|
+
ge=0,
|
364
|
+
le=1,
|
365
|
+
description='Infrared hemispherical emissivity of the back (inward facing) side'
|
366
|
+
' of the glass. Default: 0.84, which is typical for clear glass without'
|
367
|
+
' a low-e coating.'
|
368
|
+
)
|
369
|
+
|
370
|
+
conductivity: float = Field(
|
371
|
+
0.9,
|
372
|
+
gt=0,
|
373
|
+
description='Thermal conductivity of the glass in W/(m-K). Default: 0.9,'
|
374
|
+
' which is typical for clear glass without a low-e coating.'
|
375
|
+
)
|
376
|
+
|
377
|
+
dirt_correction: float = Field(
|
378
|
+
1,
|
379
|
+
description='Factor that corrects for the presence of dirt on the glass. A'
|
380
|
+
' default value of 1 indicates the glass is clean.'
|
381
|
+
)
|
382
|
+
|
383
|
+
solar_diffusing: bool = Field(
|
384
|
+
False,
|
385
|
+
description='If False (default), the beam solar radiation incident on the '
|
386
|
+
'glass is transmitted as beam radiation with no diffuse component.'
|
387
|
+
'If True, the beam solar radiation incident on the glass is transmitted as '
|
388
|
+
'hemispherical diffuse radiation with no beam component.'
|
389
|
+
)
|
390
|
+
|
391
|
+
|
392
|
+
class EnergyWindowFrame(IDdEnergyBaseModel):
|
393
|
+
"""Opaque material representing a layer within an opaque construction."""
|
394
|
+
|
395
|
+
type: constr(regex='^EnergyWindowFrame$') = 'EnergyWindowFrame'
|
396
|
+
|
397
|
+
width: float = Field(
|
398
|
+
...,
|
399
|
+
gt=0,
|
400
|
+
le=1,
|
401
|
+
description='Number for the width of frame in plane of window [m]. '
|
402
|
+
'The frame width is assumed to be the same on all sides of window..'
|
403
|
+
)
|
404
|
+
|
405
|
+
conductance: float = Field(
|
406
|
+
...,
|
407
|
+
gt=0,
|
408
|
+
description='Number for the thermal conductance of the frame material '
|
409
|
+
'measured from inside to outside of the frame surface (no air films) '
|
410
|
+
'and taking 2D conduction effects into account [W/m2-K].',
|
411
|
+
)
|
412
|
+
|
413
|
+
edge_to_center_ratio: float = Field(
|
414
|
+
1,
|
415
|
+
gt=0,
|
416
|
+
le=4,
|
417
|
+
description='Number between 0 and 4 for the ratio of the glass '
|
418
|
+
'conductance near the frame (excluding air films) divided by the glass '
|
419
|
+
'conductance at the center of the glazing (excluding air films). '
|
420
|
+
'This is used only for multi-pane glazing constructions. This ratio should '
|
421
|
+
'usually be greater than 1.0 since the spacer material that separates '
|
422
|
+
'the glass panes is usually more conductive than the gap between panes. '
|
423
|
+
'A value of 1 effectively indicates no spacer. Values should usually be '
|
424
|
+
'obtained from the LBNL WINDOW program so that the unique characteristics '
|
425
|
+
'of the window construction can be accounted for.'
|
426
|
+
)
|
427
|
+
|
428
|
+
outside_projection: float = Field(
|
429
|
+
0,
|
430
|
+
ge=0,
|
431
|
+
le=0.5,
|
432
|
+
description='Number for the distance that the frame projects outward from '
|
433
|
+
'the outside face of the glazing [m]. This is used to calculate shadowing '
|
434
|
+
'of frame onto glass, solar absorbed by the frame, IR emitted and '
|
435
|
+
'absorbed by the frame, and convection from frame.'
|
436
|
+
)
|
437
|
+
|
438
|
+
inside_projection: float = Field(
|
439
|
+
0,
|
440
|
+
ge=0,
|
441
|
+
le=0.5,
|
442
|
+
description='Number for the distance that the frame projects inward from '
|
443
|
+
'the inside face of the glazing [m]. This is used to calculate solar '
|
444
|
+
'absorbed by the frame, IR emitted and absorbed by the frame, and '
|
445
|
+
'convection from frame.'
|
446
|
+
)
|
447
|
+
|
448
|
+
thermal_absorptance: float = Field(
|
449
|
+
0.9,
|
450
|
+
gt=0,
|
451
|
+
le=0.99999,
|
452
|
+
description='Fraction of incident long wavelength radiation that is absorbed by'
|
453
|
+
' the frame material.'
|
454
|
+
)
|
455
|
+
|
456
|
+
solar_absorptance: float = Field(
|
457
|
+
0.7,
|
458
|
+
ge=0,
|
459
|
+
le=1,
|
460
|
+
description='Fraction of incident solar radiation absorbed by the '
|
461
|
+
'frame material.'
|
462
|
+
)
|
463
|
+
|
464
|
+
visible_absorptance: float = Field(
|
465
|
+
0.7,
|
466
|
+
ge=0,
|
467
|
+
le=1,
|
468
|
+
description='Fraction of incident visible wavelength radiation absorbed by the'
|
469
|
+
' frame material.'
|
470
|
+
)
|
471
|
+
|
472
|
+
|
473
|
+
class GasType (str, Enum):
|
474
|
+
air = 'Air'
|
475
|
+
argon = 'Argon'
|
476
|
+
krypton = 'Krypton'
|
477
|
+
xenon = 'Xenon'
|
478
|
+
|
479
|
+
|
480
|
+
class EnergyWindowMaterialGas(IDdEnergyBaseModel):
|
481
|
+
"""Create single layer of gas in a window construction.
|
482
|
+
|
483
|
+
Can be combined with EnergyWindowMaterialGlazing to make multi-pane windows.
|
484
|
+
"""
|
485
|
+
|
486
|
+
type: constr(regex='^EnergyWindowMaterialGas$') = 'EnergyWindowMaterialGas'
|
487
|
+
|
488
|
+
thickness: float = Field(
|
489
|
+
0.0125,
|
490
|
+
gt=0,
|
491
|
+
description='Thickness of the gas layer in meters. Default: 0.0125.'
|
492
|
+
)
|
493
|
+
|
494
|
+
gas_type: GasType = GasType.air
|
495
|
+
|
496
|
+
|
497
|
+
class EnergyWindowMaterialGasMixture(IDdEnergyBaseModel):
|
498
|
+
"""Create a mixture of two to four different gases to fill the panes of multiple
|
499
|
+
pane windows."""
|
500
|
+
|
501
|
+
type: constr(regex='^EnergyWindowMaterialGasMixture$') = \
|
502
|
+
'EnergyWindowMaterialGasMixture'
|
503
|
+
|
504
|
+
thickness: float = Field(
|
505
|
+
0.0125,
|
506
|
+
gt=0,
|
507
|
+
description='The thickness of the gas mixture layer in meters.'
|
508
|
+
)
|
509
|
+
|
510
|
+
gas_types: List[GasType] = Field(
|
511
|
+
...,
|
512
|
+
min_items=2,
|
513
|
+
max_items=4,
|
514
|
+
description='List of gases in the gas mixture.'
|
515
|
+
)
|
516
|
+
|
517
|
+
gas_fractions: List[confloat(gt=0, lt=1)] = Field(
|
518
|
+
...,
|
519
|
+
min_items=2,
|
520
|
+
max_items=4,
|
521
|
+
description='A list of fractional numbers describing the volumetric fractions '
|
522
|
+
'of gas types in the mixture. This list must align with the gas_types '
|
523
|
+
'list and must sum to 1.'
|
524
|
+
)
|
525
|
+
|
526
|
+
@validator('gas_fractions')
|
527
|
+
def check_sum(cls, v):
|
528
|
+
"""Check that fractions sum to 1."""
|
529
|
+
assert abs(1 - sum(v)) < 0.001, 'gas_fractions must sum to 1.'
|
530
|
+
return v
|
531
|
+
|
532
|
+
@root_validator
|
533
|
+
def check_types_fractions_match(cls, values):
|
534
|
+
"Ensure the gas types and fractions match."
|
535
|
+
gas_types = values.get('gas_types')
|
536
|
+
gas_fractions = values.get('gas_fractions')
|
537
|
+
assert len(gas_types) == len(gas_fractions), 'Length of gas_types must match ' \
|
538
|
+
'length of gas_fractions. {} != {}'.format(
|
539
|
+
len(gas_types), len(gas_fractions))
|
540
|
+
return values
|
541
|
+
|
542
|
+
|
543
|
+
class EnergyWindowMaterialGasCustom(IDdEnergyBaseModel):
|
544
|
+
"""Create single layer of custom gas."""
|
545
|
+
|
546
|
+
type: constr(regex='^EnergyWindowMaterialGasCustom$') = \
|
547
|
+
'EnergyWindowMaterialGasCustom'
|
548
|
+
|
549
|
+
thickness: float = Field(
|
550
|
+
0.0125,
|
551
|
+
gt=0,
|
552
|
+
description='Thickness of the gas layer in meters. Default: 0.0125.'
|
553
|
+
)
|
554
|
+
|
555
|
+
conductivity_coeff_a: float = Field(
|
556
|
+
...,
|
557
|
+
description='The A coefficient for gas conductivity in W/(m-K).'
|
558
|
+
)
|
559
|
+
|
560
|
+
conductivity_coeff_b: float = Field(
|
561
|
+
0,
|
562
|
+
description='The B coefficient for gas conductivity in W/(m-K2).'
|
563
|
+
)
|
564
|
+
|
565
|
+
conductivity_coeff_c: float = Field(
|
566
|
+
0,
|
567
|
+
description='The C coefficient for gas conductivity in W/(m-K3).'
|
568
|
+
)
|
569
|
+
|
570
|
+
viscosity_coeff_a: float = Field(
|
571
|
+
...,
|
572
|
+
gt=0,
|
573
|
+
description='The A coefficient for gas viscosity in kg/(m-s).'
|
574
|
+
)
|
575
|
+
|
576
|
+
viscosity_coeff_b: float = Field(
|
577
|
+
0,
|
578
|
+
description='The B coefficient for gas viscosity in kg/(m-s-K).'
|
579
|
+
)
|
580
|
+
|
581
|
+
viscosity_coeff_c: float = Field(
|
582
|
+
0,
|
583
|
+
description='The C coefficient for gas viscosity in kg/(m-s-K2).'
|
584
|
+
)
|
585
|
+
|
586
|
+
specific_heat_coeff_a: float = Field(
|
587
|
+
...,
|
588
|
+
gt=0,
|
589
|
+
description='The A coefficient for gas specific heat in J/(kg-K).'
|
590
|
+
)
|
591
|
+
|
592
|
+
specific_heat_coeff_b: float = Field(
|
593
|
+
0,
|
594
|
+
description='The B coefficient for gas specific heat in J/(kg-K2).'
|
595
|
+
)
|
596
|
+
|
597
|
+
specific_heat_coeff_c: float = Field(
|
598
|
+
0,
|
599
|
+
description='The C coefficient for gas specific heat in J/(kg-K3).'
|
600
|
+
)
|
601
|
+
|
602
|
+
specific_heat_ratio: float = Field(
|
603
|
+
...,
|
604
|
+
gt=1,
|
605
|
+
description='The specific heat ratio for gas.'
|
606
|
+
)
|
607
|
+
|
608
|
+
molecular_weight: float = Field(
|
609
|
+
...,
|
610
|
+
ge=20,
|
611
|
+
le=200,
|
612
|
+
description='The molecular weight for gas in g/mol.'
|
613
|
+
)
|
614
|
+
|
615
|
+
|
616
|
+
class EnergyWindowMaterialShade(IDdEnergyBaseModel):
|
617
|
+
"""This object specifies the properties of window shade materials."""
|
618
|
+
|
619
|
+
type: constr(regex='^EnergyWindowMaterialShade$') = 'EnergyWindowMaterialShade'
|
620
|
+
|
621
|
+
solar_transmittance: float = Field(
|
622
|
+
0.4,
|
623
|
+
ge=0,
|
624
|
+
lt=1,
|
625
|
+
description='The transmittance averaged over the solar spectrum. It is assumed'
|
626
|
+
' independent of incidence angle. Default: 0.4.'
|
627
|
+
)
|
628
|
+
|
629
|
+
solar_reflectance: float = Field(
|
630
|
+
0.5,
|
631
|
+
ge=0,
|
632
|
+
lt=1,
|
633
|
+
description='The reflectance averaged over the solar spectrum. It us assumed'
|
634
|
+
' same on both sides of shade and independent of incidence angle. Default'
|
635
|
+
' value is 0.5'
|
636
|
+
)
|
637
|
+
|
638
|
+
visible_transmittance: float = Field(
|
639
|
+
0.4,
|
640
|
+
ge=0,
|
641
|
+
lt=1,
|
642
|
+
description='The transmittance averaged over the solar spectrum and weighted by'
|
643
|
+
' the response of the human eye. It is assumed independent of incidence angle.'
|
644
|
+
' Default: 0.4.'
|
645
|
+
)
|
646
|
+
|
647
|
+
visible_reflectance: float = Field(
|
648
|
+
0.4,
|
649
|
+
ge=0,
|
650
|
+
lt=1,
|
651
|
+
description='The transmittance averaged over the solar spectrum and weighted by'
|
652
|
+
' the response of the human eye. It is assumed independent of incidence angle.'
|
653
|
+
' Default: 0.4'
|
654
|
+
)
|
655
|
+
|
656
|
+
emissivity: float = Field(
|
657
|
+
0.9,
|
658
|
+
gt=0,
|
659
|
+
lt=1,
|
660
|
+
description='The effective long-wave infrared hemispherical emissivity. It is'
|
661
|
+
' assumed same on both sides of shade. Default: 0.9.'
|
662
|
+
)
|
663
|
+
|
664
|
+
infrared_transmittance: float = Field(
|
665
|
+
0,
|
666
|
+
ge=0,
|
667
|
+
lt=1,
|
668
|
+
description='The effective long-wave transmittance. It is assumed independent'
|
669
|
+
' of incidence angle. Default: 0.'
|
670
|
+
)
|
671
|
+
|
672
|
+
thickness: float = Field(
|
673
|
+
0.005,
|
674
|
+
gt=0,
|
675
|
+
description='The thickness of the shade material in meters. Default:'
|
676
|
+
' 0.005.'
|
677
|
+
)
|
678
|
+
|
679
|
+
conductivity: float = Field(
|
680
|
+
0.1,
|
681
|
+
gt=0,
|
682
|
+
description='The conductivity of the shade material in W/(m-K). Default value'
|
683
|
+
' is 0.1.'
|
684
|
+
)
|
685
|
+
|
686
|
+
distance_to_glass: float = Field(
|
687
|
+
0.05,
|
688
|
+
ge=0.001,
|
689
|
+
le=1,
|
690
|
+
description='The distance from shade to adjacent glass in meters. Default value'
|
691
|
+
' is 0.05'
|
692
|
+
)
|
693
|
+
|
694
|
+
top_opening_multiplier: float = Field(
|
695
|
+
0.5,
|
696
|
+
ge=0,
|
697
|
+
le=1,
|
698
|
+
description='The effective area for air flow at the top of the shade, divided by'
|
699
|
+
' the horizontal area between glass and shade. Default: 0.5.'
|
700
|
+
)
|
701
|
+
|
702
|
+
bottom_opening_multiplier: float = Field(
|
703
|
+
0.5,
|
704
|
+
ge=0,
|
705
|
+
le=1,
|
706
|
+
description='The effective area for air flow at the bottom of the shade, divided'
|
707
|
+
' by the horizontal area between glass and shade. Default: 0.5.'
|
708
|
+
)
|
709
|
+
|
710
|
+
left_opening_multiplier: float = Field(
|
711
|
+
0.5,
|
712
|
+
ge=0,
|
713
|
+
le=1,
|
714
|
+
description='The effective area for air flow at the left side of the shade,'
|
715
|
+
' divided by the vertical area between glass and shade. Default: 0.5.'
|
716
|
+
)
|
717
|
+
|
718
|
+
right_opening_multiplier: float = Field(
|
719
|
+
0.5,
|
720
|
+
ge=0,
|
721
|
+
le=1,
|
722
|
+
description='The effective area for air flow at the right side of the shade,'
|
723
|
+
' divided by the vertical area between glass and shade. Default: 0.5.'
|
724
|
+
)
|
725
|
+
|
726
|
+
airflow_permeability: float = Field(
|
727
|
+
0,
|
728
|
+
ge=0,
|
729
|
+
le=0.8,
|
730
|
+
description='The fraction of the shade surface that is open to air flow.'
|
731
|
+
' If air cannot pass through the shade material, airflow_permeability = 0.'
|
732
|
+
' Default: 0.'
|
733
|
+
)
|
734
|
+
|
735
|
+
|
736
|
+
class SlatOrientation (str, Enum):
|
737
|
+
horizontal = 'Horizontal'
|
738
|
+
vertical = 'Vertical'
|
739
|
+
|
740
|
+
|
741
|
+
class EnergyWindowMaterialBlind(IDdEnergyBaseModel):
|
742
|
+
"""Window blind material consisting of flat, equally-spaced slats."""
|
743
|
+
|
744
|
+
type: constr(regex='^EnergyWindowMaterialBlind$') = 'EnergyWindowMaterialBlind'
|
745
|
+
|
746
|
+
slat_orientation: SlatOrientation = SlatOrientation.horizontal
|
747
|
+
|
748
|
+
slat_width: float = Field(
|
749
|
+
0.025,
|
750
|
+
gt=0,
|
751
|
+
le=1,
|
752
|
+
description='The width of slat measured from edge to edge in meters.'
|
753
|
+
)
|
754
|
+
|
755
|
+
slat_separation: float = Field(
|
756
|
+
0.01875,
|
757
|
+
gt=0,
|
758
|
+
le=1,
|
759
|
+
description='The distance between the front of a slat and the back of the'
|
760
|
+
' adjacent slat in meters.'
|
761
|
+
)
|
762
|
+
|
763
|
+
slat_thickness: float = Field(
|
764
|
+
0.001,
|
765
|
+
gt=0,
|
766
|
+
le=0.1,
|
767
|
+
description='The distance between the faces of a slat in meters. The default'
|
768
|
+
' value is 0.001.'
|
769
|
+
)
|
770
|
+
|
771
|
+
slat_angle: float = Field(
|
772
|
+
45,
|
773
|
+
ge=0,
|
774
|
+
le=180,
|
775
|
+
description='The angle (degrees) between the glazing outward normal and the slat'
|
776
|
+
' outward normal where the outward normal points away from the front face of the'
|
777
|
+
' slat (degrees). The default value is 45.'
|
778
|
+
)
|
779
|
+
|
780
|
+
slat_conductivity: float = Field(
|
781
|
+
221,
|
782
|
+
gt=0,
|
783
|
+
description='The thermal conductivity of the slat in W/(m-K). Default:'
|
784
|
+
' 221.'
|
785
|
+
)
|
786
|
+
|
787
|
+
beam_solar_transmittance: float = Field(
|
788
|
+
0,
|
789
|
+
ge=0,
|
790
|
+
lt=1,
|
791
|
+
description='The beam solar transmittance of the slat, assumed to be independent'
|
792
|
+
' of angle of incidence on the slat. Any transmitted beam radiation is assumed'
|
793
|
+
' to be 100% diffuse (i.e., slats are translucent). The default value is 0.'
|
794
|
+
)
|
795
|
+
|
796
|
+
beam_solar_reflectance: float = Field(
|
797
|
+
0.5,
|
798
|
+
ge=0,
|
799
|
+
lt=1,
|
800
|
+
description='The beam solar reflectance of the front side of the slat, it is'
|
801
|
+
' assumed to be independent of the angle of incidence. Default: 0.5.'
|
802
|
+
)
|
803
|
+
|
804
|
+
beam_solar_reflectance_back: float = Field(
|
805
|
+
0.5,
|
806
|
+
ge=0,
|
807
|
+
lt=1,
|
808
|
+
description='The beam solar reflectance of the back side of the slat, it is'
|
809
|
+
' assumed to be independent of the angle of incidence. Default: 0.5.'
|
810
|
+
)
|
811
|
+
|
812
|
+
diffuse_solar_transmittance: float = Field(
|
813
|
+
0,
|
814
|
+
ge=0,
|
815
|
+
lt=1,
|
816
|
+
description='The slat transmittance for hemispherically diffuse solar radiation.'
|
817
|
+
' Default: 0.'
|
818
|
+
)
|
819
|
+
|
820
|
+
diffuse_solar_reflectance: float = Field(
|
821
|
+
0.5,
|
822
|
+
ge=0,
|
823
|
+
lt=1,
|
824
|
+
description='The front-side slat reflectance for hemispherically diffuse solar'
|
825
|
+
' radiation. Default: 0.5.'
|
826
|
+
)
|
827
|
+
|
828
|
+
diffuse_solar_reflectance_back: float = Field(
|
829
|
+
0.5,
|
830
|
+
ge=0,
|
831
|
+
lt=1,
|
832
|
+
description='The back-side slat reflectance for hemispherically diffuse solar'
|
833
|
+
' radiation. Default: 0.5.'
|
834
|
+
)
|
835
|
+
|
836
|
+
beam_visible_transmittance: float = Field(
|
837
|
+
0,
|
838
|
+
ge=0,
|
839
|
+
lt=1,
|
840
|
+
description='The beam visible transmittance of the slat, it is assumed to be'
|
841
|
+
' independent of the angle of incidence. Default: 0.'
|
842
|
+
)
|
843
|
+
|
844
|
+
beam_visible_reflectance: float = Field(
|
845
|
+
0.5,
|
846
|
+
ge=0,
|
847
|
+
lt=1,
|
848
|
+
description='The beam visible reflectance on the front side of the slat, it is'
|
849
|
+
' assumed to be independent of the angle of incidence. Default: 0.5.'
|
850
|
+
)
|
851
|
+
|
852
|
+
beam_visible_reflectance_back: float = Field(
|
853
|
+
0.5,
|
854
|
+
ge=0,
|
855
|
+
lt=1,
|
856
|
+
description='The beam visible reflectance on the back side of the slat, it is'
|
857
|
+
' assumed to be independent of the angle of incidence. Default: 0.5.'
|
858
|
+
)
|
859
|
+
|
860
|
+
diffuse_visible_transmittance: float = Field(
|
861
|
+
0,
|
862
|
+
ge=0,
|
863
|
+
lt=1,
|
864
|
+
description='The slat transmittance for hemispherically diffuse visible'
|
865
|
+
' radiation. This value should equal “Slat Beam Visible Transmittance.”'
|
866
|
+
)
|
867
|
+
|
868
|
+
diffuse_visible_reflectance: float = Field(
|
869
|
+
0.5,
|
870
|
+
ge=0,
|
871
|
+
lt=1,
|
872
|
+
description='The front-side slat reflectance for hemispherically diffuse visible'
|
873
|
+
' radiation. This value should equal “Front Side Slat Beam Visible Reflectance.”'
|
874
|
+
' Default: 0.5.'
|
875
|
+
)
|
876
|
+
|
877
|
+
diffuse_visible_reflectance_back: float = Field(
|
878
|
+
0.5,
|
879
|
+
ge=0,
|
880
|
+
lt=1,
|
881
|
+
description='The back-side slat reflectance for hemispherically diffuse visible'
|
882
|
+
' radiation. This value should equal “Back Side Slat Beam Visible Reflectance.'
|
883
|
+
' Default: 0.5.”'
|
884
|
+
)
|
885
|
+
|
886
|
+
infrared_transmittance: float = Field(
|
887
|
+
0,
|
888
|
+
ge=0,
|
889
|
+
lt=1,
|
890
|
+
description='The slat infrared hemispherical transmittance. It is zero for '
|
891
|
+
'solid metallic, wooden or glass slats, but may be non-zero in some cases '
|
892
|
+
'such as for thin plastic slats. The default value is 0.'
|
893
|
+
)
|
894
|
+
|
895
|
+
emissivity: float = Field(
|
896
|
+
0.9,
|
897
|
+
ge=0,
|
898
|
+
lt=1,
|
899
|
+
description='Front side hemispherical emissivity of the slat. Default is 0.9 for'
|
900
|
+
' most materials. The default value is 0.9.'
|
901
|
+
)
|
902
|
+
|
903
|
+
emissivity_back: float = Field(
|
904
|
+
0.9,
|
905
|
+
ge=0,
|
906
|
+
lt=1,
|
907
|
+
description='Back side hemispherical emissivity of the slat. Default is 0.9 for'
|
908
|
+
' most materials. The default value is 0.9.'
|
909
|
+
)
|
910
|
+
|
911
|
+
distance_to_glass: float = Field(
|
912
|
+
0.05,
|
913
|
+
ge=0.01,
|
914
|
+
le=1,
|
915
|
+
description='The distance from the mid-plane of the blind to the adjacent glass'
|
916
|
+
' in meters. The default value is 0.05.'
|
917
|
+
)
|
918
|
+
|
919
|
+
top_opening_multiplier: float = Field(
|
920
|
+
0.5,
|
921
|
+
ge=0,
|
922
|
+
le=1,
|
923
|
+
description='The effective area for air flow at the top of the shade, divided by'
|
924
|
+
' the horizontal area between glass and shade.'
|
925
|
+
)
|
926
|
+
|
927
|
+
bottom_opening_multiplier: float = Field(
|
928
|
+
0.5,
|
929
|
+
ge=0,
|
930
|
+
le=1,
|
931
|
+
description='The effective area for air flow at the bottom of the shade, divided'
|
932
|
+
' by the horizontal area between glass and shade.'
|
933
|
+
)
|
934
|
+
|
935
|
+
left_opening_multiplier: float = Field(
|
936
|
+
0.5,
|
937
|
+
ge=0,
|
938
|
+
le=1,
|
939
|
+
description='The effective area for air flow at the left side of the shade,'
|
940
|
+
' divided by the vertical area between glass and shade.'
|
941
|
+
)
|
942
|
+
|
943
|
+
right_opening_multiplier: float = Field(
|
944
|
+
0.5,
|
945
|
+
ge=0,
|
946
|
+
le=1,
|
947
|
+
description='The effective area for air flow at the right side of the shade,'
|
948
|
+
' divided by the vertical area between glass and shade.'
|
949
|
+
)
|