/
properties.py
231 lines (186 loc) · 8.14 KB
/
properties.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
"""Model energy properties."""
from pydantic import BaseModel, Field, constr
from typing import List, Union
from enum import Enum
from .constructionset import ConstructionSetAbridged
from .construction import OpaqueConstructionAbridged, \
WindowConstructionAbridged, ShadeConstruction
from .material import EnergyMaterial, EnergyMaterialNoMass, \
EnergyWindowMaterialGas, EnergyWindowMaterialGasCustom, \
EnergyWindowMaterialGasMixture, EnergyWindowMaterialSimpleGlazSys, \
EnergyWindowMaterialBlind, EnergyWindowMaterialGlazing, EnergyWindowMaterialShade
from .programtype import ProgramTypeAbridged
from .load import PeopleAbridged, LightingAbridged, ElectricEquipmentAbridged, \
GasEquipmentAbridged, InfiltrationAbridged, VentilationAbridged, SetpointAbridged
from .schedule import ScheduleTypeLimit, ScheduleRulesetAbridged, \
ScheduleFixedIntervalAbridged
from .hvac import IdealAirSystemAbridged
class ShadeEnergyPropertiesAbridged(BaseModel):
type: constr(regex='^ShadeEnergyPropertiesAbridged$') = \
'ShadeEnergyPropertiesAbridged'
construction: str = Field(
default=None,
min_length=1,
max_length=100,
description='Name of a ShadeConstruction to set the reflectance and '
'specularity of the Shade. If None, the construction is set by the'
'parent Room construction_set, the Model global_construction_set or '
'(in the case fo an orphaned shade) the EnergyPlus default of 0.2 '
'diffuse reflectance.'
)
transmittance_schedule: str = Field(
default=None,
min_length=1,
max_length=100,
description='Name of a schedule to set the transmittance of the shade, '
'which can vary throughout the simulation. If None, the shade will '
'be completely opauqe.'
)
class DoorEnergyPropertiesAbridged(BaseModel):
type: constr(regex='^DoorEnergyPropertiesAbridged$') = \
'DoorEnergyPropertiesAbridged'
construction: str = Field(
default=None,
min_length=1,
max_length=100,
description='Name of an OpaqueConstruction or WindowConstruction for the door. '
'Note that the host door must have the is_glass property set to True '
'to assign a WindowConstruction. If None, the construction is set by the'
'parent Room construction_set or the Model global_construction_set.'
)
class ApertureEnergyPropertiesAbridged(BaseModel):
type: constr(regex='^ApertureEnergyPropertiesAbridged$') = \
'ApertureEnergyPropertiesAbridged'
construction: str = Field(
default=None,
min_length=1,
max_length=100,
description='Name of a WindowConstruction for the aperture. If None, the '
'construction is set by the parent Room construction_set or the Model '
'global_construction_set.'
)
class FaceEnergyPropertiesAbridged(BaseModel):
type: constr(regex='^FaceEnergyPropertiesAbridged$') = \
'FaceEnergyPropertiesAbridged'
construction: str = Field(
default=None,
min_length=1,
max_length=100,
description='Name of an OpaqueConstruction for the Face. If None, the '
'construction is set by the parent Room construction_set or the '
'Model global_construction_set.'
)
class RoomEnergyPropertiesAbridged(BaseModel):
type: constr(regex='^RoomEnergyPropertiesAbridged$') = \
'RoomEnergyPropertiesAbridged'
construction_set: str = Field(
default=None,
min_length=1,
max_length=100,
description='Name of a ConstructionSet to specify all default constructions '
'for the Faces, Apertures, and Doors of the Room. If None, the Room will '
'use the Model global_construction_set.'
)
program_type: str = Field(
default=None,
min_length=1,
max_length=100,
description='Name of a ProgramType to specify all default schedules and loads '
'for the Room. If None, the Room will have no loads or setpoints.'
)
hvac: str = Field(
default=None,
min_length=1,
max_length=100,
description='An optional name of a HVAC system (such as an IdealAirSystem) '
'that specifies how the Room is conditioned. If None, it will be assumed '
'that the Room is not conditioned.'
)
people: PeopleAbridged = Field(
default=None,
description='People object to describe the occupancy of the Room.'
)
lighting: LightingAbridged = Field(
default=None,
description='Lighting object to describe the lighting usage of the Room.'
)
electric_equipment: ElectricEquipmentAbridged = Field(
default=None,
description='ElectricEquipment object to describe the electric equipment usage.'
)
gas_equipment: GasEquipmentAbridged = Field(
default=None,
description='GasEquipment object to describe the gas equipment usage.'
)
infiltration: InfiltrationAbridged = Field(
default=None,
description='Infiltration object to to describe the outdoor air leakage.'
)
ventilation: VentilationAbridged = Field(
default=None,
description='Ventilation object for the minimum outdoor air requirement.'
)
setpoint: SetpointAbridged = Field(
default=None,
description='Setpoint object for the temperature setpoints of the Room.'
)
class TerrianTypes(str, Enum):
ocean = 'Ocean'
country = 'Country'
suburbs = 'Suburbs'
urban = 'Urban'
city = 'City'
class ModelEnergyProperties(BaseModel):
type: constr(regex='^ModelEnergyProperties$') = \
'ModelEnergyProperties'
terrain_type: TerrianTypes = Field(
default=TerrianTypes.city,
description='Text for the terrain in which the model sits. This is used '
'to determine the wind profile over the height of the rooms.'
)
global_construction_set: str = Field(
default=None,
min_length=1,
max_length=100,
description='Name for the ConstructionSet to be used for all objects lacking '
'their own construction or a parent Room construction_set. This '
'ConstructionSet must appear under the Model construction_sets.'
)
construction_sets: List[ConstructionSetAbridged] = Field(
default=None,
description='List of all ConstructionSets in the Model.'
)
constructions: List[Union[OpaqueConstructionAbridged, WindowConstructionAbridged,
ShadeConstruction]] = Field(
...,
description='A list of all unique constructions in the model. This includes '
'constructions across all Faces, Apertures, Doors, Shades, Room '
'ConstructionSets, and the global_construction_set.'
)
materials: List[Union[EnergyMaterial, EnergyMaterialNoMass, EnergyWindowMaterialGas,
EnergyWindowMaterialGasCustom, EnergyWindowMaterialGasMixture,
EnergyWindowMaterialSimpleGlazSys, EnergyWindowMaterialBlind,
EnergyWindowMaterialGlazing,
EnergyWindowMaterialShade]] = Field(
...,
description='A list of all unique materials in the model. This includes '
'materials needed to make the Model constructions.'
)
hvacs: List[Union[IdealAirSystemAbridged]] = Field(
default=None,
description='List of all HVAC systems in the Model.'
)
program_types: List[ProgramTypeAbridged] = Field(
default=None,
description='List of all ProgramTypes in the Model.'
)
schedules: List[Union[ScheduleRulesetAbridged, ScheduleFixedIntervalAbridged]] = Field(
default=None,
description='A list of all unique schedules in the model. This includes '
'schedules across all HVAC systems, ProgramTypes, Rooms, and Shades.'
)
schedule_type_limits: List[ScheduleTypeLimit] = Field(
default=None,
description='A list of all unique ScheduleTypeLimits in the model. This '
'all ScheduleTypeLimits needed to make the Model schedules.'
)