openstudio-calibration 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 (116) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +7 -0
  3. data/Gemfile +1 -1
  4. data/Jenkinsfile +1 -1
  5. data/LICENSE.md +1 -1
  6. data/README.md +2 -0
  7. data/Rakefile +3 -0
  8. data/lib/measures/AddMonthlyJSONUtilityData/LICENSE.md +1 -1
  9. data/lib/measures/AddMonthlyJSONUtilityData/measure.rb +3 -3
  10. data/lib/measures/AddMonthlyJSONUtilityData/measure.xml +12 -12
  11. data/lib/measures/AddMonthlyUtilityData/LICENSE.md +1 -1
  12. data/lib/measures/AddMonthlyUtilityData/measure.xml +29 -29
  13. data/lib/measures/CalibrationReports/LICENSE.md +1 -1
  14. data/lib/measures/CalibrationReports/README.md +2 -2
  15. data/lib/measures/CalibrationReports/measure.rb +1 -3
  16. data/lib/measures/CalibrationReports/measure.xml +41 -42
  17. data/lib/measures/CalibrationReportsEnhanced/LICENSE.md +1 -1
  18. data/lib/measures/CalibrationReportsEnhanced/measure.rb +21 -22
  19. data/lib/measures/CalibrationReportsEnhanced/measure.xml +41 -41
  20. data/lib/measures/CoilCoolingDXSingleSpeedMultiplier/LICENSE.md +1 -1
  21. data/lib/measures/CoilCoolingDXSingleSpeedMultiplier/measure.rb +12 -12
  22. data/lib/measures/CoilCoolingDXSingleSpeedMultiplier/measure.xml +14 -14
  23. data/lib/measures/CoilCoolingDXSingleSpeedPercentChange/LICENSE.md +1 -1
  24. data/lib/measures/CoilCoolingDXSingleSpeedPercentChange/measure.rb +12 -12
  25. data/lib/measures/CoilCoolingDXSingleSpeedPercentChange/measure.xml +14 -14
  26. data/lib/measures/CoilCoolingDXTwoSpeedMultiplier/LICENSE.md +1 -1
  27. data/lib/measures/CoilCoolingDXTwoSpeedMultiplier/measure.rb +21 -23
  28. data/lib/measures/CoilCoolingDXTwoSpeedMultiplier/measure.xml +14 -14
  29. data/lib/measures/CoilCoolingDXTwoSpeedPercentChange/LICENSE.md +1 -1
  30. data/lib/measures/CoilCoolingDXTwoSpeedPercentChange/measure.rb +21 -23
  31. data/lib/measures/CoilCoolingDXTwoSpeedPercentChange/measure.xml +14 -14
  32. data/lib/measures/CoilCoolingWaterMultiplier/LICENSE.md +1 -1
  33. data/lib/measures/CoilCoolingWaterMultiplier/measure.rb +33 -43
  34. data/lib/measures/CoilCoolingWaterMultiplier/measure.xml +14 -14
  35. data/lib/measures/CoilCoolingWaterPercentChange/LICENSE.md +1 -1
  36. data/lib/measures/CoilCoolingWaterPercentChange/measure.rb +33 -43
  37. data/lib/measures/CoilCoolingWaterPercentChange/measure.xml +14 -14
  38. data/lib/measures/CoilHeatingElectricMultiplier/LICENSE.md +1 -1
  39. data/lib/measures/CoilHeatingElectricMultiplier/measure.rb +8 -8
  40. data/lib/measures/CoilHeatingElectricMultiplier/measure.xml +14 -14
  41. data/lib/measures/CoilHeatingElectricPercentChange/LICENSE.md +1 -1
  42. data/lib/measures/CoilHeatingElectricPercentChange/measure.rb +8 -8
  43. data/lib/measures/CoilHeatingElectricPercentChange/measure.xml +14 -14
  44. data/lib/measures/CoilHeatingGasMultiplier/LICENSE.md +1 -1
  45. data/lib/measures/CoilHeatingGasMultiplier/measure.rb +8 -8
  46. data/lib/measures/CoilHeatingGasMultiplier/measure.xml +14 -14
  47. data/lib/measures/CoilHeatingGasPercentChange/LICENSE.md +1 -1
  48. data/lib/measures/CoilHeatingGasPercentChange/measure.rb +8 -8
  49. data/lib/measures/CoilHeatingGasPercentChange/measure.xml +14 -14
  50. data/lib/measures/CoilHeatingWaterMultiplier/LICENSE.md +1 -1
  51. data/lib/measures/CoilHeatingWaterMultiplier/measure.rb +13 -15
  52. data/lib/measures/CoilHeatingWaterMultiplier/measure.xml +14 -14
  53. data/lib/measures/CoilHeatingWaterPercentChange/LICENSE.md +1 -1
  54. data/lib/measures/CoilHeatingWaterPercentChange/measure.rb +13 -15
  55. data/lib/measures/CoilHeatingWaterPercentChange/measure.xml +14 -14
  56. data/lib/measures/ConstructionLayerZeroMaterialProperties/LICENSE.md +1 -1
  57. data/lib/measures/ConstructionLayerZeroMaterialProperties/measure.rb +4 -4
  58. data/lib/measures/ConstructionLayerZeroMaterialProperties/measure.xml +12 -12
  59. data/lib/measures/ElectricBaseboardEfficiencyAndCapacity/LICENSE.md +1 -1
  60. data/lib/measures/ElectricBaseboardEfficiencyAndCapacity/measure.xml +11 -11
  61. data/lib/measures/ExteriorWallThermalPropertiesMultiplier/LICENSE.md +1 -1
  62. data/lib/measures/ExteriorWallThermalPropertiesMultiplier/measure.rb +8 -5
  63. data/lib/measures/ExteriorWallThermalPropertiesMultiplier/measure.xml +18 -18
  64. data/lib/measures/ExteriorWallThermalPropertiesPercentChange/LICENSE.md +1 -1
  65. data/lib/measures/ExteriorWallThermalPropertiesPercentChange/measure.rb +8 -5
  66. data/lib/measures/ExteriorWallThermalPropertiesPercentChange/measure.xml +18 -18
  67. data/lib/measures/FansMultiplier/LICENSE.md +1 -1
  68. data/lib/measures/FansMultiplier/measure.rb +8 -8
  69. data/lib/measures/FansMultiplier/measure.xml +14 -14
  70. data/lib/measures/FansPercentChange/LICENSE.md +1 -1
  71. data/lib/measures/FansPercentChange/measure.rb +8 -8
  72. data/lib/measures/FansPercentChange/measure.xml +14 -14
  73. data/lib/measures/GeneralCalibrationMeasureMultiplier/LICENSE.md +1 -1
  74. data/lib/measures/GeneralCalibrationMeasureMultiplier/measure.rb +2 -2
  75. data/lib/measures/GeneralCalibrationMeasureMultiplier/measure.xml +16 -16
  76. data/lib/measures/GeneralCalibrationMeasurePercentChange/LICENSE.md +1 -1
  77. data/lib/measures/GeneralCalibrationMeasurePercentChange/measure.rb +2 -2
  78. data/lib/measures/GeneralCalibrationMeasurePercentChange/measure.xml +16 -16
  79. data/lib/measures/HardSizeHvac/LICENSE.md +1 -1
  80. data/lib/measures/HardSizeHvac/measure.rb +2 -4
  81. data/lib/measures/HardSizeHvac/measure.xml +19 -19
  82. data/lib/measures/RValueOfInsulationForConstructionMultiplier/LICENSE.md +1 -1
  83. data/lib/measures/RValueOfInsulationForConstructionMultiplier/measure.rb +7 -9
  84. data/lib/measures/RValueOfInsulationForConstructionMultiplier/measure.xml +12 -12
  85. data/lib/measures/RValueOfInsulationForConstructionPercentageChange/LICENSE.md +1 -1
  86. data/lib/measures/RValueOfInsulationForConstructionPercentageChange/measure.rb +7 -9
  87. data/lib/measures/RValueOfInsulationForConstructionPercentageChange/measure.xml +12 -12
  88. data/lib/measures/RoofThermalPropertiesMultiplier/LICENSE.md +1 -1
  89. data/lib/measures/RoofThermalPropertiesMultiplier/measure.rb +8 -5
  90. data/lib/measures/RoofThermalPropertiesMultiplier/measure.xml +18 -18
  91. data/lib/measures/RoofThermalPropertiesPercentChange/LICENSE.md +1 -1
  92. data/lib/measures/RoofThermalPropertiesPercentChange/measure.rb +8 -5
  93. data/lib/measures/RoofThermalPropertiesPercentChange/measure.xml +18 -18
  94. data/lib/measures/TimeseriesObjectiveFunction/LICENSE.md +1 -1
  95. data/lib/measures/TimeseriesObjectiveFunction/measure.rb +26 -23
  96. data/lib/measures/TimeseriesObjectiveFunction/measure.xml +11 -16
  97. data/lib/measures/TimeseriesObjectiveFunction/resources/report.html.erb +3 -0
  98. data/lib/measures/TimeseriesPlot/LICENSE.md +1 -1
  99. data/lib/measures/TimeseriesPlot/measure.rb +1 -3
  100. data/lib/measures/TimeseriesPlot/measure.xml +13 -13
  101. data/lib/measures/TimeseriesPlot/resources/report.html.erb +3 -0
  102. data/lib/measures/WaterHeaterMixedMultiplier/LICENSE.md +1 -1
  103. data/lib/measures/WaterHeaterMixedMultiplier/measure.rb +17 -22
  104. data/lib/measures/WaterHeaterMixedMultiplier/measure.xml +14 -14
  105. data/lib/measures/WaterHeaterMixedPercentChange/LICENSE.md +1 -1
  106. data/lib/measures/WaterHeaterMixedPercentChange/measure.rb +17 -22
  107. data/lib/measures/WaterHeaterMixedPercentChange/measure.xml +14 -14
  108. data/lib/measures/inspect_and_edit_parametric_schedules/LICENSE.md +1 -1
  109. data/lib/measures/inspect_and_edit_parametric_schedules/measure.rb +13 -11
  110. data/lib/measures/inspect_and_edit_parametric_schedules/measure.xml +29 -29
  111. data/lib/measures/shift_hours_of_operation/LICENSE.md +1 -1
  112. data/lib/measures/shift_hours_of_operation/measure.rb +31 -29
  113. data/lib/measures/shift_hours_of_operation/measure.xml +51 -37
  114. data/lib/openstudio/calibration/version.rb +1 -1
  115. data/openstudio-calibration.gemspec +12 -6
  116. metadata +55 -13
@@ -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>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>ae70a39c-c633-4bcc-b94c-c5c542836b7d</version_id>
7
+ <version_modified>2024-11-16T23:44:47Z</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>{6a5cccf6-a939-410f-8fe9-70215fd94b0f}</default_value>
21
21
  <choices>
22
22
  <choice>
23
- <value>{5f4850af-80af-4fdb-9f0b-67dd53dd667c}</value>
23
+ <value>{6a5cccf6-a939-410f-8fe9-70215fd94b0f}</value>
24
24
  <display_name>*All Gas Heating Coils*</display_name>
25
25
  </choice>
26
26
  <choice>
@@ -80,10 +80,10 @@
80
80
  </attributes>
81
81
  <files>
82
82
  <file>
83
- <filename>README.md.erb</filename>
84
- <filetype>erb</filetype>
85
- <usage_type>readmeerb</usage_type>
86
- <checksum>703C9964</checksum>
83
+ <filename>LICENSE.md</filename>
84
+ <filetype>md</filetype>
85
+ <usage_type>license</usage_type>
86
+ <checksum>8696A072</checksum>
87
87
  </file>
88
88
  <file>
89
89
  <filename>README.md</filename>
@@ -92,10 +92,10 @@
92
92
  <checksum>B3D94A28</checksum>
93
93
  </file>
94
94
  <file>
95
- <filename>LICENSE.md</filename>
96
- <filetype>md</filetype>
97
- <usage_type>license</usage_type>
98
- <checksum>BFFB1AA6</checksum>
95
+ <filename>README.md.erb</filename>
96
+ <filetype>erb</filetype>
97
+ <usage_type>readmeerb</usage_type>
98
+ <checksum>703C9964</checksum>
99
99
  </file>
100
100
  <file>
101
101
  <version>
@@ -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>
@@ -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
 
@@ -58,6 +58,7 @@ class CoilHeatingGasPercentChange < OpenStudio::Measure::ModelMeasure
58
58
  components = value.supplyComponents
59
59
  components.each do |component|
60
60
  next if component.to_CoilHeatingGas.empty?
61
+
61
62
  show_loop = true
62
63
  loop_handles << component.handle.to_s
63
64
  loop_display_names << component.name.to_s
@@ -180,13 +181,11 @@ class CoilHeatingGasPercentChange < OpenStudio::Measure::ModelMeasure
180
181
  coils.each do |coil|
181
182
  altered_coil = false
182
183
  # coil_capacity_perc_change
183
- if coil_capacity_perc_change != 0.0
184
- if coil.nominalCapacity.is_initialized
185
- runner.registerInfo("Applying nominalCapacity #{coil_capacity_perc_change} Percent Change to #{coil.name.get}.")
186
- coil.setNominalCapacity(coil.nominalCapacity.get + coil.nominalCapacity.get * coil_capacity_perc_change * 0.01)
187
- altered_capacity << coil.handle.to_s
188
- altered_coil = true
189
- end
184
+ if coil_capacity_perc_change != 0.0 && coil.nominalCapacity.is_initialized
185
+ runner.registerInfo("Applying nominalCapacity #{coil_capacity_perc_change} Percent Change to #{coil.name.get}.")
186
+ coil.setNominalCapacity(coil.nominalCapacity.get + coil.nominalCapacity.get * coil_capacity_perc_change * 0.01)
187
+ altered_capacity << coil.handle.to_s
188
+ altered_coil = true
190
189
  end
191
190
 
192
191
  # modify coil_efficiency_perc_change
@@ -219,10 +218,11 @@ class CoilHeatingGasPercentChange < OpenStudio::Measure::ModelMeasure
219
218
  end
220
219
 
221
220
  next unless altered_coil
221
+
222
222
  altered_coils << coil.handle.to_s
223
223
  change_name(coil, coil_parasitic_gas_perc_change, coil_efficiency_perc_change, coil_parasitic_electric_perc_change, coil_capacity_perc_change)
224
224
  runner.registerInfo("coil name changed to: #{coil.name.get}")
225
- end # end coil loop
225
+ end
226
226
 
227
227
  # na if nothing in model to look at
228
228
  if altered_coils.empty?
@@ -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>coil_heating_gas_percent_change</name>
5
5
  <uid>8589af79-cfe7-45fb-9c79-e7b95e5fb02f</uid>
6
- <version_id>ea6e0ebc-c5b8-40cf-9139-75b9e3c0ac92</version_id>
7
- <version_modified>20230602T154653Z</version_modified>
6
+ <version_id>83f09418-9315-4b55-894c-ab7ce3a37da8</version_id>
7
+ <version_modified>2024-11-16T23:44:47Z</version_modified>
8
8
  <xml_checksum>1F3D2430</xml_checksum>
9
9
  <class_name>CoilHeatingGasPercentChange</class_name>
10
10
  <display_name>Heating Coils Gas 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>{b8bc9ec0-4bbf-4437-aa27-64d7f682926f}</default_value>
20
+ <default_value>{c812e4f1-f99d-4c3c-9913-b990305f8465}</default_value>
21
21
  <choices>
22
22
  <choice>
23
- <value>{b8bc9ec0-4bbf-4437-aa27-64d7f682926f}</value>
23
+ <value>{c812e4f1-f99d-4c3c-9913-b990305f8465}</value>
24
24
  <display_name>*All Gas Heating Coils*</display_name>
25
25
  </choice>
26
26
  <choice>
@@ -80,10 +80,10 @@
80
80
  </attributes>
81
81
  <files>
82
82
  <file>
83
- <filename>README.md.erb</filename>
84
- <filetype>erb</filetype>
85
- <usage_type>readmeerb</usage_type>
86
- <checksum>703C9964</checksum>
83
+ <filename>LICENSE.md</filename>
84
+ <filetype>md</filetype>
85
+ <usage_type>license</usage_type>
86
+ <checksum>8696A072</checksum>
87
87
  </file>
88
88
  <file>
89
89
  <filename>README.md</filename>
@@ -92,10 +92,10 @@
92
92
  <checksum>92E7D6F3</checksum>
93
93
  </file>
94
94
  <file>
95
- <filename>LICENSE.md</filename>
96
- <filetype>md</filetype>
97
- <usage_type>license</usage_type>
98
- <checksum>BFFB1AA6</checksum>
95
+ <filename>README.md.erb</filename>
96
+ <filetype>erb</filetype>
97
+ <usage_type>readmeerb</usage_type>
98
+ <checksum>703C9964</checksum>
99
99
  </file>
100
100
  <file>
101
101
  <version>
@@ -106,7 +106,7 @@
106
106
  <filename>measure.rb</filename>
107
107
  <filetype>rb</filetype>
108
108
  <usage_type>script</usage_type>
109
- <checksum>B18BB064</checksum>
109
+ <checksum>2E389481</checksum>
110
110
  </file>
111
111
  </files>
112
112
  </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
 
@@ -57,6 +57,7 @@ class CoilHeatingWaterMultiplier < OpenStudio::Measure::ModelMeasure
57
57
  components = value.supplyComponents
58
58
  components.each do |component|
59
59
  next if component.to_CoilHeatingWater.empty?
60
+
60
61
  show_loop = true
61
62
  loop_handles << component.handle.to_s
62
63
  loop_display_names << component.name.to_s
@@ -163,30 +164,27 @@ class CoilHeatingWaterMultiplier < OpenStudio::Measure::ModelMeasure
163
164
  coils.each do |coil|
164
165
  altered_coil = false
165
166
  # coil_capacity_multiplier
166
- if coil_capacity_multiplier != 1.0
167
- if coil.ratedCapacity.is_initialized
168
- runner.registerInfo("Applying ratedCapacity #{coil_capacity_multiplier}x multiplier to #{coil.name.get}.")
169
- coil.setRatedCapacity(coil.ratedCapacity.get * coil_capacity_multiplier)
170
- altered_capacity << coil.handle.to_s
171
- altered_coil = true
172
- end
167
+ if coil_capacity_multiplier != 1.0 && coil.ratedCapacity.is_initialized
168
+ runner.registerInfo("Applying ratedCapacity #{coil_capacity_multiplier}x multiplier to #{coil.name.get}.")
169
+ coil.setRatedCapacity(coil.ratedCapacity.get * coil_capacity_multiplier)
170
+ altered_capacity << coil.handle.to_s
171
+ altered_coil = true
173
172
  end
174
173
 
175
174
  # modify ua_factor
176
- if ua_factor != 1.0
177
- if coil.uFactorTimesAreaValue.is_initialized
178
- runner.registerInfo("Applying uFactorTimesAreaValue #{ua_factor}x multiplier to #{coil.name.get}.")
179
- coil.setUFactorTimesAreaValue(coil.uFactorTimesAreaValue.get * ua_factor)
180
- altered_coilefficiency << coil.handle.to_s
181
- altered_coil = true
182
- end
175
+ if ua_factor != 1.0 && coil.uFactorTimesAreaValue.is_initialized
176
+ runner.registerInfo("Applying uFactorTimesAreaValue #{ua_factor}x multiplier to #{coil.name.get}.")
177
+ coil.setUFactorTimesAreaValue(coil.uFactorTimesAreaValue.get * ua_factor)
178
+ altered_coilefficiency << coil.handle.to_s
179
+ altered_coil = true
183
180
  end
184
181
 
185
182
  next unless altered_coil
183
+
186
184
  altered_coils << coil.handle.to_s
187
185
  change_name(coil, ua_factor, coil_capacity_multiplier)
188
186
  runner.registerInfo("coil name changed to: #{coil.name.get}")
189
- end # end coil loop
187
+ end
190
188
 
191
189
  # na if nothing in model to look at
192
190
  if altered_coils.empty?
@@ -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>coil_heating_water_multiplier</name>
5
5
  <uid>48c50a83-4092-4f2b-9968-8c820759f321</uid>
6
- <version_id>879615bf-75fa-4c33-91b0-75bbac7dc69a</version_id>
7
- <version_modified>20230602T154653Z</version_modified>
6
+ <version_id>aadbca9a-c90d-43b4-b50b-1b94e5143f05</version_id>
7
+ <version_modified>2024-11-16T23:44:47Z</version_modified>
8
8
  <xml_checksum>1F3D2430</xml_checksum>
9
9
  <class_name>CoilHeatingWaterMultiplier</class_name>
10
10
  <display_name>Heating 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>{60548f35-634d-40b3-b2f2-ad5241ee9f73}</default_value>
20
+ <default_value>{88c5b12a-013f-490d-8b50-be9b860b4776}</default_value>
21
21
  <choices>
22
22
  <choice>
23
- <value>{60548f35-634d-40b3-b2f2-ad5241ee9f73}</value>
23
+ <value>{88c5b12a-013f-490d-8b50-be9b860b4776}</value>
24
24
  <display_name>*All Water Heating Coils*</display_name>
25
25
  </choice>
26
26
  <choice>
@@ -62,10 +62,10 @@
62
62
  </attributes>
63
63
  <files>
64
64
  <file>
65
- <filename>README.md.erb</filename>
66
- <filetype>erb</filetype>
67
- <usage_type>readmeerb</usage_type>
68
- <checksum>703C9964</checksum>
65
+ <filename>LICENSE.md</filename>
66
+ <filetype>md</filetype>
67
+ <usage_type>license</usage_type>
68
+ <checksum>8696A072</checksum>
69
69
  </file>
70
70
  <file>
71
71
  <filename>README.md</filename>
@@ -74,10 +74,10 @@
74
74
  <checksum>AF41656A</checksum>
75
75
  </file>
76
76
  <file>
77
- <filename>LICENSE.md</filename>
78
- <filetype>md</filetype>
79
- <usage_type>license</usage_type>
80
- <checksum>BFFB1AA6</checksum>
77
+ <filename>README.md.erb</filename>
78
+ <filetype>erb</filetype>
79
+ <usage_type>readmeerb</usage_type>
80
+ <checksum>703C9964</checksum>
81
81
  </file>
82
82
  <file>
83
83
  <version>
@@ -88,7 +88,7 @@
88
88
  <filename>measure.rb</filename>
89
89
  <filetype>rb</filetype>
90
90
  <usage_type>script</usage_type>
91
- <checksum>9FB8C5A3</checksum>
91
+ <checksum>3343F97A</checksum>
92
92
  </file>
93
93
  </files>
94
94
  </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
 
@@ -50,6 +50,7 @@ class CoilHeatingWaterPercentChange < OpenStudio::Measure::ModelMeasure
50
50
  components = value.supplyComponents
51
51
  components.each do |component|
52
52
  next if component.to_CoilHeatingWater.empty?
53
+
53
54
  show_loop = true
54
55
  loop_handles << component.handle.to_s
55
56
  loop_display_names << component.name.to_s
@@ -154,30 +155,27 @@ class CoilHeatingWaterPercentChange < OpenStudio::Measure::ModelMeasure
154
155
  coils.each do |coil|
155
156
  altered_coil = false
156
157
  # coil_capacity_perc_change
157
- if coil_capacity_perc_change != 0.0
158
- if coil.ratedCapacity.is_initialized
159
- runner.registerInfo("Applying ratedCapacity #{coil_capacity_perc_change} Percent Change to #{coil.name.get}.")
160
- coil.setRatedCapacity(coil.ratedCapacity.get + coil.ratedCapacity.get * coil_capacity_perc_change * 0.01)
161
- altered_capacity << coil.handle.to_s
162
- altered_coil = true
163
- end
158
+ if coil_capacity_perc_change != 0.0 && coil.ratedCapacity.is_initialized
159
+ runner.registerInfo("Applying ratedCapacity #{coil_capacity_perc_change} Percent Change to #{coil.name.get}.")
160
+ coil.setRatedCapacity(coil.ratedCapacity.get + coil.ratedCapacity.get * coil_capacity_perc_change * 0.01)
161
+ altered_capacity << coil.handle.to_s
162
+ altered_coil = true
164
163
  end
165
164
 
166
165
  # modify ua_factor
167
- if ua_factor != 0.0
168
- if coil.uFactorTimesAreaValue.is_initialized
169
- runner.registerInfo("Applying uFactorTimesAreaValue #{ua_factor} Percent Change to #{coil.name.get}.")
170
- coil.setUFactorTimesAreaValue(coil.uFactorTimesAreaValue.get + coil.uFactorTimesAreaValue.get * ua_factor * 0.01)
171
- altered_coilefficiency << coil.handle.to_s
172
- altered_coil = true
173
- end
166
+ if ua_factor != 0.0 && coil.uFactorTimesAreaValue.is_initialized
167
+ runner.registerInfo("Applying uFactorTimesAreaValue #{ua_factor} Percent Change to #{coil.name.get}.")
168
+ coil.setUFactorTimesAreaValue(coil.uFactorTimesAreaValue.get + coil.uFactorTimesAreaValue.get * ua_factor * 0.01)
169
+ altered_coilefficiency << coil.handle.to_s
170
+ altered_coil = true
174
171
  end
175
172
 
176
173
  next unless altered_coil
174
+
177
175
  altered_coils << coil.handle.to_s
178
176
  change_name(coil, ua_factor, coil_capacity_perc_change)
179
177
  runner.registerInfo("coil name changed to: #{coil.name.get}")
180
- end # end coil loop
178
+ end
181
179
 
182
180
  # na if nothing in model to look at
183
181
  if altered_coils.empty?
@@ -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>coil_heating_water_percent_change</name>
5
5
  <uid>85674ff6-4fdc-463f-9695-36bf6c6a2608</uid>
6
- <version_id>696c02e7-551b-41ad-81f0-e4c1dd18392f</version_id>
7
- <version_modified>20230602T154653Z</version_modified>
6
+ <version_id>7a8dcdec-d808-425a-9074-382a6a7cee5c</version_id>
7
+ <version_modified>2024-11-16T23:44:47Z</version_modified>
8
8
  <xml_checksum>1F3D2430</xml_checksum>
9
9
  <class_name>CoilHeatingWaterPercentChange</class_name>
10
10
  <display_name>Heating Coils Water 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>{5b417baa-44ad-40ae-b668-07c56229c812}</default_value>
20
+ <default_value>{16f6444c-4e12-411c-9246-6c3658da5564}</default_value>
21
21
  <choices>
22
22
  <choice>
23
- <value>{5b417baa-44ad-40ae-b668-07c56229c812}</value>
23
+ <value>{16f6444c-4e12-411c-9246-6c3658da5564}</value>
24
24
  <display_name>*All Water Heating Coils*</display_name>
25
25
  </choice>
26
26
  <choice>
@@ -62,10 +62,10 @@
62
62
  </attributes>
63
63
  <files>
64
64
  <file>
65
- <filename>README.md.erb</filename>
66
- <filetype>erb</filetype>
67
- <usage_type>readmeerb</usage_type>
68
- <checksum>703C9964</checksum>
65
+ <filename>LICENSE.md</filename>
66
+ <filetype>md</filetype>
67
+ <usage_type>license</usage_type>
68
+ <checksum>8696A072</checksum>
69
69
  </file>
70
70
  <file>
71
71
  <filename>README.md</filename>
@@ -74,10 +74,10 @@
74
74
  <checksum>FC6EE25F</checksum>
75
75
  </file>
76
76
  <file>
77
- <filename>LICENSE.md</filename>
78
- <filetype>md</filetype>
79
- <usage_type>license</usage_type>
80
- <checksum>BFFB1AA6</checksum>
77
+ <filename>README.md.erb</filename>
78
+ <filetype>erb</filetype>
79
+ <usage_type>readmeerb</usage_type>
80
+ <checksum>703C9964</checksum>
81
81
  </file>
82
82
  <file>
83
83
  <version>
@@ -88,7 +88,7 @@
88
88
  <filename>measure.rb</filename>
89
89
  <filetype>rb</filetype>
90
90
  <usage_type>script</usage_type>
91
- <checksum>F57B1BF5</checksum>
91
+ <checksum>4B3483F9</checksum>
92
92
  </file>
93
93
  </files>
94
94
  </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
 
@@ -106,7 +106,7 @@ class ConstructionLayerZeroMaterialProperties < OpenStudio::Measure::ModelMeasur
106
106
  args << specific_heat
107
107
 
108
108
  args
109
- end # end the arguments method
109
+ end
110
110
 
111
111
  # define what happens when the measure is run
112
112
  def run(model, runner, user_arguments)
@@ -143,7 +143,7 @@ class ConstructionLayerZeroMaterialProperties < OpenStudio::Measure::ModelMeasur
143
143
  runner.registerError('Script Error - argument not showing up as construction.')
144
144
  return false
145
145
  end
146
- end # end of if construction.empty?
146
+ end
147
147
 
148
148
  initial_r_value_ip = OpenStudio.convert(1.0 / construction.thermalConductance.to_f, 'm^2*K/W', 'ft^2*h*R/Btu')
149
149
  runner.registerInitialCondition("The Initial R-value of #{construction.name} is #{initial_r_value_ip} (ft^2*h*R/Btu).")
@@ -184,8 +184,8 @@ class ConstructionLayerZeroMaterialProperties < OpenStudio::Measure::ModelMeasur
184
184
  runner.registerValue('final_r_value_ip', final_r_value_ip.to_f, 'ft^2*h*R/Btu')
185
185
 
186
186
  true
187
- end # end the run method
188
- end # end the measure
187
+ end
188
+ end
189
189
 
190
190
  # this allows the measure to be used by the application
191
191
  ConstructionLayerZeroMaterialProperties.new.registerWithApplication
@@ -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>construction_layer_zero_material_properties</name>
5
5
  <uid>3c7a6751-bb54-4600-9410-8f042e1a413b</uid>
6
- <version_id>e7381878-8180-4462-8b6d-312383d57220</version_id>
7
- <version_modified>20230602T154652Z</version_modified>
6
+ <version_id>63f3ce5b-bdea-4c11-aa59-fbe076c1213c</version_id>
7
+ <version_modified>2024-11-16T23:44:47Z</version_modified>
8
8
  <xml_checksum>0BF71A3E</xml_checksum>
9
9
  <class_name>ConstructionLayerZeroMaterialProperties</class_name>
10
10
  <display_name>Change Parameters Of Material (Layer 0 of Construction)</display_name>
@@ -163,10 +163,10 @@
163
163
  </attributes>
164
164
  <files>
165
165
  <file>
166
- <filename>README.md.erb</filename>
167
- <filetype>erb</filetype>
168
- <usage_type>readmeerb</usage_type>
169
- <checksum>703C9964</checksum>
166
+ <filename>LICENSE.md</filename>
167
+ <filetype>md</filetype>
168
+ <usage_type>license</usage_type>
169
+ <checksum>8696A072</checksum>
170
170
  </file>
171
171
  <file>
172
172
  <filename>README.md</filename>
@@ -175,10 +175,10 @@
175
175
  <checksum>7D40EF5C</checksum>
176
176
  </file>
177
177
  <file>
178
- <filename>LICENSE.md</filename>
179
- <filetype>md</filetype>
180
- <usage_type>license</usage_type>
181
- <checksum>BFFB1AA6</checksum>
178
+ <filename>README.md.erb</filename>
179
+ <filetype>erb</filetype>
180
+ <usage_type>readmeerb</usage_type>
181
+ <checksum>703C9964</checksum>
182
182
  </file>
183
183
  <file>
184
184
  <version>
@@ -189,7 +189,7 @@
189
189
  <filename>measure.rb</filename>
190
190
  <filetype>rb</filetype>
191
191
  <usage_type>script</usage_type>
192
- <checksum>58B551D5</checksum>
192
+ <checksum>29E8078F</checksum>
193
193
  </file>
194
194
  </files>
195
195
  </measure>
@@ -1,4 +1,4 @@
1
- OpenStudio(R), Copyright (c) 2008, 2023 Alliance for Sustainable Energy, LLC.
1
+ OpenStudio(R), Copyright (c) 2008, 2024 Alliance for Sustainable Energy, LLC.
2
2
 
3
3
  Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
4
4
 
@@ -1,10 +1,10 @@
1
1
  <?xml version="1.0"?>
2
2
  <measure>
3
- <schema_version>3.0</schema_version>
3
+ <schema_version>3.1</schema_version>
4
4
  <name>electric_baseboard_efficiency_and_capacity</name>
5
5
  <uid>4253e38c-6b48-4e96-8da7-002cec68d376</uid>
6
- <version_id>9dde104f-0486-4756-86a7-c3ff3d90ff8e</version_id>
7
- <version_modified>20230602T154653Z</version_modified>
6
+ <version_id>8df67f0d-1595-4aff-8553-65f80728be00</version_id>
7
+ <version_modified>2024-11-16T23:44:47Z</version_modified>
8
8
  <xml_checksum>0DA5C9E6</xml_checksum>
9
9
  <class_name>ElectricBaseboardEfficiencyAndCapacity</class_name>
10
10
  <display_name>Electric Baseboard Efficiency And Capacity</display_name>
@@ -47,10 +47,10 @@
47
47
  </attributes>
48
48
  <files>
49
49
  <file>
50
- <filename>README.md.erb</filename>
51
- <filetype>erb</filetype>
52
- <usage_type>readmeerb</usage_type>
53
- <checksum>703C9964</checksum>
50
+ <filename>LICENSE.md</filename>
51
+ <filetype>md</filetype>
52
+ <usage_type>license</usage_type>
53
+ <checksum>8696A072</checksum>
54
54
  </file>
55
55
  <file>
56
56
  <filename>README.md</filename>
@@ -59,10 +59,10 @@
59
59
  <checksum>5B77F668</checksum>
60
60
  </file>
61
61
  <file>
62
- <filename>LICENSE.md</filename>
63
- <filetype>md</filetype>
64
- <usage_type>license</usage_type>
65
- <checksum>BFFB1AA6</checksum>
62
+ <filename>README.md.erb</filename>
63
+ <filetype>erb</filetype>
64
+ <usage_type>readmeerb</usage_type>
65
+ <checksum>703C9964</checksum>
66
66
  </file>
67
67
  <file>
68
68
  <version>
@@ -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
 
@@ -21,7 +21,8 @@ class ExteriorWallThermalPropertiesMultiplier < OpenStudio::Measure::ModelMeasur
21
21
  end
22
22
 
23
23
  # short def to make numbers pretty (converts 4125001.25641 to 4,125,001.26 or 4,125,001). The definition be called through this measure
24
- def neat_numbers(number, roundto = 2) # round to 0 or 2)
24
+ # round to 0 or 2)
25
+ def neat_numbers(number, roundto = 2)
25
26
  number = if roundto == 2
26
27
  format '%.2f', number
27
28
  else
@@ -29,7 +30,7 @@ class ExteriorWallThermalPropertiesMultiplier < OpenStudio::Measure::ModelMeasur
29
30
  end
30
31
  # regex to add commas
31
32
  number.to_s.reverse.gsub(/([0-9]{3}(?=([0-9])))/, '\\1,').reverse
32
- end # end def neat_numbers
33
+ end
33
34
 
34
35
  # helper to make it easier to do unit conversions on the fly
35
36
  def unit_helper(number, from_unit_string, to_unit_string)
@@ -64,7 +65,7 @@ class ExteriorWallThermalPropertiesMultiplier < OpenStudio::Measure::ModelMeasur
64
65
  args << thermal_mass_mult
65
66
 
66
67
  args
67
- end # end the arguments method
68
+ end
68
69
 
69
70
  # define what happens when the measure is run
70
71
  def run(model, runner, user_arguments)
@@ -89,6 +90,7 @@ class ExteriorWallThermalPropertiesMultiplier < OpenStudio::Measure::ModelMeasur
89
90
  exterior_surface_constructions = []
90
91
  surfaces.each do |surface|
91
92
  next unless surface.outsideBoundaryCondition == 'Outdoors' && surface.surfaceType == 'Wall'
93
+
92
94
  exterior_surfaces << surface
93
95
  exterior_surface_const = surface.construction.get
94
96
  # only add construction if it hasn't been added yet
@@ -155,6 +157,7 @@ class ExteriorWallThermalPropertiesMultiplier < OpenStudio::Measure::ModelMeasur
155
157
  end
156
158
  initial_sol_abs.each_index do |index1|
157
159
  next unless initial_sol_abs[index1]
160
+
158
161
  desired_sol_abs[index1] = initial_sol_abs[index1] * solar_abs_mult
159
162
  if desired_sol_abs[index1] > 1
160
163
  desired_sol_abs[index1] = 1
@@ -226,8 +229,8 @@ class ExteriorWallThermalPropertiesMultiplier < OpenStudio::Measure::ModelMeasur
226
229
  runner.registerFinalCondition("Applied R #{r_value_mult.round(1)}x Solar #{solar_abs_mult.round(1)}x Therm #{thermal_mass_mult.round(1)}x change")
227
230
 
228
231
  true
229
- end # end the run method
230
- end # end the measure
232
+ end
233
+ end
231
234
 
232
235
  # this allows the measure to be used by the application
233
236
  ExteriorWallThermalPropertiesMultiplier.new.registerWithApplication