openstudio-extension 0.5.0 → 0.5.1

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: 2e410744afb54a4a4c19ee59dd2d7a9edd77da75d67df9968f0ed2e0a304f0f7
4
- data.tar.gz: 3949d1e1bb9a929b251e473aac854d50abff6da4800be4b10318f786b0c5c082
3
+ metadata.gz: c1d5fc1ae05ebc04e7ba917e74002f1c9c574fb03354c1dc9a8a12dd5fa1f897
4
+ data.tar.gz: 876541d14c4ccc7a97eb7a617d40c7dc68f58f1a49959491d51919e8af068f17
5
5
  SHA512:
6
- metadata.gz: 82b88a5b66d29367fca57cb38228ccf7f782a798b98e09a220c11eb6d7bfe6e959a947e4a44f97fd391a7eec123fb37c1894e7dfd04803108fca75fd02a0bccb
7
- data.tar.gz: 451ea32b090a21701eda6df859714bb213e212c2fdcdab086de7c51dd71031e9eaab493b04df671eccc9c01483408f40595127246997c91e810e0b1d3f4b3847
6
+ metadata.gz: d3df31fdd6f8bd2805af4c69effc71f3ebb50c4ea1863f728737140623b42b87ebd5f2a05555b13eb8a0b2237a1eb73b8184723593bd89805a157bed4ec545ff
7
+ data.tar.gz: 20e1d537b0bd4ac570a6c8e90aa44de68434aaa573b1142fe560b340c9b9d8dca2182cea1c3dc9b6ca42c688afebe25ca3c5f1d2cf9382ed549645aa06a46ce3
data/CHANGELOG.md CHANGED
@@ -1,16 +1,19 @@
1
1
  # OpenStudio Extension Gem
2
2
 
3
+ ## Version 0.5.1
4
+
5
+ * Fix adjancent surface matching
6
+
3
7
  ## Version 0.5.0
4
8
 
5
9
  * Update OpenStudio Workflow Gem to 2.3.0 (support for epJSON)
6
-
7
- - Fixed [#133]( https://github.com/NREL/openstudio-extension-gem/pull/133 ), cleanup readme and rework BCL tasks
8
- - Fixed [#135]( https://github.com/NREL/openstudio-extension-gem/pull/135 ), Intersect tests 072021
9
- - Fixed [#136]( https://github.com/NREL/openstudio-extension-gem/pull/136 ), Osm from haystack
10
- - Fixed [#137]( https://github.com/NREL/openstudio-extension-gem/issues/137 ), Edge case error in hospital bar
11
- - Fixed [#138]( https://github.com/NREL/openstudio-extension-gem/issues/138 ), os_lib_model_generation does not assign SWH type correctly
12
- - Fixed [#139]( https://github.com/NREL/openstudio-extension-gem/pull/139 ), fix swh_src assignment operators
13
- - Fixed [#142]( https://github.com/NREL/openstudio-extension-gem/pull/142 ), added arg for hoo_var_method and updated test to use it
10
+ * Fixed [#133]( https://github.com/NREL/openstudio-extension-gem/pull/133 ), cleanup readme and rework BCL tasks
11
+ * Fixed [#135]( https://github.com/NREL/openstudio-extension-gem/pull/135 ), Intersect tests 072021
12
+ * Fixed [#136]( https://github.com/NREL/openstudio-extension-gem/pull/136 ), Osm from haystack
13
+ * Fixed [#137]( https://github.com/NREL/openstudio-extension-gem/issues/137 ), Edge case error in hospital bar
14
+ * Fixed [#138]( https://github.com/NREL/openstudio-extension-gem/issues/138 ), os_lib_model_generation does not assign SWH type correctly
15
+ * Fixed [#139]( https://github.com/NREL/openstudio-extension-gem/pull/139 ), fix swh_src assignment operators
16
+ * Fixed [#142]( https://github.com/NREL/openstudio-extension-gem/pull/142 ), added arg for hoo_var_method and updated test to use it
14
17
 
15
18
  ## Version 0.4.4
16
19
 
@@ -1146,13 +1146,13 @@ module OsLib_ModelGeneration
1146
1146
  spaces_temp = OpenStudio::Model::SpaceVector.new
1147
1147
  spaces_temp << space_a
1148
1148
  spaces_temp << space_b
1149
- # disable until enhanced intersectio nand matching, will make walls adiabatic and exterior within create_bar workflow
1149
+ # attempt to intersect and match walls on a story, but later secondary match will look for missted matches and turn them to adiabaitc
1150
1150
  # intersect and sort
1151
- # OpenStudio::Model.intersectSurfaces(spaces_temp)
1152
- # OpenStudio::Model.matchSurfaces(spaces_temp)
1151
+ OpenStudio::Model.intersectSurfaces(spaces_temp)
1152
+ OpenStudio::Model.matchSurfaces(spaces_temp)
1153
1153
  end
1154
1154
  end
1155
- runner.registerInfo("Intersecting and matching surfaces in story #{story.name}, this will create additional geometry.")
1155
+ runner.registerInfo("Intersecting and matching surfaces in story #{story.name}, this will create additional geometry. Diagnstoic intersection and matching done a in paris of spaces.")
1156
1156
  end
1157
1157
  end
1158
1158
 
@@ -1173,11 +1173,11 @@ module OsLib_ModelGeneration
1173
1173
  story.spaces.sort.each do |space|
1174
1174
  story_spaces << space
1175
1175
  end
1176
- # disable until enhanced intersectio nand matching, will make walls adiabatic and exterior within create_bar workflow
1176
+ # attempt to intersect and match walls on a story, but later secondary match will look for missted matches and turn them to adiabaitc
1177
1177
  # intersect and sort
1178
- # OpenStudio::Model.intersectSurfaces(story_spaces)
1179
- # OpenStudio::Model.matchSurfaces(story_spaces)
1180
- #runner.registerInfo("Intersecting and matching surfaces in story #{story.name}, this will create additional geometry.")
1178
+ OpenStudio::Model.intersectSurfaces(story_spaces)
1179
+ OpenStudio::Model.matchSurfaces(story_spaces)
1180
+ runner.registerInfo("Intersecting and matching surfaces in story #{story.name}, this will create additional geometry.")
1181
1181
  end
1182
1182
  end
1183
1183
 
@@ -1205,7 +1205,9 @@ module OsLib_ModelGeneration
1205
1205
  runner.registerInfo("Finding non-exterior walls and setting boundary condition to adiabatic")
1206
1206
 
1207
1207
  # need to organize by story incase top story is partial story
1208
+ # should also be only for a single bar
1208
1209
  story_bounding = {}
1210
+ missed_match_count = 0
1209
1211
 
1210
1212
  # gather new spaces by story
1211
1213
  new_spaces.each do |space|
@@ -1238,6 +1240,7 @@ module OsLib_ModelGeneration
1238
1240
  v[:spaces].each do |space|
1239
1241
  space.surfaces.each do |space_surface|
1240
1242
  next if not space_surface.surfaceType == "Wall"
1243
+ next if space_surface.outsideBoundaryCondition == "Surface" # if if found a match leave it alone, don't change to adiabiatc
1241
1244
  surface_bounding_box = OpenStudio::BoundingBox.new
1242
1245
  surface_bounding_box.addPoints(space.transformation * space_surface.vertices)
1243
1246
  surface_on_outside = false
@@ -1253,10 +1256,16 @@ module OsLib_ModelGeneration
1253
1256
  # change if not exterior
1254
1257
  if !surface_on_outside
1255
1258
  space_surface.setOutsideBoundaryCondition("Adiabatic")
1259
+ missed_match_count += 1
1256
1260
  end
1257
1261
  end
1258
1262
  end
1259
1263
  end
1264
+
1265
+ if missed_match_count > 0
1266
+ runner.registerInfo("#{missed_match_count} surfaces that were exterior appear to be interior walls and had boundary condition chagned to adiabiatic.")
1267
+ end
1268
+
1260
1269
  end
1261
1270
 
1262
1271
  # sort stories (by name for now but need better way)
@@ -35,6 +35,6 @@
35
35
 
36
36
  module OpenStudio
37
37
  module Extension
38
- VERSION = '0.5.0'.freeze
38
+ VERSION = '0.5.1'.freeze
39
39
  end
40
40
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: openstudio-extension
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Katherine Fleming
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: exe
13
13
  cert_chain: []
14
- date: 2021-10-21 00:00:00.000000000 Z
14
+ date: 2021-11-03 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: bcl
@@ -233,7 +233,7 @@ licenses: []
233
233
  metadata:
234
234
  bug_tracker_uri: https://github.com/NREL/openstudio-extension-gem/issues
235
235
  changelog_uri: https://github.com/NREL/openstudio-extension-gem/blob/develop/CHANGELOG.md
236
- source_code_uri: https://github.com/NREL/openstudio-extension-gem/tree/v0.5.0
236
+ source_code_uri: https://github.com/NREL/openstudio-extension-gem/tree/v0.5.1
237
237
  post_install_message:
238
238
  rdoc_options: []
239
239
  require_paths: