honeybee-openstudio 2.34.0 → 2.34.1
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.
- checksums.yaml +4 -4
- data/honeybee-openstudio.gemspec +1 -1
- data/lib/to_openstudio/construction_set.rb +39 -0
- data/lib/to_openstudio/program_type.rb +9 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a4dfa78bd619d4e0ee96bedcae85ed99bce737a61516a8abf6d3be8ad1fa2b7b
|
4
|
+
data.tar.gz: 0eae35ad7865b835097a4454215d965ee76499c9174162bb3865e7ce9d768c15
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6aed2c7158f039c171832d76e3d791bca8fffb5a0d2710d534afe4cc20959e993b8de3ce8747b0fefd30933eadb64b896d554c3d64cb135ac88d9f890e3e435d
|
7
|
+
data.tar.gz: 4b0ea7396722cd43895fc8a79cdae978135f747fc5e34b533b1409be7a8fcef48579352df59c571b26df8e0cf535c13fb770c4055ed3daf20b861e324dc44ea8
|
data/honeybee-openstudio.gemspec
CHANGED
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
4
4
|
|
5
5
|
Gem::Specification.new do |spec|
|
6
6
|
spec.name = 'honeybee-openstudio'
|
7
|
-
spec.version = '2.34.
|
7
|
+
spec.version = '2.34.1'
|
8
8
|
spec.authors = ['Tanushree Charan', 'Dan Macumber', 'Chris Mackey', 'Mostapha Sadeghipour Roudsari']
|
9
9
|
spec.email = ['tanushree.charan@nrel.gov', 'chris@ladybug.tools']
|
10
10
|
|
@@ -60,6 +60,13 @@ module Honeybee
|
|
60
60
|
os_constr_set.setDefaultInteriorSubSurfaceConstructions(int_subsurf_const)
|
61
61
|
os_constr_set.setDefaultExteriorSubSurfaceConstructions(ext_subsurf_const)
|
62
62
|
|
63
|
+
# determine the frame type for measure tags
|
64
|
+
frame_type = 'Metal Framing with Thermal Break'
|
65
|
+
id_str = @hash[:identifier].to_s
|
66
|
+
if id_str.scan(/(?=WoodFramed)/).count > 0
|
67
|
+
frame_type = 'Non-Metal Framing'
|
68
|
+
end
|
69
|
+
|
63
70
|
# assign any constructions in the wall set
|
64
71
|
if @hash[:wall_set]
|
65
72
|
if @hash[:wall_set][:interior_construction]
|
@@ -138,18 +145,34 @@ module Honeybee
|
|
138
145
|
window_aperture = get_window_construction(openstudio_model, @hash[:aperture_set][:window_construction])
|
139
146
|
unless window_aperture.nil?
|
140
147
|
ext_subsurf_const.setFixedWindowConstruction(window_aperture)
|
148
|
+
std_info = window_aperture.standardsInformation
|
149
|
+
std_info.setFenestrationType('Fixed Window')
|
150
|
+
std_info.setFenestrationFrameType(frame_type)
|
151
|
+
std_info.setIntendedSurfaceType('ExteriorWindow')
|
141
152
|
end
|
142
153
|
end
|
143
154
|
if @hash[:aperture_set][:skylight_construction]
|
144
155
|
skylight_aperture = get_window_construction(openstudio_model, @hash[:aperture_set][:skylight_construction])
|
145
156
|
unless skylight_aperture.nil?
|
146
157
|
ext_subsurf_const.setSkylightConstruction(skylight_aperture)
|
158
|
+
std_info = skylight_aperture.standardsInformation
|
159
|
+
std_info.setFenestrationType('Fixed Window')
|
160
|
+
std_info.setFenestrationFrameType(frame_type)
|
161
|
+
if std_info.intendedSurfaceType.empty?
|
162
|
+
std_info.setIntendedSurfaceType('Skylight')
|
163
|
+
end
|
147
164
|
end
|
148
165
|
end
|
149
166
|
if @hash[:aperture_set][:operable_construction]
|
150
167
|
operable_aperture = get_window_construction(openstudio_model, @hash[:aperture_set][:operable_construction])
|
151
168
|
unless operable_aperture.nil?
|
152
169
|
ext_subsurf_const.setOperableWindowConstruction(operable_aperture)
|
170
|
+
std_info = operable_aperture.standardsInformation
|
171
|
+
if std_info.fenestrationType.empty?
|
172
|
+
std_info.setFenestrationType('Operable Window')
|
173
|
+
end
|
174
|
+
std_info.setFenestrationFrameType(frame_type)
|
175
|
+
std_info.setIntendedSurfaceType('ExteriorWindow')
|
153
176
|
end
|
154
177
|
end
|
155
178
|
end
|
@@ -170,6 +193,10 @@ module Honeybee
|
|
170
193
|
unless ext_door_ref.empty?
|
171
194
|
exterior_door = ext_door_ref.get
|
172
195
|
ext_subsurf_const.setDoorConstruction(exterior_door)
|
196
|
+
std_info = exterior_door.standardsInformation
|
197
|
+
if std_info.intendedSurfaceType.empty?
|
198
|
+
std_info.setIntendedSurfaceType('ExteriorDoor')
|
199
|
+
end
|
173
200
|
end
|
174
201
|
end
|
175
202
|
if @hash[:door_set][:overhead_construction]
|
@@ -178,12 +205,24 @@ module Honeybee
|
|
178
205
|
unless overhead_door_ref.empty?
|
179
206
|
overhead_door = overhead_door_ref.get
|
180
207
|
ext_subsurf_const.setOverheadDoorConstruction(overhead_door)
|
208
|
+
std_info = overhead_door.standardsInformation
|
209
|
+
if std_info.intendedSurfaceType.empty?
|
210
|
+
std_info.setIntendedSurfaceType('OverheadDoor')
|
211
|
+
end
|
181
212
|
end
|
182
213
|
end
|
183
214
|
if @hash[:door_set][:exterior_glass_construction]
|
184
215
|
exterior_glass_door = get_window_construction(openstudio_model, @hash[:door_set][:exterior_glass_construction])
|
185
216
|
unless exterior_glass_door.nil?
|
186
217
|
ext_subsurf_const.setGlassDoorConstruction(exterior_glass_door)
|
218
|
+
std_info = exterior_glass_door.standardsInformation
|
219
|
+
if std_info.fenestrationType.empty?
|
220
|
+
std_info.setFenestrationType('Glazed Door')
|
221
|
+
end
|
222
|
+
std_info.setFenestrationFrameType(frame_type)
|
223
|
+
if std_info.intendedSurfaceType.empty?
|
224
|
+
std_info.setIntendedSurfaceType('GlassDoor')
|
225
|
+
end
|
187
226
|
end
|
188
227
|
end
|
189
228
|
if @hash[:door_set][:interior_glass_construction]
|
@@ -49,6 +49,15 @@ module Honeybee
|
|
49
49
|
unless @hash[:display_name].nil?
|
50
50
|
os_space_type.setDisplayName(@hash[:display_name])
|
51
51
|
end
|
52
|
+
|
53
|
+
# if the program is from honeybee-energy-standards, also set the measure tag
|
54
|
+
id_str = @hash[:identifier].to_s
|
55
|
+
if id_str.scan(/(?=::)/).count == 2
|
56
|
+
std_spc_type = id_str.split('::')[2]
|
57
|
+
std_spc_type = std_spc_type.split('_')[0]
|
58
|
+
os_space_type.setStandardsSpaceType(std_spc_type)
|
59
|
+
end
|
60
|
+
|
52
61
|
# assign people
|
53
62
|
if @hash[:people]
|
54
63
|
people = PeopleAbridged.new(@hash[:people])
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: honeybee-openstudio
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.34.
|
4
|
+
version: 2.34.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tanushree Charan
|
@@ -11,7 +11,7 @@ authors:
|
|
11
11
|
autorequire:
|
12
12
|
bindir: exe
|
13
13
|
cert_chain: []
|
14
|
-
date: 2023-02-
|
14
|
+
date: 2023-02-27 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: json_pure
|