openstudio-calibration 0.9.0 → 0.10.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (77) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +4 -0
  3. data/Gemfile +1 -1
  4. data/Jenkinsfile +1 -1
  5. data/Rakefile +3 -0
  6. data/lib/measures/AddMonthlyJSONUtilityData/measure.rb +3 -3
  7. data/lib/measures/AddMonthlyJSONUtilityData/measure.xml +3 -3
  8. data/lib/measures/AddMonthlyUtilityData/measure.xml +8 -8
  9. data/lib/measures/CalibrationReports/measure.rb +1 -3
  10. data/lib/measures/CalibrationReports/measure.xml +4 -4
  11. data/lib/measures/CalibrationReportsEnhanced/measure.rb +21 -22
  12. data/lib/measures/CalibrationReportsEnhanced/measure.xml +4 -4
  13. data/lib/measures/CoilCoolingDXSingleSpeedMultiplier/measure.rb +12 -12
  14. data/lib/measures/CoilCoolingDXSingleSpeedMultiplier/measure.xml +5 -5
  15. data/lib/measures/CoilCoolingDXSingleSpeedPercentChange/measure.rb +12 -12
  16. data/lib/measures/CoilCoolingDXSingleSpeedPercentChange/measure.xml +5 -5
  17. data/lib/measures/CoilCoolingDXTwoSpeedMultiplier/measure.rb +21 -23
  18. data/lib/measures/CoilCoolingDXTwoSpeedMultiplier/measure.xml +5 -5
  19. data/lib/measures/CoilCoolingDXTwoSpeedPercentChange/measure.rb +21 -23
  20. data/lib/measures/CoilCoolingDXTwoSpeedPercentChange/measure.xml +5 -5
  21. data/lib/measures/CoilCoolingWaterMultiplier/measure.rb +33 -43
  22. data/lib/measures/CoilCoolingWaterMultiplier/measure.xml +5 -5
  23. data/lib/measures/CoilCoolingWaterPercentChange/measure.rb +33 -43
  24. data/lib/measures/CoilCoolingWaterPercentChange/measure.xml +5 -5
  25. data/lib/measures/CoilHeatingElectricMultiplier/measure.rb +8 -8
  26. data/lib/measures/CoilHeatingElectricMultiplier/measure.xml +5 -5
  27. data/lib/measures/CoilHeatingElectricPercentChange/measure.rb +8 -8
  28. data/lib/measures/CoilHeatingElectricPercentChange/measure.xml +5 -5
  29. data/lib/measures/CoilHeatingGasMultiplier/measure.rb +8 -8
  30. data/lib/measures/CoilHeatingGasMultiplier/measure.xml +5 -5
  31. data/lib/measures/CoilHeatingGasPercentChange/measure.rb +8 -8
  32. data/lib/measures/CoilHeatingGasPercentChange/measure.xml +5 -5
  33. data/lib/measures/CoilHeatingWaterMultiplier/measure.rb +13 -15
  34. data/lib/measures/CoilHeatingWaterMultiplier/measure.xml +5 -5
  35. data/lib/measures/CoilHeatingWaterPercentChange/measure.rb +13 -15
  36. data/lib/measures/CoilHeatingWaterPercentChange/measure.xml +5 -5
  37. data/lib/measures/ConstructionLayerZeroMaterialProperties/measure.rb +4 -4
  38. data/lib/measures/ConstructionLayerZeroMaterialProperties/measure.xml +3 -3
  39. data/lib/measures/ExteriorWallThermalPropertiesMultiplier/measure.rb +8 -5
  40. data/lib/measures/ExteriorWallThermalPropertiesMultiplier/measure.xml +9 -9
  41. data/lib/measures/ExteriorWallThermalPropertiesPercentChange/measure.rb +8 -5
  42. data/lib/measures/ExteriorWallThermalPropertiesPercentChange/measure.xml +9 -9
  43. data/lib/measures/FansMultiplier/measure.rb +8 -8
  44. data/lib/measures/FansMultiplier/measure.xml +5 -5
  45. data/lib/measures/FansPercentChange/measure.rb +8 -8
  46. data/lib/measures/FansPercentChange/measure.xml +5 -5
  47. data/lib/measures/GeneralCalibrationMeasureMultiplier/measure.rb +2 -2
  48. data/lib/measures/GeneralCalibrationMeasureMultiplier/measure.xml +7 -7
  49. data/lib/measures/GeneralCalibrationMeasurePercentChange/measure.rb +2 -2
  50. data/lib/measures/GeneralCalibrationMeasurePercentChange/measure.xml +7 -7
  51. data/lib/measures/HardSizeHvac/measure.rb +2 -4
  52. data/lib/measures/HardSizeHvac/measure.xml +4 -4
  53. data/lib/measures/RValueOfInsulationForConstructionMultiplier/measure.rb +7 -9
  54. data/lib/measures/RValueOfInsulationForConstructionMultiplier/measure.xml +3 -3
  55. data/lib/measures/RValueOfInsulationForConstructionPercentageChange/measure.rb +7 -9
  56. data/lib/measures/RValueOfInsulationForConstructionPercentageChange/measure.xml +3 -3
  57. data/lib/measures/RoofThermalPropertiesMultiplier/measure.rb +8 -5
  58. data/lib/measures/RoofThermalPropertiesMultiplier/measure.xml +9 -9
  59. data/lib/measures/RoofThermalPropertiesPercentChange/measure.rb +8 -5
  60. data/lib/measures/RoofThermalPropertiesPercentChange/measure.xml +9 -9
  61. data/lib/measures/TimeseriesObjectiveFunction/measure.rb +26 -23
  62. data/lib/measures/TimeseriesObjectiveFunction/measure.xml +10 -15
  63. data/lib/measures/TimeseriesObjectiveFunction/resources/report.html.erb +3 -0
  64. data/lib/measures/TimeseriesPlot/measure.rb +1 -3
  65. data/lib/measures/TimeseriesPlot/measure.xml +13 -13
  66. data/lib/measures/TimeseriesPlot/resources/report.html.erb +3 -0
  67. data/lib/measures/WaterHeaterMixedMultiplier/measure.rb +17 -22
  68. data/lib/measures/WaterHeaterMixedMultiplier/measure.xml +5 -5
  69. data/lib/measures/WaterHeaterMixedPercentChange/measure.rb +17 -22
  70. data/lib/measures/WaterHeaterMixedPercentChange/measure.xml +5 -5
  71. data/lib/measures/inspect_and_edit_parametric_schedules/measure.rb +13 -11
  72. data/lib/measures/inspect_and_edit_parametric_schedules/measure.xml +29 -29
  73. data/lib/measures/shift_hours_of_operation/measure.rb +31 -29
  74. data/lib/measures/shift_hours_of_operation/measure.xml +51 -37
  75. data/lib/openstudio/calibration/version.rb +1 -1
  76. data/openstudio-calibration.gemspec +13 -6
  77. metadata +69 -13
@@ -58,6 +58,7 @@ class CoilCoolingDXTwoSpeedPercentChange < OpenStudio::Measure::ModelMeasure
58
58
  components = value.supplyComponents
59
59
  components.each do |component|
60
60
  next if component.to_CoilCoolingDXTwoSpeed.empty?
61
+
61
62
  show_loop = true
62
63
  loop_handles << component.handle.to_s
63
64
  loop_display_names << component.name.to_s
@@ -178,46 +179,43 @@ class CoilCoolingDXTwoSpeedPercentChange < OpenStudio::Measure::ModelMeasure
178
179
  coils.each do |coil|
179
180
  altered_coil = false
180
181
  # rated_highspeed_cooling_capacity_perc_change
181
- if rated_highspeed_cooling_capacity_perc_change != 0.0
182
- if coil.ratedHighSpeedTotalCoolingCapacity.is_initialized
183
- runner.registerInfo("Applying ratedHighSpeedTotalCoolingCapacity #{rated_highspeed_cooling_capacity_perc_change} Percent Change to #{coil.name.get}.")
184
- coil.setRatedHighSpeedTotalCoolingCapacity(coil.ratedHighSpeedTotalCoolingCapacity.get + coil.ratedHighSpeedTotalCoolingCapacity.get * rated_highspeed_cooling_capacity_perc_change * 0.01)
185
- altered_capacity << coil.handle.to_s
186
- altered_coil = true
187
- end
182
+ if rated_highspeed_cooling_capacity_perc_change != 0.0 && coil.ratedHighSpeedTotalCoolingCapacity.is_initialized
183
+ runner.registerInfo("Applying ratedHighSpeedTotalCoolingCapacity #{rated_highspeed_cooling_capacity_perc_change} Percent Change to #{coil.name.get}.")
184
+ coil.setRatedHighSpeedTotalCoolingCapacity(coil.ratedHighSpeedTotalCoolingCapacity.get + coil.ratedHighSpeedTotalCoolingCapacity.get * rated_highspeed_cooling_capacity_perc_change * 0.01)
185
+ altered_capacity << coil.handle.to_s
186
+ altered_coil = true
188
187
  end
189
188
 
190
189
  # rated_lowspeed_cooling_capacity_perc_change
191
- if rated_lowspeed_cooling_capacity_perc_change != 0.0
192
- if coil.ratedLowSpeedTotalCoolingCapacity.is_initialized
193
- runner.registerInfo("Applying ratedLowSpeedTotalCoolingCapacity #{rated_lowspeed_cooling_capacity_perc_change} Percent Change to #{coil.name.get}.")
194
- coil.setRatedLowSpeedTotalCoolingCapacity(coil.ratedLowSpeedTotalCoolingCapacity.get + coil.ratedLowSpeedTotalCoolingCapacity.get * rated_lowspeed_cooling_capacity_perc_change * 0.01)
195
- altered_capacity << coil.handle.to_s
196
- altered_coil = true
197
- end
190
+ if rated_lowspeed_cooling_capacity_perc_change != 0.0 && coil.ratedLowSpeedTotalCoolingCapacity.is_initialized
191
+ runner.registerInfo("Applying ratedLowSpeedTotalCoolingCapacity #{rated_lowspeed_cooling_capacity_perc_change} Percent Change to #{coil.name.get}.")
192
+ coil.setRatedLowSpeedTotalCoolingCapacity(coil.ratedLowSpeedTotalCoolingCapacity.get + coil.ratedLowSpeedTotalCoolingCapacity.get * rated_lowspeed_cooling_capacity_perc_change * 0.01)
193
+ altered_capacity << coil.handle.to_s
194
+ altered_coil = true
198
195
  end
199
196
 
200
197
  # modify rated_highspeed_cop_perc_change
201
198
  if rated_highspeed_cop_perc_change != 0.0
202
- runner.registerInfo("Applying ratedHighSpeedCOP #{rated_highspeed_cop_perc_change} Percent Change to #{coil.name.get}.")
203
- coil.setRatedHighSpeedCOP(coil.ratedHighSpeedCOP + coil.ratedHighSpeedCOP * rated_highspeed_cop_perc_change * 0.01)
204
- altered_coilefficiency << coil.handle.to_s
205
- altered_coil = true
199
+ runner.registerInfo("Applying ratedHighSpeedCOP #{rated_highspeed_cop_perc_change} Percent Change to #{coil.name.get}.")
200
+ coil.setRatedHighSpeedCOP(coil.ratedHighSpeedCOP + coil.ratedHighSpeedCOP * rated_highspeed_cop_perc_change * 0.01)
201
+ altered_coilefficiency << coil.handle.to_s
202
+ altered_coil = true
206
203
  end
207
204
 
208
205
  # modify rated_lowspeed_cop_perc_change
209
206
  if rated_lowspeed_cop_perc_change != 0.0
210
- runner.registerInfo("Applying ratedLowSpeedCOP #{rated_lowspeed_cop_perc_change} Percent Change to #{coil.name.get}.")
211
- coil.setRatedLowSpeedCOP(coil.ratedLowSpeedCOP + coil.ratedLowSpeedCOP * rated_lowspeed_cop_perc_change * 0.01)
212
- altered_coilefficiency << coil.handle.to_s
213
- altered_coil = true
207
+ runner.registerInfo("Applying ratedLowSpeedCOP #{rated_lowspeed_cop_perc_change} Percent Change to #{coil.name.get}.")
208
+ coil.setRatedLowSpeedCOP(coil.ratedLowSpeedCOP + coil.ratedLowSpeedCOP * rated_lowspeed_cop_perc_change * 0.01)
209
+ altered_coilefficiency << coil.handle.to_s
210
+ altered_coil = true
214
211
  end
215
212
 
216
213
  next unless altered_coil
214
+
217
215
  altered_coils << coil.handle.to_s
218
216
  change_name(coil, rated_highspeed_cop_perc_change, rated_highspeed_cooling_capacity_perc_change, rated_lowspeed_cop_perc_change, rated_lowspeed_cooling_capacity_perc_change)
219
217
  runner.registerInfo("coil name changed to: #{coil.name.get}")
220
- end # end coil loop
218
+ end
221
219
 
222
220
  # na if nothing in model to look at
223
221
  if altered_coils.empty?
@@ -3,8 +3,8 @@
3
3
  <schema_version>3.0</schema_version>
4
4
  <name>coil_cooling_dx_two_speed_percent_change</name>
5
5
  <uid>2145d3a3-60fd-4b95-8faf-33e2402934fc</uid>
6
- <version_id>16195c55-1961-439c-a419-6f584938015a</version_id>
7
- <version_modified>20230602T154656Z</version_modified>
6
+ <version_id>56fae4f6-c6a0-422b-a36b-68cd8a50439b</version_id>
7
+ <version_modified>20240428T231348Z</version_modified>
8
8
  <xml_checksum>8CBDDA1B</xml_checksum>
9
9
  <class_name>CoilCoolingDXTwoSpeedPercentChange</class_name>
10
10
  <display_name>Cooling Coils DX Two Speed Percent Change</display_name>
@@ -17,10 +17,10 @@
17
17
  <type>Choice</type>
18
18
  <required>true</required>
19
19
  <model_dependent>false</model_dependent>
20
- <default_value>{f4a57137-de4d-4ef9-9ae0-059e3742f753}</default_value>
20
+ <default_value>{e8e67149-8f96-49c2-a4d1-1b7c5dd02406}</default_value>
21
21
  <choices>
22
22
  <choice>
23
- <value>{f4a57137-de4d-4ef9-9ae0-059e3742f753}</value>
23
+ <value>{e8e67149-8f96-49c2-a4d1-1b7c5dd02406}</value>
24
24
  <display_name>*All DX Cooling Coils*</display_name>
25
25
  </choice>
26
26
  <choice>
@@ -106,7 +106,7 @@
106
106
  <filename>measure.rb</filename>
107
107
  <filetype>rb</filetype>
108
108
  <usage_type>script</usage_type>
109
- <checksum>17CED925</checksum>
109
+ <checksum>0130C985</checksum>
110
110
  </file>
111
111
  </files>
112
112
  </measure>
@@ -71,6 +71,7 @@ class CoilCoolingWaterMultiplier < OpenStudio::Measure::ModelMeasure
71
71
  components = value.supplyComponents
72
72
  components.each do |component|
73
73
  next if component.to_CoilCoolingWater.empty?
74
+
74
75
  show_loop = true
75
76
  loop_handles << component.handle.to_s
76
77
  loop_display_names << component.name.to_s
@@ -213,69 +214,58 @@ class CoilCoolingWaterMultiplier < OpenStudio::Measure::ModelMeasure
213
214
  coils.each do |coil|
214
215
  altered_coil = false
215
216
  # design_air_flow_rate
216
- if design_air_flow_rate != 1.0
217
- if coil.designAirFlowRate.is_initialized
218
- runner.registerInfo("Applying designAirFlowRate #{design_air_flow_rate}x multiplier to #{coil.name.get}.")
219
- coil.setDesignAirFlowRate(coil.designAirFlowRate.get * design_air_flow_rate)
220
- altered_capacity << coil.handle.to_s
221
- altered_coil = true
222
- end
217
+ if design_air_flow_rate != 1.0 && coil.designAirFlowRate.is_initialized
218
+ runner.registerInfo("Applying designAirFlowRate #{design_air_flow_rate}x multiplier to #{coil.name.get}.")
219
+ coil.setDesignAirFlowRate(coil.designAirFlowRate.get * design_air_flow_rate)
220
+ altered_capacity << coil.handle.to_s
221
+ altered_coil = true
223
222
  end
224
223
 
225
224
  # modify design_water_flow_rate
226
- if design_water_flow_rate != 1.0
227
- if coil.designWaterFlowRate.is_initialized
228
- runner.registerInfo("Applying designWaterFlowRate #{design_water_flow_rate}x multiplier to #{coil.name.get}.")
229
- coil.setDesignWaterFlowRate(coil.designWaterFlowRate.get * design_water_flow_rate)
230
- altered_coilefficiency << coil.handle.to_s
231
- altered_coil = true
232
- end
225
+ if design_water_flow_rate != 1.0 && coil.designWaterFlowRate.is_initialized
226
+ runner.registerInfo("Applying designWaterFlowRate #{design_water_flow_rate}x multiplier to #{coil.name.get}.")
227
+ coil.setDesignWaterFlowRate(coil.designWaterFlowRate.get * design_water_flow_rate)
228
+ altered_coilefficiency << coil.handle.to_s
229
+ altered_coil = true
233
230
  end
234
231
 
235
232
  # design_inlet_air_temperature
236
- if design_inlet_air_temperature != 1.0
237
- if coil.designInletAirTemperature.is_initialized
238
- runner.registerInfo("Applying designInletAirTemperature #{design_inlet_air_temperature}x multiplier to #{coil.name.get}.")
239
- coil.setDesignInletAirTemperature(coil.designInletAirTemperature.get * design_inlet_air_temperature)
240
- altered_capacity << coil.handle.to_s
241
- altered_coil = true
242
- end
233
+ if design_inlet_air_temperature != 1.0 && coil.designInletAirTemperature.is_initialized
234
+ runner.registerInfo("Applying designInletAirTemperature #{design_inlet_air_temperature}x multiplier to #{coil.name.get}.")
235
+ coil.setDesignInletAirTemperature(coil.designInletAirTemperature.get * design_inlet_air_temperature)
236
+ altered_capacity << coil.handle.to_s
237
+ altered_coil = true
243
238
  end
244
239
 
245
240
  # modify design_inlet_water_temperature
246
- if design_inlet_water_temperature != 1.0
247
- if coil.designInletWaterTemperature.is_initialized
248
- runner.registerInfo("Applying designInletWaterTemperature #{design_inlet_water_temperature}x multiplier to #{coil.name.get}.")
249
- coil.setDesignInletWaterTemperature(coil.designInletWaterTemperature.get * design_inlet_water_temperature)
250
- altered_coilefficiency << coil.handle.to_s
251
- altered_coil = true
252
- end
241
+ if design_inlet_water_temperature != 1.0 && coil.designInletWaterTemperature.is_initialized
242
+ runner.registerInfo("Applying designInletWaterTemperature #{design_inlet_water_temperature}x multiplier to #{coil.name.get}.")
243
+ coil.setDesignInletWaterTemperature(coil.designInletWaterTemperature.get * design_inlet_water_temperature)
244
+ altered_coilefficiency << coil.handle.to_s
245
+ altered_coil = true
253
246
  end
254
247
 
255
248
  # design_inlet_air_humidity_ratio
256
- if design_inlet_air_humidity_ratio != 1.0
257
- if coil.designInletAirHumidityRatio.is_initialized
258
- runner.registerInfo("Applying designInletAirHumidityRatio #{design_inlet_air_humidity_ratio}x multiplier to #{coil.name.get}.")
259
- coil.setDesignInletAirHumidityRatio(coil.designInletAirHumidityRatio.get * design_inlet_air_humidity_ratio)
260
- altered_capacity << coil.handle.to_s
261
- altered_coil = true
262
- end
249
+ if design_inlet_air_humidity_ratio != 1.0 && coil.designInletAirHumidityRatio.is_initialized
250
+ runner.registerInfo("Applying designInletAirHumidityRatio #{design_inlet_air_humidity_ratio}x multiplier to #{coil.name.get}.")
251
+ coil.setDesignInletAirHumidityRatio(coil.designInletAirHumidityRatio.get * design_inlet_air_humidity_ratio)
252
+ altered_capacity << coil.handle.to_s
253
+ altered_coil = true
263
254
  end
264
255
 
265
256
  # modify design_outlet_air_temperature
266
- if design_outlet_air_temperature != 1.0
267
- if coil.designOutletAirTemperature.is_initialized
268
- runner.registerInfo("Applying designOutletAirTemperature #{design_outlet_air_temperature}x multiplier to #{coil.name.get}.")
269
- coil.setDesignOutletAirTemperature(coil.designOutletAirTemperature.get * design_outlet_air_temperature)
270
- altered_coilefficiency << coil.handle.to_s
271
- altered_coil = true
272
- end
257
+ if design_outlet_air_temperature != 1.0 && coil.designOutletAirTemperature.is_initialized
258
+ runner.registerInfo("Applying designOutletAirTemperature #{design_outlet_air_temperature}x multiplier to #{coil.name.get}.")
259
+ coil.setDesignOutletAirTemperature(coil.designOutletAirTemperature.get * design_outlet_air_temperature)
260
+ altered_coilefficiency << coil.handle.to_s
261
+ altered_coil = true
273
262
  end
274
263
  next unless altered_coil
264
+
275
265
  altered_coils << coil.handle.to_s
276
266
  change_name(coil, design_water_flow_rate, design_air_flow_rate, design_inlet_water_temperature, design_inlet_air_temperature, design_outlet_air_temperature, design_inlet_air_humidity_ratio)
277
267
  runner.registerInfo("coil name changed to: #{coil.name.get}")
278
- end # end coil loop
268
+ end
279
269
 
280
270
  # na if nothing in model to look at
281
271
  if altered_coils.empty?
@@ -3,8 +3,8 @@
3
3
  <schema_version>3.0</schema_version>
4
4
  <name>coil_cooling_water_multiplier</name>
5
5
  <uid>0fb42580-a644-4291-9a08-05521a6e7940</uid>
6
- <version_id>7a6d3886-f315-4011-a5a8-c0f02de4017e</version_id>
7
- <version_modified>20230602T154657Z</version_modified>
6
+ <version_id>c5a49988-bac0-438f-ad85-1cc3a4e2bf62</version_id>
7
+ <version_modified>20240428T231349Z</version_modified>
8
8
  <xml_checksum>8CBDDA1B</xml_checksum>
9
9
  <class_name>CoilCoolingWaterMultiplier</class_name>
10
10
  <display_name>Cooling Coils Water Multiplier</display_name>
@@ -17,10 +17,10 @@
17
17
  <type>Choice</type>
18
18
  <required>true</required>
19
19
  <model_dependent>false</model_dependent>
20
- <default_value>{5d501a92-7ec0-41b0-867a-d9b403e60f07}</default_value>
20
+ <default_value>{77f90bca-84b4-4e1d-ad1b-6fab71450590}</default_value>
21
21
  <choices>
22
22
  <choice>
23
- <value>{5d501a92-7ec0-41b0-867a-d9b403e60f07}</value>
23
+ <value>{77f90bca-84b4-4e1d-ad1b-6fab71450590}</value>
24
24
  <display_name>*All Water Cooling Coils*</display_name>
25
25
  </choice>
26
26
  <choice>
@@ -124,7 +124,7 @@
124
124
  <filename>measure.rb</filename>
125
125
  <filetype>rb</filetype>
126
126
  <usage_type>script</usage_type>
127
- <checksum>EF484CE3</checksum>
127
+ <checksum>D4395EC8</checksum>
128
128
  </file>
129
129
  </files>
130
130
  </measure>
@@ -64,6 +64,7 @@ class CoilCoolingWaterPercentChange < OpenStudio::Measure::ModelMeasure
64
64
  components = value.supplyComponents
65
65
  components.each do |component|
66
66
  next if component.to_CoilCoolingWater.empty?
67
+
67
68
  show_loop = true
68
69
  loop_handles << component.handle.to_s
69
70
  loop_display_names << component.name.to_s
@@ -200,69 +201,58 @@ class CoilCoolingWaterPercentChange < OpenStudio::Measure::ModelMeasure
200
201
  coils.each do |coil|
201
202
  altered_coil = false
202
203
  # design_air_flow_rate
203
- if design_air_flow_rate != 1.0
204
- if coil.designAirFlowRate.is_initialized
205
- runner.registerInfo("Applying designAirFlowRate #{design_air_flow_rate} PercentChange to #{coil.name.get}.")
206
- coil.setDesignAirFlowRate(coil.designAirFlowRate.get + coil.designAirFlowRate.get * design_air_flow_rate * 0.01)
207
- altered_capacity << coil.handle.to_s
208
- altered_coil = true
209
- end
204
+ if design_air_flow_rate != 1.0 && coil.designAirFlowRate.is_initialized
205
+ runner.registerInfo("Applying designAirFlowRate #{design_air_flow_rate} PercentChange to #{coil.name.get}.")
206
+ coil.setDesignAirFlowRate(coil.designAirFlowRate.get + coil.designAirFlowRate.get * design_air_flow_rate * 0.01)
207
+ altered_capacity << coil.handle.to_s
208
+ altered_coil = true
210
209
  end
211
210
 
212
211
  # modify design_water_flow_rate
213
- if design_water_flow_rate != 1.0
214
- if coil.designWaterFlowRate.is_initialized
215
- runner.registerInfo("Applying designWaterFlowRate #{design_water_flow_rate} PercentChange to #{coil.name.get}.")
216
- coil.setDesignWaterFlowRate(coil.designWaterFlowRate.get + coil.designWaterFlowRate.get * design_water_flow_rate * 0.01)
217
- altered_coilefficiency << coil.handle.to_s
218
- altered_coil = true
219
- end
212
+ if design_water_flow_rate != 1.0 && coil.designWaterFlowRate.is_initialized
213
+ runner.registerInfo("Applying designWaterFlowRate #{design_water_flow_rate} PercentChange to #{coil.name.get}.")
214
+ coil.setDesignWaterFlowRate(coil.designWaterFlowRate.get + coil.designWaterFlowRate.get * design_water_flow_rate * 0.01)
215
+ altered_coilefficiency << coil.handle.to_s
216
+ altered_coil = true
220
217
  end
221
218
 
222
219
  # design_inlet_air_temperature
223
- if design_inlet_air_temperature != 1.0
224
- if coil.designInletAirTemperature.is_initialized
225
- runner.registerInfo("Applying designInletAirTemperature #{design_inlet_air_temperature} PercentChange to #{coil.name.get}.")
226
- coil.setDesignInletAirTemperature(coil.designInletAirTemperature.get + coil.designInletAirTemperature.get * design_inlet_air_temperature * 0.01)
227
- altered_capacity << coil.handle.to_s
228
- altered_coil = true
229
- end
220
+ if design_inlet_air_temperature != 1.0 && coil.designInletAirTemperature.is_initialized
221
+ runner.registerInfo("Applying designInletAirTemperature #{design_inlet_air_temperature} PercentChange to #{coil.name.get}.")
222
+ coil.setDesignInletAirTemperature(coil.designInletAirTemperature.get + coil.designInletAirTemperature.get * design_inlet_air_temperature * 0.01)
223
+ altered_capacity << coil.handle.to_s
224
+ altered_coil = true
230
225
  end
231
226
 
232
227
  # modify design_inlet_water_temperature
233
- if design_inlet_water_temperature != 1.0
234
- if coil.designInletWaterTemperature.is_initialized
235
- runner.registerInfo("Applying designInletWaterTemperature #{design_inlet_water_temperature} PercentChange to #{coil.name.get}.")
236
- coil.setDesignInletWaterTemperature(coil.designInletWaterTemperature.get + coil.designInletWaterTemperature.get * design_inlet_water_temperature * 0.01)
237
- altered_coilefficiency << coil.handle.to_s
238
- altered_coil = true
239
- end
228
+ if design_inlet_water_temperature != 1.0 && coil.designInletWaterTemperature.is_initialized
229
+ runner.registerInfo("Applying designInletWaterTemperature #{design_inlet_water_temperature} PercentChange to #{coil.name.get}.")
230
+ coil.setDesignInletWaterTemperature(coil.designInletWaterTemperature.get + coil.designInletWaterTemperature.get * design_inlet_water_temperature * 0.01)
231
+ altered_coilefficiency << coil.handle.to_s
232
+ altered_coil = true
240
233
  end
241
234
 
242
235
  # design_inlet_air_humidity_ratio
243
- if design_inlet_air_humidity_ratio != 1.0
244
- if coil.designInletAirHumidityRatio.is_initialized
245
- runner.registerInfo("Applying designInletAirHumidityRatio #{design_inlet_air_humidity_ratio} PercentChange to #{coil.name.get}.")
246
- coil.setDesignInletAirHumidityRatio(coil.designInletAirHumidityRatio.get + coil.designInletAirHumidityRatio.get * design_inlet_air_humidity_ratio * 0.01)
247
- altered_capacity << coil.handle.to_s
248
- altered_coil = true
249
- end
236
+ if design_inlet_air_humidity_ratio != 1.0 && coil.designInletAirHumidityRatio.is_initialized
237
+ runner.registerInfo("Applying designInletAirHumidityRatio #{design_inlet_air_humidity_ratio} PercentChange to #{coil.name.get}.")
238
+ coil.setDesignInletAirHumidityRatio(coil.designInletAirHumidityRatio.get + coil.designInletAirHumidityRatio.get * design_inlet_air_humidity_ratio * 0.01)
239
+ altered_capacity << coil.handle.to_s
240
+ altered_coil = true
250
241
  end
251
242
 
252
243
  # modify design_outlet_air_temperature
253
- if design_outlet_air_temperature != 1.0
254
- if coil.designOutletAirTemperature.is_initialized
255
- runner.registerInfo("Applying designOutletAirTemperature #{design_outlet_air_temperature} PercentChange to #{coil.name.get}.")
256
- coil.setDesignOutletAirTemperature(coil.designOutletAirTemperature.get + coil.designOutletAirTemperature.get * design_outlet_air_temperature * 0.01)
257
- altered_coilefficiency << coil.handle.to_s
258
- altered_coil = true
259
- end
244
+ if design_outlet_air_temperature != 1.0 && coil.designOutletAirTemperature.is_initialized
245
+ runner.registerInfo("Applying designOutletAirTemperature #{design_outlet_air_temperature} PercentChange to #{coil.name.get}.")
246
+ coil.setDesignOutletAirTemperature(coil.designOutletAirTemperature.get + coil.designOutletAirTemperature.get * design_outlet_air_temperature * 0.01)
247
+ altered_coilefficiency << coil.handle.to_s
248
+ altered_coil = true
260
249
  end
261
250
  next unless altered_coil
251
+
262
252
  altered_coils << coil.handle.to_s
263
253
  change_name(coil, design_water_flow_rate, design_air_flow_rate, design_inlet_water_temperature, design_inlet_air_temperature, design_outlet_air_temperature, design_inlet_air_humidity_ratio)
264
254
  runner.registerInfo("coil name changed to: #{coil.name.get}")
265
- end # end coil loop
255
+ end
266
256
 
267
257
  # na if nothing in model to look at
268
258
  if altered_coils.empty?
@@ -3,8 +3,8 @@
3
3
  <schema_version>3.0</schema_version>
4
4
  <name>coil_cooling_water_percent_change</name>
5
5
  <uid>51bc1f02-f01b-4c5e-818a-db76ed783665</uid>
6
- <version_id>5849b1f2-9684-4c5c-99c4-82ecb8fd9140</version_id>
7
- <version_modified>20230602T154657Z</version_modified>
6
+ <version_id>58fb29b6-9679-4de4-954c-9da689fe2158</version_id>
7
+ <version_modified>20240428T231349Z</version_modified>
8
8
  <xml_checksum>8CBDDA1B</xml_checksum>
9
9
  <class_name>CoilCoolingWaterPercentChange</class_name>
10
10
  <display_name>Cooling Coils Water PercentChange</display_name>
@@ -17,10 +17,10 @@
17
17
  <type>Choice</type>
18
18
  <required>true</required>
19
19
  <model_dependent>false</model_dependent>
20
- <default_value>{d9bfc0be-6550-4a03-81a7-b78fce47e185}</default_value>
20
+ <default_value>{781f2104-198d-4b58-9aef-98b64a40ca0f}</default_value>
21
21
  <choices>
22
22
  <choice>
23
- <value>{d9bfc0be-6550-4a03-81a7-b78fce47e185}</value>
23
+ <value>{781f2104-198d-4b58-9aef-98b64a40ca0f}</value>
24
24
  <display_name>*All Water Cooling Coils*</display_name>
25
25
  </choice>
26
26
  <choice>
@@ -124,7 +124,7 @@
124
124
  <filename>measure.rb</filename>
125
125
  <filetype>rb</filetype>
126
126
  <usage_type>script</usage_type>
127
- <checksum>D677B6DA</checksum>
127
+ <checksum>902E3CC4</checksum>
128
128
  </file>
129
129
  </files>
130
130
  </measure>
@@ -59,6 +59,7 @@ class CoilHeatingElectricMultiplier < OpenStudio::Measure::ModelMeasure
59
59
  components = value.supplyComponents
60
60
  components.each do |component|
61
61
  next if component.to_CoilHeatingGas.empty?
62
+
62
63
  show_loop = true
63
64
  loop_handles << component.handle.to_s
64
65
  loop_display_names << component.name.to_s
@@ -165,13 +166,11 @@ class CoilHeatingElectricMultiplier < OpenStudio::Measure::ModelMeasure
165
166
  coils.each do |coil|
166
167
  altered_coil = false
167
168
  # coil_capacity_multiplier
168
- if coil_capacity_multiplier != 1.0
169
- if coil.nominalCapacity.is_initialized
170
- runner.registerInfo("Applying nominalCapacity #{coil_capacity_multiplier}x multiplier to #{coil.name.get}.")
171
- coil.setNominalCapacity(coil.nominalCapacity.get * coil_capacity_multiplier)
172
- altered_capacity << coil.handle.to_s
173
- altered_coil = true
174
- end
169
+ if coil_capacity_multiplier != 1.0 && coil.nominalCapacity.is_initialized
170
+ runner.registerInfo("Applying nominalCapacity #{coil_capacity_multiplier}x multiplier to #{coil.name.get}.")
171
+ coil.setNominalCapacity(coil.nominalCapacity.get * coil_capacity_multiplier)
172
+ altered_capacity << coil.handle.to_s
173
+ altered_coil = true
175
174
  end
176
175
 
177
176
  # modify coil_efficiency_multiplier
@@ -188,10 +187,11 @@ class CoilHeatingElectricMultiplier < OpenStudio::Measure::ModelMeasure
188
187
  end
189
188
 
190
189
  next unless altered_coil
190
+
191
191
  altered_coils << coil.handle.to_s
192
192
  change_name(coil, coil_efficiency_multiplier, coil_capacity_multiplier)
193
193
  runner.registerInfo("coil name changed to: #{coil.name.get}")
194
- end # end coil loop
194
+ end
195
195
 
196
196
  # na if nothing in model to look at
197
197
  if altered_coils.empty?
@@ -3,8 +3,8 @@
3
3
  <schema_version>3.0</schema_version>
4
4
  <name>coil_heating_electric_multiplier</name>
5
5
  <uid>122e854c-d939-4bea-822a-89f2a5584a01</uid>
6
- <version_id>40e35fbe-f570-47f2-a4a4-b5ac715acf6f</version_id>
7
- <version_modified>20230602T154653Z</version_modified>
6
+ <version_id>6d435365-a6b7-4abd-8e20-2c54b12ea137</version_id>
7
+ <version_modified>20240428T231345Z</version_modified>
8
8
  <xml_checksum>1F3D2430</xml_checksum>
9
9
  <class_name>CoilHeatingElectricMultiplier</class_name>
10
10
  <display_name>Heating Coils Electric Multiplier</display_name>
@@ -17,10 +17,10 @@
17
17
  <type>Choice</type>
18
18
  <required>true</required>
19
19
  <model_dependent>false</model_dependent>
20
- <default_value>{f12117f4-0ba5-4044-beea-e56786ca9b56}</default_value>
20
+ <default_value>{6c0fcad3-8efb-4f52-a158-bf54126c296b}</default_value>
21
21
  <choices>
22
22
  <choice>
23
- <value>{f12117f4-0ba5-4044-beea-e56786ca9b56}</value>
23
+ <value>{6c0fcad3-8efb-4f52-a158-bf54126c296b}</value>
24
24
  <display_name>*All Electric Heating Coils*</display_name>
25
25
  </choice>
26
26
  <choice>
@@ -88,7 +88,7 @@
88
88
  <filename>measure.rb</filename>
89
89
  <filetype>rb</filetype>
90
90
  <usage_type>script</usage_type>
91
- <checksum>7345C739</checksum>
91
+ <checksum>D0A71B8C</checksum>
92
92
  </file>
93
93
  </files>
94
94
  </measure>
@@ -52,6 +52,7 @@ class CoilHeatingElectricPercentChange < OpenStudio::Measure::ModelMeasure
52
52
  components = value.supplyComponents
53
53
  components.each do |component|
54
54
  next if component.to_CoilHeatingElectric.empty?
55
+
55
56
  show_loop = true
56
57
  loop_handles << component.handle.to_s
57
58
  loop_display_names << component.name.to_s
@@ -156,13 +157,11 @@ class CoilHeatingElectricPercentChange < OpenStudio::Measure::ModelMeasure
156
157
  coils.each do |coil|
157
158
  altered_coil = false
158
159
  # coil_capacity_perc_change
159
- if coil_capacity_perc_change != 0.0
160
- if coil.nominalCapacity.is_initialized
161
- runner.registerInfo("Applying nominalCapacity #{coil_capacity_perc_change} Percent Change to #{coil.name.get}.")
162
- coil.setNominalCapacity(coil.nominalCapacity.get + coil.nominalCapacity.get * coil_capacity_perc_change * 0.01)
163
- altered_capacity << coil.handle.to_s
164
- altered_coil = true
165
- end
160
+ if coil_capacity_perc_change != 0.0 && coil.nominalCapacity.is_initialized
161
+ runner.registerInfo("Applying nominalCapacity #{coil_capacity_perc_change} Percent Change to #{coil.name.get}.")
162
+ coil.setNominalCapacity(coil.nominalCapacity.get + coil.nominalCapacity.get * coil_capacity_perc_change * 0.01)
163
+ altered_capacity << coil.handle.to_s
164
+ altered_coil = true
166
165
  end
167
166
 
168
167
  # modify coil_efficiency_perc_change
@@ -179,10 +178,11 @@ class CoilHeatingElectricPercentChange < OpenStudio::Measure::ModelMeasure
179
178
  end
180
179
 
181
180
  next unless altered_coil
181
+
182
182
  altered_coils << coil.handle.to_s
183
183
  change_name(coil, coil_efficiency_perc_change, coil_capacity_perc_change)
184
184
  runner.registerInfo("coil name changed to: #{coil.name.get}")
185
- end # end coil loop
185
+ end
186
186
 
187
187
  # na if nothing in model to look at
188
188
  if altered_coils.empty?
@@ -3,8 +3,8 @@
3
3
  <schema_version>3.0</schema_version>
4
4
  <name>coil_heating_electric_percent_change</name>
5
5
  <uid>7c681481-16d2-4a8e-b0a3-71a86639f53a</uid>
6
- <version_id>a32b82fd-48b3-4c85-afec-9728db06060e</version_id>
7
- <version_modified>20230602T154652Z</version_modified>
6
+ <version_id>9634ad41-67e9-4893-93b0-f43e6522111f</version_id>
7
+ <version_modified>20240428T231344Z</version_modified>
8
8
  <xml_checksum>1F3D2430</xml_checksum>
9
9
  <class_name>CoilHeatingElectricPercentChange</class_name>
10
10
  <display_name>Heating Coils Electric Percent Change</display_name>
@@ -17,10 +17,10 @@
17
17
  <type>Choice</type>
18
18
  <required>true</required>
19
19
  <model_dependent>false</model_dependent>
20
- <default_value>{03dd33f6-1eda-42e8-8367-db9829a9f386}</default_value>
20
+ <default_value>{8165b5f0-2810-4f3a-ba90-a7e7f3f349e5}</default_value>
21
21
  <choices>
22
22
  <choice>
23
- <value>{03dd33f6-1eda-42e8-8367-db9829a9f386}</value>
23
+ <value>{8165b5f0-2810-4f3a-ba90-a7e7f3f349e5}</value>
24
24
  <display_name>*All Electric Heating Coils*</display_name>
25
25
  </choice>
26
26
  <choice>
@@ -88,7 +88,7 @@
88
88
  <filename>measure.rb</filename>
89
89
  <filetype>rb</filetype>
90
90
  <usage_type>script</usage_type>
91
- <checksum>0DF92CE0</checksum>
91
+ <checksum>47B0CA97</checksum>
92
92
  </file>
93
93
  </files>
94
94
  </measure>
@@ -65,6 +65,7 @@ class CoilHeatingGasMultiplier < OpenStudio::Measure::ModelMeasure
65
65
  components = value.supplyComponents
66
66
  components.each do |component|
67
67
  next if component.to_CoilHeatingGas.empty?
68
+
68
69
  show_loop = true
69
70
  loop_handles << component.handle.to_s
70
71
  loop_display_names << component.name.to_s
@@ -191,13 +192,11 @@ class CoilHeatingGasMultiplier < OpenStudio::Measure::ModelMeasure
191
192
  coils.each do |coil|
192
193
  altered_coil = false
193
194
  # coil_capacity_multiplier
194
- if coil_capacity_multiplier != 1.0
195
- if coil.nominalCapacity.is_initialized
196
- runner.registerInfo("Applying nominalCapacity #{coil_capacity_multiplier}x multiplier to #{coil.name.get}.")
197
- coil.setNominalCapacity(coil.nominalCapacity.get * coil_capacity_multiplier)
198
- altered_capacity << coil.handle.to_s
199
- altered_coil = true
200
- end
195
+ if coil_capacity_multiplier != 1.0 && coil.nominalCapacity.is_initialized
196
+ runner.registerInfo("Applying nominalCapacity #{coil_capacity_multiplier}x multiplier to #{coil.name.get}.")
197
+ coil.setNominalCapacity(coil.nominalCapacity.get * coil_capacity_multiplier)
198
+ altered_capacity << coil.handle.to_s
199
+ altered_coil = true
201
200
  end
202
201
 
203
202
  # modify coil_efficiency_multiplier
@@ -230,10 +229,11 @@ class CoilHeatingGasMultiplier < OpenStudio::Measure::ModelMeasure
230
229
  end
231
230
 
232
231
  next unless altered_coil
232
+
233
233
  altered_coils << coil.handle.to_s
234
234
  change_name(coil, coil_parasitic_gas_multiplier, coil_efficiency_multiplier, coil_parasitic_electric_multiplier, coil_capacity_multiplier)
235
235
  runner.registerInfo("coil name changed to: #{coil.name.get}")
236
- end # end coil loop
236
+ end
237
237
 
238
238
  # na if nothing in model to look at
239
239
  if altered_coils.empty?
@@ -3,8 +3,8 @@
3
3
  <schema_version>3.0</schema_version>
4
4
  <name>coil_heating_gas_multiplier</name>
5
5
  <uid>a4843fc4-4cc7-4112-b5a9-aef81cbeac63</uid>
6
- <version_id>2bba21d4-ad75-4b89-a456-67d363615e11</version_id>
7
- <version_modified>20230602T154652Z</version_modified>
6
+ <version_id>d7386049-e873-42ab-91ab-e8fb1bcb854e</version_id>
7
+ <version_modified>20240428T231344Z</version_modified>
8
8
  <xml_checksum>1F3D2430</xml_checksum>
9
9
  <class_name>CoilHeatingGasMultiplier</class_name>
10
10
  <display_name>Heating Coils Gas Multiplier</display_name>
@@ -17,10 +17,10 @@
17
17
  <type>Choice</type>
18
18
  <required>true</required>
19
19
  <model_dependent>false</model_dependent>
20
- <default_value>{5f4850af-80af-4fdb-9f0b-67dd53dd667c}</default_value>
20
+ <default_value>{a52407fd-38d7-41da-8814-d4aebd7a3b77}</default_value>
21
21
  <choices>
22
22
  <choice>
23
- <value>{5f4850af-80af-4fdb-9f0b-67dd53dd667c}</value>
23
+ <value>{a52407fd-38d7-41da-8814-d4aebd7a3b77}</value>
24
24
  <display_name>*All Gas Heating Coils*</display_name>
25
25
  </choice>
26
26
  <choice>
@@ -106,7 +106,7 @@
106
106
  <filename>measure.rb</filename>
107
107
  <filetype>rb</filetype>
108
108
  <usage_type>script</usage_type>
109
- <checksum>5E2F407B</checksum>
109
+ <checksum>465A06A5</checksum>
110
110
  </file>
111
111
  </files>
112
112
  </measure>