openstudio-model-articulation 0.9.0 → 0.11.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (130) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +13 -3
  3. data/Gemfile +12 -5
  4. data/Jenkinsfile +1 -1
  5. data/LICENSE.md +1 -1
  6. data/README.md +2 -0
  7. data/lib/measures/AssignConstructionSetToBuilding/LICENSE.md +1 -1
  8. data/lib/measures/AssignConstructionSetToBuilding/measure.xml +21 -21
  9. data/lib/measures/AssignSpaceTypeBySpaceName/LICENSE.md +1 -1
  10. data/lib/measures/AssignSpaceTypeBySpaceName/measure.xml +37 -37
  11. data/lib/measures/AssignSpaceTypeToBuilding/LICENSE.md +1 -1
  12. data/lib/measures/AssignSpaceTypeToBuilding/measure.xml +21 -21
  13. data/lib/measures/AssignSpacesToStories/LICENSE.md +1 -1
  14. data/lib/measures/AssignSpacesToStories/measure.xml +17 -17
  15. data/lib/measures/BarAspectRatioStudy/LICENSE.md +1 -1
  16. data/lib/measures/BarAspectRatioStudy/measure.xml +11 -11
  17. data/lib/measures/CleanupSpaceOrigins/LICENSE.md +1 -1
  18. data/lib/measures/CleanupSpaceOrigins/measure.xml +17 -17
  19. data/lib/measures/FindAndReplaceObjectNames/LICENSE.md +1 -1
  20. data/lib/measures/FindAndReplaceObjectNames/measure.xml +17 -17
  21. data/lib/measures/InjectOsmGeometryIntoAnExternalIdf/LICENSE.md +1 -1
  22. data/lib/measures/InjectOsmGeometryIntoAnExternalIdf/measure.xml +54 -54
  23. data/lib/measures/RemoveHardAssignedConstructions/LICENSE.md +1 -1
  24. data/lib/measures/RemoveHardAssignedConstructions/measure.xml +17 -17
  25. data/lib/measures/RenameSpaceSurfacesBasedonParentSpaceandOrientation/LICENSE.md +1 -1
  26. data/lib/measures/RenameSpaceSurfacesBasedonParentSpaceandOrientation/measure.xml +40 -40
  27. data/lib/measures/RotateBuilding/LICENSE.md +1 -1
  28. data/lib/measures/RotateBuilding/measure.xml +19 -19
  29. data/lib/measures/SetExtWallToGroundBoundaryConditionByStory/LICENSE.md +1 -1
  30. data/lib/measures/SetExtWallToGroundBoundaryConditionByStory/measure.xml +21 -21
  31. data/lib/measures/SetInteriorWallsAndFloorsToAdiabatic/LICENSE.md +1 -1
  32. data/lib/measures/SetInteriorWallsAndFloorsToAdiabatic/measure.xml +17 -17
  33. data/lib/measures/SetInteriorWallsToSelectedConstruction/LICENSE.md +1 -1
  34. data/lib/measures/SetInteriorWallsToSelectedConstruction/measure.xml +17 -17
  35. data/lib/measures/SetWindowToWallRatioByFacade/LICENSE.md +1 -1
  36. data/lib/measures/SetWindowToWallRatioByFacade/measure.xml +46 -46
  37. data/lib/measures/SimplifyGeometryToSlicedBar/LICENSE.md +1 -1
  38. data/lib/measures/SimplifyGeometryToSlicedBar/measure.rb +32 -37
  39. data/lib/measures/SimplifyGeometryToSlicedBar/measure.xml +34 -80
  40. data/lib/measures/SimplifyGeometryToSlicedBar/resources/os_lib_cofee.rb +10 -9
  41. data/lib/measures/SpaceTypeAndConstructionSetWizard/LICENSE.md +1 -1
  42. data/lib/measures/SpaceTypeAndConstructionSetWizard/measure.rb +10 -13
  43. data/lib/measures/SpaceTypeAndConstructionSetWizard/measure.xml +28 -28
  44. data/lib/measures/SurfaceMatching/LICENSE.md +1 -1
  45. data/lib/measures/SurfaceMatching/measure.xml +17 -17
  46. data/lib/measures/add_empd_material_properties/LICENSE.md +1 -1
  47. data/lib/measures/add_empd_material_properties/measure.xml +27 -27
  48. data/lib/measures/blended_space_type_from_floor_area_ratios/LICENSE.md +1 -1
  49. data/lib/measures/blended_space_type_from_floor_area_ratios/measure.rb +31 -14
  50. data/lib/measures/blended_space_type_from_floor_area_ratios/measure.xml +36 -36
  51. data/lib/measures/blended_space_type_from_model/LICENSE.md +1 -1
  52. data/lib/measures/blended_space_type_from_model/measure.rb +12 -5
  53. data/lib/measures/blended_space_type_from_model/measure.xml +47 -47
  54. data/lib/measures/clone_building_from_external_model/LICENSE.md +1 -1
  55. data/lib/measures/clone_building_from_external_model/measure.xml +23 -23
  56. data/lib/measures/create_DOE_prototype_building/LICENSE.md +1 -1
  57. data/lib/measures/create_DOE_prototype_building/measure.rb +1 -1
  58. data/lib/measures/create_DOE_prototype_building/measure.xml +19 -875
  59. data/lib/measures/create_and_assign_thermal_zones_for_unassigned_spaces/LICENSE.md +1 -1
  60. data/lib/measures/create_and_assign_thermal_zones_for_unassigned_spaces/measure.xml +13 -13
  61. data/lib/measures/create_bar_from_building_type_ratios/LICENSE.md +1 -1
  62. data/lib/measures/create_bar_from_building_type_ratios/README.md +2 -13
  63. data/lib/measures/create_bar_from_building_type_ratios/measure.rb +122 -30
  64. data/lib/measures/create_bar_from_building_type_ratios/measure.xml +108 -349
  65. data/lib/measures/create_bar_from_deer_building_type_ratios/LICENSE.md +1 -1
  66. data/lib/measures/create_bar_from_deer_building_type_ratios/README.md +21 -1
  67. data/lib/measures/create_bar_from_deer_building_type_ratios/measure.rb +120 -18
  68. data/lib/measures/create_bar_from_deer_building_type_ratios/measure.xml +94 -32
  69. data/lib/measures/create_bar_from_doe_building_type_ratios/LICENSE.md +1 -1
  70. data/lib/measures/create_bar_from_doe_building_type_ratios/measure.rb +127 -18
  71. data/lib/measures/create_bar_from_doe_building_type_ratios/measure.xml +48 -26
  72. data/lib/measures/create_bar_from_model/LICENSE.md +1 -1
  73. data/lib/measures/create_bar_from_model/measure.rb +17 -18
  74. data/lib/measures/create_bar_from_model/measure.xml +41 -41
  75. data/lib/measures/create_bar_from_space_type_ratios/LICENSE.md +1 -1
  76. data/lib/measures/create_bar_from_space_type_ratios/README.md +1 -1
  77. data/lib/measures/create_bar_from_space_type_ratios/measure.rb +94 -14
  78. data/lib/measures/create_bar_from_space_type_ratios/measure.xml +104 -63
  79. data/lib/measures/create_baseline_building/LICENSE.md +1 -1
  80. data/lib/measures/create_baseline_building/measure.xml +35 -35
  81. data/lib/measures/create_deer_prototype_building/LICENSE.md +1 -1
  82. data/lib/measures/create_deer_prototype_building/measure.xml +17 -17
  83. data/lib/measures/create_parametric_schedules/LICENSE.md +1 -1
  84. data/lib/measures/create_parametric_schedules/measure.rb +17 -20
  85. data/lib/measures/create_parametric_schedules/measure.xml +15 -15
  86. data/lib/measures/create_typical_building_from_model/LICENSE.md +1 -1
  87. data/lib/measures/create_typical_building_from_model/README.md +16 -16
  88. data/lib/measures/create_typical_building_from_model/measure.rb +84 -18
  89. data/lib/measures/create_typical_building_from_model/measure.xml +159 -211
  90. data/lib/measures/create_typical_deer_building_from_model/LICENSE.md +1 -1
  91. data/lib/measures/create_typical_deer_building_from_model/README.md +38 -5
  92. data/lib/measures/create_typical_deer_building_from_model/measure.rb +84 -12
  93. data/lib/measures/create_typical_deer_building_from_model/measure.xml +165 -65
  94. data/lib/measures/create_typical_doe_building_from_model/LICENSE.md +1 -1
  95. data/lib/measures/create_typical_doe_building_from_model/README.md +17 -4
  96. data/lib/measures/create_typical_doe_building_from_model/measure.rb +84 -12
  97. data/lib/measures/create_typical_doe_building_from_model/measure.xml +125 -65
  98. data/lib/measures/deer_space_type_and_construction_set_wizard/LICENSE.md +1 -1
  99. data/lib/measures/deer_space_type_and_construction_set_wizard/measure.rb +13 -16
  100. data/lib/measures/deer_space_type_and_construction_set_wizard/measure.xml +72 -29
  101. data/lib/measures/find_and_replace_in_all_thermal_zone_names/LICENSE.md +1 -1
  102. data/lib/measures/find_and_replace_in_all_thermal_zone_names/measure.xml +17 -17
  103. data/lib/measures/make_shading_surfaces_based_on_zone_multipliers/LICENSE.md +1 -1
  104. data/lib/measures/make_shading_surfaces_based_on_zone_multipliers/measure.rb +4 -4
  105. data/lib/measures/make_shading_surfaces_based_on_zone_multipliers/measure.xml +21 -21
  106. data/lib/measures/merge_floorspace_js_with_model/LICENSE.md +1 -1
  107. data/lib/measures/merge_floorspace_js_with_model/measure.xml +29 -29
  108. data/lib/measures/merge_spaces_from_external_file/LICENSE.md +1 -1
  109. data/lib/measures/merge_spaces_from_external_file/measure.rb +4 -4
  110. data/lib/measures/merge_spaces_from_external_file/measure.xml +34 -34
  111. data/lib/measures/radiance_measure/LICENSE.md +1 -1
  112. data/lib/measures/radiance_measure/measure.rb +3 -3
  113. data/lib/measures/radiance_measure/measure.xml +29 -29
  114. data/lib/measures/radiant_slab_with_doas/LICENSE.md +1 -1
  115. data/lib/measures/radiant_slab_with_doas/measure.rb +2 -2
  116. data/lib/measures/radiant_slab_with_doas/measure.xml +5 -5
  117. data/lib/measures/replace_geometry_by_story/LICENSE.md +1 -1
  118. data/lib/measures/replace_geometry_by_story/measure.rb +6 -10
  119. data/lib/measures/replace_geometry_by_story/measure.xml +19 -19
  120. data/lib/measures/scale_geometry/LICENSE.md +1 -1
  121. data/lib/measures/scale_geometry/measure.xml +11 -11
  122. data/lib/measures/set_nist_infiltration_correlations/LICENSE.md +7 -21
  123. data/lib/measures/set_nist_infiltration_correlations/measure.rb +2 -32
  124. data/lib/measures/set_nist_infiltration_correlations/measure.xml +5 -5
  125. data/lib/openstudio/model_articulation/version.rb +1 -1
  126. data/openstudio-model-articulation.gemspec +10 -4
  127. metadata +55 -16
  128. data/lib/measures/SimplifyGeometryToSlicedBar/resources/os_lib_geometry.rb +0 -1174
  129. data/lib/measures/SimplifyGeometryToSlicedBar/resources/os_lib_helper_methods.rb +0 -367
  130. data/lib/measures/create_typical_building_from_model/resources/Model.hvac.rb +0 -608
@@ -1,10 +1,10 @@
1
1
  <?xml version="1.0"?>
2
2
  <measure>
3
- <schema_version>3.0</schema_version>
3
+ <schema_version>3.1</schema_version>
4
4
  <name>create_bar_from_model</name>
5
5
  <uid>87fb0783-7a38-4900-8969-40e744c67814</uid>
6
- <version_id>e85f311a-3484-489c-9ccf-4a79ead0cab9</version_id>
7
- <version_modified>20230602T160046Z</version_modified>
6
+ <version_id>8dd3e173-1aa6-40e7-a97e-0c1acd10f3b2</version_id>
7
+ <version_modified>2024-11-16T23:56:37Z</version_modified>
8
8
  <xml_checksum>2AF3A68E</xml_checksum>
9
9
  <class_name>CreateBarFromModel</class_name>
10
10
  <display_name>Create Bar From Model</display_name>
@@ -84,6 +84,41 @@
84
84
  </attribute>
85
85
  </attributes>
86
86
  <files>
87
+ <file>
88
+ <filename>LICENSE.md</filename>
89
+ <filetype>md</filetype>
90
+ <usage_type>license</usage_type>
91
+ <checksum>8696A072</checksum>
92
+ </file>
93
+ <file>
94
+ <filename>README.md</filename>
95
+ <filetype>md</filetype>
96
+ <usage_type>readme</usage_type>
97
+ <checksum>5E470ADB</checksum>
98
+ </file>
99
+ <file>
100
+ <filename>README.md.erb</filename>
101
+ <filetype>erb</filetype>
102
+ <usage_type>readmeerb</usage_type>
103
+ <checksum>703C9964</checksum>
104
+ </file>
105
+ <file>
106
+ <version>
107
+ <software_program>OpenStudio</software_program>
108
+ <identifier>2.0.0</identifier>
109
+ <min_compatible>3.8.0</min_compatible>
110
+ </version>
111
+ <filename>measure.rb</filename>
112
+ <filetype>rb</filetype>
113
+ <usage_type>script</usage_type>
114
+ <checksum>87BC1C23</checksum>
115
+ </file>
116
+ <file>
117
+ <filename>create_bar_from_model_test.rb</filename>
118
+ <filetype>rb</filetype>
119
+ <usage_type>test</usage_type>
120
+ <checksum>7344F69A</checksum>
121
+ </file>
87
122
  <file>
88
123
  <filename>example_model.osm</filename>
89
124
  <filetype>osm</filetype>
@@ -114,12 +149,6 @@
114
149
  <usage_type>test</usage_type>
115
150
  <checksum>CD0671DC</checksum>
116
151
  </file>
117
- <file>
118
- <filename>sliver_start.osm</filename>
119
- <filetype>osm</filetype>
120
- <usage_type>test</usage_type>
121
- <checksum>9D5BDAC4</checksum>
122
- </file>
123
152
  <file>
124
153
  <filename>sliver_multiplier.osm</filename>
125
154
  <filetype>osm</filetype>
@@ -127,39 +156,10 @@
127
156
  <checksum>FF077DA0</checksum>
128
157
  </file>
129
158
  <file>
130
- <filename>README.md</filename>
131
- <filetype>md</filetype>
132
- <usage_type>readme</usage_type>
133
- <checksum>5E470ADB</checksum>
134
- </file>
135
- <file>
136
- <filename>README.md.erb</filename>
137
- <filetype>erb</filetype>
138
- <usage_type>readmeerb</usage_type>
139
- <checksum>703C9964</checksum>
140
- </file>
141
- <file>
142
- <filename>LICENSE.md</filename>
143
- <filetype>md</filetype>
144
- <usage_type>license</usage_type>
145
- <checksum>BFFB1AA6</checksum>
146
- </file>
147
- <file>
148
- <version>
149
- <software_program>OpenStudio</software_program>
150
- <identifier>2.0.0</identifier>
151
- <min_compatible>3.0.0</min_compatible>
152
- </version>
153
- <filename>measure.rb</filename>
154
- <filetype>rb</filetype>
155
- <usage_type>script</usage_type>
156
- <checksum>27B22ECF</checksum>
157
- </file>
158
- <file>
159
- <filename>create_bar_from_model_test.rb</filename>
160
- <filetype>rb</filetype>
159
+ <filename>sliver_start.osm</filename>
160
+ <filetype>osm</filetype>
161
161
  <usage_type>test</usage_type>
162
- <checksum>7344F69A</checksum>
162
+ <checksum>9D5BDAC4</checksum>
163
163
  </file>
164
164
  </files>
165
165
  </measure>
@@ -1,4 +1,4 @@
1
- OpenStudio(R), Copyright (c) 2008, 2023 Alliance for Sustainable Energy, LLC.
1
+ OpenStudio(R), Copyright (c) 2008, 2024 Alliance for Sustainable Energy, LLC.
2
2
 
3
3
  Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
4
4
 
@@ -306,7 +306,7 @@ ___
306
306
  **Required:** true,
307
307
  **Model Dependent:** false
308
308
 
309
- **Choice Display Names** ["DOE Ref Pre-1980", "DOE Ref 1980-2004", "90.1-2004", "90.1-2007", "90.1-2010", "90.1-2013", "90.1-2016", "90.1-2019", "ComStock DOE Ref Pre-1980", "ComStock DOE Ref 1980-2004", "ComStock 90.1-2004", "ComStock 90.1-2007", "ComStock 90.1-2010", "ComStock 90.1-2013", "ComStock 90.1-2016", "ComStock 90.1-2019", "NREL ZNE Ready 2017", "DEER Pre-1975", "DEER 1985", "DEER 1996", "DEER 2003", "DEER 2007", "DEER 2011", "DEER 2014", "DEER 2015", "DEER 2017", "DEER 2020", "DEER 2025", "DEER 2030", "DEER 2035", "DEER 2040", "DEER 2045", "DEER 2050", "DEER 2055", "DEER 2060", "DEER 2065", "DEER 2070", "DEER 2075"]
309
+ **Choice Display Names** ["DOE Ref Pre-1980", "DOE Ref 1980-2004", "90.1-2004", "90.1-2007", "90.1-2010", "90.1-2013", "90.1-2016", "90.1-2019", "ComStock DOE Ref Pre-1980", "ComStock DOE Ref 1980-2004", "ComStock 90.1-2004", "ComStock 90.1-2007", "ComStock 90.1-2010", "ComStock 90.1-2013", "ComStock 90.1-2016", "ComStock 90.1-2019", "NREL ZNE Ready 2017", "DEER Pre-1975", "DEER 1985", "DEER 1996", "DEER 2003", "DEER 2007", "DEER 2011", "DEER 2014", "DEER 2015", "DEER 2017", "DEER 2020", "DEER 2025", "DEER 2030", "DEER 2035", "DEER 2040", "DEER 2045", "DEER 2050", "DEER 2055", "DEER 2060", "DEER 2065", "DEER 2070", "DEER 2075", "ComStock DEER Pre-1975", "ComStock DEER 1985", "ComStock DEER 1996", "ComStock DEER 2003", "ComStock DEER 2007", "ComStock DEER 2011", "ComStock DEER 2014", "ComStock DEER 2015", "ComStock DEER 2017", "ComStock DEER 2020"]
310
310
 
311
311
 
312
312
  ### Space Type Ratios String
@@ -14,20 +14,8 @@
14
14
 
15
15
  require 'openstudio-standards'
16
16
 
17
- # load OpenStudio measure libraries from openstudio-extension gem
18
- require 'openstudio-extension'
19
- require 'openstudio/extension/core/os_lib_helper_methods'
20
- require 'openstudio/extension/core/os_lib_geometry'
21
- require 'openstudio/extension/core/os_lib_model_generation'
22
- require 'openstudio/extension/core/os_lib_model_simplification'
23
-
24
17
  # start the measure
25
18
  class CreateBarFromSpaceTypeRatios < OpenStudio::Measure::ModelMeasure
26
- # resource file modules
27
- include OsLib_HelperMethods
28
- include OsLib_Geometry
29
- include OsLib_ModelGeneration
30
- include OsLib_ModelSimplification
31
19
 
32
20
  # define the name that a user will see, this method may be deprecated as
33
21
  # the display name in PAT comes from the name field in measure.xml
@@ -50,11 +38,81 @@ class CreateBarFromSpaceTypeRatios < OpenStudio::Measure::ModelMeasure
50
38
  return 'Envelope.Form'
51
39
  end
52
40
 
41
+ # remove existing non resource objects from the model
42
+ # technically thermostats and building stories are resources but still want to remove them.
43
+ def remove_non_resource_objects(runner, model, options = nil)
44
+ if options.nil?
45
+ options = {}
46
+ options[:remove_building_stories] = true
47
+ options[:remove_thermostats] = true
48
+ options[:remove_air_loops] = true
49
+ options[:remove_non_swh_plant_loops] = true
50
+
51
+ # leave these in by default unless requsted when method called
52
+ options[:remove_swh_plant_loops] = false
53
+ options[:remove_exterior_lights] = false
54
+ options[:remove_site_shading] = false
55
+ end
56
+
57
+ num_model_objects = model.objects.size
58
+
59
+ # remove non-resource objects not removed by removing the building
60
+ if options[:remove_building_stories] then model.getBuildingStorys.each(&:remove) end
61
+ if options[:remove_thermostats] then model.getThermostats.each(&:remove) end
62
+ if options[:remove_air_loops] then model.getAirLoopHVACs.each(&:remove) end
63
+ if options[:remove_exterior_lights] then model.getFacility.exteriorLights.each(&:remove) end
64
+ if options[:remove_site_shading] then model.getSite.shadingSurfaceGroups.each(&:remove) end
65
+
66
+ # see if plant loop is swh or not and take proper action (booter loop doesn't have water use equipment)
67
+ model.getPlantLoops.each do |plant_loop|
68
+ is_swh_loop = false
69
+ plant_loop.supplyComponents.each do |component|
70
+ if component.to_WaterHeaterMixed.is_initialized
71
+ is_swh_loop = true
72
+ next
73
+ end
74
+ end
75
+
76
+ if is_swh_loop
77
+ if options[:remove_swh_plant_loops] then plant_loop.remove end
78
+ else
79
+ if options[:remove_non_swh_plant_loops] then plant_loop.remove end
80
+ end
81
+ end
82
+
83
+ # remove water use connections (may be removed when loop is removed)
84
+ if options[:remove_swh_plant_loops] then model.getWaterConnectionss.each(&:remove) end
85
+ if options[:remove_swh_plant_loops] then model.getWaterUseEquipments.each(&:remove) end
86
+
87
+ # remove building but reset fields on new building object.
88
+ building_fields = []
89
+ building = model.getBuilding
90
+ num_fields = building.numFields
91
+ num_fields.times.each do |i|
92
+ building_fields << building.getString(i).get
93
+ end
94
+ # removes spaces, space's child objects, thermal zones, zone equipment, non site surfaces, building stories and water use connections.
95
+ model.getBuilding.remove
96
+ building = model.getBuilding
97
+ num_fields.times.each do |i|
98
+ next if i == 0 # don't try and set handle
99
+ building_fields << building.setString(i, building_fields[i])
100
+ end
101
+
102
+ # other than optionally site shading and exterior lights not messing with site characteristics
103
+
104
+ if num_model_objects - model.objects.size > 0
105
+ runner.registerInfo("Removed #{num_model_objects - model.objects.size} non resource objects from the model.")
106
+ end
107
+
108
+ return true
109
+ end
110
+
53
111
  def arguments(model)
54
112
  args = OpenStudio::Measure::OSArgumentVector.new
55
113
 
56
114
  # Make argument for template
57
- template = OpenStudio::Measure::OSArgument.makeChoiceArgument('template', get_templates(true), true) # setting up measure to list all templates, but space types in string should all come from one
115
+ template = OpenStudio::Measure::OSArgument.makeChoiceArgument('template', OpenstudioStandards::CreateTypical.get_templates(true), true) # setting up measure to list all templates, but space types in string should all come from one
58
116
  template.setDisplayName('Target Standard')
59
117
  template.setDefaultValue('90.1-2004')
60
118
  args << template
@@ -121,6 +179,7 @@ class CreateBarFromSpaceTypeRatios < OpenStudio::Measure::ModelMeasure
121
179
  ns_to_ew_ratio.setDisplayName('Ratio of North/South Facade Length Relative to East/West Facade Length')
122
180
  ns_to_ew_ratio.setDescription('Selecting an aspect ratio of 0 will trigger a smart building type default. Aspect ratios less than one are not recommended for sliced bar geometry, instead rotate building and use a greater than 1 aspect ratio.')
123
181
  ns_to_ew_ratio.setDefaultValue(0.0)
182
+ ns_to_ew_ratio.setMinValue(0.0)
124
183
  args << ns_to_ew_ratio
125
184
 
126
185
  # Make argument for perim_mult
@@ -270,8 +329,29 @@ class CreateBarFromSpaceTypeRatios < OpenStudio::Measure::ModelMeasure
270
329
  def run(model, runner, user_arguments)
271
330
  super(model, runner, user_arguments)
272
331
 
332
+ # assign the user inputs to variables
333
+ args = runner.getArgumentValues(arguments(model), user_arguments)
334
+ args = Hash[args.collect{ |k, v| [k.to_sym, v] }]
335
+ if !args then return false end
336
+
337
+ # todo - need to make use of this before pass to standards
338
+ use_upstream_args = args['use_upstream_args']
339
+
340
+ # open channel to log messages
341
+ reset_log
342
+
343
+ # Turn debugging output on/off
344
+ debug = false
345
+
346
+ # remove_non_resource_objects (this was not moved to standards, so added method in measure for now)
347
+ remove_non_resource_objects(runner, model)
348
+
273
349
  # method run from os_lib_model_generation.rb
274
- result = bar_from_space_type_ratios(model, runner, user_arguments)
350
+ result = OpenstudioStandards::Geometry.create_bar_from_space_type_ratios(model, args)
351
+
352
+ # gather log
353
+ log_messages_to_runner(runner, debug)
354
+ reset_log
275
355
 
276
356
  if result == false
277
357
  return false
@@ -1,10 +1,10 @@
1
1
  <?xml version="1.0"?>
2
2
  <measure>
3
- <schema_version>3.0</schema_version>
3
+ <schema_version>3.1</schema_version>
4
4
  <name>create_bar_from_space_type_ratios</name>
5
5
  <uid>3e988765-9673-46f8-9b65-99d5b86c2b22</uid>
6
- <version_id>6fb5acb9-3669-4eca-ad02-cc1eacd619c5</version_id>
7
- <version_modified>20230602T160047Z</version_modified>
6
+ <version_id>3220d2d2-1d1b-465c-92ba-bd0fa5ea83d8</version_id>
7
+ <version_modified>2024-11-16T23:56:38Z</version_modified>
8
8
  <xml_checksum>49BEF039</xml_checksum>
9
9
  <class_name>CreateBarFromSpaceTypeRatios</class_name>
10
10
  <display_name>Create Bar From Space Type Ratios</display_name>
@@ -171,6 +171,46 @@
171
171
  <value>DEER 2075</value>
172
172
  <display_name>DEER 2075</display_name>
173
173
  </choice>
174
+ <choice>
175
+ <value>ComStock DEER Pre-1975</value>
176
+ <display_name>ComStock DEER Pre-1975</display_name>
177
+ </choice>
178
+ <choice>
179
+ <value>ComStock DEER 1985</value>
180
+ <display_name>ComStock DEER 1985</display_name>
181
+ </choice>
182
+ <choice>
183
+ <value>ComStock DEER 1996</value>
184
+ <display_name>ComStock DEER 1996</display_name>
185
+ </choice>
186
+ <choice>
187
+ <value>ComStock DEER 2003</value>
188
+ <display_name>ComStock DEER 2003</display_name>
189
+ </choice>
190
+ <choice>
191
+ <value>ComStock DEER 2007</value>
192
+ <display_name>ComStock DEER 2007</display_name>
193
+ </choice>
194
+ <choice>
195
+ <value>ComStock DEER 2011</value>
196
+ <display_name>ComStock DEER 2011</display_name>
197
+ </choice>
198
+ <choice>
199
+ <value>ComStock DEER 2014</value>
200
+ <display_name>ComStock DEER 2014</display_name>
201
+ </choice>
202
+ <choice>
203
+ <value>ComStock DEER 2015</value>
204
+ <display_name>ComStock DEER 2015</display_name>
205
+ </choice>
206
+ <choice>
207
+ <value>ComStock DEER 2017</value>
208
+ <display_name>ComStock DEER 2017</display_name>
209
+ </choice>
210
+ <choice>
211
+ <value>ComStock DEER 2020</value>
212
+ <display_name>ComStock DEER 2020</display_name>
213
+ </choice>
174
214
  </choices>
175
215
  </argument>
176
216
  <argument>
@@ -264,6 +304,7 @@
264
304
  <required>true</required>
265
305
  <model_dependent>false</model_dependent>
266
306
  <default_value>0</default_value>
307
+ <min_value>0.000000</min_value>
267
308
  </argument>
268
309
  <argument>
269
310
  <name>perim_mult</name>
@@ -531,16 +572,28 @@
531
572
  </attributes>
532
573
  <files>
533
574
  <file>
534
- <filename>basement.png</filename>
535
- <filetype>png</filetype>
536
- <usage_type>doc</usage_type>
537
- <checksum>6436A0E2</checksum>
575
+ <filename>LICENSE.md</filename>
576
+ <filetype>md</filetype>
577
+ <usage_type>license</usage_type>
578
+ <checksum>8696A072</checksum>
538
579
  </file>
539
580
  <file>
540
- <filename>custom_height_false.png</filename>
581
+ <filename>README.md</filename>
582
+ <filetype>md</filetype>
583
+ <usage_type>readme</usage_type>
584
+ <checksum>6BF1D1B6</checksum>
585
+ </file>
586
+ <file>
587
+ <filename>README.md.erb</filename>
588
+ <filetype>erb</filetype>
589
+ <usage_type>readmeerb</usage_type>
590
+ <checksum>0BC848FD</checksum>
591
+ </file>
592
+ <file>
593
+ <filename>ar_05.png</filename>
541
594
  <filetype>png</filetype>
542
595
  <usage_type>doc</usage_type>
543
- <checksum>0684A3AD</checksum>
596
+ <checksum>A86ECE4C</checksum>
544
597
  </file>
545
598
  <file>
546
599
  <filename>ar_1.png</filename>
@@ -549,64 +602,64 @@
549
602
  <checksum>F5818F2F</checksum>
550
603
  </file>
551
604
  <file>
552
- <filename>sep_3.png</filename>
605
+ <filename>ar_2.png</filename>
553
606
  <filetype>png</filetype>
554
607
  <usage_type>doc</usage_type>
555
- <checksum>4DE3ED94</checksum>
608
+ <checksum>1CAF9C96</checksum>
556
609
  </file>
557
610
  <file>
558
- <filename>custom_height_true.png</filename>
611
+ <filename>bar_double_loaded.png</filename>
559
612
  <filetype>png</filetype>
560
613
  <usage_type>doc</usage_type>
561
- <checksum>37DBC088</checksum>
614
+ <checksum>29AECFF4</checksum>
562
615
  </file>
563
616
  <file>
564
- <filename>ar_2.png</filename>
617
+ <filename>bar_single_core_perim.png</filename>
565
618
  <filetype>png</filetype>
566
619
  <usage_type>doc</usage_type>
567
- <checksum>1CAF9C96</checksum>
620
+ <checksum>D1ED9343</checksum>
568
621
  </file>
569
622
  <file>
570
- <filename>wwr_custom.png</filename>
623
+ <filename>bar_sliced_indiv.png</filename>
571
624
  <filetype>png</filetype>
572
625
  <usage_type>doc</usage_type>
573
- <checksum>D1E7B644</checksum>
626
+ <checksum>B737F7E5</checksum>
574
627
  </file>
575
628
  <file>
576
- <filename>perim_mult_2010.png</filename>
629
+ <filename>bar_sliced_simple.png</filename>
577
630
  <filetype>png</filetype>
578
631
  <usage_type>doc</usage_type>
579
- <checksum>7704044F</checksum>
632
+ <checksum>EF138637</checksum>
580
633
  </file>
581
634
  <file>
582
- <filename>perim_mult_2012.png</filename>
635
+ <filename>basement.png</filename>
583
636
  <filetype>png</filetype>
584
637
  <usage_type>doc</usage_type>
585
- <checksum>8809F075</checksum>
638
+ <checksum>6436A0E2</checksum>
586
639
  </file>
587
640
  <file>
588
- <filename>ar_05.png</filename>
641
+ <filename>custom_height_false.png</filename>
589
642
  <filetype>png</filetype>
590
643
  <usage_type>doc</usage_type>
591
- <checksum>A86ECE4C</checksum>
644
+ <checksum>0684A3AD</checksum>
592
645
  </file>
593
646
  <file>
594
- <filename>party.png</filename>
647
+ <filename>custom_height_true.png</filename>
595
648
  <filetype>png</filetype>
596
649
  <usage_type>doc</usage_type>
597
- <checksum>B70845E6</checksum>
650
+ <checksum>37DBC088</checksum>
598
651
  </file>
599
652
  <file>
600
- <filename>bar_sliced_simple.png</filename>
653
+ <filename>no_party_mult.png</filename>
601
654
  <filetype>png</filetype>
602
655
  <usage_type>doc</usage_type>
603
- <checksum>EF138637</checksum>
656
+ <checksum>E68AC690</checksum>
604
657
  </file>
605
658
  <file>
606
- <filename>bar_single_core_perim.png</filename>
659
+ <filename>party.png</filename>
607
660
  <filetype>png</filetype>
608
661
  <usage_type>doc</usage_type>
609
- <checksum>D1ED9343</checksum>
662
+ <checksum>B70845E6</checksum>
610
663
  </file>
611
664
  <file>
612
665
  <filename>party_multi.png</filename>
@@ -615,40 +668,40 @@
615
668
  <checksum>1CA071B4</checksum>
616
669
  </file>
617
670
  <file>
618
- <filename>sep_05.png</filename>
671
+ <filename>perim_mult_2010.png</filename>
619
672
  <filetype>png</filetype>
620
673
  <usage_type>doc</usage_type>
621
- <checksum>86E7AC6E</checksum>
674
+ <checksum>7704044F</checksum>
622
675
  </file>
623
676
  <file>
624
- <filename>sep_10.png</filename>
677
+ <filename>perim_mult_2012.png</filename>
625
678
  <filetype>png</filetype>
626
679
  <usage_type>doc</usage_type>
627
- <checksum>91062F24</checksum>
680
+ <checksum>8809F075</checksum>
628
681
  </file>
629
682
  <file>
630
- <filename>bar_sliced_indiv.png</filename>
683
+ <filename>perim_mult_2020.png</filename>
631
684
  <filetype>png</filetype>
632
685
  <usage_type>doc</usage_type>
633
- <checksum>B737F7E5</checksum>
686
+ <checksum>0925C42D</checksum>
634
687
  </file>
635
688
  <file>
636
- <filename>no_party_mult.png</filename>
689
+ <filename>sep_05.png</filename>
637
690
  <filetype>png</filetype>
638
691
  <usage_type>doc</usage_type>
639
- <checksum>E68AC690</checksum>
692
+ <checksum>86E7AC6E</checksum>
640
693
  </file>
641
694
  <file>
642
- <filename>bar_double_loaded.png</filename>
695
+ <filename>sep_10.png</filename>
643
696
  <filetype>png</filetype>
644
697
  <usage_type>doc</usage_type>
645
- <checksum>29AECFF4</checksum>
698
+ <checksum>91062F24</checksum>
646
699
  </file>
647
700
  <file>
648
- <filename>perim_mult_2020.png</filename>
701
+ <filename>sep_3.png</filename>
649
702
  <filetype>png</filetype>
650
703
  <usage_type>doc</usage_type>
651
- <checksum>0925C42D</checksum>
704
+ <checksum>4DE3ED94</checksum>
652
705
  </file>
653
706
  <file>
654
707
  <filename>story_sort.png</filename>
@@ -657,39 +710,27 @@
657
710
  <checksum>A64E1184</checksum>
658
711
  </file>
659
712
  <file>
660
- <filename>README.md.erb</filename>
661
- <filetype>erb</filetype>
662
- <usage_type>readmeerb</usage_type>
663
- <checksum>0BC848FD</checksum>
664
- </file>
665
- <file>
666
- <filename>LICENSE.md</filename>
667
- <filetype>md</filetype>
668
- <usage_type>license</usage_type>
669
- <checksum>BFFB1AA6</checksum>
670
- </file>
671
- <file>
672
- <filename>create_bar_from_space_type_ratios_test.rb</filename>
673
- <filetype>rb</filetype>
674
- <usage_type>test</usage_type>
675
- <checksum>0A68D7F4</checksum>
713
+ <filename>wwr_custom.png</filename>
714
+ <filetype>png</filetype>
715
+ <usage_type>doc</usage_type>
716
+ <checksum>D1E7B644</checksum>
676
717
  </file>
677
718
  <file>
678
719
  <version>
679
720
  <software_program>OpenStudio</software_program>
680
721
  <identifier>2.0.0</identifier>
681
- <min_compatible>2.8.0</min_compatible>
722
+ <min_compatible>3.8.0</min_compatible>
682
723
  </version>
683
724
  <filename>measure.rb</filename>
684
725
  <filetype>rb</filetype>
685
726
  <usage_type>script</usage_type>
686
- <checksum>50E9C4CF</checksum>
727
+ <checksum>57CFCE32</checksum>
687
728
  </file>
688
729
  <file>
689
- <filename>README.md</filename>
690
- <filetype>md</filetype>
691
- <usage_type>readme</usage_type>
692
- <checksum>2D2741A8</checksum>
730
+ <filename>create_bar_from_space_type_ratios_test.rb</filename>
731
+ <filetype>rb</filetype>
732
+ <usage_type>test</usage_type>
733
+ <checksum>0A68D7F4</checksum>
693
734
  </file>
694
735
  </files>
695
736
  </measure>
@@ -1,4 +1,4 @@
1
- OpenStudio(R), Copyright (c) 2008, 2023 Alliance for Sustainable Energy, LLC.
1
+ OpenStudio(R), Copyright (c) 2008, 2024 Alliance for Sustainable Energy, LLC.
2
2
 
3
3
  Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
4
4
 
@@ -1,10 +1,10 @@
1
1
  <?xml version="1.0"?>
2
2
  <measure>
3
- <schema_version>3.0</schema_version>
3
+ <schema_version>3.1</schema_version>
4
4
  <name>create_baseline_building</name>
5
5
  <uid>4de56e21-b6cd-45d9-8466-862507d228b2</uid>
6
- <version_id>0dccce6b-f4a7-4c52-ae85-647de50fcd21</version_id>
7
- <version_modified>20230602T160041Z</version_modified>
6
+ <version_id>fff85669-8136-4b9c-9c2d-459678c195af</version_id>
7
+ <version_modified>2024-11-16T23:56:33Z</version_modified>
8
8
  <xml_checksum>A514F332</xml_checksum>
9
9
  <class_name>CreateBaselineBuilding</class_name>
10
10
  <display_name>Create Baseline Building</display_name>
@@ -230,28 +230,10 @@
230
230
  </attributes>
231
231
  <files>
232
232
  <file>
233
- <filename>SmallOffice-90.1-2007-ASHRAE 169-2006-2A.osm</filename>
234
- <filetype>osm</filetype>
235
- <usage_type>test</usage_type>
236
- <checksum>6BED784B</checksum>
237
- </file>
238
- <file>
239
- <filename>SecondarySchool-DOE Ref Pre-1980-ASHRAE 169-2006-2A.osm</filename>
240
- <filetype>osm</filetype>
241
- <usage_type>test</usage_type>
242
- <checksum>F8619A70</checksum>
243
- </file>
244
- <file>
245
- <filename>USA_TX_Houston-Bush.Intercontinental.AP.722430_TMY3.epw</filename>
246
- <filetype>epw</filetype>
247
- <usage_type>test</usage_type>
248
- <checksum>EE565FCC</checksum>
249
- </file>
250
- <file>
251
- <filename>README.md.erb</filename>
252
- <filetype>erb</filetype>
253
- <usage_type>readmeerb</usage_type>
254
- <checksum>703C9964</checksum>
233
+ <filename>LICENSE.md</filename>
234
+ <filetype>md</filetype>
235
+ <usage_type>license</usage_type>
236
+ <checksum>8696A072</checksum>
255
237
  </file>
256
238
  <file>
257
239
  <filename>README.md</filename>
@@ -260,16 +242,10 @@
260
242
  <checksum>8214DE01</checksum>
261
243
  </file>
262
244
  <file>
263
- <filename>LICENSE.md</filename>
264
- <filetype>md</filetype>
265
- <usage_type>license</usage_type>
266
- <checksum>BFFB1AA6</checksum>
267
- </file>
268
- <file>
269
- <filename>create_baseline_building_test.rb</filename>
270
- <filetype>rb</filetype>
271
- <usage_type>test</usage_type>
272
- <checksum>8731D1E6</checksum>
245
+ <filename>README.md.erb</filename>
246
+ <filetype>erb</filetype>
247
+ <usage_type>readmeerb</usage_type>
248
+ <checksum>703C9964</checksum>
273
249
  </file>
274
250
  <file>
275
251
  <version>
@@ -282,5 +258,29 @@
282
258
  <usage_type>script</usage_type>
283
259
  <checksum>E531AD7F</checksum>
284
260
  </file>
261
+ <file>
262
+ <filename>SecondarySchool-DOE Ref Pre-1980-ASHRAE 169-2006-2A.osm</filename>
263
+ <filetype>osm</filetype>
264
+ <usage_type>test</usage_type>
265
+ <checksum>F8619A70</checksum>
266
+ </file>
267
+ <file>
268
+ <filename>SmallOffice-90.1-2007-ASHRAE 169-2006-2A.osm</filename>
269
+ <filetype>osm</filetype>
270
+ <usage_type>test</usage_type>
271
+ <checksum>6BED784B</checksum>
272
+ </file>
273
+ <file>
274
+ <filename>USA_TX_Houston-Bush.Intercontinental.AP.722430_TMY3.epw</filename>
275
+ <filetype>epw</filetype>
276
+ <usage_type>test</usage_type>
277
+ <checksum>EE565FCC</checksum>
278
+ </file>
279
+ <file>
280
+ <filename>create_baseline_building_test.rb</filename>
281
+ <filetype>rb</filetype>
282
+ <usage_type>test</usage_type>
283
+ <checksum>8731D1E6</checksum>
284
+ </file>
285
285
  </files>
286
286
  </measure>