openstudio-common-measures 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 (241) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/test_with_openstudio.yml +2 -2
  3. data/CHANGELOG.md +17 -0
  4. data/Gemfile +10 -5
  5. data/Jenkinsfile +1 -1
  6. data/LICENSE.md +1 -1
  7. data/README.md +2 -0
  8. data/doc_templates/LICENSE.md +1 -1
  9. data/lib/measures/.rubocop.yml +6 -0
  10. data/lib/measures/AddCostPerAreaToConstruction/LICENSE.md +1 -1
  11. data/lib/measures/AddCostPerAreaToConstruction/measure.xml +21 -21
  12. data/lib/measures/AddCostPerFloorAreaToBuilding/LICENSE.md +1 -1
  13. data/lib/measures/AddCostPerFloorAreaToBuilding/measure.xml +25 -25
  14. data/lib/measures/AddCostPerFloorAreaToElectricEquipment/LICENSE.md +1 -1
  15. data/lib/measures/AddCostPerFloorAreaToElectricEquipment/measure.xml +21 -21
  16. data/lib/measures/AddCostPerFloorAreaToLights/LICENSE.md +1 -1
  17. data/lib/measures/AddCostPerFloorAreaToLights/measure.xml +21 -21
  18. data/lib/measures/AddCostPerFloorAreaUnusedToLights/LICENSE.md +1 -1
  19. data/lib/measures/AddCostPerFloorAreaUnusedToLights/measure.xml +21 -21
  20. data/lib/measures/AddCostToSupplySideHVACComponentByAirLoop/LICENSE.md +1 -1
  21. data/lib/measures/AddCostToSupplySideHVACComponentByAirLoop/measure.xml +24 -24
  22. data/lib/measures/AddCostperAreatoUnusedConstruction/LICENSE.md +1 -1
  23. data/lib/measures/AddCostperAreatoUnusedConstruction/measure.xml +21 -21
  24. data/lib/measures/AddExteriorLights/LICENSE.md +1 -1
  25. data/lib/measures/AddExteriorLights/measure.xml +19 -19
  26. data/lib/measures/AddMeter/LICENSE.md +1 -1
  27. data/lib/measures/AddMeter/measure.xml +15 -15
  28. data/lib/measures/AddOutputDiagnostics/LICENSE.md +1 -1
  29. data/lib/measures/AddOutputDiagnostics/measure.rb +1 -1
  30. data/lib/measures/AddOutputDiagnostics/measure.xml +18 -18
  31. data/lib/measures/AddOutputVariable/LICENSE.md +1 -1
  32. data/lib/measures/AddOutputVariable/measure.xml +15 -15
  33. data/lib/measures/AddSimplePvToShadingSurfacesByType/LICENSE.md +1 -1
  34. data/lib/measures/AddSimplePvToShadingSurfacesByType/measure.xml +24 -24
  35. data/lib/measures/AddThermalComfortModelTypes/LICENSE.md +1 -1
  36. data/lib/measures/AddThermalComfortModelTypes/measure.xml +21 -21
  37. data/lib/measures/AdjustSystemEfficiencies/LICENSE.md +1 -1
  38. data/lib/measures/AdjustSystemEfficiencies/measure.xml +12 -12
  39. data/lib/measures/AdjustThermostatSetpointsByDegrees/LICENSE.md +1 -1
  40. data/lib/measures/AdjustThermostatSetpointsByDegrees/measure.xml +23 -23
  41. data/lib/measures/ChangeBuildingLocation/LICENSE.md +1 -1
  42. data/lib/measures/ChangeBuildingLocation/README.md +1 -1
  43. data/lib/measures/ChangeBuildingLocation/measure.rb +8 -13
  44. data/lib/measures/ChangeBuildingLocation/measure.xml +104 -86
  45. data/lib/measures/ChangeBuildingLocation/resources/epw.rb +7 -2
  46. data/lib/measures/EnableIdealAirLoadsForAllZones/LICENSE.md +1 -1
  47. data/lib/measures/EnableIdealAirLoadsForAllZones/measure.xml +22 -22
  48. data/lib/measures/ExportScheduleCSV/LICENSE.md +1 -1
  49. data/lib/measures/ExportScheduleCSV/measure.xml +29 -29
  50. data/lib/measures/ImportEnvelopeAndInternalLoadsFromIdf/LICENSE.md +1 -1
  51. data/lib/measures/ImportEnvelopeAndInternalLoadsFromIdf/measure.xml +29 -29
  52. data/lib/measures/MeterFlodPlot/LICENSE.md +1 -1
  53. data/lib/measures/MeterFlodPlot/measure.xml +35 -35
  54. data/lib/measures/ModifyEnergyPlusCoilCoolingDXSingleSpeedObjects/LICENSE.md +1 -1
  55. data/lib/measures/ModifyEnergyPlusCoilCoolingDXSingleSpeedObjects/measure.xml +24 -24
  56. data/lib/measures/ModifyEnergyPlusFanVariableVolumeObjects/LICENSE.md +1 -1
  57. data/lib/measures/ModifyEnergyPlusFanVariableVolumeObjects/measure.xml +24 -24
  58. data/lib/measures/PredictedMeanVote/LICENSE.md +1 -1
  59. data/lib/measures/PredictedMeanVote/measure.xml +23 -23
  60. data/lib/measures/RemoveInternalLoadsDirectlyAssignedToSpaces/LICENSE.md +1 -1
  61. data/lib/measures/RemoveInternalLoadsDirectlyAssignedToSpaces/measure.xml +21 -21
  62. data/lib/measures/RemoveUnusedDefaultProfiles/LICENSE.md +1 -1
  63. data/lib/measures/RemoveUnusedDefaultProfiles/measure.xml +19 -19
  64. data/lib/measures/ReplaceExteriorWindowConstruction/LICENSE.md +1 -1
  65. data/lib/measures/ReplaceExteriorWindowConstruction/measure.xml +29 -29
  66. data/lib/measures/ReplaceModel/LICENSE.md +1 -1
  67. data/lib/measures/ReplaceModel/README.md +1 -3
  68. data/lib/measures/ReplaceModel/measure.xml +32 -14
  69. data/lib/measures/ReplaceThermostatSchedules/LICENSE.md +1 -1
  70. data/lib/measures/ReplaceThermostatSchedules/measure.xml +17 -17
  71. data/lib/measures/ReportModelChanges/LICENSE.md +1 -1
  72. data/lib/measures/ReportModelChanges/measure.xml +23 -23
  73. data/lib/measures/RunPeriod/LICENSE.md +1 -1
  74. data/lib/measures/RunPeriod/measure.xml +14 -14
  75. data/lib/measures/RunPeriodMultiple/LICENSE.md +1 -1
  76. data/lib/measures/RunPeriodMultiple/measure.xml +12 -12
  77. data/lib/measures/ServerDirectoryCleanup/LICENSE.md +1 -1
  78. data/lib/measures/ServerDirectoryCleanup/README.md +14 -14
  79. data/lib/measures/ServerDirectoryCleanup/measure.rb +22 -18
  80. data/lib/measures/ServerDirectoryCleanup/measure.xml +44 -44
  81. data/lib/measures/SetCOPforSingleSpeedDXCoolingUnits/LICENSE.md +1 -1
  82. data/lib/measures/SetCOPforSingleSpeedDXCoolingUnits/measure.xml +23 -23
  83. data/lib/measures/SetCOPforTwoSpeedDXCoolingUnits/LICENSE.md +1 -1
  84. data/lib/measures/SetCOPforTwoSpeedDXCoolingUnits/measure.xml +23 -23
  85. data/lib/measures/SetEnergyPlusInfiltrationFlowRatePerFloorArea/LICENSE.md +1 -1
  86. data/lib/measures/SetEnergyPlusInfiltrationFlowRatePerFloorArea/measure.xml +24 -24
  87. data/lib/measures/SetEnergyPlusLightObjectsLPD/LICENSE.md +1 -1
  88. data/lib/measures/SetEnergyPlusLightObjectsLPD/measure.xml +24 -24
  89. data/lib/measures/SetEnergyPlusMinimumOutdoorAirFlowRate/LICENSE.md +1 -1
  90. data/lib/measures/SetEnergyPlusMinimumOutdoorAirFlowRate/measure.xml +24 -24
  91. data/lib/measures/SetGasBurnerEfficiency/LICENSE.md +1 -1
  92. data/lib/measures/SetGasBurnerEfficiency/measure.xml +23 -23
  93. data/lib/measures/SetLifecycleCostParameters/LICENSE.md +1 -1
  94. data/lib/measures/SetLifecycleCostParameters/measure.xml +15 -15
  95. data/lib/measures/SetLightingLoadsByLPD/LICENSE.md +1 -1
  96. data/lib/measures/SetLightingLoadsByLPD/measure.xml +35 -35
  97. data/lib/measures/SetSpaceInfiltrationByExteriorSurfaceArea/LICENSE.md +1 -1
  98. data/lib/measures/SetSpaceInfiltrationByExteriorSurfaceArea/measure.xml +25 -25
  99. data/lib/measures/SetThermostatSchedules/LICENSE.md +1 -1
  100. data/lib/measures/SetThermostatSchedules/measure.xml +17 -17
  101. data/lib/measures/ShiftScheduleProfileTime/LICENSE.md +1 -1
  102. data/lib/measures/ShiftScheduleProfileTime/measure.xml +23 -23
  103. data/lib/measures/SwapLightsDefinition/LICENSE.md +1 -1
  104. data/lib/measures/SwapLightsDefinition/measure.xml +25 -25
  105. data/lib/measures/UnmetLoadHoursTroubleshooting/LICENSE.md +1 -1
  106. data/lib/measures/UnmetLoadHoursTroubleshooting/measure.xml +43 -43
  107. data/lib/measures/VentilationQAQC/LICENSE.md +1 -1
  108. data/lib/measures/VentilationQAQC/measure.xml +31 -31
  109. data/lib/measures/XcelEDAReportingandQAQC/LICENSE.md +1 -1
  110. data/lib/measures/XcelEDAReportingandQAQC/measure.xml +4 -4
  111. data/lib/measures/XcelEDATariffSelectionandModelSetup/LICENSE.md +1 -1
  112. data/lib/measures/XcelEDATariffSelectionandModelSetup/measure.xml +73 -73
  113. data/lib/measures/ZoneReport/LICENSE.md +1 -1
  114. data/lib/measures/ZoneReport/measure.xml +35 -35
  115. data/lib/measures/add_ems_emissions_reporting/LICENSE.md +1 -1
  116. data/lib/measures/add_ems_emissions_reporting/measure.rb +0 -2
  117. data/lib/measures/add_ems_emissions_reporting/measure.xml +23 -23
  118. data/lib/measures/add_ems_to_control_ev_charging/LICENSE.md +1 -1
  119. data/lib/measures/add_ems_to_control_ev_charging/measure.rb +0 -2
  120. data/lib/measures/add_ems_to_control_ev_charging/measure.xml +21 -21
  121. data/lib/measures/add_ev_load/LICENSE.md +1 -1
  122. data/lib/measures/add_ev_load/measure.xml +35 -35
  123. data/lib/measures/add_rooftop_pv/LICENSE.md +1 -1
  124. data/lib/measures/add_rooftop_pv/measure.rb +5 -7
  125. data/lib/measures/add_rooftop_pv/measure.xml +25 -25
  126. data/lib/measures/add_zone_mixing_object/LICENSE.md +1 -1
  127. data/lib/measures/add_zone_mixing_object/measure.xml +19 -19
  128. data/lib/measures/add_zone_ventilation_design_flow_rate_object/LICENSE.md +1 -1
  129. data/lib/measures/add_zone_ventilation_design_flow_rate_object/measure.xml +21 -21
  130. data/lib/measures/air_wall_zone_mixing/LICENSE.md +1 -1
  131. data/lib/measures/air_wall_zone_mixing/measure.rb +4 -6
  132. data/lib/measures/air_wall_zone_mixing/measure.xml +27 -27
  133. data/lib/measures/create_csv_output/LICENSE.md +1 -1
  134. data/lib/measures/create_csv_output/measure.xml +28 -28
  135. data/lib/measures/envelope_and_internal_load_breakdown/LICENSE.md +1 -1
  136. data/lib/measures/envelope_and_internal_load_breakdown/measure.rb +0 -4
  137. data/lib/measures/envelope_and_internal_load_breakdown/measure.xml +52 -52
  138. data/lib/measures/envelope_and_internal_load_breakdown/resources/report.html.erb +1 -0
  139. data/lib/measures/example_report/LICENSE.md +1 -1
  140. data/lib/measures/example_report/measure.rb +2 -5
  141. data/lib/measures/example_report/measure.xml +41 -41
  142. data/lib/measures/example_report/resources/report.html.erb +1 -0
  143. data/lib/measures/gem_env_report/LICENSE.md +1 -1
  144. data/lib/measures/gem_env_report/measure.xml +32 -32
  145. data/lib/measures/generic_qaqc/LICENSE.md +1 -1
  146. data/lib/measures/generic_qaqc/README.md +0 -32
  147. data/lib/measures/generic_qaqc/measure.rb +13 -17
  148. data/lib/measures/generic_qaqc/measure.xml +15 -71
  149. data/lib/measures/generic_qaqc/resources/check_air_sys_temps.rb +2 -2
  150. data/lib/measures/generic_qaqc/resources/check_domestic_hot_water.rb +4 -4
  151. data/lib/measures/generic_qaqc/resources/check_envelope_conductance.rb +7 -5
  152. data/lib/measures/generic_qaqc/resources/check_internal_loads.rb +2 -2
  153. data/lib/measures/generic_qaqc/resources/check_mech_sys_type.rb +1 -1
  154. data/lib/measures/generic_qaqc/resources/check_plant_temps.rb +6 -6
  155. data/lib/measures/generic_qaqc/resources/check_schedules.rb +7 -7
  156. data/lib/measures/generic_qaqc/resources/check_supply_air_and_thermostat_temp_difference.rb +5 -2
  157. data/lib/measures/generic_qaqc/resources/report.html.erb +1 -0
  158. data/lib/measures/get_site_from_building_component_library/LICENSE.md +1 -1
  159. data/lib/measures/get_site_from_building_component_library/measure.rb +4 -8
  160. data/lib/measures/get_site_from_building_component_library/measure.xml +28 -28
  161. data/lib/measures/hvac_psychrometric_chart/LICENSE.md +1 -1
  162. data/lib/measures/hvac_psychrometric_chart/measure.xml +29 -29
  163. data/lib/measures/hvac_psychrometric_chart/resources/report.html.erb +1 -0
  164. data/lib/measures/inject_idf_objects/LICENSE.md +1 -1
  165. data/lib/measures/inject_idf_objects/measure.xml +31 -31
  166. data/lib/measures/openstudio_results/LICENSE.md +1 -1
  167. data/lib/measures/openstudio_results/README.md +10 -2
  168. data/lib/measures/openstudio_results/measure.rb +21 -13
  169. data/lib/measures/openstudio_results/measure.xml +404 -357
  170. data/lib/measures/openstudio_results/resources/Siz.AirConditionerVariableRefrigerantFlow.rb +1 -1
  171. data/lib/measures/openstudio_results/resources/Siz.CoilCoolingDXMultiSpeed.rb +10 -0
  172. data/lib/measures/openstudio_results/resources/Siz.CoilCoolingDXMultiSpeedStageData.rb +3 -1
  173. data/lib/measures/openstudio_results/resources/Siz.CoilCoolingDXSingleSpeed.rb +2 -2
  174. data/lib/measures/openstudio_results/resources/Siz.CoilCoolingDXTwoSpeed.rb +4 -3
  175. data/lib/measures/openstudio_results/resources/Siz.CoilCoolingWaterToAirHeatPumpEquationFit.rb +6 -0
  176. data/lib/measures/openstudio_results/resources/Siz.CoilCoolingWaterToAirHeatPumpVariableSpeedEquationFit.rb +10 -0
  177. data/lib/measures/openstudio_results/resources/Siz.CoilHeatingDXMultiSpeed.rb +10 -0
  178. data/lib/measures/openstudio_results/resources/Siz.CoilHeatingDXSingleSpeed.rb +1 -1
  179. data/lib/measures/openstudio_results/resources/Siz.CoilHeatingWaterToAirHeatPumpEquationFit.rb +6 -0
  180. data/lib/measures/openstudio_results/resources/Siz.CoilHeatingWaterToAirHeatPumpVariableSpeedEquationFit.rb +10 -0
  181. data/lib/measures/openstudio_results/resources/Siz.CoilPerformanceDXCooling.rb +1 -1
  182. data/lib/measures/openstudio_results/resources/Siz.FanSystemModel.rb +31 -0
  183. data/lib/measures/openstudio_results/resources/Siz.Model.rb +1 -0
  184. data/lib/measures/openstudio_results/resources/bootstrap.min.css +5 -0
  185. data/lib/measures/openstudio_results/resources/bootstrap.min.js +6 -0
  186. data/lib/measures/openstudio_results/resources/d3.min.js +5 -0
  187. data/lib/measures/openstudio_results/resources/dimple.v2.1.2.min.js +3 -0
  188. data/lib/measures/openstudio_results/resources/jquery.min.js +6 -0
  189. data/lib/measures/openstudio_results/resources/os_lib_reporting.rb +20 -8
  190. data/lib/measures/openstudio_results/resources/report.html.erb +6 -5
  191. data/lib/measures/remove_orphan_objects_and_unused_resources/LICENSE.md +1 -1
  192. data/lib/measures/remove_orphan_objects_and_unused_resources/measure.xml +24 -24
  193. data/lib/measures/set_electric_equipment_loads_by_epd/LICENSE.md +1 -1
  194. data/lib/measures/set_electric_equipment_loads_by_epd/measure.xml +33 -33
  195. data/lib/measures/set_exterior_walls_and_floors_to_adiabatic/LICENSE.md +1 -1
  196. data/lib/measures/set_exterior_walls_and_floors_to_adiabatic/measure.xml +19 -19
  197. data/lib/measures/set_run_period/LICENSE.md +1 -1
  198. data/lib/measures/set_run_period/measure.xml +19 -19
  199. data/lib/measures/set_space_infiltration_per_exterior_area/LICENSE.md +1 -1
  200. data/lib/measures/set_space_infiltration_per_exterior_area/README.md +11 -0
  201. data/lib/measures/set_space_infiltration_per_exterior_area/measure.rb +13 -0
  202. data/lib/measures/set_space_infiltration_per_exterior_area/measure.xml +42 -23
  203. data/lib/measures/shadow_calculation/LICENSE.md +1 -1
  204. data/lib/measures/shadow_calculation/measure.xml +18 -18
  205. data/lib/measures/simulation_control/README.md +120 -0
  206. data/lib/measures/simulation_control/README.md.erb +42 -0
  207. data/lib/measures/simulation_control/measure.rb +169 -0
  208. data/lib/measures/simulation_control/measure.xml +246 -0
  209. data/lib/measures/tariff_selection_block/LICENSE.md +1 -1
  210. data/lib/measures/tariff_selection_block/measure.rb +2 -5
  211. data/lib/measures/tariff_selection_block/measure.xml +25 -25
  212. data/lib/measures/tariff_selection_flat/LICENSE.md +1 -1
  213. data/lib/measures/tariff_selection_flat/measure.rb +3 -5
  214. data/lib/measures/tariff_selection_flat/measure.xml +25 -25
  215. data/lib/measures/tariff_selection_generic/LICENSE.md +1 -1
  216. data/lib/measures/tariff_selection_generic/measure.rb +2 -5
  217. data/lib/measures/tariff_selection_generic/measure.xml +39 -39
  218. data/lib/measures/tariff_selection_time_and_date_dependant/LICENSE.md +1 -1
  219. data/lib/measures/tariff_selection_time_and_date_dependant/measure.rb +19 -15
  220. data/lib/measures/tariff_selection_time_and_date_dependant/measure.xml +37 -25
  221. data/lib/measures/view_data/LICENSE.md +1 -1
  222. data/lib/measures/view_data/README.md +8 -0
  223. data/lib/measures/view_data/measure.rb +32 -7
  224. data/lib/measures/view_data/measure.xml +83 -40
  225. data/lib/measures/view_data/resources/js/TweenLite.2.1.3.min.js +12 -0
  226. data/lib/measures/view_data/resources/js/dat.gui.0.7.9.min.js +13 -0
  227. data/lib/measures/view_data/resources/js/three.orbitcontrols.js +706 -0
  228. data/lib/measures/view_data/resources/js/three.r98.min.js +964 -0
  229. data/lib/measures/view_data/resources/report.html.in +170 -1837
  230. data/lib/measures/view_model/LICENSE.md +1 -1
  231. data/lib/measures/view_model/README.md +7 -1
  232. data/lib/measures/view_model/measure.rb +28 -2
  233. data/lib/measures/view_model/measure.xml +80 -36
  234. data/lib/measures/view_model/resources/js/TweenLite.2.1.3.min.js +12 -0
  235. data/lib/measures/view_model/resources/js/dat.gui.0.7.9.min.js +13 -0
  236. data/lib/measures/view_model/resources/js/three.orbitcontrols.js +706 -0
  237. data/lib/measures/view_model/resources/js/three.r98.min.js +964 -0
  238. data/lib/measures/view_model/resources/report.html.in +168 -1835
  239. data/lib/openstudio/common_measures/version.rb +1 -1
  240. data/openstudio-common-measures.gemspec +10 -4
  241. metadata +76 -15
@@ -0,0 +1,169 @@
1
+ # insert your copyright here
2
+
3
+ # see the URL below for information on how to write OpenStudio measures
4
+ # http://nrel.github.io/OpenStudio-user-documentation/reference/measure_writing_guide/
5
+
6
+ # start the measure
7
+ class SimulationControl < OpenStudio::Measure::ModelMeasure
8
+ # human readable name
9
+ def name
10
+ # Measure name should be the title case of the class name.
11
+ return 'Simulation Control'
12
+ end
13
+
14
+ # human readable description
15
+ def description
16
+ return 'This measures sets the fields of the SimulationControl object.'
17
+ end
18
+
19
+ # human readable description of modeling approach
20
+ def modeler_description
21
+ return ''
22
+ end
23
+
24
+ # define the arguments that the user will input
25
+ def arguments(model)
26
+ args = OpenStudio::Measure::OSArgumentVector.new
27
+
28
+ do_zone_sizing_calculation = OpenStudio::Measure::OSArgument.makeBoolArgument("do_zone_sizing_calculation", false)
29
+ do_zone_sizing_calculation.setDisplayName("Do Zone Sizing Calculation?")
30
+ do_zone_sizing_calculation.setDefaultValue(false)
31
+ args << do_zone_sizing_calculation
32
+
33
+ do_system_sizing_calculation = OpenStudio::Measure::OSArgument.makeBoolArgument("do_system_sizing_calculation", false)
34
+ do_system_sizing_calculation.setDisplayName("Do System Sizing Calculation?")
35
+ do_system_sizing_calculation.setDefaultValue(false)
36
+ args << do_system_sizing_calculation
37
+
38
+ do_plant_sizing_calculation = OpenStudio::Measure::OSArgument.makeBoolArgument("do_plant_sizing_calculation", false)
39
+ do_plant_sizing_calculation.setDisplayName("Do Plant Sizing Calculation?")
40
+ do_plant_sizing_calculation.setDefaultValue(false)
41
+ args << do_plant_sizing_calculation
42
+
43
+ run_simulation_for_sizing_periods = OpenStudio::Measure::OSArgument.makeBoolArgument("run_simulation_for_sizing_periods", false)
44
+ run_simulation_for_sizing_periods.setDisplayName("Run Simulation for Sizing Periods?")
45
+ run_simulation_for_sizing_periods.setDefaultValue(true)
46
+ args << run_simulation_for_sizing_periods
47
+
48
+ run_simulation_for_weather_file_run_periods = OpenStudio::Measure::OSArgument.makeBoolArgument("run_simulation_for_weather_file_run_periods", false)
49
+ run_simulation_for_weather_file_run_periods.setDisplayName("Run Simulation for Weather File Run Periods?")
50
+ run_simulation_for_weather_file_run_periods.setDefaultValue(true)
51
+ args << run_simulation_for_weather_file_run_periods
52
+
53
+ do_hvac_sizing_simulation_for_sizing_periods = OpenStudio::Measure::OSArgument.makeBoolArgument('do_hvac_sizing_simulation_for_sizing_periods', false)
54
+ do_hvac_sizing_simulation_for_sizing_periods.setDisplayName('Do HVAC Sizing Simulation for Sizing Periods?')
55
+ do_hvac_sizing_simulation_for_sizing_periods.setDefaultValue(false)
56
+ args << do_hvac_sizing_simulation_for_sizing_periods
57
+
58
+ maximum_number_of_hvac_sizing_simulation_passes = OpenStudio::Measure::OSArgument.makeIntegerArgument('maximum_number_of_hvac_sizing_simulation_passes', false)
59
+ maximum_number_of_hvac_sizing_simulation_passes.setDisplayName('Maximum Number of HVAC Sizing Simulation Passes')
60
+ maximum_number_of_hvac_sizing_simulation_passes.setDescription('only used if the previous field is set to Yes')
61
+ args << maximum_number_of_hvac_sizing_simulation_passes
62
+
63
+ # the following fields belong to the Building class in EnergyPlus
64
+ loads_convergence_tolerance_value = OpenStudio::Measure::OSArgument.makeDoubleArgument("loads_convergence_tolerance_value", false)
65
+ loads_convergence_tolerance_value.setDisplayName("Loads Convergence Tolerance Value")
66
+ args << loads_convergence_tolerance_value
67
+
68
+ temperature_convergence_tolerance_value = OpenStudio::Measure::OSArgument.makeDoubleArgument("temperature_convergence_tolerance_value", false)
69
+ temperature_convergence_tolerance_value.setDisplayName("Temperature Convergence Tolerance Value")
70
+ args << temperature_convergence_tolerance_value
71
+
72
+ solar_distributions = OpenStudio::StringVector.new
73
+ solar_distributions << "FullExterior"
74
+ solar_distributions << "MinimalShadowing"
75
+ solar_distributions << "FullInteriorAndExterior"
76
+ solar_distributions << "FullExteriorWithReflections"
77
+ solar_distributions << "FullInteriorAndExteriorWithReflections"
78
+ solar_distribution = OpenStudio::Measure::OSArgument.makeChoiceArgument("solar_distribution", solar_distributions, false)
79
+ solar_distribution.setDisplayName("Solar Distribution")
80
+ args << solar_distribution
81
+
82
+ maximum_number_of_warmup_days = OpenStudio::Measure::OSArgument.makeIntegerArgument("maximum_number_of_warmup_days", false)
83
+ maximum_number_of_warmup_days.setDisplayName("Maximum Number of Warmup Days")
84
+ args << maximum_number_of_warmup_days
85
+
86
+ minimum_number_of_warmup_days = OpenStudio::Measure::OSArgument.makeIntegerArgument("minimum_number_of_warmup_days", false)
87
+ minimum_number_of_warmup_days.setDisplayName("Minimum Number of Warmup Days")
88
+ args << minimum_number_of_warmup_days
89
+
90
+ return args
91
+ end
92
+
93
+ # define what happens when the measure is run
94
+ def run(model, runner, user_arguments)
95
+ super(model, runner, user_arguments)
96
+
97
+ # use the built-in error checking
98
+ if !runner.validateUserArguments(arguments(model), user_arguments)
99
+ return false
100
+ end
101
+
102
+ # get object
103
+ simulation_control = model.getSimulationControl
104
+
105
+ # register initial condition
106
+ runner.registerInitialCondition("#{simulation_control}")
107
+
108
+ # get arguments
109
+ do_zone_sizing_calculation = runner.getBoolArgumentValue("do_zone_sizing_calculation", user_arguments)
110
+ do_system_sizing_calculation = runner.getBoolArgumentValue("do_system_sizing_calculation", user_arguments)
111
+ do_plant_sizing_calculation = runner.getBoolArgumentValue("do_plant_sizing_calculation", user_arguments)
112
+ run_simulation_for_sizing_periods = runner.getBoolArgumentValue("run_simulation_for_sizing_periods", user_arguments)
113
+ run_simulation_for_weather_file_run_periods = runner.getBoolArgumentValue("run_simulation_for_weather_file_run_periods", user_arguments)
114
+ do_hvac_sizing_simulation_for_sizing_periods = runner.getBoolArgumentValue('do_hvac_sizing_simulation_for_sizing_periods', user_arguments)
115
+ if runner.getOptionalIntegerArgumentValue('maximum_number_of_hvac_sizing_simulation_passes', user_arguments).is_initialized
116
+ maximum_number_of_hvac_sizing_simulation_passes = runner.getOptionalIntegerArgumentValue('maximum_number_of_hvac_sizing_simulation_passes', user_arguments)
117
+ else
118
+ maximum_number_of_hvac_sizing_simulation_passes = false
119
+ end
120
+ if runner.getOptionalDoubleArgumentValue("loads_convergence_tolerance_value", user_arguments).is_initialized
121
+ loads_convergence_tolerance_value = runner.getOptionalDoubleArgumentValue("loads_convergence_tolerance_value", user_arguments)
122
+ else
123
+ loads_convergence_tolerance_value = false
124
+ end
125
+ if runner.getOptionalDoubleArgumentValue("temperature_convergence_tolerance_value", user_arguments).is_initialized
126
+ temperature_convergence_tolerance_value = runner.getOptionalDoubleArgumentValue("temperature_convergence_tolerance_value", user_arguments)
127
+ else
128
+ temperature_convergence_tolerance_value = false
129
+ end
130
+ if runner.getOptionalStringArgumentValue("solar_distribution", user_arguments).is_initialized
131
+ solar_distribution = runner.getOptionalStringArgumentValue("solar_distribution", user_arguments)
132
+ else
133
+ solar_distribution = false
134
+ end
135
+ if runner.getOptionalIntegerArgumentValue("maximum_number_of_warmup_days", user_arguments).is_initialized
136
+ maximum_number_of_warmup_days = runner.getOptionalIntegerArgumentValue("maximum_number_of_warmup_days", user_arguments)
137
+ else
138
+ maximum_number_of_warmup_days = false
139
+ end
140
+ if runner.getOptionalIntegerArgumentValue("minimum_number_of_warmup_days", user_arguments).is_initialized
141
+ minimum_number_of_warmup_days = runner.getOptionalIntegerArgumentValue("minimum_number_of_warmup_days", user_arguments)
142
+ else
143
+ minimum_number_of_warmup_days = false
144
+ end
145
+
146
+ # set object
147
+ simulation_control.setDoZoneSizingCalculation(do_zone_sizing_calculation)
148
+ simulation_control.setDoSystemSizingCalculation(do_system_sizing_calculation)
149
+ simulation_control.setDoPlantSizingCalculation(do_plant_sizing_calculation)
150
+ simulation_control.setRunSimulationforSizingPeriods(run_simulation_for_sizing_periods)
151
+ simulation_control.setRunSimulationforWeatherFileRunPeriods(run_simulation_for_weather_file_run_periods)
152
+ simulation_control.setDoHVACSizingSimulationforSizingPeriods(do_hvac_sizing_simulation_for_sizing_periods)
153
+ simulation_control.setMaximumNumberofHVACSizingSimulationPasses(maximum_number_of_hvac_sizing_simulation_passes.get) if maximum_number_of_hvac_sizing_simulation_passes
154
+ simulation_control.setLoadsConvergenceToleranceValue(loads_convergence_tolerance_value.get) if loads_convergence_tolerance_value
155
+ simulation_control.setTemperatureConvergenceToleranceValue(temperature_convergence_tolerance_value.get) if temperature_convergence_tolerance_value
156
+ simulation_control.setSolarDistribution(solar_distribution.get) if solar_distribution
157
+ simulation_control.setMaximumNumberofWarmupDays(maximum_number_of_warmup_days.get) if maximum_number_of_warmup_days
158
+ simulation_control.setMinimumNumberofWarmupDays(minimum_number_of_warmup_days.get) if minimum_number_of_warmup_days
159
+
160
+ # register final condition
161
+ runner.registerFinalCondition("#{simulation_control}")
162
+
163
+ return true
164
+ end
165
+
166
+ end
167
+
168
+ # register the measure to be used by the application
169
+ SimulationControl.new.registerWithApplication
@@ -0,0 +1,246 @@
1
+ <?xml version="1.0"?>
2
+ <measure>
3
+ <schema_version>3.1</schema_version>
4
+ <name>simulation_control</name>
5
+ <uid>f0f3eeb6-f23b-4ba9-b0c0-7e680f6f2552</uid>
6
+ <version_id>0d83ee42-cf04-466e-befc-e9b57bf3d36c</version_id>
7
+ <version_modified>20230803T185106Z</version_modified>
8
+ <xml_checksum>D8922A73</xml_checksum>
9
+ <class_name>SimulationControl</class_name>
10
+ <display_name>Simulation Control</display_name>
11
+ <description>This measures sets the fields of the SimulationControl object.</description>
12
+ <modeler_description></modeler_description>
13
+ <arguments>
14
+ <argument>
15
+ <name>do_zone_sizing_calculation</name>
16
+ <display_name>Do Zone Sizing Calculation?</display_name>
17
+ <type>Boolean</type>
18
+ <required>false</required>
19
+ <model_dependent>false</model_dependent>
20
+ <default_value>false</default_value>
21
+ <choices>
22
+ <choice>
23
+ <value>true</value>
24
+ <display_name>true</display_name>
25
+ </choice>
26
+ <choice>
27
+ <value>false</value>
28
+ <display_name>false</display_name>
29
+ </choice>
30
+ </choices>
31
+ </argument>
32
+ <argument>
33
+ <name>do_system_sizing_calculation</name>
34
+ <display_name>Do System Sizing Calculation?</display_name>
35
+ <type>Boolean</type>
36
+ <required>false</required>
37
+ <model_dependent>false</model_dependent>
38
+ <default_value>false</default_value>
39
+ <choices>
40
+ <choice>
41
+ <value>true</value>
42
+ <display_name>true</display_name>
43
+ </choice>
44
+ <choice>
45
+ <value>false</value>
46
+ <display_name>false</display_name>
47
+ </choice>
48
+ </choices>
49
+ </argument>
50
+ <argument>
51
+ <name>do_plant_sizing_calculation</name>
52
+ <display_name>Do Plant Sizing Calculation?</display_name>
53
+ <type>Boolean</type>
54
+ <required>false</required>
55
+ <model_dependent>false</model_dependent>
56
+ <default_value>false</default_value>
57
+ <choices>
58
+ <choice>
59
+ <value>true</value>
60
+ <display_name>true</display_name>
61
+ </choice>
62
+ <choice>
63
+ <value>false</value>
64
+ <display_name>false</display_name>
65
+ </choice>
66
+ </choices>
67
+ </argument>
68
+ <argument>
69
+ <name>run_simulation_for_sizing_periods</name>
70
+ <display_name>Run Simulation for Sizing Periods?</display_name>
71
+ <type>Boolean</type>
72
+ <required>false</required>
73
+ <model_dependent>false</model_dependent>
74
+ <default_value>true</default_value>
75
+ <choices>
76
+ <choice>
77
+ <value>true</value>
78
+ <display_name>true</display_name>
79
+ </choice>
80
+ <choice>
81
+ <value>false</value>
82
+ <display_name>false</display_name>
83
+ </choice>
84
+ </choices>
85
+ </argument>
86
+ <argument>
87
+ <name>run_simulation_for_weather_file_run_periods</name>
88
+ <display_name>Run Simulation for Weather File Run Periods?</display_name>
89
+ <type>Boolean</type>
90
+ <required>false</required>
91
+ <model_dependent>false</model_dependent>
92
+ <default_value>true</default_value>
93
+ <choices>
94
+ <choice>
95
+ <value>true</value>
96
+ <display_name>true</display_name>
97
+ </choice>
98
+ <choice>
99
+ <value>false</value>
100
+ <display_name>false</display_name>
101
+ </choice>
102
+ </choices>
103
+ </argument>
104
+ <argument>
105
+ <name>do_hvac_sizing_simulation_for_sizing_periods</name>
106
+ <display_name>Do HVAC Sizing Simulation for Sizing Periods?</display_name>
107
+ <type>Boolean</type>
108
+ <required>false</required>
109
+ <model_dependent>false</model_dependent>
110
+ <default_value>false</default_value>
111
+ <choices>
112
+ <choice>
113
+ <value>true</value>
114
+ <display_name>true</display_name>
115
+ </choice>
116
+ <choice>
117
+ <value>false</value>
118
+ <display_name>false</display_name>
119
+ </choice>
120
+ </choices>
121
+ </argument>
122
+ <argument>
123
+ <name>maximum_number_of_hvac_sizing_simulation_passes</name>
124
+ <display_name>Maximum Number of HVAC Sizing Simulation Passes</display_name>
125
+ <description>only used if the previous field is set to Yes</description>
126
+ <type>Integer</type>
127
+ <required>false</required>
128
+ <model_dependent>false</model_dependent>
129
+ </argument>
130
+ <argument>
131
+ <name>loads_convergence_tolerance_value</name>
132
+ <display_name>Loads Convergence Tolerance Value</display_name>
133
+ <type>Double</type>
134
+ <required>false</required>
135
+ <model_dependent>false</model_dependent>
136
+ </argument>
137
+ <argument>
138
+ <name>temperature_convergence_tolerance_value</name>
139
+ <display_name>Temperature Convergence Tolerance Value</display_name>
140
+ <type>Double</type>
141
+ <required>false</required>
142
+ <model_dependent>false</model_dependent>
143
+ </argument>
144
+ <argument>
145
+ <name>solar_distribution</name>
146
+ <display_name>Solar Distribution</display_name>
147
+ <type>Choice</type>
148
+ <required>false</required>
149
+ <model_dependent>false</model_dependent>
150
+ <choices>
151
+ <choice>
152
+ <value>FullExterior</value>
153
+ <display_name>FullExterior</display_name>
154
+ </choice>
155
+ <choice>
156
+ <value>MinimalShadowing</value>
157
+ <display_name>MinimalShadowing</display_name>
158
+ </choice>
159
+ <choice>
160
+ <value>FullInteriorAndExterior</value>
161
+ <display_name>FullInteriorAndExterior</display_name>
162
+ </choice>
163
+ <choice>
164
+ <value>FullExteriorWithReflections</value>
165
+ <display_name>FullExteriorWithReflections</display_name>
166
+ </choice>
167
+ <choice>
168
+ <value>FullInteriorAndExteriorWithReflections</value>
169
+ <display_name>FullInteriorAndExteriorWithReflections</display_name>
170
+ </choice>
171
+ </choices>
172
+ </argument>
173
+ <argument>
174
+ <name>maximum_number_of_warmup_days</name>
175
+ <display_name>Maximum Number of Warmup Days</display_name>
176
+ <type>Integer</type>
177
+ <required>false</required>
178
+ <model_dependent>false</model_dependent>
179
+ </argument>
180
+ <argument>
181
+ <name>minimum_number_of_warmup_days</name>
182
+ <display_name>Minimum Number of Warmup Days</display_name>
183
+ <type>Integer</type>
184
+ <required>false</required>
185
+ <model_dependent>false</model_dependent>
186
+ </argument>
187
+ </arguments>
188
+ <outputs />
189
+ <provenances />
190
+ <tags>
191
+ <tag>Whole Building.Space Types</tag>
192
+ </tags>
193
+ <attributes>
194
+ <attribute>
195
+ <name>Measure Type</name>
196
+ <value>ModelMeasure</value>
197
+ <datatype>string</datatype>
198
+ </attribute>
199
+ <attribute>
200
+ <name>Intended Software Tool</name>
201
+ <value>Apply Measure Now</value>
202
+ <datatype>string</datatype>
203
+ </attribute>
204
+ <attribute>
205
+ <name>Intended Software Tool</name>
206
+ <value>OpenStudio Application</value>
207
+ <datatype>string</datatype>
208
+ </attribute>
209
+ <attribute>
210
+ <name>Intended Software Tool</name>
211
+ <value>Parametric Analysis Tool</value>
212
+ <datatype>string</datatype>
213
+ </attribute>
214
+ </attributes>
215
+ <files>
216
+ <file>
217
+ <filename>README.md</filename>
218
+ <filetype>md</filetype>
219
+ <usage_type>readme</usage_type>
220
+ <checksum>100BD514</checksum>
221
+ </file>
222
+ <file>
223
+ <filename>README.md.erb</filename>
224
+ <filetype>erb</filetype>
225
+ <usage_type>readmeerb</usage_type>
226
+ <checksum>703C9964</checksum>
227
+ </file>
228
+ <file>
229
+ <version>
230
+ <software_program>OpenStudio</software_program>
231
+ <identifier>3.0.0</identifier>
232
+ <min_compatible>3.0.0</min_compatible>
233
+ </version>
234
+ <filename>measure.rb</filename>
235
+ <filetype>rb</filetype>
236
+ <usage_type>script</usage_type>
237
+ <checksum>F6E076D4</checksum>
238
+ </file>
239
+ <file>
240
+ <filename>simulation_control_test.rb</filename>
241
+ <filetype>rb</filetype>
242
+ <usage_type>test</usage_type>
243
+ <checksum>20765BB0</checksum>
244
+ </file>
245
+ </files>
246
+ </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
 
@@ -6,10 +6,6 @@
6
6
  # see the URL below for information on how to write OpenStudio measures
7
7
  # http://nrel.github.io/OpenStudio-user-documentation/measures/measure_writing_guide/
8
8
 
9
- # load OpenStudio measure libraries from openstudio-extension gem
10
- require 'openstudio-extension'
11
- require 'openstudio/extension/core/os_lib_helper_methods'
12
-
13
9
  # start the measure
14
10
  class TariffSelectionBlock < OpenStudio::Measure::EnergyPlusMeasure
15
11
  # human readable name
@@ -104,7 +100,8 @@ class TariffSelectionBlock < OpenStudio::Measure::EnergyPlusMeasure
104
100
  super(workspace, runner, user_arguments)
105
101
 
106
102
  # assign the user inputs to variables
107
- args = OsLib_HelperMethods.createRunVariables(runner, workspace, user_arguments, arguments(workspace))
103
+ args = runner.getArgumentValues(arguments(workspace), user_arguments)
104
+ args = Hash[args.collect{ |k, v| [k.to_s, v] }]
108
105
  if !args then return false end
109
106
 
110
107
  # make arrays out of comma separated string inputs
@@ -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>tariff_selection_block</name>
5
5
  <uid>42e9f831-f39a-4709-a79b-41db49c94f8c</uid>
6
- <version_id>fcb9004a-5a1b-4e07-998e-de185ca38c01</version_id>
7
- <version_modified>20221115T223605Z</version_modified>
6
+ <version_id>42fed421-174c-41ae-9c47-071315937b29</version_id>
7
+ <version_modified>2024-11-16T23:54:16Z</version_modified>
8
8
  <xml_checksum>92578CE8</xml_checksum>
9
9
  <class_name>TariffSelectionBlock</class_name>
10
10
  <display_name> Tariff Selection-Block</display_name>
@@ -234,16 +234,10 @@
234
234
  </attributes>
235
235
  <files>
236
236
  <file>
237
- <filename>EnvelopeAndLoadTestModel_01.osm</filename>
238
- <filetype>osm</filetype>
239
- <usage_type>test</usage_type>
240
- <checksum>E11F67BD</checksum>
241
- </file>
242
- <file>
243
- <filename>README.md.erb</filename>
244
- <filetype>erb</filetype>
245
- <usage_type>readmeerb</usage_type>
246
- <checksum>703C9964</checksum>
237
+ <filename>LICENSE.md</filename>
238
+ <filetype>md</filetype>
239
+ <usage_type>license</usage_type>
240
+ <checksum>8696A072</checksum>
247
241
  </file>
248
242
  <file>
249
243
  <filename>README.md</filename>
@@ -252,27 +246,33 @@
252
246
  <checksum>F00D5166</checksum>
253
247
  </file>
254
248
  <file>
255
- <filename>LICENSE.md</filename>
256
- <filetype>md</filetype>
257
- <usage_type>license</usage_type>
258
- <checksum>64FFEBDE</checksum>
259
- </file>
260
- <file>
261
- <filename>tariff_selection_block_test.rb</filename>
262
- <filetype>rb</filetype>
263
- <usage_type>test</usage_type>
264
- <checksum>F2389F5F</checksum>
249
+ <filename>README.md.erb</filename>
250
+ <filetype>erb</filetype>
251
+ <usage_type>readmeerb</usage_type>
252
+ <checksum>703C9964</checksum>
265
253
  </file>
266
254
  <file>
267
255
  <version>
268
256
  <software_program>OpenStudio</software_program>
269
257
  <identifier>2.0.0</identifier>
270
- <min_compatible>2.8.0</min_compatible>
258
+ <min_compatible>3.8.0</min_compatible>
271
259
  </version>
272
260
  <filename>measure.rb</filename>
273
261
  <filetype>rb</filetype>
274
262
  <usage_type>script</usage_type>
275
- <checksum>7C97D5C8</checksum>
263
+ <checksum>5685B81E</checksum>
264
+ </file>
265
+ <file>
266
+ <filename>EnvelopeAndLoadTestModel_01.osm</filename>
267
+ <filetype>osm</filetype>
268
+ <usage_type>test</usage_type>
269
+ <checksum>E11F67BD</checksum>
270
+ </file>
271
+ <file>
272
+ <filename>tariff_selection_block_test.rb</filename>
273
+ <filetype>rb</filetype>
274
+ <usage_type>test</usage_type>
275
+ <checksum>E9AF4144</checksum>
276
276
  </file>
277
277
  </files>
278
278
  </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
 
@@ -6,10 +6,6 @@
6
6
  # see the URL below for information on how to write OpenStudio measures
7
7
  # http://nrel.github.io/OpenStudio-user-documentation/measures/measure_writing_guide/
8
8
 
9
- # load OpenStudio measure libraries from openstudio-extension gem
10
- require 'openstudio-extension'
11
- require 'openstudio/extension/core/os_lib_helper_methods'
12
-
13
9
  # start the measure
14
10
  class TariffSelectionFlat < OpenStudio::Measure::EnergyPlusMeasure
15
11
  # human readable name
@@ -108,7 +104,9 @@ class TariffSelectionFlat < OpenStudio::Measure::EnergyPlusMeasure
108
104
  super(workspace, runner, user_arguments)
109
105
 
110
106
  # assign the user inputs to variables
111
- args = OsLib_HelperMethods.createRunVariables(runner, workspace, user_arguments, arguments(workspace))
107
+ args = runner.getArgumentValues(arguments(workspace), user_arguments)
108
+ args = Hash[args.collect{ |k, v| [k.to_s, v] }]
109
+
112
110
  if !args then return false end
113
111
 
114
112
  # reporting initial condition of model
@@ -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>tariff_selection_flat</name>
5
5
  <uid>539c3e8e-6c41-4f50-ac61-6cbbf1ee1b55</uid>
6
- <version_id>1fb9337b-b3e4-4ac8-a75d-57682714b063</version_id>
7
- <version_modified>20221115T223610Z</version_modified>
6
+ <version_id>fd4df4de-7934-4166-8f6f-c3582921b71c</version_id>
7
+ <version_modified>2024-11-16T23:54:19Z</version_modified>
8
8
  <xml_checksum>FBDC6D11</xml_checksum>
9
9
  <class_name>TariffSelectionFlat</class_name>
10
10
  <display_name>Tariff Selection-Flat</display_name>
@@ -210,16 +210,10 @@
210
210
  </attributes>
211
211
  <files>
212
212
  <file>
213
- <filename>EnvelopeAndLoadTestModel_01.osm</filename>
214
- <filetype>osm</filetype>
215
- <usage_type>test</usage_type>
216
- <checksum>E11F67BD</checksum>
217
- </file>
218
- <file>
219
- <filename>README.md.erb</filename>
220
- <filetype>erb</filetype>
221
- <usage_type>readmeerb</usage_type>
222
- <checksum>703C9964</checksum>
213
+ <filename>LICENSE.md</filename>
214
+ <filetype>md</filetype>
215
+ <usage_type>license</usage_type>
216
+ <checksum>8696A072</checksum>
223
217
  </file>
224
218
  <file>
225
219
  <filename>README.md</filename>
@@ -228,27 +222,33 @@
228
222
  <checksum>A6339B0D</checksum>
229
223
  </file>
230
224
  <file>
231
- <filename>LICENSE.md</filename>
232
- <filetype>md</filetype>
233
- <usage_type>license</usage_type>
234
- <checksum>64FFEBDE</checksum>
235
- </file>
236
- <file>
237
- <filename>tariff_selection_flat_test.rb</filename>
238
- <filetype>rb</filetype>
239
- <usage_type>test</usage_type>
240
- <checksum>9104949F</checksum>
225
+ <filename>README.md.erb</filename>
226
+ <filetype>erb</filetype>
227
+ <usage_type>readmeerb</usage_type>
228
+ <checksum>703C9964</checksum>
241
229
  </file>
242
230
  <file>
243
231
  <version>
244
232
  <software_program>OpenStudio</software_program>
245
233
  <identifier>2.0.0</identifier>
246
- <min_compatible>2.8.0</min_compatible>
234
+ <min_compatible>3.8.0</min_compatible>
247
235
  </version>
248
236
  <filename>measure.rb</filename>
249
237
  <filetype>rb</filetype>
250
238
  <usage_type>script</usage_type>
251
- <checksum>0B3FD5BD</checksum>
239
+ <checksum>AE5AA325</checksum>
240
+ </file>
241
+ <file>
242
+ <filename>EnvelopeAndLoadTestModel_01.osm</filename>
243
+ <filetype>osm</filetype>
244
+ <usage_type>test</usage_type>
245
+ <checksum>E11F67BD</checksum>
246
+ </file>
247
+ <file>
248
+ <filename>tariff_selection_flat_test.rb</filename>
249
+ <filetype>rb</filetype>
250
+ <usage_type>test</usage_type>
251
+ <checksum>7DEEBDDA</checksum>
252
252
  </file>
253
253
  </files>
254
254
  </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
 
@@ -6,10 +6,6 @@
6
6
  # see the URL below for information on how to write OpenStuido measures
7
7
  # http://openstudio.nrel.gov/openstudio-measure-writing-guide
8
8
 
9
- # load OpenStudio measure libraries from openstudio-extension gem
10
- require 'openstudio-extension'
11
- require 'openstudio/extension/core/os_lib_helper_methods'
12
-
13
9
  # start the measure
14
10
  class TariffSelectionGeneric < OpenStudio::Measure::EnergyPlusMeasure
15
11
  # define the name that a user will see, this method may be deprecated as
@@ -98,7 +94,8 @@ class TariffSelectionGeneric < OpenStudio::Measure::EnergyPlusMeasure
98
94
  def run(workspace, runner, user_arguments)
99
95
  super(workspace, runner, user_arguments)
100
96
 
101
- args = OsLib_HelperMethods.createRunVariables(runner, workspace, user_arguments, arguments(workspace))
97
+ args = runner.getArgumentValues(arguments(workspace), user_arguments)
98
+ args = Hash[args.collect{ |k, v| [k.to_s, v] }]
102
99
  if !args then return false end
103
100
 
104
101
  # reporting initial condition of model