honeybee-openstudio 2.31.4 → 2.31.7
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f0fdea0e04fa8570b9c3e7d7ba69921a653aa31c5ed7662591ee41e414a3d607
|
4
|
+
data.tar.gz: f7a212b274413d1250813154a4c8e8a578a99f30ac70f632e4268744b6d36e80
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f28c6c37158cd493e94fdbdfe9f1be70d064e6fd30980ea2ea0a1d1146bfbf7df3bfdba33d4dac355bd77c00f68129ef7125f317840d20157d210e173d279ee5
|
7
|
+
data.tar.gz: f37d5a509a78684c849ec5a237b629bfdf85302327b3cad08f7ff8ab866f2cf4a575e9add323cd9f7109bb1a42c58fed8e99626a0a9a700bc7ee30890abe3b43
|
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.31.
|
7
|
+
spec.version = '2.31.7'
|
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
|
|
@@ -79,7 +79,10 @@ module Honeybee
|
|
79
79
|
# set room energy properties
|
80
80
|
unless space.defaultConstructionSet.empty?
|
81
81
|
const_set = space.defaultConstructionSet.get
|
82
|
-
|
82
|
+
c_set_name = const_set.nameString
|
83
|
+
unless c_set_name == 'Default Generic Construction Set'
|
84
|
+
hash[:construction_set] = const_set.nameString
|
85
|
+
end
|
83
86
|
end
|
84
87
|
unless space.spaceType.empty?
|
85
88
|
space_type = space.spaceType.get
|
@@ -197,6 +197,16 @@ module Honeybee
|
|
197
197
|
end
|
198
198
|
end
|
199
199
|
|
200
|
+
# add a transmittance schedule if a value is found
|
201
|
+
if @hash[:transmit]
|
202
|
+
schedule_identifier = 'Constant ' + @hash[:transmit] + ' Transmittance'
|
203
|
+
schedule = openstudio_model.getScheduleByName(schedule_identifier)
|
204
|
+
unless schedule.empty?
|
205
|
+
os_schedule = schedule.get
|
206
|
+
os_shading_surface.setTransmittanceSchedule(os_schedule)
|
207
|
+
end
|
208
|
+
end
|
209
|
+
|
200
210
|
# add the shade to the group
|
201
211
|
os_shading_surface.setShadingSurfaceGroup(shading_surface_group)
|
202
212
|
|
@@ -193,6 +193,16 @@ module Honeybee
|
|
193
193
|
end
|
194
194
|
end
|
195
195
|
|
196
|
+
# add a transmittance schedule if a value is found
|
197
|
+
if @hash[:transmit]
|
198
|
+
schedule_identifier = 'Constant ' + @hash[:transmit] + ' Transmittance'
|
199
|
+
schedule = openstudio_model.getScheduleByName(schedule_identifier)
|
200
|
+
unless schedule.empty?
|
201
|
+
os_schedule = schedule.get
|
202
|
+
os_shading_surface.setTransmittanceSchedule(os_schedule)
|
203
|
+
end
|
204
|
+
end
|
205
|
+
|
196
206
|
# add the shade to the group
|
197
207
|
os_shading_surface.setShadingSurfaceGroup(shading_surface_group)
|
198
208
|
|
@@ -156,14 +156,19 @@ module Honeybee
|
|
156
156
|
end
|
157
157
|
|
158
158
|
# use the average of design day temperatures to set the water mains temperature
|
159
|
-
os_water_mains = @openstudio_model.getSiteWaterMainsTemperature
|
160
|
-
|
161
|
-
if
|
162
|
-
os_water_mains.
|
163
|
-
else
|
164
|
-
os_water_mains.
|
159
|
+
os_water_mains = @openstudio_model.getSiteWaterMainsTemperature
|
160
|
+
os_version_water_fix = OpenStudio::VersionString.new(3, 4)
|
161
|
+
if @openstudio_model.version() >= os_version_water_fix
|
162
|
+
os_water_mains.setCalculationMethod('CorrelationFromWeatherFile')
|
163
|
+
else
|
164
|
+
os_water_mains.setCalculationMethod('Correlation')
|
165
|
+
if db_temps.length > 0
|
166
|
+
os_water_mains.setAnnualAverageOutdoorAirTemperature((db_temps.max + db_temps.min) / 2)
|
167
|
+
else # just use some dummy values so that the simulation does not fail
|
168
|
+
os_water_mains.setAnnualAverageOutdoorAirTemperature(12)
|
169
|
+
end
|
170
|
+
os_water_mains.setMaximumDifferenceInMonthlyAverageOutdoorAirTemperatures(4)
|
165
171
|
end
|
166
|
-
os_water_mains.setMaximumDifferenceInMonthlyAverageOutdoorAirTemperatures(4)
|
167
172
|
|
168
173
|
# set the climate zone from design days assuming 0.4% extremes and normal distribution
|
169
174
|
climate_zone_objs = @openstudio_model.getClimateZones
|
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.31.
|
4
|
+
version: 2.31.7
|
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: 2022-
|
14
|
+
date: 2022-05-18 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: bundler
|