dragonfly-doe2 0.12.12__py3-none-any.whl → 0.12.14__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.
- dragonfly_doe2/properties/model.py +26 -8
- dragonfly_doe2/properties/room2d.py +1 -1
- {dragonfly_doe2-0.12.12.dist-info → dragonfly_doe2-0.12.14.dist-info}/METADATA +1 -1
- {dragonfly_doe2-0.12.12.dist-info → dragonfly_doe2-0.12.14.dist-info}/RECORD +8 -8
- {dragonfly_doe2-0.12.12.dist-info → dragonfly_doe2-0.12.14.dist-info}/WHEEL +0 -0
- {dragonfly_doe2-0.12.12.dist-info → dragonfly_doe2-0.12.14.dist-info}/entry_points.txt +0 -0
- {dragonfly_doe2-0.12.12.dist-info → dragonfly_doe2-0.12.14.dist-info}/licenses/LICENSE +0 -0
- {dragonfly_doe2-0.12.12.dist-info → dragonfly_doe2-0.12.14.dist-info}/top_level.txt +0 -0
|
@@ -19,7 +19,7 @@ class ModelDoe2Properties(object):
|
|
|
19
19
|
ERROR_MAP = {
|
|
20
20
|
'030101': 'check_room_2d_floor_plate_vertex_count',
|
|
21
21
|
'030102': 'check_no_room_2d_floor_plate_holes',
|
|
22
|
-
'030103': '
|
|
22
|
+
'030103': 'check_story_floor_plates'
|
|
23
23
|
}
|
|
24
24
|
|
|
25
25
|
def __init__(self, host):
|
|
@@ -72,7 +72,7 @@ class ModelDoe2Properties(object):
|
|
|
72
72
|
# perform checks that are specific to DOE-2
|
|
73
73
|
msgs.append(self.check_room_2d_floor_plate_vertex_count(False, detailed))
|
|
74
74
|
msgs.append(self.check_no_room_2d_floor_plate_holes(False, detailed))
|
|
75
|
-
msgs.append(self.
|
|
75
|
+
msgs.append(self.check_story_floor_plates(tol, False, detailed))
|
|
76
76
|
|
|
77
77
|
# output a final report of errors or raise an exception
|
|
78
78
|
full_msgs = [msg for msg in msgs if msg]
|
|
@@ -134,7 +134,7 @@ class ModelDoe2Properties(object):
|
|
|
134
134
|
# perform checks for specific doe-2 simulation rules
|
|
135
135
|
msgs.append(self.check_room_2d_floor_plate_vertex_count(False, detailed))
|
|
136
136
|
msgs.append(self.check_no_room_2d_floor_plate_holes(False, detailed))
|
|
137
|
-
msgs.append(self.
|
|
137
|
+
msgs.append(self.check_story_floor_plates(tol, False, detailed))
|
|
138
138
|
# output a final report of errors or raise an exception
|
|
139
139
|
full_msgs = [msg for msg in msgs if msg]
|
|
140
140
|
if detailed:
|
|
@@ -207,11 +207,11 @@ class ModelDoe2Properties(object):
|
|
|
207
207
|
raise ValueError(full_msg)
|
|
208
208
|
return full_msg
|
|
209
209
|
|
|
210
|
-
def
|
|
210
|
+
def check_story_floor_plates(
|
|
211
211
|
self, tolerance=None, raise_exception=True, detailed=False):
|
|
212
|
-
"""Check
|
|
212
|
+
"""Check Story floor plates for courtyards and that they are less than 120 vertices.
|
|
213
213
|
|
|
214
|
-
EQuest currently has no way to represent
|
|
214
|
+
EQuest currently has no way to represent courtyards so, if the issue
|
|
215
215
|
is not addressed, the courtyards will simply be removed as part of the
|
|
216
216
|
process of exporting to an INP file.
|
|
217
217
|
|
|
@@ -236,8 +236,10 @@ class ModelDoe2Properties(object):
|
|
|
236
236
|
for story in bldg.unique_stories:
|
|
237
237
|
floor_geos = [room.floor_geometry for room in story.room_2ds]
|
|
238
238
|
joined_geos = _grouped_floor_boundary(floor_geos, tolerance)
|
|
239
|
-
c_count = 0
|
|
239
|
+
c_count, vert_len = 0, None
|
|
240
240
|
for geo in joined_geos:
|
|
241
|
+
if len(geo.boundary) > 120:
|
|
242
|
+
vert_len = len(geo.boundary)
|
|
241
243
|
if geo.has_holes:
|
|
242
244
|
for hole in geo.holes:
|
|
243
245
|
try:
|
|
@@ -266,10 +268,26 @@ class ModelDoe2Properties(object):
|
|
|
266
268
|
'message': msg
|
|
267
269
|
}
|
|
268
270
|
story_msgs.append(msg)
|
|
271
|
+
if vert_len is not None:
|
|
272
|
+
msg = 'Story "{}" has a floor plate with {} vertices, which is more ' \
|
|
273
|
+
'than the maximum 120 vertices supported by DOE-2.'.format(
|
|
274
|
+
story.display_name, vert_len)
|
|
275
|
+
if detailed:
|
|
276
|
+
msg = {
|
|
277
|
+
'type': 'ValidationError',
|
|
278
|
+
'code': '030101',
|
|
279
|
+
'error_type': 'Floor Plate Exceeds Maximum Vertex Count',
|
|
280
|
+
'extension_type': 'DOE2',
|
|
281
|
+
'element_type': 'Room2D',
|
|
282
|
+
'element_id': [r.identifier for r in story.room_2ds],
|
|
283
|
+
'element_name': [r.display_name for r in story.room_2ds],
|
|
284
|
+
'message': msg
|
|
285
|
+
}
|
|
286
|
+
story_msgs.append(msg)
|
|
269
287
|
if detailed:
|
|
270
288
|
return story_msgs
|
|
271
289
|
if story_msgs != []:
|
|
272
|
-
msg = 'The following Stories have
|
|
290
|
+
msg = 'The following Stories have issues with their floor plates' \
|
|
273
291
|
':\n{}'.format('\n'.join(story_msgs))
|
|
274
292
|
if raise_exception:
|
|
275
293
|
raise ValueError(msg)
|
|
@@ -143,7 +143,7 @@ class Room2DDoe2Properties(object):
|
|
|
143
143
|
raise ValueError(msg)
|
|
144
144
|
full_msg = self.host._validation_message_child(
|
|
145
145
|
msg, self.host, detailed, '030101', extension='DOE2',
|
|
146
|
-
error_type='
|
|
146
|
+
error_type='Floor Plate Exceeds Maximum Vertex Count')
|
|
147
147
|
if detailed:
|
|
148
148
|
return [full_msg]
|
|
149
149
|
if raise_exception:
|
|
@@ -5,11 +5,11 @@ dragonfly_doe2/writer.py,sha256=m7dlAUrVFwHWpKISWLEzNkDkd9g6XtnO4KJSFnw1IPY,7271
|
|
|
5
5
|
dragonfly_doe2/cli/__init__.py,sha256=OwTHSsOOEoJjbw5CqPig8Yo7jk1f6m53OFnhuZgPthE,391
|
|
6
6
|
dragonfly_doe2/cli/translate.py,sha256=Brx8p-9tUzrbdNFj_B398EmVQdFIENC-w2qROhkaWx8,9486
|
|
7
7
|
dragonfly_doe2/properties/__init__.py,sha256=0JiyMYGeRlPLcxh1PSr6eJzDGgfrbMivcO9dS1h7wEU,33
|
|
8
|
-
dragonfly_doe2/properties/model.py,sha256=
|
|
9
|
-
dragonfly_doe2/properties/room2d.py,sha256=
|
|
10
|
-
dragonfly_doe2-0.12.
|
|
11
|
-
dragonfly_doe2-0.12.
|
|
12
|
-
dragonfly_doe2-0.12.
|
|
13
|
-
dragonfly_doe2-0.12.
|
|
14
|
-
dragonfly_doe2-0.12.
|
|
15
|
-
dragonfly_doe2-0.12.
|
|
8
|
+
dragonfly_doe2/properties/model.py,sha256=_M_hk8A88JbV2N3ifiizvjAC5Ikv1th5Pz7HjMvLO8w,15513
|
|
9
|
+
dragonfly_doe2/properties/room2d.py,sha256=biy4WZBu2YYkJ3GMV7meS9Om2536Y4itCoi-yuQ6JXY,12780
|
|
10
|
+
dragonfly_doe2-0.12.14.dist-info/licenses/LICENSE,sha256=hIahDEOTzuHCU5J2nd07LWwkLW7Hko4UFO__ffsvB-8,34523
|
|
11
|
+
dragonfly_doe2-0.12.14.dist-info/METADATA,sha256=oPIv1ChIbrkWOSDElOvPquRbE0SqFcxdV2GIYe-jCaU,3103
|
|
12
|
+
dragonfly_doe2-0.12.14.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
13
|
+
dragonfly_doe2-0.12.14.dist-info/entry_points.txt,sha256=oBzZOsc8Bs40iHKtuyWGrz_nfLZu1-6cHrBej05ZqrY,59
|
|
14
|
+
dragonfly_doe2-0.12.14.dist-info/top_level.txt,sha256=6CLCvUyl1H2vrbXmeA0ND_znFz4a2oOclc7NMBZxR6c,15
|
|
15
|
+
dragonfly_doe2-0.12.14.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|