openstudio-common-measures 0.3.0 → 0.5.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (522) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +1 -0
  3. data/.rubocop.yml +3 -1
  4. data/CHANGELOG.md +43 -0
  5. data/Jenkinsfile +2 -1
  6. data/LICENSE.md +1 -1
  7. data/README.md +14 -0
  8. data/doc_templates/LICENSE.md +1 -1
  9. data/doc_templates/copyright_erb.txt +1 -1
  10. data/doc_templates/copyright_js.txt +1 -1
  11. data/doc_templates/copyright_ruby.txt +1 -1
  12. data/lib/measures/AddCostPerAreaToConstruction/LICENSE.md +1 -1
  13. data/lib/measures/AddCostPerAreaToConstruction/measure.rb +1 -1
  14. data/lib/measures/AddCostPerAreaToConstruction/measure.xml +8 -7
  15. data/lib/measures/AddCostPerFloorAreaToBuilding/LICENSE.md +1 -1
  16. data/lib/measures/AddCostPerFloorAreaToBuilding/measure.rb +1 -1
  17. data/lib/measures/AddCostPerFloorAreaToBuilding/measure.xml +8 -7
  18. data/lib/measures/AddCostPerFloorAreaToElectricEquipment/LICENSE.md +1 -1
  19. data/lib/measures/AddCostPerFloorAreaToElectricEquipment/measure.rb +1 -1
  20. data/lib/measures/AddCostPerFloorAreaToElectricEquipment/measure.xml +8 -7
  21. data/lib/measures/AddCostPerFloorAreaToLights/LICENSE.md +1 -1
  22. data/lib/measures/AddCostPerFloorAreaToLights/measure.rb +1 -1
  23. data/lib/measures/AddCostPerFloorAreaToLights/measure.xml +8 -7
  24. data/lib/measures/AddCostPerFloorAreaUnusedToLights/LICENSE.md +1 -1
  25. data/lib/measures/AddCostPerFloorAreaUnusedToLights/measure.rb +1 -1
  26. data/lib/measures/AddCostPerFloorAreaUnusedToLights/measure.xml +8 -7
  27. data/lib/measures/AddCostToSupplySideHVACComponentByAirLoop/LICENSE.md +1 -1
  28. data/lib/measures/AddCostToSupplySideHVACComponentByAirLoop/measure.rb +1 -1
  29. data/lib/measures/AddCostToSupplySideHVACComponentByAirLoop/measure.xml +9 -8
  30. data/lib/measures/AddCostperAreatoUnusedConstruction/LICENSE.md +1 -1
  31. data/lib/measures/AddCostperAreatoUnusedConstruction/measure.rb +1 -1
  32. data/lib/measures/AddCostperAreatoUnusedConstruction/measure.xml +8 -7
  33. data/lib/measures/AddExteriorLights/LICENSE.md +1 -1
  34. data/lib/measures/AddExteriorLights/measure.rb +1 -1
  35. data/lib/measures/AddExteriorLights/measure.xml +8 -7
  36. data/lib/measures/AddMeter/LICENSE.md +1 -1
  37. data/lib/measures/AddMeter/measure.rb +1 -1
  38. data/lib/measures/AddMeter/measure.xml +8 -7
  39. data/lib/measures/AddOutputDiagnostics/LICENSE.md +1 -1
  40. data/lib/measures/AddOutputDiagnostics/measure.rb +1 -1
  41. data/lib/measures/AddOutputDiagnostics/measure.xml +8 -7
  42. data/lib/measures/AddOutputVariable/LICENSE.md +1 -1
  43. data/lib/measures/AddOutputVariable/measure.rb +1 -1
  44. data/lib/measures/AddOutputVariable/measure.xml +8 -7
  45. data/lib/measures/AddSimplePvToShadingSurfacesByType/LICENSE.md +1 -1
  46. data/lib/measures/AddSimplePvToShadingSurfacesByType/measure.rb +1 -1
  47. data/lib/measures/AddSimplePvToShadingSurfacesByType/measure.xml +8 -7
  48. data/lib/measures/AdjustSystemEfficiencies/LICENSE.md +1 -1
  49. data/lib/measures/AdjustSystemEfficiencies/measure.rb +1 -1
  50. data/lib/measures/AdjustSystemEfficiencies/measure.xml +7 -6
  51. data/lib/measures/AdjustThermostatSetpointsByDegrees/LICENSE.md +1 -1
  52. data/lib/measures/AdjustThermostatSetpointsByDegrees/measure.rb +1 -1
  53. data/lib/measures/AdjustThermostatSetpointsByDegrees/measure.xml +8 -7
  54. data/lib/measures/ChangeBuildingLocation/LICENSE.md +1 -1
  55. data/lib/measures/ChangeBuildingLocation/measure.rb +3 -3
  56. data/lib/measures/ChangeBuildingLocation/measure.xml +17 -17
  57. data/lib/measures/ChangeBuildingLocation/resources/epw.rb +1 -1
  58. data/lib/measures/ChangeBuildingLocation/resources/stat_file.rb +1 -1
  59. data/lib/measures/EnableIdealAirLoadsForAllZones/LICENSE.md +1 -1
  60. data/lib/measures/EnableIdealAirLoadsForAllZones/measure.rb +1 -1
  61. data/lib/measures/EnableIdealAirLoadsForAllZones/measure.xml +9 -8
  62. data/lib/measures/ExportScheduleCSV/LICENSE.md +1 -1
  63. data/lib/measures/ExportScheduleCSV/measure.rb +1 -1
  64. data/lib/measures/ExportScheduleCSV/measure.xml +11 -11
  65. data/lib/measures/ImportEnvelopeAndInternalLoadsFromIdf/LICENSE.md +1 -1
  66. data/lib/measures/ImportEnvelopeAndInternalLoadsFromIdf/measure.rb +1 -1
  67. data/lib/measures/ImportEnvelopeAndInternalLoadsFromIdf/measure.xml +5 -5
  68. data/lib/measures/MeterFlodPlot/LICENSE.md +1 -1
  69. data/lib/measures/MeterFlodPlot/measure.rb +1 -1
  70. data/lib/measures/MeterFlodPlot/measure.xml +11 -11
  71. data/lib/measures/ModifyEnergyPlusCoilCoolingDXSingleSpeedObjects/LICENSE.md +1 -1
  72. data/lib/measures/ModifyEnergyPlusCoilCoolingDXSingleSpeedObjects/measure.rb +1 -1
  73. data/lib/measures/ModifyEnergyPlusCoilCoolingDXSingleSpeedObjects/measure.xml +8 -7
  74. data/lib/measures/ModifyEnergyPlusFanVariableVolumeObjects/LICENSE.md +1 -1
  75. data/lib/measures/ModifyEnergyPlusFanVariableVolumeObjects/measure.rb +1 -1
  76. data/lib/measures/ModifyEnergyPlusFanVariableVolumeObjects/measure.xml +8 -7
  77. data/lib/measures/PredictedMeanVote/LICENSE.md +1 -1
  78. data/lib/measures/PredictedMeanVote/measure.rb +1 -1
  79. data/lib/measures/PredictedMeanVote/measure.xml +14 -13
  80. data/lib/measures/RemoveInternalLoadsDirectlyAssignedToSpaces/LICENSE.md +1 -1
  81. data/lib/measures/RemoveInternalLoadsDirectlyAssignedToSpaces/measure.rb +1 -1
  82. data/lib/measures/RemoveInternalLoadsDirectlyAssignedToSpaces/measure.xml +9 -8
  83. data/lib/measures/RemoveUnusedDefaultProfiles/LICENSE.md +1 -1
  84. data/lib/measures/RemoveUnusedDefaultProfiles/measure.rb +1 -1
  85. data/lib/measures/RemoveUnusedDefaultProfiles/measure.xml +9 -8
  86. data/lib/measures/ReplaceExteriorWindowConstruction/LICENSE.md +1 -1
  87. data/lib/measures/ReplaceExteriorWindowConstruction/measure.rb +1 -1
  88. data/lib/measures/ReplaceExteriorWindowConstruction/measure.xml +11 -10
  89. data/lib/measures/ReplaceThermostatSchedules/LICENSE.md +1 -1
  90. data/lib/measures/ReplaceThermostatSchedules/measure.rb +1 -1
  91. data/lib/measures/ReplaceThermostatSchedules/measure.xml +12 -11
  92. data/lib/measures/ReportModelChanges/LICENSE.md +1 -1
  93. data/lib/measures/ReportModelChanges/measure.rb +1 -1
  94. data/lib/measures/ReportModelChanges/measure.xml +5 -5
  95. data/lib/measures/RunPeriod/LICENSE.md +1 -1
  96. data/lib/measures/RunPeriod/measure.rb +1 -1
  97. data/lib/measures/RunPeriod/measure.xml +19 -18
  98. data/lib/measures/RunPeriodMultiple/LICENSE.md +1 -1
  99. data/lib/measures/RunPeriodMultiple/measure.rb +1 -1
  100. data/lib/measures/RunPeriodMultiple/measure.xml +4 -4
  101. data/lib/measures/ServerDirectoryCleanup/LICENSE.md +1 -1
  102. data/lib/measures/ServerDirectoryCleanup/measure.rb +1 -1
  103. data/lib/measures/ServerDirectoryCleanup/measure.xml +16 -16
  104. data/lib/measures/SetCOPforSingleSpeedDXCoolingUnits/LICENSE.md +1 -1
  105. data/lib/measures/SetCOPforSingleSpeedDXCoolingUnits/measure.rb +1 -1
  106. data/lib/measures/SetCOPforSingleSpeedDXCoolingUnits/measure.xml +10 -9
  107. data/lib/measures/SetCOPforTwoSpeedDXCoolingUnits/LICENSE.md +1 -1
  108. data/lib/measures/SetCOPforTwoSpeedDXCoolingUnits/measure.rb +1 -1
  109. data/lib/measures/SetCOPforTwoSpeedDXCoolingUnits/measure.xml +10 -9
  110. data/lib/measures/SetEnergyPlusInfiltrationFlowRatePerFloorArea/LICENSE.md +1 -1
  111. data/lib/measures/SetEnergyPlusInfiltrationFlowRatePerFloorArea/measure.rb +1 -1
  112. data/lib/measures/SetEnergyPlusInfiltrationFlowRatePerFloorArea/measure.xml +8 -7
  113. data/lib/measures/SetEnergyPlusLightObjectsLPD/LICENSE.md +1 -1
  114. data/lib/measures/SetEnergyPlusLightObjectsLPD/measure.rb +1 -1
  115. data/lib/measures/SetEnergyPlusLightObjectsLPD/measure.xml +8 -7
  116. data/lib/measures/SetEnergyPlusMinimumOutdoorAirFlowRate/LICENSE.md +1 -1
  117. data/lib/measures/SetEnergyPlusMinimumOutdoorAirFlowRate/measure.rb +1 -1
  118. data/lib/measures/SetEnergyPlusMinimumOutdoorAirFlowRate/measure.xml +8 -7
  119. data/lib/measures/SetGasBurnerEfficiency/LICENSE.md +1 -1
  120. data/lib/measures/SetGasBurnerEfficiency/measure.rb +1 -1
  121. data/lib/measures/SetGasBurnerEfficiency/measure.xml +10 -9
  122. data/lib/measures/SetLifecycleCostParameters/LICENSE.md +1 -1
  123. data/lib/measures/SetLifecycleCostParameters/measure.rb +1 -1
  124. data/lib/measures/SetLifecycleCostParameters/measure.xml +8 -7
  125. data/lib/measures/SetLightingLoadsByLPD/LICENSE.md +1 -1
  126. data/lib/measures/SetLightingLoadsByLPD/measure.rb +1 -1
  127. data/lib/measures/SetLightingLoadsByLPD/measure.xml +10 -9
  128. data/lib/measures/SetSpaceInfiltrationByExteriorSurfaceArea/LICENSE.md +1 -1
  129. data/lib/measures/SetSpaceInfiltrationByExteriorSurfaceArea/measure.rb +1 -1
  130. data/lib/measures/SetSpaceInfiltrationByExteriorSurfaceArea/measure.xml +20 -19
  131. data/lib/measures/SetThermostatSchedules/LICENSE.md +1 -1
  132. data/lib/measures/SetThermostatSchedules/measure.rb +1 -1
  133. data/lib/measures/SetThermostatSchedules/measure.xml +12 -11
  134. data/lib/measures/ShiftScheduleProfileTime/LICENSE.md +1 -1
  135. data/lib/measures/ShiftScheduleProfileTime/measure.rb +1 -1
  136. data/lib/measures/ShiftScheduleProfileTime/measure.xml +10 -9
  137. data/lib/measures/SwapLightsDefinition/LICENSE.md +1 -1
  138. data/lib/measures/SwapLightsDefinition/measure.rb +1 -1
  139. data/lib/measures/SwapLightsDefinition/measure.xml +10 -9
  140. data/lib/measures/UnmetLoadHoursTroubleshooting/LICENSE.md +1 -1
  141. data/lib/measures/UnmetLoadHoursTroubleshooting/measure.rb +1 -1
  142. data/lib/measures/UnmetLoadHoursTroubleshooting/measure.xml +11 -11
  143. data/lib/measures/VentilationQAQC/LICENSE.md +1 -1
  144. data/lib/measures/VentilationQAQC/measure.rb +1 -1
  145. data/lib/measures/VentilationQAQC/measure.xml +17 -17
  146. data/lib/measures/ZoneReport/LICENSE.md +1 -1
  147. data/lib/measures/ZoneReport/measure.rb +1 -1
  148. data/lib/measures/ZoneReport/measure.xml +11 -11
  149. data/lib/measures/add_ems_emissions_reporting/LICENSE.MD.txt +15 -0
  150. data/lib/measures/{AddDaylightSensors → add_ems_emissions_reporting}/LICENSE.md +1 -1
  151. data/lib/measures/add_ems_emissions_reporting/README.md +17 -0
  152. data/lib/measures/add_ems_emissions_reporting/measure.rb +268 -0
  153. data/lib/measures/add_ems_emissions_reporting/measure.xml +247 -0
  154. data/lib/measures/add_ems_emissions_reporting/resources/future_annual_co2e.csv +17 -0
  155. data/lib/measures/add_ems_emissions_reporting/resources/future_hourly_co2e_2020.csv +8761 -0
  156. data/lib/measures/add_ems_emissions_reporting/resources/future_hourly_co2e_2022.csv +8761 -0
  157. data/lib/measures/add_ems_emissions_reporting/resources/future_hourly_co2e_2024.csv +8761 -0
  158. data/lib/measures/add_ems_emissions_reporting/resources/future_hourly_co2e_2026.csv +8761 -0
  159. data/lib/measures/add_ems_emissions_reporting/resources/future_hourly_co2e_2028.csv +8761 -0
  160. data/lib/measures/add_ems_emissions_reporting/resources/future_hourly_co2e_2030.csv +8761 -0
  161. data/lib/measures/add_ems_emissions_reporting/resources/future_hourly_co2e_2032.csv +8761 -0
  162. data/lib/measures/add_ems_emissions_reporting/resources/future_hourly_co2e_2034.csv +8761 -0
  163. data/lib/measures/add_ems_emissions_reporting/resources/future_hourly_co2e_2036.csv +8761 -0
  164. data/lib/measures/add_ems_emissions_reporting/resources/future_hourly_co2e_2038.csv +8761 -0
  165. data/lib/measures/add_ems_emissions_reporting/resources/future_hourly_co2e_2040.csv +8761 -0
  166. data/lib/measures/add_ems_emissions_reporting/resources/future_hourly_co2e_2042.csv +8761 -0
  167. data/lib/measures/add_ems_emissions_reporting/resources/future_hourly_co2e_2044.csv +8761 -0
  168. data/lib/measures/add_ems_emissions_reporting/resources/future_hourly_co2e_2046.csv +8761 -0
  169. data/lib/measures/add_ems_emissions_reporting/resources/future_hourly_co2e_2048.csv +8761 -0
  170. data/lib/measures/add_ems_emissions_reporting/resources/future_hourly_co2e_2050.csv +8761 -0
  171. data/lib/measures/add_ems_emissions_reporting/resources/historical_annual_co2e.csv +9 -0
  172. data/lib/measures/add_ems_emissions_reporting/resources/historical_hourly_co2e_2019.csv +8761 -0
  173. data/lib/measures/add_ems_to_control_ev_charging/LICENSE.MD.txt +1 -1
  174. data/lib/measures/add_ems_to_control_ev_charging/LICENSE.md +1 -1
  175. data/lib/measures/add_ems_to_control_ev_charging/measure.rb +2 -1
  176. data/lib/measures/add_ems_to_control_ev_charging/measure.xml +14 -10
  177. data/lib/measures/add_ev_load/LICENSE.MD.txt +1 -1
  178. data/lib/measures/add_ev_load/LICENSE.md +1 -1
  179. data/lib/measures/add_ev_load/measure.rb +5 -2
  180. data/lib/measures/add_ev_load/measure.xml +210 -15
  181. data/lib/measures/add_ev_load/resources/{EV_Load_Profiles/PSN_BuildingKey.csv → PSN_BuildingKey.csv} +0 -0
  182. data/lib/measures/add_ev_load/resources/{EV_Load_Profiles/PSN_BuildingKey_v2.csv → PSN_BuildingKey_v2.csv} +0 -0
  183. data/lib/measures/add_ev_load/resources/{EV_Load_Profiles/chg1_dow1_flex1.csv → chg1_dow1_flex1.csv} +0 -0
  184. data/lib/measures/add_ev_load/resources/{EV_Load_Profiles/chg1_dow1_flex2.csv → chg1_dow1_flex2.csv} +0 -0
  185. data/lib/measures/add_ev_load/resources/{EV_Load_Profiles/chg1_dow1_flex3.csv → chg1_dow1_flex3.csv} +0 -0
  186. data/lib/measures/add_ev_load/resources/{EV_Load_Profiles/chg1_dow2_flex1.csv → chg1_dow2_flex1.csv} +0 -0
  187. data/lib/measures/add_ev_load/resources/{EV_Load_Profiles/chg1_dow2_flex2.csv → chg1_dow2_flex2.csv} +0 -0
  188. data/lib/measures/add_ev_load/resources/{EV_Load_Profiles/chg1_dow2_flex3.csv → chg1_dow2_flex3.csv} +0 -0
  189. data/lib/measures/add_ev_load/resources/{EV_Load_Profiles/chg1_dow3_flex1.csv → chg1_dow3_flex1.csv} +0 -0
  190. data/lib/measures/add_ev_load/resources/{EV_Load_Profiles/chg1_dow3_flex2.csv → chg1_dow3_flex2.csv} +0 -0
  191. data/lib/measures/add_ev_load/resources/{EV_Load_Profiles/chg1_dow3_flex3.csv → chg1_dow3_flex3.csv} +0 -0
  192. data/lib/measures/add_ev_load/resources/{EV_Load_Profiles/chg2_dow1_flex1.csv → chg2_dow1_flex1.csv} +0 -0
  193. data/lib/measures/add_ev_load/resources/{EV_Load_Profiles/chg2_dow1_flex2.csv → chg2_dow1_flex2.csv} +0 -0
  194. data/lib/measures/add_ev_load/resources/{EV_Load_Profiles/chg2_dow1_flex3.csv → chg2_dow1_flex3.csv} +0 -0
  195. data/lib/measures/add_ev_load/resources/{EV_Load_Profiles/chg2_dow2_flex1.csv → chg2_dow2_flex1.csv} +0 -0
  196. data/lib/measures/add_ev_load/resources/{EV_Load_Profiles/chg2_dow2_flex2.csv → chg2_dow2_flex2.csv} +0 -0
  197. data/lib/measures/add_ev_load/resources/{EV_Load_Profiles/chg2_dow2_flex3.csv → chg2_dow2_flex3.csv} +0 -0
  198. data/lib/measures/add_ev_load/resources/{EV_Load_Profiles/chg2_dow3_flex1.csv → chg2_dow3_flex1.csv} +0 -0
  199. data/lib/measures/add_ev_load/resources/{EV_Load_Profiles/chg2_dow3_flex2.csv → chg2_dow3_flex2.csv} +0 -0
  200. data/lib/measures/add_ev_load/resources/{EV_Load_Profiles/chg2_dow3_flex3.csv → chg2_dow3_flex3.csv} +0 -0
  201. data/lib/measures/add_ev_load/resources/{EV_Load_Profiles/chg3_dow1_flex1.csv → chg3_dow1_flex1.csv} +0 -0
  202. data/lib/measures/add_ev_load/resources/{EV_Load_Profiles/chg3_dow1_flex2.csv → chg3_dow1_flex2.csv} +0 -0
  203. data/lib/measures/add_ev_load/resources/{EV_Load_Profiles/chg3_dow1_flex3.csv → chg3_dow1_flex3.csv} +0 -0
  204. data/lib/measures/add_ev_load/resources/{EV_Load_Profiles/chg3_dow2_flex1.csv → chg3_dow2_flex1.csv} +0 -0
  205. data/lib/measures/add_ev_load/resources/{EV_Load_Profiles/chg3_dow2_flex2.csv → chg3_dow2_flex2.csv} +0 -0
  206. data/lib/measures/add_ev_load/resources/{EV_Load_Profiles/chg3_dow2_flex3.csv → chg3_dow2_flex3.csv} +0 -0
  207. data/lib/measures/add_ev_load/resources/{EV_Load_Profiles/chg3_dow3_flex1.csv → chg3_dow3_flex1.csv} +0 -0
  208. data/lib/measures/add_ev_load/resources/{EV_Load_Profiles/chg3_dow3_flex2.csv → chg3_dow3_flex2.csv} +0 -0
  209. data/lib/measures/add_ev_load/resources/{EV_Load_Profiles/chg3_dow3_flex3.csv → chg3_dow3_flex3.csv} +0 -0
  210. data/lib/measures/add_ev_load/resources/{EV_Load_Profiles/fast_charge_15min_Saturday.csv → fast_charge_15min_Saturday.csv} +0 -0
  211. data/lib/measures/add_ev_load/resources/{EV_Load_Profiles/fast_charge_15min_Sunday.csv → fast_charge_15min_Sunday.csv} +0 -0
  212. data/lib/measures/add_ev_load/resources/{EV_Load_Profiles/fast_charge_15min_Weekday.csv → fast_charge_15min_Weekday.csv} +0 -0
  213. data/lib/measures/add_rooftop_pv/LICENSE.md +1 -1
  214. data/lib/measures/add_rooftop_pv/measure.rb +1 -1
  215. data/lib/measures/add_rooftop_pv/measure.xml +5 -5
  216. data/lib/measures/add_zone_mixing_object/LICENSE.md +1 -1
  217. data/lib/measures/add_zone_mixing_object/measure.rb +1 -1
  218. data/lib/measures/add_zone_mixing_object/measure.xml +8 -7
  219. data/lib/measures/add_zone_ventilation_design_flow_rate_object/LICENSE.md +1 -1
  220. data/lib/measures/add_zone_ventilation_design_flow_rate_object/measure.rb +1 -1
  221. data/lib/measures/add_zone_ventilation_design_flow_rate_object/measure.xml +8 -7
  222. data/lib/measures/air_wall_zone_mixing/LICENSE.md +1 -1
  223. data/lib/measures/air_wall_zone_mixing/measure.rb +1 -1
  224. data/lib/measures/air_wall_zone_mixing/measure.xml +5 -5
  225. data/lib/measures/envelope_and_internal_load_breakdown/LICENSE.md +1 -1
  226. data/lib/measures/envelope_and_internal_load_breakdown/measure.rb +1 -1
  227. data/lib/measures/envelope_and_internal_load_breakdown/measure.xml +8 -8
  228. data/lib/measures/envelope_and_internal_load_breakdown/resources/os_lib_reporting_envelope_and_internal_loads_breakdown.rb +1 -1
  229. data/lib/measures/envelope_and_internal_load_breakdown/resources/report.html.erb +4 -1
  230. data/lib/measures/example_report/LICENSE.md +1 -1
  231. data/lib/measures/example_report/measure.rb +1 -1
  232. data/lib/measures/example_report/measure.xml +14 -14
  233. data/lib/measures/example_report/resources/os_lib_reporting_example.rb +1 -1
  234. data/lib/measures/example_report/resources/report.html.erb +4 -1
  235. data/lib/measures/gem_env_report/LICENSE.md +1 -1
  236. data/lib/measures/gem_env_report/measure.rb +1 -1
  237. data/lib/measures/gem_env_report/measure.xml +13 -12
  238. data/lib/measures/gem_env_report/resources/gem_env_info.rb +1 -1
  239. data/lib/measures/gem_env_report/resources/openstudio_info.rb +1 -1
  240. data/lib/measures/gem_env_report/resources/run_gem_env_info.rb +1 -1
  241. data/lib/measures/gem_env_report/resources/run_openstudio_info.rb +1 -1
  242. data/lib/measures/generic_qaqc/LICENSE.md +1 -1
  243. data/lib/measures/generic_qaqc/measure.rb +6 -1
  244. data/lib/measures/generic_qaqc/measure.xml +48 -54
  245. data/lib/measures/generic_qaqc/resources/CreateResults.rb +1 -1
  246. data/lib/measures/generic_qaqc/resources/check_air_sys_temps.rb +1 -1
  247. data/lib/measures/generic_qaqc/resources/check_calibration.rb +1 -1
  248. data/lib/measures/generic_qaqc/resources/check_cond_zns.rb +1 -1
  249. data/lib/measures/generic_qaqc/resources/check_domestic_hot_water.rb +1 -1
  250. data/lib/measures/generic_qaqc/resources/check_envelope_conductance.rb +1 -1
  251. data/lib/measures/generic_qaqc/resources/check_eui_by_end_use.rb +1 -1
  252. data/lib/measures/generic_qaqc/resources/check_eui_reasonableness.rb +1 -1
  253. data/lib/measures/generic_qaqc/resources/check_fan_pwr.rb +1 -1
  254. data/lib/measures/generic_qaqc/resources/check_internal_loads.rb +1 -1
  255. data/lib/measures/generic_qaqc/resources/check_mech_sys_capacity.rb +1 -1
  256. data/lib/measures/generic_qaqc/resources/check_mech_sys_efficiency.rb +1 -1
  257. data/lib/measures/generic_qaqc/resources/check_mech_sys_part_load_eff.rb +1 -1
  258. data/lib/measures/generic_qaqc/resources/check_mech_sys_type.rb +1 -1
  259. data/lib/measures/generic_qaqc/resources/check_part_loads.rb +1 -1
  260. data/lib/measures/generic_qaqc/resources/check_placeholder.rb +1 -1
  261. data/lib/measures/generic_qaqc/resources/check_plant_cap.rb +1 -1
  262. data/lib/measures/generic_qaqc/resources/check_plant_temps.rb +1 -1
  263. data/lib/measures/generic_qaqc/resources/check_plenum_loads.rb +1 -1
  264. data/lib/measures/generic_qaqc/resources/check_pump_pwr.rb +1 -1
  265. data/lib/measures/generic_qaqc/resources/check_sch_coord.rb +1 -1
  266. data/lib/measures/generic_qaqc/resources/check_schedules.rb +1 -1
  267. data/lib/measures/generic_qaqc/resources/check_simultaneous_heating_and_cooling.rb +1 -1
  268. data/lib/measures/generic_qaqc/resources/check_supply_air_and_thermostat_temp_difference.rb +1 -1
  269. data/lib/measures/generic_qaqc/resources/check_weather_files.rb +1 -1
  270. data/lib/measures/generic_qaqc/resources/os_lib_reporting_qaqc.rb +1 -1
  271. data/lib/measures/generic_qaqc/resources/report.html.erb +4 -1
  272. data/lib/measures/get_site_from_building_component_library/LICENSE.md +1 -1
  273. data/lib/measures/get_site_from_building_component_library/measure.rb +1 -1
  274. data/lib/measures/get_site_from_building_component_library/measure.xml +6 -6
  275. data/lib/measures/hvac_psychrometric_chart/LICENSE.md +1 -1
  276. data/lib/measures/hvac_psychrometric_chart/measure.rb +1 -1
  277. data/lib/measures/hvac_psychrometric_chart/measure.xml +15 -15
  278. data/lib/measures/hvac_psychrometric_chart/resources/report.html.erb +4 -1
  279. data/lib/measures/inject_idf_objects/LICENSE.md +1 -1
  280. data/lib/measures/inject_idf_objects/measure.rb +1 -1
  281. data/lib/measures/inject_idf_objects/measure.xml +10 -10
  282. data/lib/measures/openstudio_results/LICENSE.md +1 -1
  283. data/lib/measures/openstudio_results/measure.rb +6 -4
  284. data/lib/measures/openstudio_results/measure.xml +174 -162
  285. data/lib/measures/openstudio_results/resources/Siz.AirConditionerVariableRefrigerantFlow.rb +1 -1
  286. data/lib/measures/openstudio_results/resources/Siz.AirLoopHVAC.rb +1 -1
  287. data/lib/measures/openstudio_results/resources/Siz.AirLoopHVACUnitaryHeatCoolVAVChangeoverBypass.rb +1 -1
  288. data/lib/measures/openstudio_results/resources/Siz.AirLoopHVACUnitaryHeatPumpAirToAir.rb +1 -1
  289. data/lib/measures/openstudio_results/resources/Siz.AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed.rb +1 -1
  290. data/lib/measures/openstudio_results/resources/Siz.AirLoopHVACUnitarySystem.rb +1 -1
  291. data/lib/measures/openstudio_results/resources/Siz.AirTerminalDualDuctVAV.rb +1 -1
  292. data/lib/measures/openstudio_results/resources/Siz.AirTerminalSingleDuctConstantVolumeCooledBeam.rb +1 -1
  293. data/lib/measures/openstudio_results/resources/Siz.AirTerminalSingleDuctConstantVolumeFourPipeInduction.rb +1 -1
  294. data/lib/measures/openstudio_results/resources/Siz.AirTerminalSingleDuctConstantVolumeReheat.rb +1 -1
  295. data/lib/measures/openstudio_results/resources/Siz.AirTerminalSingleDuctParallelPIUReheat.rb +1 -1
  296. data/lib/measures/openstudio_results/resources/Siz.AirTerminalSingleDuctSeriesPIUReheat.rb +1 -1
  297. data/lib/measures/openstudio_results/resources/Siz.AirTerminalSingleDuctUncontrolled.rb +1 -1
  298. data/lib/measures/openstudio_results/resources/Siz.AirTerminalSingleDuctVAVHeatAndCoolNoReheat.rb +1 -1
  299. data/lib/measures/openstudio_results/resources/Siz.AirTerminalSingleDuctVAVHeatAndCoolReheat.rb +1 -1
  300. data/lib/measures/openstudio_results/resources/Siz.AirTerminalSingleDuctVAVNoReheat.rb +1 -1
  301. data/lib/measures/openstudio_results/resources/Siz.AirTerminalSingleDuctVAVReheat.rb +1 -1
  302. data/lib/measures/openstudio_results/resources/Siz.BoilerHotWater.rb +1 -1
  303. data/lib/measures/openstudio_results/resources/Siz.BoilerSteam.rb +1 -1
  304. data/lib/measures/openstudio_results/resources/Siz.ChillerAbsorption.rb +1 -1
  305. data/lib/measures/openstudio_results/resources/Siz.ChillerAbsorptionIndirect.rb +1 -1
  306. data/lib/measures/openstudio_results/resources/Siz.ChillerElectricEIR.rb +1 -1
  307. data/lib/measures/openstudio_results/resources/Siz.ChillerHeaterPerformanceElectricEIR.rb +1 -1
  308. data/lib/measures/openstudio_results/resources/Siz.CoilCoolingDXMultiSpeed.rb +1 -1
  309. data/lib/measures/openstudio_results/resources/Siz.CoilCoolingDXMultiSpeedStageData.rb +1 -1
  310. data/lib/measures/openstudio_results/resources/Siz.CoilCoolingDXSingleSpeed.rb +1 -1
  311. data/lib/measures/openstudio_results/resources/Siz.CoilCoolingDXTwoSpeed.rb +1 -1
  312. data/lib/measures/openstudio_results/resources/Siz.CoilCoolingDXTwoStageWithHumidityControlMode.rb +1 -1
  313. data/lib/measures/openstudio_results/resources/Siz.CoilCoolingDXVariableRefrigerantFlow.rb +1 -1
  314. data/lib/measures/openstudio_results/resources/Siz.CoilCoolingDXVariableSpeed.rb +1 -1
  315. data/lib/measures/openstudio_results/resources/Siz.CoilCoolingDXVariableSpeedSpeedData.rb +1 -1
  316. data/lib/measures/openstudio_results/resources/Siz.CoilCoolingLowTempRadiantVarFlow.rb +1 -1
  317. data/lib/measures/openstudio_results/resources/Siz.CoilCoolingWater.rb +1 -1
  318. data/lib/measures/openstudio_results/resources/Siz.CoilCoolingWaterToAirHeatPumpEquationFit.rb +1 -1
  319. data/lib/measures/openstudio_results/resources/Siz.CoilCoolingWaterToAirHeatPumpVariableSpeedEquationFit.rb +1 -1
  320. data/lib/measures/openstudio_results/resources/Siz.CoilCoolingWaterToAirHeatPumpVariableSpeedEquationFitSpeedData.rb +1 -1
  321. data/lib/measures/openstudio_results/resources/Siz.CoilHeatingDXMultiSpeed.rb +1 -1
  322. data/lib/measures/openstudio_results/resources/Siz.CoilHeatingDXMultiSpeedStageData.rb +1 -1
  323. data/lib/measures/openstudio_results/resources/Siz.CoilHeatingDXSingleSpeed.rb +1 -1
  324. data/lib/measures/openstudio_results/resources/Siz.CoilHeatingDXVariableRefrigerantFlow.rb +1 -1
  325. data/lib/measures/openstudio_results/resources/Siz.CoilHeatingDXVariableSpeed.rb +1 -1
  326. data/lib/measures/openstudio_results/resources/Siz.CoilHeatingDXVariableSpeedSpeedData.rb +1 -1
  327. data/lib/measures/openstudio_results/resources/Siz.CoilHeatingDesuperheater.rb +1 -1
  328. data/lib/measures/openstudio_results/resources/Siz.CoilHeatingElectric.rb +1 -1
  329. data/lib/measures/openstudio_results/resources/Siz.CoilHeatingGas.rb +1 -1
  330. data/lib/measures/openstudio_results/resources/Siz.CoilHeatingGasMultiStage.rb +1 -1
  331. data/lib/measures/openstudio_results/resources/Siz.CoilHeatingGasMultiStageStageData.rb +1 -1
  332. data/lib/measures/openstudio_results/resources/Siz.CoilHeatingLowTempRadiantVarFlow.rb +1 -1
  333. data/lib/measures/openstudio_results/resources/Siz.CoilHeatingWater.rb +1 -1
  334. data/lib/measures/openstudio_results/resources/Siz.CoilHeatingWaterBaseboard.rb +1 -1
  335. data/lib/measures/openstudio_results/resources/Siz.CoilHeatingWaterBaseboardRadiant.rb +1 -1
  336. data/lib/measures/openstudio_results/resources/Siz.CoilHeatingWaterToAirHeatPumpEquationFit.rb +1 -1
  337. data/lib/measures/openstudio_results/resources/Siz.CoilHeatingWaterToAirHeatPumpVariableSpeedEquationFit.rb +1 -1
  338. data/lib/measures/openstudio_results/resources/Siz.CoilHeatingWaterToAirHeatPumpVariableSpeedEquationFitSpeedData.rb +1 -1
  339. data/lib/measures/openstudio_results/resources/Siz.CoilPerformanceDXCooling.rb +1 -1
  340. data/lib/measures/openstudio_results/resources/Siz.CoilSystemCoolingDXHeatExchangerAssisted.rb +1 -1
  341. data/lib/measures/openstudio_results/resources/Siz.CoilSystemCoolingWaterHeatExchangerAssisted.rb +1 -1
  342. data/lib/measures/openstudio_results/resources/Siz.CoilWaterHeatingAirToWaterHeatPump.rb +1 -1
  343. data/lib/measures/openstudio_results/resources/Siz.CoilWaterHeatingAirToWaterHeatPumpWrapped.rb +1 -1
  344. data/lib/measures/openstudio_results/resources/Siz.CoilWaterHeatingDesuperheater.rb +1 -1
  345. data/lib/measures/openstudio_results/resources/Siz.ControllerOutdoorAir.rb +1 -1
  346. data/lib/measures/openstudio_results/resources/Siz.CoolingTowerSingleSpeed.rb +1 -1
  347. data/lib/measures/openstudio_results/resources/Siz.CoolingTowerTwoSpeed.rb +1 -1
  348. data/lib/measures/openstudio_results/resources/Siz.CoolingTowerVariableSpeed.rb +1 -1
  349. data/lib/measures/openstudio_results/resources/Siz.DistrictCooling.rb +1 -1
  350. data/lib/measures/openstudio_results/resources/Siz.DistrictHeating.rb +1 -1
  351. data/lib/measures/openstudio_results/resources/Siz.ElectricLoadCenterInverterLookUpTable.rb +1 -1
  352. data/lib/measures/openstudio_results/resources/Siz.ElectricLoadCenterInverterSimple.rb +1 -1
  353. data/lib/measures/openstudio_results/resources/Siz.ElectricLoadCenterStorageConverter.rb +1 -1
  354. data/lib/measures/openstudio_results/resources/Siz.ElectricLoadCenterStorageSimple.rb +1 -1
  355. data/lib/measures/openstudio_results/resources/Siz.EvaporativeCoolerDirectResearchSpecial.rb +1 -1
  356. data/lib/measures/openstudio_results/resources/Siz.EvaporativeCoolerIndirectResearchSpecial.rb +1 -1
  357. data/lib/measures/openstudio_results/resources/Siz.EvaporativeFluidCoolerSingleSpeed.rb +1 -1
  358. data/lib/measures/openstudio_results/resources/Siz.EvaporativeFluidCoolerTwoSpeed.rb +1 -1
  359. data/lib/measures/openstudio_results/resources/Siz.FanConstantVolume.rb +1 -1
  360. data/lib/measures/openstudio_results/resources/Siz.FanOnOff.rb +1 -1
  361. data/lib/measures/openstudio_results/resources/Siz.FanVariableVolume.rb +1 -1
  362. data/lib/measures/openstudio_results/resources/Siz.FanZoneExhaust.rb +1 -1
  363. data/lib/measures/openstudio_results/resources/Siz.FluidCoolerSingleSpeed.rb +1 -1
  364. data/lib/measures/openstudio_results/resources/Siz.FluidCoolerTwoSpeed.rb +1 -1
  365. data/lib/measures/openstudio_results/resources/Siz.GeneratorFuelCellElectricalStorage.rb +1 -1
  366. data/lib/measures/openstudio_results/resources/Siz.GeneratorFuelCellInverter.rb +1 -1
  367. data/lib/measures/openstudio_results/resources/Siz.GeneratorFuelCellPowerModule.rb +1 -1
  368. data/lib/measures/openstudio_results/resources/Siz.GeneratorMicroTurbine.rb +1 -1
  369. data/lib/measures/openstudio_results/resources/Siz.GeneratorMicroTurbineHeatRecovery.rb +1 -1
  370. data/lib/measures/openstudio_results/resources/Siz.HVACComponent.rb +1 -1
  371. data/lib/measures/openstudio_results/resources/Siz.HeaderedPumpsConstantSpeed.rb +1 -1
  372. data/lib/measures/openstudio_results/resources/Siz.HeaderedPumpsVariableSpeed.rb +1 -1
  373. data/lib/measures/openstudio_results/resources/Siz.HeatExchangerAirToAirSensibleAndLatent.rb +1 -1
  374. data/lib/measures/openstudio_results/resources/Siz.HeatExchangerFluidToFluid.rb +1 -1
  375. data/lib/measures/openstudio_results/resources/Siz.HeatPumpWaterToWaterEquationFitCooling.rb +1 -1
  376. data/lib/measures/openstudio_results/resources/Siz.HeatPumpWaterToWaterEquationFitHeating.rb +1 -1
  377. data/lib/measures/openstudio_results/resources/Siz.HumidifierSteamElectric.rb +1 -1
  378. data/lib/measures/openstudio_results/resources/Siz.Model.rb +1 -1
  379. data/lib/measures/openstudio_results/resources/Siz.ModelObject.rb +1 -1
  380. data/lib/measures/openstudio_results/resources/Siz.PhotovoltaicPerformanceSimple.rb +1 -1
  381. data/lib/measures/openstudio_results/resources/Siz.PlantComponentTemperatureSource.rb +1 -1
  382. data/lib/measures/openstudio_results/resources/Siz.PlantLoop.rb +1 -1
  383. data/lib/measures/openstudio_results/resources/Siz.PumpConstantSpeed.rb +1 -1
  384. data/lib/measures/openstudio_results/resources/Siz.PumpVariableSpeed.rb +1 -1
  385. data/lib/measures/openstudio_results/resources/Siz.RefrigerationSecondarySystem.rb +1 -1
  386. data/lib/measures/openstudio_results/resources/Siz.RefrigerationSystem.rb +1 -1
  387. data/lib/measures/openstudio_results/resources/Siz.RefrigerationTranscriticalSystem.rb +1 -1
  388. data/lib/measures/openstudio_results/resources/Siz.SizingSystem.rb +1 -1
  389. data/lib/measures/openstudio_results/resources/Siz.SolarCollectorFlatPlatePhotovoltaicThermal.rb +1 -1
  390. data/lib/measures/openstudio_results/resources/Siz.SolarCollectorPerformancePhotovoltaicThermalSimple.rb +1 -1
  391. data/lib/measures/openstudio_results/resources/Siz.ThermalStorageChilledWaterStratified.rb +1 -1
  392. data/lib/measures/openstudio_results/resources/Siz.WaterHeaterHeatPump.rb +1 -1
  393. data/lib/measures/openstudio_results/resources/Siz.WaterHeaterHeatPumpWrappedCondenser.rb +1 -1
  394. data/lib/measures/openstudio_results/resources/Siz.WaterHeaterMixed.rb +1 -1
  395. data/lib/measures/openstudio_results/resources/Siz.WaterHeaterStratified.rb +1 -1
  396. data/lib/measures/openstudio_results/resources/Siz.ZoneHVACBaseboardConvectiveElectric.rb +1 -1
  397. data/lib/measures/openstudio_results/resources/Siz.ZoneHVACBaseboardConvectiveWater.rb +1 -1
  398. data/lib/measures/openstudio_results/resources/Siz.ZoneHVACBaseboardRadiantConvectiveElectric.rb +1 -1
  399. data/lib/measures/openstudio_results/resources/Siz.ZoneHVACBaseboardRadiantConvectiveWater.rb +1 -1
  400. data/lib/measures/openstudio_results/resources/Siz.ZoneHVACEnergyRecoveryVentilator.rb +1 -1
  401. data/lib/measures/openstudio_results/resources/Siz.ZoneHVACFourPipeFanCoil.rb +1 -1
  402. data/lib/measures/openstudio_results/resources/Siz.ZoneHVACHighTemperatureRadiant.rb +1 -1
  403. data/lib/measures/openstudio_results/resources/Siz.ZoneHVACIdealLoadsAirSystem.rb +1 -1
  404. data/lib/measures/openstudio_results/resources/Siz.ZoneHVACLowTempRadiantConstFlow.rb +1 -1
  405. data/lib/measures/openstudio_results/resources/Siz.ZoneHVACLowTempRadiantVarFlow.rb +1 -1
  406. data/lib/measures/openstudio_results/resources/Siz.ZoneHVACPackagedTerminalAirConditioner.rb +1 -1
  407. data/lib/measures/openstudio_results/resources/Siz.ZoneHVACPackagedTerminalHeatPump.rb +1 -1
  408. data/lib/measures/openstudio_results/resources/Siz.ZoneHVACTerminalUnitVariableRefrigerantFlow.rb +1 -1
  409. data/lib/measures/openstudio_results/resources/Siz.ZoneHVACUnitHeater.rb +1 -1
  410. data/lib/measures/openstudio_results/resources/Siz.ZoneHVACUnitVentilator.rb +1 -1
  411. data/lib/measures/openstudio_results/resources/Siz.ZoneHVACWaterToAirHeatPump.rb +1 -1
  412. data/lib/measures/openstudio_results/resources/Siz.ZoneVentilationDesignFlowRate.rb +1 -1
  413. data/lib/measures/openstudio_results/resources/os_lib_reporting.rb +2 -2
  414. data/lib/measures/openstudio_results/resources/report.html.erb +4 -1
  415. data/lib/measures/remove_orphan_objects_and_unused_resources/LICENSE.md +1 -1
  416. data/lib/measures/remove_orphan_objects_and_unused_resources/measure.rb +1 -1
  417. data/lib/measures/remove_orphan_objects_and_unused_resources/measure.xml +8 -7
  418. data/lib/measures/set_electric_equipment_loads_by_epd/LICENSE.md +1 -1
  419. data/lib/measures/set_electric_equipment_loads_by_epd/measure.rb +1 -1
  420. data/lib/measures/set_electric_equipment_loads_by_epd/measure.xml +10 -9
  421. data/lib/measures/set_exterior_walls_and_floors_to_adiabatic/LICENSE.md +1 -1
  422. data/lib/measures/set_exterior_walls_and_floors_to_adiabatic/measure.rb +1 -1
  423. data/lib/measures/set_exterior_walls_and_floors_to_adiabatic/measure.xml +17 -11
  424. data/lib/measures/set_run_period/LICENSE.md +1 -1
  425. data/lib/measures/set_run_period/measure.rb +1 -1
  426. data/lib/measures/set_run_period/measure.xml +5 -5
  427. data/lib/measures/set_space_infiltration_per_exterior_area/LICENSE.md +1 -1
  428. data/lib/measures/set_space_infiltration_per_exterior_area/measure.rb +1 -1
  429. data/lib/measures/set_space_infiltration_per_exterior_area/measure.xml +8 -7
  430. data/lib/measures/tariff_selection_block/LICENSE.md +1 -1
  431. data/lib/measures/tariff_selection_block/measure.rb +2 -2
  432. data/lib/measures/tariff_selection_block/measure.xml +5 -5
  433. data/lib/measures/tariff_selection_flat/LICENSE.md +1 -1
  434. data/lib/measures/tariff_selection_flat/measure.rb +2 -2
  435. data/lib/measures/tariff_selection_flat/measure.xml +5 -5
  436. data/lib/measures/tariff_selection_generic/LICENSE.md +1 -1
  437. data/lib/measures/tariff_selection_generic/README.md +2 -2
  438. data/lib/measures/tariff_selection_generic/measure.rb +1 -1
  439. data/lib/measures/tariff_selection_generic/measure.xml +25 -25
  440. data/lib/measures/tariff_selection_generic/resources/FlatEnergyCharge-Gas.idf +3 -3
  441. data/lib/measures/tariff_selection_generic/resources/IN-EIAMonthlyRateGas.idf +1 -1
  442. data/lib/measures/tariff_selection_time_and_date_dependant/LICENSE.md +1 -1
  443. data/lib/measures/tariff_selection_time_and_date_dependant/measure.rb +2 -2
  444. data/lib/measures/tariff_selection_time_and_date_dependant/measure.xml +5 -5
  445. data/lib/measures/view_data/LICENSE.md +1 -1
  446. data/lib/measures/view_data/measure.rb +1 -1
  447. data/lib/measures/view_data/measure.xml +32 -32
  448. data/lib/measures/view_data/resources/report.html.in +1149 -956
  449. data/lib/measures/view_data/resources/va3c.rb +1 -1
  450. data/lib/measures/view_model/LICENSE.md +1 -1
  451. data/lib/measures/view_model/measure.rb +1 -1
  452. data/lib/measures/view_model/measure.xml +27 -27
  453. data/lib/measures/view_model/resources/report.html.in +1152 -959
  454. data/lib/measures/view_model/resources/va3c.rb +1 -1
  455. data/lib/openstudio/common_measures/extension.rb +1 -1
  456. data/lib/openstudio/common_measures/version.rb +2 -2
  457. data/lib/openstudio/common_measures.rb +1 -1
  458. data/lib/openstudio-common-measures.rb +1 -1
  459. data/openstudio-common-measures.gemspec +4 -4
  460. metadata +67 -107
  461. data/lib/measures/AddDaylightSensors/README.md +0 -136
  462. data/lib/measures/AddDaylightSensors/README.md.erb +0 -42
  463. data/lib/measures/AddDaylightSensors/measure.rb +0 -521
  464. data/lib/measures/AddDaylightSensors/measure.xml +0 -233
  465. data/lib/measures/EnableDemandControlledVentilation/LICENSE.md +0 -27
  466. data/lib/measures/EnableDemandControlledVentilation/README.md +0 -32
  467. data/lib/measures/EnableDemandControlledVentilation/README.md.erb +0 -42
  468. data/lib/measures/EnableDemandControlledVentilation/measure.rb +0 -154
  469. data/lib/measures/EnableDemandControlledVentilation/measure.xml +0 -99
  470. data/lib/measures/EnableEconomizerControl/LICENSE.md +0 -27
  471. data/lib/measures/EnableEconomizerControl/README.md +0 -48
  472. data/lib/measures/EnableEconomizerControl/README.md.erb +0 -42
  473. data/lib/measures/EnableEconomizerControl/measure.rb +0 -172
  474. data/lib/measures/EnableEconomizerControl/measure.xml +0 -124
  475. data/lib/measures/IncreaseInsulationRValueForExteriorWalls/LICENSE.md +0 -27
  476. data/lib/measures/IncreaseInsulationRValueForExteriorWalls/README.md +0 -64
  477. data/lib/measures/IncreaseInsulationRValueForExteriorWalls/README.md.erb +0 -42
  478. data/lib/measures/IncreaseInsulationRValueForExteriorWalls/measure.rb +0 -422
  479. data/lib/measures/IncreaseInsulationRValueForExteriorWalls/measure.xml +0 -150
  480. data/lib/measures/IncreaseInsulationRValueForExteriorWallsByPercentage/LICENSE.md +0 -27
  481. data/lib/measures/IncreaseInsulationRValueForExteriorWallsByPercentage/README.md +0 -32
  482. data/lib/measures/IncreaseInsulationRValueForExteriorWallsByPercentage/README.md.erb +0 -42
  483. data/lib/measures/IncreaseInsulationRValueForExteriorWallsByPercentage/measure.rb +0 -328
  484. data/lib/measures/IncreaseInsulationRValueForExteriorWallsByPercentage/measure.xml +0 -98
  485. data/lib/measures/IncreaseInsulationRValueForRoofs/LICENSE.md +0 -27
  486. data/lib/measures/IncreaseInsulationRValueForRoofs/README.md +0 -64
  487. data/lib/measures/IncreaseInsulationRValueForRoofs/README.md.erb +0 -42
  488. data/lib/measures/IncreaseInsulationRValueForRoofs/measure.rb +0 -422
  489. data/lib/measures/IncreaseInsulationRValueForRoofs/measure.xml +0 -143
  490. data/lib/measures/IncreaseInsulationRValueForRoofsByPercentage/LICENSE.md +0 -27
  491. data/lib/measures/IncreaseInsulationRValueForRoofsByPercentage/README.md +0 -32
  492. data/lib/measures/IncreaseInsulationRValueForRoofsByPercentage/README.md.erb +0 -42
  493. data/lib/measures/IncreaseInsulationRValueForRoofsByPercentage/measure.rb +0 -328
  494. data/lib/measures/IncreaseInsulationRValueForRoofsByPercentage/measure.xml +0 -98
  495. data/lib/measures/ReduceElectricEquipmentLoadsByPercentage/LICENSE.md +0 -27
  496. data/lib/measures/ReduceElectricEquipmentLoadsByPercentage/README.md +0 -97
  497. data/lib/measures/ReduceElectricEquipmentLoadsByPercentage/README.md.erb +0 -42
  498. data/lib/measures/ReduceElectricEquipmentLoadsByPercentage/measure.rb +0 -450
  499. data/lib/measures/ReduceElectricEquipmentLoadsByPercentage/measure.xml +0 -186
  500. data/lib/measures/ReduceLightingLoadsByPercentage/LICENSE.md +0 -27
  501. data/lib/measures/ReduceLightingLoadsByPercentage/README.md +0 -96
  502. data/lib/measures/ReduceLightingLoadsByPercentage/README.md.erb +0 -42
  503. data/lib/measures/ReduceLightingLoadsByPercentage/measure.rb +0 -513
  504. data/lib/measures/ReduceLightingLoadsByPercentage/measure.xml +0 -191
  505. data/lib/measures/ReduceSpaceInfiltrationByPercentage/LICENSE.md +0 -27
  506. data/lib/measures/ReduceSpaceInfiltrationByPercentage/README.md +0 -104
  507. data/lib/measures/ReduceSpaceInfiltrationByPercentage/README.md.erb +0 -42
  508. data/lib/measures/ReduceSpaceInfiltrationByPercentage/measure.rb +0 -349
  509. data/lib/measures/ReduceSpaceInfiltrationByPercentage/measure.xml +0 -181
  510. data/lib/measures/ReduceVentilationByPercentage/LICENSE.md +0 -27
  511. data/lib/measures/ReduceVentilationByPercentage/README.md +0 -40
  512. data/lib/measures/ReduceVentilationByPercentage/README.md.erb +0 -42
  513. data/lib/measures/ReduceVentilationByPercentage/measure.rb +0 -291
  514. data/lib/measures/ReduceVentilationByPercentage/measure.xml +0 -96
  515. data/lib/measures/create_variable_speed_rtu/LICENSE.md +0 -27
  516. data/lib/measures/create_variable_speed_rtu/README.md +0 -120
  517. data/lib/measures/create_variable_speed_rtu/README.md.erb +0 -42
  518. data/lib/measures/create_variable_speed_rtu/measure.rb +0 -539
  519. data/lib/measures/create_variable_speed_rtu/measure.xml +0 -207
  520. data/lib/measures/generic_qaqc/resources/os_lib_helper_methods.rb +0 -399
  521. data/lib/measures/openstudio_results/resources/os_lib_helper_methods.rb +0 -399
  522. data/lib/measures/openstudio_results/resources/os_lib_schedules.rb +0 -962
@@ -1,539 +0,0 @@
1
- # *******************************************************************************
2
- # OpenStudio(R), Copyright (c) 2008-2020, Alliance for Sustainable Energy, LLC.
3
- # All rights reserved.
4
- # Redistribution and use in source and binary forms, with or without
5
- # modification, are permitted provided that the following conditions are met:
6
- #
7
- # (1) Redistributions of source code must retain the above copyright notice,
8
- # this list of conditions and the following disclaimer.
9
- #
10
- # (2) Redistributions in binary form must reproduce the above copyright notice,
11
- # this list of conditions and the following disclaimer in the documentation
12
- # and/or other materials provided with the distribution.
13
- #
14
- # (3) Neither the name of the copyright holder nor the names of any contributors
15
- # may be used to endorse or promote products derived from this software without
16
- # specific prior written permission from the respective party.
17
- #
18
- # (4) Other than as required in clauses (1) and (2), distributions in any form
19
- # of modifications or other derivative works may not use the "OpenStudio"
20
- # trademark, "OS", "os", or any other confusingly similar designation without
21
- # specific prior written permission from Alliance for Sustainable Energy, LLC.
22
- #
23
- # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDER(S) AND ANY CONTRIBUTORS
24
- # "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
25
- # THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
26
- # ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER(S), ANY CONTRIBUTORS, THE
27
- # UNITED STATES GOVERNMENT, OR THE UNITED STATES DEPARTMENT OF ENERGY, NOR ANY OF
28
- # THEIR EMPLOYEES, BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
29
- # EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT
30
- # OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
31
- # INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
32
- # STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
33
- # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
34
- # *******************************************************************************
35
-
36
- # see the URL below for information on how to write OpenStudio measures
37
- # http://nrel.github.io/OpenStudio-user-documentation/reference/measure_writing_guide/
38
-
39
- # start the measure
40
- class CreateVariableSpeedRTU < OpenStudio::Ruleset::ModelUserScript
41
- # human readable name
42
- def name
43
- return 'Create Variable Speed RTU'
44
- end
45
-
46
- # human readable description
47
- def description
48
- return "This measure examines the existing HVAC system(s) present in the current OpenStudio model. If a constant-speed system is found, the user can opt to have the measure replace that system with a variable-speed RTU. 'Variable speed' in this case means that the compressor will be operated using either two or four stages (user's choice). The user can choose between using a gas heating coil, or a direct-expansion (DX) heating coil. Additionally, the user is able to enter the EER (cooling) and COP (heating) values for each DX stage. This measure allows users to easily identify the impact of improved part-load efficiency."
49
- end
50
-
51
- # human readable description of modeling approach
52
- def modeler_description
53
- return "This measure loops through the existing airloops, looking for loops that have a constant speed fan. (Note that if an object such as an AirloopHVAC:UnitarySystem is present in the model, that the measure will NOT identify that loop as either constant- or variable-speed, since the fan is located inside the UnitarySystem object.) The user can designate which constant-speed airloop they'd like to apply the measure to, or opt to apply the measure to all airloops. The measure then replaces the supply components on the airloop with an AirloopHVAC:UnitarySystem object. Any DX coils added to the UnitarySystem object are of the type CoilCoolingDXMultiSpeed / CoilHeatingDXMultiSpeed, with the number of stages set to either two or four, depending on user input. If the user opts for a gas furnace, an 80% efficient CoilHeatingGas object is added. Fan properties (pressure rise and total efficiency) are transferred automatically from the existing (but deleted) constant speed fan to the new variable-speed fan. Currently, this measure is only applicable to the Standalone Retail DOE Prototype building model, but it has been structured to facilitate expansion to other models with a minimum of effort."
54
- end
55
-
56
- # define the arguments that the user will input
57
- def arguments(model)
58
- args = OpenStudio::Ruleset::OSArgumentVector.new
59
-
60
- # populate choice argument for air loops in the model
61
- air_loop_handles = OpenStudio::StringVector.new
62
- air_loop_display_names = OpenStudio::StringVector.new
63
-
64
- # putting air loop names into hash
65
- air_loop_args = model.getAirLoopHVACs
66
- air_loop_args_hash = {}
67
- air_loop_args.each do |air_loop_arg|
68
- air_loop_args_hash[air_loop_arg.name.to_s] = air_loop_arg
69
- end
70
-
71
- # looping through sorted hash of air loops
72
- air_loop_args_hash.sort.map do |air_loop_name, air_loop|
73
- air_loop.supplyComponents.each do |supply_comp|
74
- # find CAV fans
75
- if supply_comp.to_FanConstantVolume.is_initialized
76
- air_loop_handles << air_loop.handle.to_s
77
- air_loop_display_names << air_loop_name
78
- end
79
- end
80
- end
81
-
82
- # add building to string vector with air loops
83
- building = model.getBuilding
84
- air_loop_handles << building.handle.to_s
85
- air_loop_display_names << '*All CAV Air Loops*'
86
-
87
- # make an argument for air loops
88
- object = OpenStudio::Ruleset::OSArgument.makeChoiceArgument('object', air_loop_handles, air_loop_display_names, true)
89
- object.setDisplayName('Choose an Air Loop to change from CAV to VAV.')
90
- object.setDefaultValue('*All CAV Air Loops*') # if no air loop is chosen this will run on all air loops
91
- args << object
92
-
93
- # make an argument for cooling type
94
- cooling_coil_options = OpenStudio::StringVector.new
95
- cooling_coil_options << 'Two-Stage Compressor'
96
- cooling_coil_options << 'Four-Stage Compressor'
97
- cooling_coil_type = OpenStudio::Ruleset::OSArgument.makeChoiceArgument('cooling_coil_type', cooling_coil_options, true)
98
- cooling_coil_type.setDisplayName('Choose the type of cooling coil.')
99
- cooling_coil_type.setDefaultValue('Two-Stage Compressor')
100
- args << cooling_coil_type
101
-
102
- # make an argument for rated cooling coil EER
103
- rated_cc_eer = OpenStudio::Ruleset::OSArgument.makeDoubleArgument('rated_cc_eer', false)
104
- rated_cc_eer.setDisplayName('Rated Cooling Coil EER')
105
- # rated_cc_eer.setDefaultValue(0.0)
106
- args << rated_cc_eer
107
-
108
- # make an argument for 75% cooling coil EER
109
- three_quarter_cc_eer = OpenStudio::Ruleset::OSArgument.makeDoubleArgument('three_quarter_cc_eer', false)
110
- three_quarter_cc_eer.setDisplayName('Cooling Coil EER at 75% Capacity')
111
- # three_quarter_cc_eer.setDefaultValue(0.0)
112
- args << three_quarter_cc_eer
113
-
114
- # make an argument for 50% cooling coil EER
115
- half_cc_eer = OpenStudio::Ruleset::OSArgument.makeDoubleArgument('half_cc_eer', false)
116
- half_cc_eer.setDisplayName('Cooling Coil EER at 50% Capacity')
117
- # half_cc_eer.setDefaultValue(0.0)
118
- args << half_cc_eer
119
-
120
- # make an argument for 25% cooling coil EER
121
- quarter_cc_eer = OpenStudio::Ruleset::OSArgument.makeDoubleArgument('quarter_cc_eer', false)
122
- quarter_cc_eer.setDisplayName('Cooling Coil EER at 25% Capacity')
123
- # quarter_cc_eer.setDefaultValue(0.0)
124
- args << quarter_cc_eer
125
-
126
- # make an argument for heating type
127
- heating_coil_options = OpenStudio::StringVector.new
128
- heating_coil_options << 'Gas Heating Coil'
129
- heating_coil_options << 'Heat Pump'
130
- heating_coil_type = OpenStudio::Ruleset::OSArgument.makeChoiceArgument('heating_coil_type', heating_coil_options, true)
131
- heating_coil_type.setDisplayName('Choose the type of heating coil.')
132
- heating_coil_type.setDefaultValue('Gas Heating Coil')
133
- args << heating_coil_type
134
-
135
- # make an argument for rated gas heating coil efficiency
136
- rated_hc_gas_efficiency = OpenStudio::Ruleset::OSArgument.makeDoubleArgument('rated_hc_gas_efficiency', false)
137
- rated_hc_gas_efficiency.setDisplayName('Rated Gas Heating Coil Efficiency (0-1.00)')
138
- # rated_hc_gas_efficiency.setDefaultValue(0.0)
139
- args << rated_hc_gas_efficiency
140
-
141
- # make an argument for rated heating coil COP
142
- rated_hc_cop = OpenStudio::Ruleset::OSArgument.makeDoubleArgument('rated_hc_cop', false)
143
- rated_hc_cop.setDisplayName('Rated Heating Coil COP')
144
- # rated_hc_cop.setDefaultValue(0.0)
145
- args << rated_hc_cop
146
-
147
- # make an argument for 75% heating coil COP
148
- three_quarter_hc_cop = OpenStudio::Ruleset::OSArgument.makeDoubleArgument('three_quarter_hc_cop', false)
149
- three_quarter_hc_cop.setDisplayName('Heating Coil COP at 75% Capacity')
150
- # three_quarter_hc_cop.setDefaultValue(0.0)
151
- args << three_quarter_hc_cop
152
-
153
- # make an argument for 50% heating coil COP
154
- half_hc_cop = OpenStudio::Ruleset::OSArgument.makeDoubleArgument('half_hc_cop', false)
155
- half_hc_cop.setDisplayName('Heating Coil COP at 50% Capacity')
156
- # half_hc_cop.setDefaultValue(0.0)
157
- args << half_hc_cop
158
-
159
- # make an argument for 25% heating coil COP
160
- quarter_hc_cop = OpenStudio::Ruleset::OSArgument.makeDoubleArgument('quarter_hc_cop', false)
161
- quarter_hc_cop.setDisplayName('Heating Coil COP at 25% Capacity')
162
- # quarter_hc_cop.setDefaultValue(0.0)
163
- args << quarter_hc_cop
164
-
165
- return args
166
- end # end the arguments method
167
-
168
- # define what happens when the measure is run
169
- def run(model, runner, user_arguments)
170
- super(model, runner, user_arguments)
171
-
172
- # Use the built-in error checking
173
- if !runner.validateUserArguments(arguments(model), user_arguments)
174
- return false
175
- end
176
-
177
- # Assign the user inputs to variables
178
- object = runner.getOptionalWorkspaceObjectChoiceValue('object', user_arguments, model)
179
- cooling_coil_type = runner.getStringArgumentValue('cooling_coil_type', user_arguments)
180
- rated_cc_eer = runner.getOptionalDoubleArgumentValue('rated_cc_eer', user_arguments)
181
- three_quarter_cc_eer = runner.getOptionalDoubleArgumentValue('three_quarter_cc_eer', user_arguments)
182
- half_cc_eer = runner.getOptionalDoubleArgumentValue('half_cc_eer', user_arguments)
183
- quarter_cc_eer = runner.getOptionalDoubleArgumentValue('quarter_cc_eer', user_arguments)
184
- heating_coil_type = runner.getStringArgumentValue('heating_coil_type', user_arguments)
185
- rated_hc_gas_efficiency = runner.getOptionalDoubleArgumentValue('rated_hc_gas_efficiency', user_arguments)
186
- rated_hc_cop = runner.getOptionalDoubleArgumentValue('rated_hc_cop', user_arguments)
187
- three_quarter_hc_cop = runner.getOptionalDoubleArgumentValue('three_quarter_hc_cop', user_arguments)
188
- half_hc_cop = runner.getOptionalDoubleArgumentValue('half_hc_cop', user_arguments)
189
- quarter_hc_cop = runner.getOptionalDoubleArgumentValue('quarter_hc_cop', user_arguments)
190
-
191
- if rated_cc_eer.empty?
192
- runner.registerError('User must enter a value for the rated capacity cooling coil EER.')
193
- return false
194
- elsif rated_cc_eer.to_f <= 0
195
- runner.registerError("Invalid rated cooling coil EER value of #{rated_cc_eer} entered. EER must be >0.")
196
- return false
197
- end
198
-
199
- if three_quarter_cc_eer.empty? && cooling_coil_type == 'Four-Stage Compressor'
200
- runner.registerError('User must enter a value for 75% capacity cooling coil EER.')
201
- return false
202
- elsif three_quarter_cc_eer.to_f <= 0 && cooling_coil_type == 'Four-Stage Compressor'
203
- runner.registerError("Invalid 75% capacity cooling coil EER value of #{three_quarter_cc_eer} entered. EER must be >0.")
204
- return false
205
- end
206
-
207
- if half_cc_eer.empty?
208
- runner.registerError('User must enter a value for 50% capacity cooling coil EER.')
209
- return false
210
- elsif half_cc_eer.to_f <= 0
211
- runner.registerError("Invalid 50% capacity cooling coil EER value of #{half_cc_eer} entered. EER must be >0.")
212
- return false
213
- end
214
-
215
- if quarter_cc_eer.empty? && cooling_coil_type == 'Four-Stage Compressor'
216
- runner.registerError('User must enter a value for 25% capacity cooling coil EER.')
217
- return false
218
- elsif quarter_cc_eer.to_f <= 0 && cooling_coil_type == 'Four-Stage Compressor'
219
- runner.registerError("Invalid 25% capacity cooling coil EER value of #{quarter_cc_eer} entered. EER must be >0.")
220
- return false
221
- end
222
-
223
- if rated_hc_gas_efficiency.empty? && heating_coil_type == 'Gas Heating Coil'
224
- runner.registerError('User must enter a value for the rated gas heating coil efficiency.')
225
- return false
226
- elsif rated_hc_gas_efficiency.to_f <= 0 && heating_coil_type == 'Gas Heating Coil'
227
- runner.registerError("Invalid rated heating coil efficiency value of #{rated_hc_gas_efficiency} entered. Value must be >0.")
228
- return false
229
- elsif rated_hc_gas_efficiency.to_f > 1 && heating_coil_type == 'Gas Heating Coil'
230
- runner.registerError("Invalid rated heating coil efficiency value of #{rated_hc_gas_efficiency} entered. Value must be between 0 and 1.")
231
- return false
232
- end
233
-
234
- if rated_hc_cop.empty? && heating_coil_type == 'Heat Pump'
235
- runner.registerError('User must enter a value for the rated heating coil COP.')
236
- return false
237
- elsif rated_hc_cop.to_f <= 0 && heating_coil_type == 'Heat Pump'
238
- runner.registerError("Invalid rated heating coil COP value of #{rated_hc_cop} entered. COP must be >0.")
239
- return false
240
- end
241
-
242
- if three_quarter_hc_cop.empty? && heating_coil_type == 'Heat Pump' && cooling_coil_type == 'Four-Stage Compressor'
243
- runner.registerError('User must enter a value for 75% capacity heating coil COP.')
244
- return false
245
- elsif half_hc_cop.to_f <= 0 && heating_coil_type == 'Heat Pump' && cooling_coil_type == 'Four-Stage Compressor'
246
- runner.registerError("Invalid 75% capacity heating coil COP value of #{three_quarter_hc_cop} entered. COP must be >0.")
247
- return false
248
- end
249
-
250
- if half_hc_cop.empty? && heating_coil_type == 'Heat Pump'
251
- runner.registerError('User must enter a value for 50% capacity heating coil COP.')
252
- return false
253
- elsif half_hc_cop.to_f <= 0 && heating_coil_type == 'Heat Pump'
254
- runner.registerError("Invalid 50% capacity heating coil COP value of #{half_hc_cop} entered. COP must be >0.")
255
- return false
256
- end
257
-
258
- if quarter_hc_cop.empty? && heating_coil_type == 'Heat Pump' && cooling_coil_type == 'Four-Stage Compressor'
259
- runner.registerError('User must enter a value for 25% capacity heating coil COP.')
260
- return false
261
- elsif quarter_hc_cop.to_f <= 0 && heating_coil_type == 'Heat Pump' && cooling_coil_type == 'Four-Stage Compressor'
262
- runner.registerError("Invalid 25% capacity heating coil COP value of #{quarter_hc_cop} entered. COP must be >0.")
263
- return false
264
- end
265
-
266
- # Report initial condition of model
267
- initial_cav_airloops = 0
268
- initial_vav_airloops = 0
269
- model.getAirLoopHVACs.each do |air_loop|
270
- # Loop through all supply components on the airloop and find CAV and VAV fans
271
- air_loop.supplyComponents.each do |supply_comp|
272
- if supply_comp.to_FanConstantVolume.is_initialized
273
- initial_cav_airloops += 1
274
- elsif supply_comp.to_FanVariableVolume.is_initialized
275
- initial_vav_airloops += 1
276
- end
277
- end
278
- end
279
- runner.registerInitialCondition("The building started with #{initial_cav_airloops} CAV air loops and #{initial_vav_airloops} VAV air loops.")
280
-
281
- # Check the air loop selection
282
- apply_to_all_air_loops = false
283
- selected_airloop = nil
284
- if object.empty?
285
- handle = runner.getStringArgumentValue('object', user_arguments)
286
- if handle.empty?
287
- runner.registerError('No air loop was chosen.')
288
- else
289
- runner.registerError("The selected air loop with handle '#{handle}' was not found in the model. It may have been removed by another measure.")
290
- end
291
- return false
292
- else
293
- if !object.get.to_AirLoopHVAC.empty?
294
- selected_airloop = object.get.to_AirLoopHVAC.get
295
- elsif !object.get.to_Building.empty?
296
- apply_to_all_air_loops = true
297
- else
298
- runner.registerError('Script Error - argument not showing up as air loop.')
299
- return false
300
- end
301
- end # end of if object.empty?
302
-
303
- # Add selected airloops to an array
304
- selected_airloops = []
305
- if apply_to_all_air_loops == true
306
- selected_airloops = model.getAirLoopHVACs
307
- else
308
- selected_airloops << selected_airloop
309
- end
310
-
311
- # Change CAV to VAV on the selected airloops, where applicable
312
- selected_airloops.each do |air_loop|
313
- changed_cav_to_vav = false
314
-
315
- # Make a new AirLoopHVAC:UnitarySystem object
316
- air_loop_hvac_unitary_system = OpenStudio::Model::AirLoopHVACUnitarySystem.new(model)
317
-
318
- # Find CAV fan and replace with VAV fan
319
- air_loop.supplyComponents.each do |supply_comp|
320
- if supply_comp.to_FanConstantVolume.is_initialized
321
-
322
- # Preserve characteristics of the original fan
323
- cav_fan = supply_comp.to_FanConstantVolume.get
324
- fan_pressure_rise = cav_fan.pressureRise
325
- fan_efficiency = cav_fan.fanEfficiency
326
- motor_efficiency = cav_fan.motorEfficiency
327
- fan_availability_schedule = cav_fan.availabilitySchedule
328
-
329
- # Get the previous and next components on the loop
330
- prev_node = cav_fan.inletModelObject.get.to_Node.get
331
- next_node = cav_fan.outletModelObject.get.to_Node.get
332
-
333
- # Make the new vav_fan and transfer existing parameters to it
334
- vav_fan = OpenStudio::Model::FanVariableVolume.new(model, model.alwaysOnDiscreteSchedule)
335
- vav_fan.setPressureRise(fan_pressure_rise)
336
- vav_fan.setFanEfficiency(fan_efficiency)
337
- vav_fan.setMotorEfficiency(motor_efficiency)
338
- vav_fan.setAvailabilitySchedule(fan_availability_schedule)
339
-
340
- # Remove the supply fan
341
- supply_comp.remove
342
-
343
- # Get back the remaining node
344
- remaining_node = nil
345
- if prev_node.outletModelObject.is_initialized
346
- remaining_node = prev_node
347
- elsif next_node.inletModelObject.is_initialized
348
- remaining_node = next_node
349
- end
350
-
351
- # Add a new AirLoopHVAC:UnitarySystem object to the node where the old fan was
352
- if remaining_node.nil?
353
- runner.registerError("Couldn't add the new AirLoopHVAC:UnitarySystem object to the loop after removing existing CAV fan.")
354
- return false
355
- else
356
- air_loop_hvac_unitary_system.addToNode(remaining_node)
357
- end
358
-
359
- # Change the unitary system control type to setpoint to enable the VAV fan to ramp down.
360
- air_loop_hvac_unitary_system.setString(2, 'Setpoint')
361
-
362
- # Add the VAV fan to the AirLoopHVAC:UnitarySystem object
363
- air_loop_hvac_unitary_system.setSupplyFan(vav_fan)
364
-
365
- # Set the AirLoopHVAC:UnitarySystem fan placement
366
- air_loop_hvac_unitary_system.setFanPlacement('BlowThrough')
367
-
368
- # Set the AirLoopHVAC:UnitarySystem Supply Air Fan Operating Mode Schedule
369
- air_loop_hvac_unitary_system.setSupplyAirFanOperatingModeSchedule(model.alwaysOnDiscreteSchedule)
370
-
371
- # let the user know that a change was made
372
- changed_cav_to_vav = true
373
- runner.registerInfo("AirLoop '#{air_loop.name}' was changed from CAV to VAV")
374
-
375
- end
376
- end # next supply component
377
-
378
- # Move on to the next air loop if no CAV to VAV change happened
379
- next if changed_cav_to_vav != true
380
-
381
- # initialize COP variables to make available in both multi-speed heating and cooling coils
382
- low_speed_cop = nil
383
- high_speed_cop = nil
384
-
385
- # Move the cooling coil to the AirLoopHVAC:UnitarySystem object
386
- air_loop.supplyComponents.each do |supply_comp|
387
- if supply_comp.to_CoilCoolingDXTwoSpeed.is_initialized
388
-
389
- existing_cooling_coil = supply_comp.to_CoilCoolingDXTwoSpeed.get
390
-
391
- # Add a new cooling coil object
392
- if cooling_coil_type == 'Two-Stage Compressor'
393
- new_cooling_coil = OpenStudio::Model::CoilCoolingDXMultiSpeed.new(model)
394
- half_speed_cc_cop = half_cc_eer.to_f / 3.412
395
- new_cooling_coil_data_1 = OpenStudio::Model::CoilCoolingDXMultiSpeedStageData.new(model)
396
- new_cooling_coil_data_1.setGrossRatedCoolingCOP(half_speed_cc_cop.to_f)
397
- rated_speed_cc_cop = rated_cc_eer.to_f / 3.412
398
- new_cooling_coil_data_2 = OpenStudio::Model::CoilCoolingDXMultiSpeedStageData.new(model)
399
- new_cooling_coil_data_2.setGrossRatedCoolingCOP(rated_speed_cc_cop.to_f)
400
- new_cooling_coil.setFuelType('Electricity')
401
- new_cooling_coil.addStage(new_cooling_coil_data_1)
402
- new_cooling_coil.addStage(new_cooling_coil_data_2)
403
- air_loop_hvac_unitary_system.setCoolingCoil(new_cooling_coil)
404
- elsif cooling_coil_type == 'Four-Stage Compressor'
405
- new_cooling_coil = OpenStudio::Model::CoilCoolingDXMultiSpeed.new(model)
406
- quarter_speed_cc_cop = quarter_cc_eer.to_f / 3.412
407
- new_cooling_coil_data_1 = OpenStudio::Model::CoilCoolingDXMultiSpeedStageData.new(model)
408
- new_cooling_coil_data_1.setGrossRatedCoolingCOP(quarter_speed_cc_cop.to_f)
409
- half_speed_cc_cop = half_cc_eer.to_f / 3.412
410
- new_cooling_coil_data_2 = OpenStudio::Model::CoilCoolingDXMultiSpeedStageData.new(model)
411
- new_cooling_coil_data_2.setGrossRatedCoolingCOP(half_speed_cc_cop.to_f)
412
- three_quarter_speed_cc_cop = three_quarter_cc_eer.to_f / 3.412
413
- new_cooling_coil_data_3 = OpenStudio::Model::CoilCoolingDXMultiSpeedStageData.new(model)
414
- new_cooling_coil_data_3.setGrossRatedCoolingCOP(three_quarter_speed_cc_cop.to_f)
415
- rated_speed_cc_cop = rated_cc_eer.to_f / 3.412
416
- new_cooling_coil_data_4 = OpenStudio::Model::CoilCoolingDXMultiSpeedStageData.new(model)
417
- new_cooling_coil_data_4.setGrossRatedCoolingCOP(rated_speed_cc_cop.to_f)
418
- new_cooling_coil.setFuelType('Electricity')
419
- new_cooling_coil.addStage(new_cooling_coil_data_1)
420
- new_cooling_coil.addStage(new_cooling_coil_data_2)
421
- new_cooling_coil.addStage(new_cooling_coil_data_3)
422
- new_cooling_coil.addStage(new_cooling_coil_data_4)
423
- air_loop_hvac_unitary_system.setCoolingCoil(new_cooling_coil)
424
- end
425
-
426
- # Remove the existing cooling coil.
427
- existing_cooling_coil.remove
428
- end
429
- end # next supply component
430
-
431
- # Move the heating coil to the AirLoopHVAC:UnitarySystem object
432
- air_loop.supplyComponents.each do |supply_comp|
433
- if supply_comp.to_CoilHeatingGas.is_initialized
434
-
435
- existing_heating_coil = supply_comp.to_CoilHeatingGas.get
436
-
437
- # Remove the existing heating coil.
438
- existing_heating_coil.remove
439
-
440
- # Add a new heating coil object
441
- if heating_coil_type == 'Gas Heating Coil'
442
- new_heating_coil = OpenStudio::Model::CoilHeatingGas.new(model)
443
- new_heating_coil.setGasBurnerEfficiency(rated_hc_gas_efficiency.to_f)
444
- air_loop_hvac_unitary_system.setHeatingCoil(new_heating_coil)
445
-
446
- elsif heating_coil_type == 'Heat Pump' && cooling_coil_type == 'Two-Stage Compressor'
447
- new_heating_coil = OpenStudio::Model::CoilHeatingDXMultiSpeed.new(model)
448
- new_heating_coil_data_1 = OpenStudio::Model::CoilHeatingDXMultiSpeedStageData.new(model)
449
- new_heating_coil_data_1.setGrossRatedHeatingCOP(half_hc_cop.to_f)
450
- new_heating_coil_data_2 = OpenStudio::Model::CoilHeatingDXMultiSpeedStageData.new(model)
451
- new_heating_coil_data_2.setGrossRatedHeatingCOP(rated_hc_cop.to_f)
452
- new_heating_coil.setFuelType('Electricity')
453
- new_heating_coil.addStage(new_heating_coil_data_1)
454
- new_heating_coil.addStage(new_heating_coil_data_2)
455
- air_loop_hvac_unitary_system.setHeatingCoil(new_heating_coil)
456
- elsif heating_coil_type == 'Heat Pump' && cooling_coil_type == 'Four-Stage Compressor'
457
- new_heating_coil = OpenStudio::Model::CoilHeatingDXMultiSpeed.new(model)
458
- new_heating_coil_data_1 = OpenStudio::Model::CoilHeatingDXMultiSpeedStageData.new(model)
459
- new_heating_coil_data_1.setGrossRatedHeatingCOP(quarter_hc_cop.to_f)
460
- new_heating_coil_data_2 = OpenStudio::Model::CoilHeatingDXMultiSpeedStageData.new(model)
461
- new_heating_coil_data_2.setGrossRatedHeatingCOP(half_hc_cop.to_f)
462
- new_heating_coil_data_3 = OpenStudio::Model::CoilHeatingDXMultiSpeedStageData.new(model)
463
- new_heating_coil_data_3.setGrossRatedHeatingCOP(three_quarter_hc_cop.to_f)
464
- new_heating_coil_data_4 = OpenStudio::Model::CoilHeatingDXMultiSpeedStageData.new(model)
465
- new_heating_coil_data_4.setGrossRatedHeatingCOP(rated_hc_cop.to_f)
466
- new_heating_coil.setFuelType('Electricity')
467
- new_heating_coil.addStage(new_heating_coil_data_1)
468
- new_heating_coil.addStage(new_heating_coil_data_2)
469
- new_heating_coil.addStage(new_heating_coil_data_3)
470
- new_heating_coil.addStage(new_heating_coil_data_4)
471
- air_loop_hvac_unitary_system.setHeatingCoil(new_heating_coil)
472
- end
473
- end
474
- end # next supply component
475
-
476
- # Find the supply outlet node for the current AirLoop
477
- airloop_outlet_node = air_loop.supplyOutletNode
478
-
479
- # Identify if there is a setpoint manager on the AirLoop outlet node
480
- if !airloop_outlet_node.setpointManagers.empty?
481
- setpoint_manager = airloop_outlet_node.setpointManagers[0]
482
- # runner.registerInfo("Setpoint manager on node '#{airloop_outlet_node.name}' is '#{setpoint_manager.name}'.")
483
- else
484
- runner.registerInfo("No setpoint manager on node '#{airloop_outlet_node.name}'.")
485
- end
486
-
487
- # Set the controlling zone location to the zone on the airloop
488
- air_loop.demandComponents.each do |demand_comp|
489
- if demand_comp.to_AirTerminalSingleDuctUncontrolled.is_initialized
490
-
491
- terminal_obj = demand_comp.to_AirTerminalSingleDuctUncontrolled.get
492
-
493
- # Record the zone that the terminal unit is in.
494
- # If zone cannot be determined, skip to next demand component
495
- # and warn user that this the associated zone could not be found
496
- term_zone = nil
497
- model.getThermalZones.each do |zone|
498
- zone.equipment.each do |equip|
499
- if equip == terminal_obj
500
- term_zone = zone
501
- end
502
- end
503
- end
504
- if term_zone.nil?
505
- runner.registerWarning("Could not determine the zone for terminal '#{new_vav_terminal.name}', cannot assign to AirLoopHVAC:UnitarySystem object.")
506
- next
507
- else
508
- # Associate the zone with the AirLoopHVAC:UnitarySystem object
509
- air_loop_hvac_unitary_system.setControllingZoneorThermostatLocation(term_zone)
510
- end
511
- end
512
- end
513
- end # Next selected airloop
514
-
515
- # Report final condition of model
516
- final_cav_airloops = 0
517
- final_vav_airloops = 0
518
- model.getAirLoopHVACs.each do |air_loop|
519
- # Loop through all supply components on the airloop and find CAV and VAV fans
520
- air_loop.supplyComponents.each do |supply_comp|
521
- if supply_comp.to_FanConstantVolume.is_initialized
522
- final_cav_airloops += 1
523
- elsif supply_comp.to_AirLoopHVACUnitarySystem.is_initialized
524
- final_vav_airloops += 1
525
- end
526
- end
527
- end
528
- runner.registerFinalCondition("The building finished with #{final_cav_airloops} constant-speed RTUs and #{final_vav_airloops} multi-speed RTUs.")
529
-
530
- if final_cav_airloops == initial_cav_airloops
531
- runner.registerAsNotApplicable('This measure is not applicable; no variable speed RTUs were added.')
532
- end
533
-
534
- return true
535
- end # end the run method
536
- end # end the measure
537
-
538
- # register the measure to be used by the application
539
- CreateVariableSpeedRTU.new.registerWithApplication