honeybee-openstudio 2.28.2 → 2.28.6

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: 1c3f02cf48f4c9d6c3b519513a9602452d044c24287ba8b3ad9d9317e2cb869b
4
- data.tar.gz: 5a08ac81d335c8ca9862dbf84a2e918480b594cf4e2e2cc495ef78d26b3e6256
3
+ metadata.gz: 4ca37d07a3be814cdd3142149cd708f3970248b60602cb258e198f78c03ea9e4
4
+ data.tar.gz: 867481f07dde60d48f5f60d2e4e15200911c7362e632fd746e0512a8e5af605c
5
5
  SHA512:
6
- metadata.gz: 8b94674ad176a8846d1a2b10bfc11f3da312ff7e9adb186eac9c93a4bbc66d87d76bc1b41e730d49d9f93cd1d409e6f38b1256e9a5fb5dd4bdb08e077bb4b482
7
- data.tar.gz: 30daf7224ae75f43219a0e9566146a045d5d86f074079ee29157455373804967b639a820f328777e71b69982a0392bbc4f97c0a24fdef55d2bff0c8a04ef5a46
6
+ metadata.gz: 31926e2a3a6db328f6c1a34d2ecf77e4010f03756f21949ee64f4c6e62a1ef1274aa0bf48631333c0e0350fa8ae8621b5c2f10f470de34ee3317148ccf3670ff
7
+ data.tar.gz: afb29e454546acf687bfb171c878f2dc51a5515d81a1dd9d2afef94b59bfe92d5ba1aa53dba5a0d94cd0f6c2ada8f24b3aea00a41b6861736117c9f2784463f6
@@ -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.28.2'
7
+ spec.version = '2.28.6'
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
 
@@ -9,7 +9,7 @@ if allow_local && File.exist?('../openstudio-common-measures-gem')
9
9
  elsif allow_local
10
10
  gem 'openstudio-common-measures', github: 'NREL/openstudio-common-measures-gem', branch: 'develop'
11
11
  else
12
- gem 'openstudio-common-measures', '~> 0.4.0'
12
+ gem 'openstudio-common-measures', '~> 0.5.0'
13
13
  end
14
14
 
15
15
  if allow_local && File.exist?('../openstudio-model-articulation-gem')
@@ -17,7 +17,7 @@ if allow_local && File.exist?('../openstudio-model-articulation-gem')
17
17
  elsif allow_local
18
18
  gem 'openstudio-model-articulation', github: 'NREL/openstudio-model-articulation-gem', branch: 'develop'
19
19
  else
20
- gem 'openstudio-model-articulation', '0.4.0'
20
+ gem 'openstudio-model-articulation', '0.5.0'
21
21
  end
22
22
 
23
23
  if allow_local && File.exist?('../urbanopt-geojson-gem')
@@ -25,7 +25,7 @@ if allow_local && File.exist?('../urbanopt-geojson-gem')
25
25
  elsif allow_local
26
26
  gem 'urbanopt-geojson', github: 'URBANopt/urbanopt-geojson-gem', branch: 'develop'
27
27
  else
28
- gem 'urbanopt-geojson', '~> 0.6.1'
28
+ gem 'urbanopt-geojson', '~> 0.7.0'
29
29
  end
30
30
 
31
31
  if allow_local && File.exist?('../urbanopt-reporting-gem')
@@ -33,8 +33,8 @@ if allow_local && File.exist?('../urbanopt-reporting-gem')
33
33
  elsif allow_local
34
34
  gem 'urbanopt-reporting', github: 'URBANopt/urbanopt-reporting-gem', branch: 'develop'
35
35
  else
36
- gem 'urbanopt-reporting', '~> 0.4.0'
36
+ gem 'urbanopt-reporting', '~> 0.5.0'
37
37
  end
38
38
 
39
39
  # include the honeybee-openstudio-gem
40
- gem 'honeybee-openstudio', '2.27.0'
40
+ gem 'honeybee-openstudio', '2.28.4'
@@ -205,8 +205,12 @@ module Honeybee
205
205
 
206
206
  # assign any air boundary constructions to construction set
207
207
  if @hash[:air_boundary_construction]
208
- air_ref = openstudio_model.getConstructionAirBoundaryByName(
209
- @hash[:air_boundary_construction])
208
+ air_ref = openstudio_model.getConstructionAirBoundaryByName(@hash[:air_boundary_construction])
209
+ unless air_ref.empty?
210
+ air_construction = air_ref.get
211
+ os_constr_set.setInteriorPartitionConstruction(air_construction)
212
+ end
213
+ air_ref = openstudio_model.getConstructionByName(@hash[:air_boundary_construction])
210
214
  unless air_ref.empty?
211
215
  air_construction = air_ref.get
212
216
  os_constr_set.setInteriorPartitionConstruction(air_construction)
@@ -189,6 +189,7 @@ module Honeybee
189
189
  end
190
190
  end
191
191
 
192
+ # assign interior constructions for adiabatic Faces
192
193
  if !face[:properties][:energy][:construction]
193
194
  if face[:boundary_condition][:type] == 'Adiabatic'
194
195
  # assign default interior construction for Adiabatic Faces
@@ -198,28 +199,38 @@ module Honeybee
198
199
  os_surface.setConstruction(interior_construction)
199
200
  end
200
201
  end
201
- elsif face[:face_type] == 'AirBoundary'
202
- # assign default air boundary construction for AirBoundary face types
203
- air_construction = closest_air_construction(openstudio_model, os_space)
202
+ end
203
+ end
204
+
205
+ # assign air boundaries
206
+ if face[:face_type] == 'AirBoundary'
207
+ # assign default air boundary construction for AirBoundary face types
208
+ air_construction = closest_air_construction(openstudio_model, os_space)
209
+ if !face[:properties][:energy][:construction]
204
210
  unless air_construction.nil?
205
211
  os_surface.setConstruction(air_construction)
206
212
  end
207
- # add air mixing properties to the global list that tracks them
208
- if $use_simple_vent # only use air mixing objects when simple ventilation is requested
209
- air_hash = $air_boundary_hash[air_construction.name.to_s]
210
- if air_hash[:air_mixing_per_area]
211
- air_mix_area = air_hash[:air_mixing_per_area]
212
- else
213
- air_default = @@schema[:components][:schemas][:AirBoundaryConstructionAbridged]
214
- air_mix_area = air_default[:properties][:air_mixing_per_area][:default]
215
- end
216
- flow_rate = os_surface.netArea * air_mix_area
213
+ end
214
+ # add air mixing properties to the global list that tracks them
215
+ if $use_simple_vent # only use air mixing objects when simple ventilation is requested
216
+ air_hash = $air_boundary_hash[air_construction.name.to_s]
217
+ if air_hash && air_hash[:air_mixing_per_area]
218
+ air_mix_area = air_hash[:air_mixing_per_area]
219
+ else
220
+ air_default = @@schema[:components][:schemas][:AirBoundaryConstructionAbridged]
221
+ air_mix_area = air_default[:properties][:air_mixing_per_area][:default]
222
+ end
223
+ flow_rate = os_surface.netArea * air_mix_area
224
+ if air_hash
217
225
  flow_sch_id = air_hash[:air_mixing_schedule]
218
- adj_zone_id = face[:boundary_condition][:boundary_condition_objects][-1]
219
- $air_mxing_array << [os_thermal_zone, flow_rate, flow_sch_id, adj_zone_id]
226
+ else
227
+ flow_sch_id = 'Always On'
220
228
  end
229
+ adj_zone_id = face[:boundary_condition][:boundary_condition_objects][-1]
230
+ $air_mxing_array << [os_thermal_zone, flow_rate, flow_sch_id, adj_zone_id]
221
231
  end
222
232
  end
233
+
223
234
  end
224
235
 
225
236
  # assign any room-level outdoor shades if they exist
@@ -137,6 +137,7 @@ module Honeybee
137
137
  os_sizing_par.setCoolingSizingFactor(siz_defaults[:cooling_factor][:default])
138
138
 
139
139
  # override any SizingParameter defaults with lodaded JSON
140
+ db_temps = []
140
141
  if @hash[:sizing_parameter]
141
142
  if @hash[:sizing_parameter][:heating_factor]
142
143
  os_sizing_par.setHeatingSizingFactor(@hash[:sizing_parameter][:heating_factor])
@@ -145,7 +146,6 @@ module Honeybee
145
146
  os_sizing_par.setCoolingSizingFactor(@hash[:sizing_parameter][:cooling_factor])
146
147
  end
147
148
  # set any design days
148
- db_temps = []
149
149
  if @hash[:sizing_parameter][:design_days]
150
150
  @hash[:sizing_parameter][:design_days].each do |des_day|
151
151
  des_day_object = DesignDay.new(des_day)
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.28.2
4
+ version: 2.28.6
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: 2021-12-30 00:00:00.000000000 Z
14
+ date: 2022-01-03 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: bundler