openstudio-common-measures 0.8.0 → 0.10.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (118) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/test_with_openstudio.yml +2 -2
  3. data/CHANGELOG.md +9 -0
  4. data/Gemfile +10 -5
  5. data/Jenkinsfile +1 -1
  6. data/README.md +2 -0
  7. data/lib/measures/.rubocop.yml +6 -0
  8. data/lib/measures/AddCostPerAreaToConstruction/measure.xml +21 -21
  9. data/lib/measures/AddCostPerFloorAreaToBuilding/measure.xml +25 -25
  10. data/lib/measures/AddCostPerFloorAreaToElectricEquipment/measure.xml +21 -21
  11. data/lib/measures/AddCostPerFloorAreaToLights/measure.xml +21 -21
  12. data/lib/measures/AddCostPerFloorAreaUnusedToLights/measure.xml +21 -21
  13. data/lib/measures/AddCostToSupplySideHVACComponentByAirLoop/measure.xml +24 -24
  14. data/lib/measures/AddCostperAreatoUnusedConstruction/measure.xml +21 -21
  15. data/lib/measures/AddExteriorLights/measure.xml +19 -19
  16. data/lib/measures/AddMeter/measure.xml +15 -15
  17. data/lib/measures/AddOutputDiagnostics/measure.xml +18 -18
  18. data/lib/measures/AddOutputVariable/measure.xml +15 -15
  19. data/lib/measures/AddSimplePvToShadingSurfacesByType/measure.xml +24 -24
  20. data/lib/measures/AddThermalComfortModelTypes/measure.xml +21 -21
  21. data/lib/measures/AdjustSystemEfficiencies/measure.xml +12 -12
  22. data/lib/measures/AdjustThermostatSetpointsByDegrees/measure.xml +23 -23
  23. data/lib/measures/ChangeBuildingLocation/README.md +1 -1
  24. data/lib/measures/ChangeBuildingLocation/measure.rb +8 -13
  25. data/lib/measures/ChangeBuildingLocation/measure.xml +89 -89
  26. data/lib/measures/EnableIdealAirLoadsForAllZones/measure.xml +22 -22
  27. data/lib/measures/ExportScheduleCSV/measure.xml +29 -29
  28. data/lib/measures/ImportEnvelopeAndInternalLoadsFromIdf/measure.xml +29 -29
  29. data/lib/measures/MeterFlodPlot/measure.xml +35 -35
  30. data/lib/measures/ModifyEnergyPlusCoilCoolingDXSingleSpeedObjects/measure.xml +24 -24
  31. data/lib/measures/ModifyEnergyPlusFanVariableVolumeObjects/measure.xml +24 -24
  32. data/lib/measures/PredictedMeanVote/measure.xml +23 -23
  33. data/lib/measures/RemoveInternalLoadsDirectlyAssignedToSpaces/measure.xml +21 -21
  34. data/lib/measures/RemoveUnusedDefaultProfiles/measure.xml +19 -19
  35. data/lib/measures/ReplaceExteriorWindowConstruction/measure.xml +29 -29
  36. data/lib/measures/ReplaceModel/README.md +1 -3
  37. data/lib/measures/ReplaceModel/measure.xml +32 -14
  38. data/lib/measures/ReplaceThermostatSchedules/measure.xml +17 -17
  39. data/lib/measures/ReportModelChanges/measure.xml +23 -23
  40. data/lib/measures/RunPeriod/measure.xml +14 -14
  41. data/lib/measures/RunPeriodMultiple/measure.xml +12 -12
  42. data/lib/measures/ServerDirectoryCleanup/measure.xml +30 -30
  43. data/lib/measures/SetCOPforSingleSpeedDXCoolingUnits/measure.xml +23 -23
  44. data/lib/measures/SetCOPforTwoSpeedDXCoolingUnits/measure.xml +23 -23
  45. data/lib/measures/SetEnergyPlusInfiltrationFlowRatePerFloorArea/measure.xml +24 -24
  46. data/lib/measures/SetEnergyPlusLightObjectsLPD/measure.xml +24 -24
  47. data/lib/measures/SetEnergyPlusMinimumOutdoorAirFlowRate/measure.xml +24 -24
  48. data/lib/measures/SetGasBurnerEfficiency/measure.xml +23 -23
  49. data/lib/measures/SetLifecycleCostParameters/measure.xml +15 -15
  50. data/lib/measures/SetLightingLoadsByLPD/measure.xml +35 -35
  51. data/lib/measures/SetSpaceInfiltrationByExteriorSurfaceArea/measure.xml +25 -25
  52. data/lib/measures/SetThermostatSchedules/measure.xml +17 -17
  53. data/lib/measures/ShiftScheduleProfileTime/measure.xml +23 -23
  54. data/lib/measures/SwapLightsDefinition/measure.xml +25 -25
  55. data/lib/measures/UnmetLoadHoursTroubleshooting/measure.xml +43 -43
  56. data/lib/measures/VentilationQAQC/measure.xml +31 -31
  57. data/lib/measures/XcelEDAReportingandQAQC/measure.xml +46 -46
  58. data/lib/measures/XcelEDAReportingandQAQC/resources/CreateResults.rb +2 -0
  59. data/lib/measures/XcelEDATariffSelectionandModelSetup/measure.xml +73 -73
  60. data/lib/measures/ZoneReport/measure.xml +35 -35
  61. data/lib/measures/add_ems_emissions_reporting/measure.rb +0 -2
  62. data/lib/measures/add_ems_emissions_reporting/measure.xml +23 -23
  63. data/lib/measures/add_ems_to_control_ev_charging/measure.rb +0 -2
  64. data/lib/measures/add_ems_to_control_ev_charging/measure.xml +21 -21
  65. data/lib/measures/add_ev_load/measure.xml +35 -35
  66. data/lib/measures/add_rooftop_pv/measure.rb +5 -7
  67. data/lib/measures/add_rooftop_pv/measure.xml +25 -25
  68. data/lib/measures/add_zone_mixing_object/measure.xml +19 -19
  69. data/lib/measures/add_zone_ventilation_design_flow_rate_object/measure.xml +21 -21
  70. data/lib/measures/air_wall_zone_mixing/measure.rb +4 -6
  71. data/lib/measures/air_wall_zone_mixing/measure.xml +27 -27
  72. data/lib/measures/create_csv_output/measure.xml +28 -28
  73. data/lib/measures/envelope_and_internal_load_breakdown/measure.rb +0 -4
  74. data/lib/measures/envelope_and_internal_load_breakdown/measure.xml +52 -52
  75. data/lib/measures/envelope_and_internal_load_breakdown/resources/report.html.erb +1 -0
  76. data/lib/measures/example_report/measure.rb +2 -5
  77. data/lib/measures/example_report/measure.xml +41 -41
  78. data/lib/measures/example_report/resources/report.html.erb +1 -0
  79. data/lib/measures/gem_env_report/measure.xml +32 -32
  80. data/lib/measures/generic_qaqc/measure.rb +8 -15
  81. data/lib/measures/generic_qaqc/measure.xml +175 -175
  82. data/lib/measures/generic_qaqc/resources/check_air_sys_temps.rb +2 -2
  83. data/lib/measures/generic_qaqc/resources/check_domestic_hot_water.rb +4 -4
  84. data/lib/measures/generic_qaqc/resources/check_envelope_conductance.rb +14 -5
  85. data/lib/measures/generic_qaqc/resources/check_internal_loads.rb +2 -2
  86. data/lib/measures/generic_qaqc/resources/check_mech_sys_type.rb +1 -1
  87. data/lib/measures/generic_qaqc/resources/check_plant_temps.rb +6 -6
  88. data/lib/measures/generic_qaqc/resources/check_schedules.rb +7 -7
  89. data/lib/measures/generic_qaqc/resources/check_supply_air_and_thermostat_temp_difference.rb +5 -2
  90. data/lib/measures/generic_qaqc/resources/report.html.erb +1 -0
  91. data/lib/measures/get_site_from_building_component_library/measure.rb +4 -8
  92. data/lib/measures/get_site_from_building_component_library/measure.xml +28 -28
  93. data/lib/measures/hvac_psychrometric_chart/measure.xml +29 -29
  94. data/lib/measures/hvac_psychrometric_chart/resources/report.html.erb +1 -0
  95. data/lib/measures/inject_idf_objects/measure.xml +31 -31
  96. data/lib/measures/openstudio_results/measure.rb +2 -6
  97. data/lib/measures/openstudio_results/measure.xml +348 -360
  98. data/lib/measures/openstudio_results/resources/os_lib_reporting.rb +8 -8
  99. data/lib/measures/openstudio_results/resources/report.html.erb +1 -0
  100. data/lib/measures/remove_orphan_objects_and_unused_resources/measure.xml +24 -24
  101. data/lib/measures/set_electric_equipment_loads_by_epd/measure.xml +33 -33
  102. data/lib/measures/set_exterior_walls_and_floors_to_adiabatic/measure.xml +19 -19
  103. data/lib/measures/set_run_period/measure.xml +19 -19
  104. data/lib/measures/set_space_infiltration_per_exterior_area/measure.xml +22 -22
  105. data/lib/measures/shadow_calculation/measure.xml +18 -18
  106. data/lib/measures/tariff_selection_block/measure.rb +2 -5
  107. data/lib/measures/tariff_selection_block/measure.xml +25 -25
  108. data/lib/measures/tariff_selection_flat/measure.rb +3 -5
  109. data/lib/measures/tariff_selection_flat/measure.xml +25 -25
  110. data/lib/measures/tariff_selection_generic/measure.rb +2 -5
  111. data/lib/measures/tariff_selection_generic/measure.xml +39 -39
  112. data/lib/measures/tariff_selection_time_and_date_dependant/measure.rb +19 -15
  113. data/lib/measures/tariff_selection_time_and_date_dependant/measure.xml +37 -25
  114. data/lib/measures/view_data/measure.xml +41 -41
  115. data/lib/measures/view_model/measure.xml +35 -35
  116. data/lib/openstudio/common_measures/version.rb +1 -1
  117. data/openstudio-common-measures.gemspec +11 -4
  118. metadata +72 -15
@@ -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>xcel_eda_tariff_selectionand_model_setup</name>
5
5
  <uid>c5ab60e9-b8e5-4653-a502-5ed030f1335d</uid>
6
- <version_id>aee4a050-8cce-4e9a-8f6c-9ad93af850ba</version_id>
7
- <version_modified>20230607T052233Z</version_modified>
6
+ <version_id>6771c66d-93f6-4a18-81a5-a83ca5754a9b</version_id>
7
+ <version_modified>2024-07-11T14:32:13Z</version_modified>
8
8
  <xml_checksum>4FA703D1</xml_checksum>
9
9
  <class_name>XcelEDATariffSelectionandModelSetup</class_name>
10
10
  <display_name>XcelEDATariffSelectionandModelSetup</display_name>
@@ -133,10 +133,39 @@
133
133
  </attributes>
134
134
  <files>
135
135
  <file>
136
- <filename>EnvelopeAndLoadTestModel_01.osm</filename>
137
- <filetype>osm</filetype>
138
- <usage_type>test</usage_type>
139
- <checksum>E11F67BD</checksum>
136
+ <filename>LICENSE.md</filename>
137
+ <filetype>md</filetype>
138
+ <usage_type>license</usage_type>
139
+ <checksum>BFFB1AA6</checksum>
140
+ </file>
141
+ <file>
142
+ <filename>README.md</filename>
143
+ <filetype>md</filetype>
144
+ <usage_type>readme</usage_type>
145
+ <checksum>D8E0C68E</checksum>
146
+ </file>
147
+ <file>
148
+ <filename>README.md.erb</filename>
149
+ <filetype>erb</filetype>
150
+ <usage_type>readmeerb</usage_type>
151
+ <checksum>703C9964</checksum>
152
+ </file>
153
+ <file>
154
+ <version>
155
+ <software_program>OpenStudio</software_program>
156
+ <identifier>2.0.0</identifier>
157
+ <min_compatible>2.0.0</min_compatible>
158
+ </version>
159
+ <filename>measure.rb</filename>
160
+ <filetype>rb</filetype>
161
+ <usage_type>script</usage_type>
162
+ <checksum>808C0D31</checksum>
163
+ </file>
164
+ <file>
165
+ <filename>Commercial.idf</filename>
166
+ <filetype>idf</filetype>
167
+ <usage_type>resource</usage_type>
168
+ <checksum>3F35D94A</checksum>
140
169
  </file>
141
170
  <file>
142
171
  <filename>Interruptible Industrial G.idf</filename>
@@ -145,10 +174,10 @@
145
174
  <checksum>B643926B</checksum>
146
175
  </file>
147
176
  <file>
148
- <filename>Commercial.idf</filename>
177
+ <filename>Large CG.idf</filename>
149
178
  <filetype>idf</filetype>
150
179
  <usage_type>resource</usage_type>
151
- <checksum>3F35D94A</checksum>
180
+ <checksum>A27CAF65</checksum>
152
181
  </file>
153
182
  <file>
154
183
  <filename>Non-Xcel Commercial.idf</filename>
@@ -156,6 +185,18 @@
156
185
  <usage_type>resource</usage_type>
157
186
  <checksum>63C4C653</checksum>
158
187
  </file>
188
+ <file>
189
+ <filename>Non-Xcel Gas Firm.idf</filename>
190
+ <filetype>idf</filetype>
191
+ <usage_type>resource</usage_type>
192
+ <checksum>245CE0CB</checksum>
193
+ </file>
194
+ <file>
195
+ <filename>Non-Xcel Gas Interruptible.idf</filename>
196
+ <filetype>idf</filetype>
197
+ <usage_type>resource</usage_type>
198
+ <checksum>8A690662</checksum>
199
+ </file>
159
200
  <file>
160
201
  <filename>Non-Xcel Primary General.idf</filename>
161
202
  <filetype>idf</filetype>
@@ -186,6 +227,12 @@
186
227
  <usage_type>resource</usage_type>
187
228
  <checksum>85ABC54E</checksum>
188
229
  </file>
230
+ <file>
231
+ <filename>Residential Gas.idf</filename>
232
+ <filetype>idf</filetype>
233
+ <usage_type>resource</usage_type>
234
+ <checksum>5816D7C1</checksum>
235
+ </file>
189
236
  <file>
190
237
  <filename>Residential General.idf</filename>
191
238
  <filetype>idf</filetype>
@@ -204,30 +251,6 @@
204
251
  <usage_type>resource</usage_type>
205
252
  <checksum>0735795F</checksum>
206
253
  </file>
207
- <file>
208
- <filename>Transmission General.idf</filename>
209
- <filetype>idf</filetype>
210
- <usage_type>resource</usage_type>
211
- <checksum>CD615EA6</checksum>
212
- </file>
213
- <file>
214
- <filename>Large CG.idf</filename>
215
- <filetype>idf</filetype>
216
- <usage_type>resource</usage_type>
217
- <checksum>A27CAF65</checksum>
218
- </file>
219
- <file>
220
- <filename>Residential Gas.idf</filename>
221
- <filetype>idf</filetype>
222
- <usage_type>resource</usage_type>
223
- <checksum>5816D7C1</checksum>
224
- </file>
225
- <file>
226
- <filename>Small CG.idf</filename>
227
- <filetype>idf</filetype>
228
- <usage_type>resource</usage_type>
229
- <checksum>B1DA33A6</checksum>
230
- </file>
231
254
  <file>
232
255
  <filename>Secondary Photovoltaic Time-of-Use.idf</filename>
233
256
  <filetype>idf</filetype>
@@ -235,51 +258,28 @@
235
258
  <checksum>D5155043</checksum>
236
259
  </file>
237
260
  <file>
238
- <filename>Non-Xcel Gas Firm.idf</filename>
261
+ <filename>Small CG.idf</filename>
239
262
  <filetype>idf</filetype>
240
263
  <usage_type>resource</usage_type>
241
- <checksum>245CE0CB</checksum>
264
+ <checksum>B1DA33A6</checksum>
242
265
  </file>
243
266
  <file>
244
- <filename>Non-Xcel Gas Interruptible.idf</filename>
267
+ <filename>Transmission General.idf</filename>
245
268
  <filetype>idf</filetype>
246
269
  <usage_type>resource</usage_type>
247
- <checksum>8A690662</checksum>
248
- </file>
249
- <file>
250
- <filename>LICENSE.md</filename>
251
- <filetype>md</filetype>
252
- <usage_type>license</usage_type>
253
- <checksum>9640B6CB</checksum>
254
- </file>
255
- <file>
256
- <filename>README.md.erb</filename>
257
- <filetype>erb</filetype>
258
- <usage_type>readmeerb</usage_type>
259
- <checksum>703C9964</checksum>
260
- </file>
261
- <file>
262
- <filename>README.md</filename>
263
- <filetype>md</filetype>
264
- <usage_type>readme</usage_type>
265
- <checksum>D8E0C68E</checksum>
270
+ <checksum>CD615EA6</checksum>
266
271
  </file>
267
272
  <file>
268
- <filename>XcelEDATariffSelectionandModelSetup_Test.rb</filename>
269
- <filetype>rb</filetype>
273
+ <filename>EnvelopeAndLoadTestModel_01/files/USA_CO_Golden-NREL.724666_TMY3.epw</filename>
274
+ <filetype>epw</filetype>
270
275
  <usage_type>test</usage_type>
271
- <checksum>1486C77E</checksum>
276
+ <checksum>BDF687C1</checksum>
272
277
  </file>
273
278
  <file>
274
- <version>
275
- <software_program>OpenStudio</software_program>
276
- <identifier>2.0.0</identifier>
277
- <min_compatible>2.0.0</min_compatible>
278
- </version>
279
- <filename>measure.rb</filename>
280
- <filetype>rb</filetype>
281
- <usage_type>script</usage_type>
282
- <checksum>B040D95B</checksum>
279
+ <filename>EnvelopeAndLoadTestModel_01/project.osp</filename>
280
+ <filetype>osp</filetype>
281
+ <usage_type>test</usage_type>
282
+ <checksum>2F951741</checksum>
283
283
  </file>
284
284
  <file>
285
285
  <filename>EnvelopeAndLoadTestModel_01/project.osp-journal</filename>
@@ -294,16 +294,16 @@
294
294
  <checksum>7042FFF4</checksum>
295
295
  </file>
296
296
  <file>
297
- <filename>EnvelopeAndLoadTestModel_01/files/USA_CO_Golden-NREL.724666_TMY3.epw</filename>
298
- <filetype>epw</filetype>
297
+ <filename>EnvelopeAndLoadTestModel_01.osm</filename>
298
+ <filetype>osm</filetype>
299
299
  <usage_type>test</usage_type>
300
- <checksum>BDF687C1</checksum>
300
+ <checksum>E11F67BD</checksum>
301
301
  </file>
302
302
  <file>
303
- <filename>EnvelopeAndLoadTestModel_01/project.osp</filename>
304
- <filetype>osp</filetype>
303
+ <filename>XcelEDATariffSelectionandModelSetup_Test.rb</filename>
304
+ <filetype>rb</filetype>
305
305
  <usage_type>test</usage_type>
306
- <checksum>2F951741</checksum>
306
+ <checksum>8CFDBBFF</checksum>
307
307
  </file>
308
308
  </files>
309
309
  </measure>
@@ -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>zone_report</name>
5
5
  <uid>81ac119f-4841-434c-9e11-824310fe1cb7</uid>
6
- <version_id>54e4658d-21fa-46d2-9724-cf5791d19079</version_id>
7
- <version_modified>20221115T223557Z</version_modified>
6
+ <version_id>98d96a5c-3240-40ae-a2d6-46ff8d47930b</version_id>
7
+ <version_modified>2024-07-11T14:32:02Z</version_modified>
8
8
  <xml_checksum>2C8A3EEF</xml_checksum>
9
9
  <class_name>ZoneReport</class_name>
10
10
  <display_name>Zone Report</display_name>
@@ -30,22 +30,16 @@
30
30
  </attributes>
31
31
  <files>
32
32
  <file>
33
- <filename>report.html.in</filename>
34
- <filetype>in</filetype>
35
- <usage_type>resource</usage_type>
36
- <checksum>9863EEC5</checksum>
37
- </file>
38
- <file>
39
- <filename>gas_electric_mark_load.osm</filename>
40
- <filetype>osm</filetype>
41
- <usage_type>test</usage_type>
42
- <checksum>1F5C6B63</checksum>
33
+ <filename>LICENSE.md</filename>
34
+ <filetype>md</filetype>
35
+ <usage_type>license</usage_type>
36
+ <checksum>BFFB1AA6</checksum>
43
37
  </file>
44
38
  <file>
45
- <filename>USA_IL_Chicago-OHare.Intl.AP.725300_TMY3.epw</filename>
46
- <filetype>epw</filetype>
47
- <usage_type>test</usage_type>
48
- <checksum>C254B53F</checksum>
39
+ <filename>README.md</filename>
40
+ <filetype>md</filetype>
41
+ <usage_type>readme</usage_type>
42
+ <checksum>C013AECE</checksum>
49
43
  </file>
50
44
  <file>
51
45
  <filename>README.md.erb</filename>
@@ -54,33 +48,39 @@
54
48
  <checksum>703C9964</checksum>
55
49
  </file>
56
50
  <file>
57
- <filename>README.md</filename>
58
- <filetype>md</filetype>
59
- <usage_type>readme</usage_type>
60
- <checksum>C013AECE</checksum>
51
+ <version>
52
+ <software_program>OpenStudio</software_program>
53
+ <identifier>2.0.0</identifier>
54
+ <min_compatible>2.0.0</min_compatible>
55
+ </version>
56
+ <filename>measure.rb</filename>
57
+ <filetype>rb</filetype>
58
+ <usage_type>script</usage_type>
59
+ <checksum>C6695B06</checksum>
61
60
  </file>
62
61
  <file>
63
- <filename>LICENSE.md</filename>
64
- <filetype>md</filetype>
65
- <usage_type>license</usage_type>
66
- <checksum>64FFEBDE</checksum>
62
+ <filename>report.html.in</filename>
63
+ <filetype>in</filetype>
64
+ <usage_type>resource</usage_type>
65
+ <checksum>9863EEC5</checksum>
66
+ </file>
67
+ <file>
68
+ <filename>USA_IL_Chicago-OHare.Intl.AP.725300_TMY3.epw</filename>
69
+ <filetype>epw</filetype>
70
+ <usage_type>test</usage_type>
71
+ <checksum>C254B53F</checksum>
67
72
  </file>
68
73
  <file>
69
74
  <filename>ZoneReport_Test.rb</filename>
70
75
  <filetype>rb</filetype>
71
76
  <usage_type>test</usage_type>
72
- <checksum>DD50BE40</checksum>
77
+ <checksum>5CDE28AB</checksum>
73
78
  </file>
74
79
  <file>
75
- <version>
76
- <software_program>OpenStudio</software_program>
77
- <identifier>2.0.0</identifier>
78
- <min_compatible>2.0.0</min_compatible>
79
- </version>
80
- <filename>measure.rb</filename>
81
- <filetype>rb</filetype>
82
- <usage_type>script</usage_type>
83
- <checksum>02F159D1</checksum>
80
+ <filename>gas_electric_mark_load.osm</filename>
81
+ <filetype>osm</filetype>
82
+ <usage_type>test</usage_type>
83
+ <checksum>1F5C6B63</checksum>
84
84
  </file>
85
85
  </files>
86
86
  </measure>
@@ -4,8 +4,6 @@
4
4
  # *******************************************************************************
5
5
 
6
6
  require 'csv'
7
- require 'openstudio-extension'
8
- require 'openstudio/extension/core/os_lib_helper_methods'
9
7
 
10
8
  # start the measure
11
9
  class AddEMSEmissionsReporting < OpenStudio::Measure::ModelMeasure
@@ -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>add_ems_emissions_reporting</name>
5
5
  <uid>e8fe9153-5e70-4769-afa0-6da0045aa529</uid>
6
- <version_id>5503bbcc-4de8-4493-8ed7-e7129da38e82</version_id>
7
- <version_modified>20221115T223601Z</version_modified>
6
+ <version_id>a433902c-9979-4067-bc02-69a17cc9e2fe</version_id>
7
+ <version_modified>2024-07-11T14:32:05Z</version_modified>
8
8
  <xml_checksum>976EB6EB</xml_checksum>
9
9
  <class_name>AddEMSEmissionsReporting</class_name>
10
10
  <display_name>Add EMS to Report Emissions</display_name>
@@ -447,10 +447,10 @@
447
447
  </attributes>
448
448
  <files>
449
449
  <file>
450
- <filename>example_model.osm</filename>
451
- <filetype>osm</filetype>
452
- <usage_type>test</usage_type>
453
- <checksum>8EA06A27</checksum>
450
+ <filename>LICENSE.md</filename>
451
+ <filetype>md</filetype>
452
+ <usage_type>license</usage_type>
453
+ <checksum>BFFB1AA6</checksum>
454
454
  </file>
455
455
  <file>
456
456
  <filename>README.md</filename>
@@ -458,6 +458,17 @@
458
458
  <usage_type>readme</usage_type>
459
459
  <checksum>D90928F0</checksum>
460
460
  </file>
461
+ <file>
462
+ <version>
463
+ <software_program>OpenStudio</software_program>
464
+ <identifier>2.5.1</identifier>
465
+ <min_compatible>3.8.0</min_compatible>
466
+ </version>
467
+ <filename>measure.rb</filename>
468
+ <filetype>rb</filetype>
469
+ <usage_type>script</usage_type>
470
+ <checksum>88A306FD</checksum>
471
+ </file>
461
472
  <file>
462
473
  <filename>future_annual_co2e.csv</filename>
463
474
  <filetype>csv</filetype>
@@ -572,28 +583,17 @@
572
583
  <usage_type>resource</usage_type>
573
584
  <checksum>6C952ECC</checksum>
574
585
  </file>
575
- <file>
576
- <filename>LICENSE.md</filename>
577
- <filetype>md</filetype>
578
- <usage_type>license</usage_type>
579
- <checksum>64FFEBDE</checksum>
580
- </file>
581
586
  <file>
582
587
  <filename>add_ems_emissions_reporting_test.rb</filename>
583
588
  <filetype>rb</filetype>
584
589
  <usage_type>test</usage_type>
585
- <checksum>17B2F148</checksum>
590
+ <checksum>8A2D4011</checksum>
586
591
  </file>
587
592
  <file>
588
- <version>
589
- <software_program>OpenStudio</software_program>
590
- <identifier>2.5.1</identifier>
591
- <min_compatible>2.5.1</min_compatible>
592
- </version>
593
- <filename>measure.rb</filename>
594
- <filetype>rb</filetype>
595
- <usage_type>script</usage_type>
596
- <checksum>471C0F9A</checksum>
593
+ <filename>example_model.osm</filename>
594
+ <filetype>osm</filetype>
595
+ <usage_type>test</usage_type>
596
+ <checksum>8EA06A27</checksum>
597
597
  </file>
598
598
  </files>
599
599
  </measure>
@@ -4,8 +4,6 @@
4
4
  # *******************************************************************************
5
5
 
6
6
  # start the measure
7
- require 'openstudio-extension'
8
- require 'openstudio/extension/core/os_lib_helper_methods'
9
7
  class AddEMSToControlEVCharging < OpenStudio::Measure::ModelMeasure
10
8
  # human readable name
11
9
  def name
@@ -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>add_ems_to_control_ev_charging</name>
5
5
  <uid>df97997f-d02a-4e35-af7a-5aed16cb5772</uid>
6
- <version_id>5a5c367a-fcf8-4162-ba42-59edc0c46a4a</version_id>
7
- <version_modified>20221115T223602Z</version_modified>
6
+ <version_id>cb1e5410-6ed7-43a8-8ff7-a7134be49ef7</version_id>
7
+ <version_modified>2024-07-11T14:32:06Z</version_modified>
8
8
  <xml_checksum>976EB6EB</xml_checksum>
9
9
  <class_name>AddEMSToControlEVCharging</class_name>
10
10
  <display_name>Add EMS to Control EV Charging</display_name>
@@ -50,10 +50,10 @@
50
50
  </attributes>
51
51
  <files>
52
52
  <file>
53
- <filename>example_model.osm</filename>
54
- <filetype>osm</filetype>
55
- <usage_type>test</usage_type>
56
- <checksum>E925F127</checksum>
53
+ <filename>LICENSE.md</filename>
54
+ <filetype>md</filetype>
55
+ <usage_type>license</usage_type>
56
+ <checksum>BFFB1AA6</checksum>
57
57
  </file>
58
58
  <file>
59
59
  <filename>README.md</filename>
@@ -61,28 +61,28 @@
61
61
  <usage_type>readme</usage_type>
62
62
  <checksum>70CA2C6E</checksum>
63
63
  </file>
64
- <file>
65
- <filename>LICENSE.md</filename>
66
- <filetype>md</filetype>
67
- <usage_type>license</usage_type>
68
- <checksum>64FFEBDE</checksum>
69
- </file>
70
- <file>
71
- <filename>add_ems_to_control_ev_charging_test.rb</filename>
72
- <filetype>rb</filetype>
73
- <usage_type>test</usage_type>
74
- <checksum>0BFC4A8F</checksum>
75
- </file>
76
64
  <file>
77
65
  <version>
78
66
  <software_program>OpenStudio</software_program>
79
67
  <identifier>2.5.1</identifier>
80
- <min_compatible>2.5.1</min_compatible>
68
+ <min_compatible>3.8.0</min_compatible>
81
69
  </version>
82
70
  <filename>measure.rb</filename>
83
71
  <filetype>rb</filetype>
84
72
  <usage_type>script</usage_type>
85
- <checksum>7EC3E27C</checksum>
73
+ <checksum>D2FD7CFE</checksum>
74
+ </file>
75
+ <file>
76
+ <filename>add_ems_to_control_ev_charging_test.rb</filename>
77
+ <filetype>rb</filetype>
78
+ <usage_type>test</usage_type>
79
+ <checksum>D10942F4</checksum>
80
+ </file>
81
+ <file>
82
+ <filename>example_model.osm</filename>
83
+ <filetype>osm</filetype>
84
+ <usage_type>test</usage_type>
85
+ <checksum>E925F127</checksum>
86
86
  </file>
87
87
  </files>
88
88
  </measure>
@@ -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>add_ev_load</name>
5
5
  <uid>a23e0493-7357-48ca-b089-4d902efd6b50</uid>
6
- <version_id>1a1691ef-23a0-4d6e-b061-f2b3407950a3</version_id>
7
- <version_modified>20221115T223600Z</version_modified>
6
+ <version_id>6b5494cf-80bb-43d4-99d5-59325f977d4f</version_id>
7
+ <version_modified>2024-07-11T14:32:04Z</version_modified>
8
8
  <xml_checksum>9A202986</xml_checksum>
9
9
  <class_name>AddEVLoad</class_name>
10
10
  <display_name>Add_EV_Load</display_name>
@@ -136,10 +136,10 @@
136
136
  </attributes>
137
137
  <files>
138
138
  <file>
139
- <filename>example_model.osm</filename>
140
- <filetype>osm</filetype>
141
- <usage_type>test</usage_type>
142
- <checksum>E925F127</checksum>
139
+ <filename>LICENSE.md</filename>
140
+ <filetype>md</filetype>
141
+ <usage_type>license</usage_type>
142
+ <checksum>BFFB1AA6</checksum>
143
143
  </file>
144
144
  <file>
145
145
  <filename>README.md</filename>
@@ -147,6 +147,29 @@
147
147
  <usage_type>readme</usage_type>
148
148
  <checksum>2293F4B3</checksum>
149
149
  </file>
150
+ <file>
151
+ <version>
152
+ <software_program>OpenStudio</software_program>
153
+ <identifier>2.5.1</identifier>
154
+ <min_compatible>2.5.1</min_compatible>
155
+ </version>
156
+ <filename>measure.rb</filename>
157
+ <filetype>rb</filetype>
158
+ <usage_type>script</usage_type>
159
+ <checksum>D3110BC3</checksum>
160
+ </file>
161
+ <file>
162
+ <filename>PSN_BuildingKey.csv</filename>
163
+ <filetype>csv</filetype>
164
+ <usage_type>resource</usage_type>
165
+ <checksum>153D4BBA</checksum>
166
+ </file>
167
+ <file>
168
+ <filename>PSN_BuildingKey_v2.csv</filename>
169
+ <filetype>csv</filetype>
170
+ <usage_type>resource</usage_type>
171
+ <checksum>1000C8E8</checksum>
172
+ </file>
150
173
  <file>
151
174
  <filename>chg1_dow1_flex1.csv</filename>
152
175
  <filetype>csv</filetype>
@@ -327,40 +350,17 @@
327
350
  <usage_type>resource</usage_type>
328
351
  <checksum>114F9EA1</checksum>
329
352
  </file>
330
- <file>
331
- <filename>PSN_BuildingKey.csv</filename>
332
- <filetype>csv</filetype>
333
- <usage_type>resource</usage_type>
334
- <checksum>153D4BBA</checksum>
335
- </file>
336
- <file>
337
- <filename>PSN_BuildingKey_v2.csv</filename>
338
- <filetype>csv</filetype>
339
- <usage_type>resource</usage_type>
340
- <checksum>1000C8E8</checksum>
341
- </file>
342
- <file>
343
- <filename>LICENSE.md</filename>
344
- <filetype>md</filetype>
345
- <usage_type>license</usage_type>
346
- <checksum>64FFEBDE</checksum>
347
- </file>
348
353
  <file>
349
354
  <filename>add_ev_load_test.rb</filename>
350
355
  <filetype>rb</filetype>
351
356
  <usage_type>test</usage_type>
352
- <checksum>8D60903A</checksum>
357
+ <checksum>5381CBDE</checksum>
353
358
  </file>
354
359
  <file>
355
- <version>
356
- <software_program>OpenStudio</software_program>
357
- <identifier>2.5.1</identifier>
358
- <min_compatible>2.5.1</min_compatible>
359
- </version>
360
- <filename>measure.rb</filename>
361
- <filetype>rb</filetype>
362
- <usage_type>script</usage_type>
363
- <checksum>488C2195</checksum>
360
+ <filename>example_model.osm</filename>
361
+ <filetype>osm</filetype>
362
+ <usage_type>test</usage_type>
363
+ <checksum>E925F127</checksum>
364
364
  </file>
365
365
  </files>
366
366
  </measure>
@@ -6,13 +6,10 @@
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
- require 'openstudio/extension/core/os_lib_schedules'
13
-
14
9
  # start the measure
15
10
  class AddRooftopPV < OpenStudio::Measure::ModelMeasure
11
+ require 'openstudio-standards'
12
+
16
13
  # human readable name
17
14
  def name
18
15
  return 'Add Rooftop PV'
@@ -68,7 +65,8 @@ class AddRooftopPV < OpenStudio::Measure::ModelMeasure
68
65
  end
69
66
 
70
67
  # assign the user inputs to variables
71
- args = OsLib_HelperMethods.createRunVariables(runner, model, user_arguments, arguments(model))
68
+ args = runner.getArgumentValues(arguments(model), user_arguments)
69
+ args = Hash[args.collect{ |k, v| [k.to_s, v] }]
72
70
  if !args then return false end
73
71
 
74
72
  # check expected values of double arguments
@@ -101,7 +99,7 @@ class AddRooftopPV < OpenStudio::Measure::ModelMeasure
101
99
  'summerTimeValuePairs' => { 24.0 => target_transmittance },
102
100
  'defaultTimeValuePairs' => { 24.0 => target_transmittance }
103
101
  }
104
- pv_shading_transmittance_schedule = OsLib_Schedules.createSimpleSchedule(model, inputs)
102
+ pv_shading_transmittance_schedule = OpenstudioStandards::Schedules.create_simple_schedule(model, inputs)
105
103
  runner.registerInfo("Created transmittance schedule for PV shading surfaces with constant value of #{target_transmittance}")
106
104
 
107
105
  model.getSurfaces.each do |surface|