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 +4 -4
- data/CHANGELOG.md +11 -8
- data/lib/openstudio/extension/core/os_lib_model_generation.rb +17 -8
- data/lib/openstudio/extension/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c1d5fc1ae05ebc04e7ba917e74002f1c9c574fb03354c1dc9a8a12dd5fa1f897
|
4
|
+
data.tar.gz: 876541d14c4ccc7a97eb7a617d40c7dc68f58f1a49959491d51919e8af068f17
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
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
|
-
#
|
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
|
-
|
1152
|
-
|
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
|
-
#
|
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
|
-
|
1179
|
-
|
1180
|
-
|
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)
|
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.
|
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-
|
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.
|
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:
|