openstudio-common-measures 0.7.0 → 0.9.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (387) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/test_with_openstudio.yml +62 -0
  3. data/CHANGELOG.md +30 -0
  4. data/LICENSE.md +7 -21
  5. data/README.md +3 -1
  6. data/Rakefile +4 -27
  7. data/doc_templates/LICENSE.md +7 -21
  8. data/doc_templates/copyright_erb.txt +2 -32
  9. data/doc_templates/copyright_js.txt +2 -2
  10. data/doc_templates/copyright_ruby.txt +3 -33
  11. data/lib/measures/AddCostPerAreaToConstruction/LICENSE.md +7 -21
  12. data/lib/measures/AddCostPerAreaToConstruction/measure.rb +2 -32
  13. data/lib/measures/AddCostPerFloorAreaToBuilding/LICENSE.md +7 -21
  14. data/lib/measures/AddCostPerFloorAreaToBuilding/measure.rb +2 -32
  15. data/lib/measures/AddCostPerFloorAreaToElectricEquipment/LICENSE.md +7 -21
  16. data/lib/measures/AddCostPerFloorAreaToElectricEquipment/measure.rb +2 -32
  17. data/lib/measures/AddCostPerFloorAreaToLights/LICENSE.md +7 -21
  18. data/lib/measures/AddCostPerFloorAreaToLights/measure.rb +2 -32
  19. data/lib/measures/AddCostPerFloorAreaUnusedToLights/LICENSE.md +7 -21
  20. data/lib/measures/AddCostPerFloorAreaUnusedToLights/measure.rb +2 -32
  21. data/lib/measures/AddCostToSupplySideHVACComponentByAirLoop/LICENSE.md +7 -21
  22. data/lib/measures/AddCostToSupplySideHVACComponentByAirLoop/measure.rb +2 -32
  23. data/lib/measures/AddCostperAreatoUnusedConstruction/LICENSE.md +7 -21
  24. data/lib/measures/AddCostperAreatoUnusedConstruction/measure.rb +2 -32
  25. data/lib/measures/AddExteriorLights/LICENSE.md +7 -21
  26. data/lib/measures/AddExteriorLights/measure.rb +2 -32
  27. data/lib/measures/AddMeter/LICENSE.md +7 -21
  28. data/lib/measures/AddMeter/measure.rb +2 -32
  29. data/lib/measures/AddOutputDiagnostics/LICENSE.md +7 -21
  30. data/lib/measures/AddOutputDiagnostics/measure.rb +2 -32
  31. data/lib/measures/AddOutputVariable/LICENSE.md +7 -21
  32. data/lib/measures/AddOutputVariable/measure.rb +2 -32
  33. data/lib/measures/AddSimplePvToShadingSurfacesByType/LICENSE.md +7 -21
  34. data/lib/measures/AddSimplePvToShadingSurfacesByType/measure.rb +2 -32
  35. data/lib/measures/AddThermalComfortModelTypes/LICENSE.md +13 -0
  36. data/lib/measures/AddThermalComfortModelTypes/README.md +115 -0
  37. data/lib/measures/AddThermalComfortModelTypes/README.md.erb +45 -0
  38. data/lib/measures/AddThermalComfortModelTypes/measure.rb +165 -0
  39. data/lib/measures/AddThermalComfortModelTypes/measure.xml +244 -0
  40. data/lib/measures/AdjustSystemEfficiencies/LICENSE.md +7 -21
  41. data/lib/measures/AdjustSystemEfficiencies/measure.rb +2 -32
  42. data/lib/measures/AdjustThermostatSetpointsByDegrees/LICENSE.md +7 -21
  43. data/lib/measures/AdjustThermostatSetpointsByDegrees/measure.rb +2 -32
  44. data/lib/measures/ChangeBuildingLocation/LICENSE.md +7 -21
  45. data/lib/measures/ChangeBuildingLocation/measure.rb +2 -32
  46. data/lib/measures/ChangeBuildingLocation/resources/epw.rb +2 -32
  47. data/lib/measures/ChangeBuildingLocation/resources/stat_file.rb +2 -32
  48. data/lib/measures/EnableIdealAirLoadsForAllZones/LICENSE.md +7 -21
  49. data/lib/measures/EnableIdealAirLoadsForAllZones/measure.rb +2 -32
  50. data/lib/measures/ExportScheduleCSV/LICENSE.md +7 -21
  51. data/lib/measures/ExportScheduleCSV/measure.rb +2 -32
  52. data/lib/measures/ImportEnvelopeAndInternalLoadsFromIdf/LICENSE.md +7 -21
  53. data/lib/measures/ImportEnvelopeAndInternalLoadsFromIdf/measure.rb +2 -32
  54. data/lib/measures/MeterFlodPlot/LICENSE.md +7 -21
  55. data/lib/measures/MeterFlodPlot/measure.rb +2 -32
  56. data/lib/measures/ModifyEnergyPlusCoilCoolingDXSingleSpeedObjects/LICENSE.md +7 -21
  57. data/lib/measures/ModifyEnergyPlusCoilCoolingDXSingleSpeedObjects/measure.rb +2 -32
  58. data/lib/measures/ModifyEnergyPlusFanVariableVolumeObjects/LICENSE.md +7 -21
  59. data/lib/measures/ModifyEnergyPlusFanVariableVolumeObjects/measure.rb +2 -32
  60. data/lib/measures/PredictedMeanVote/LICENSE.md +7 -21
  61. data/lib/measures/PredictedMeanVote/measure.rb +2 -32
  62. data/lib/measures/RemoveInternalLoadsDirectlyAssignedToSpaces/LICENSE.md +7 -21
  63. data/lib/measures/RemoveInternalLoadsDirectlyAssignedToSpaces/measure.rb +2 -32
  64. data/lib/measures/RemoveUnusedDefaultProfiles/LICENSE.md +7 -21
  65. data/lib/measures/RemoveUnusedDefaultProfiles/measure.rb +2 -32
  66. data/lib/measures/ReplaceExteriorWindowConstruction/LICENSE.md +7 -21
  67. data/lib/measures/ReplaceExteriorWindowConstruction/measure.rb +2 -32
  68. data/lib/measures/ReplaceModel/LICENSE.md +13 -0
  69. data/lib/measures/ReplaceModel/README.md +34 -0
  70. data/lib/measures/ReplaceModel/README.md.erb +42 -0
  71. data/lib/measures/ReplaceModel/measure.rb +113 -0
  72. data/lib/measures/ReplaceModel/measure.xml +71 -0
  73. data/lib/measures/ReplaceThermostatSchedules/LICENSE.md +7 -21
  74. data/lib/measures/ReplaceThermostatSchedules/measure.rb +2 -32
  75. data/lib/measures/ReportModelChanges/LICENSE.md +7 -21
  76. data/lib/measures/ReportModelChanges/measure.rb +2 -32
  77. data/lib/measures/ReportModelChanges/measure.xml +2 -2
  78. data/lib/measures/RunPeriod/LICENSE.md +7 -21
  79. data/lib/measures/RunPeriod/measure.rb +2 -32
  80. data/lib/measures/RunPeriodMultiple/LICENSE.md +7 -21
  81. data/lib/measures/RunPeriodMultiple/measure.rb +2 -32
  82. data/lib/measures/ServerDirectoryCleanup/LICENSE.md +7 -21
  83. data/lib/measures/ServerDirectoryCleanup/measure.rb +2 -32
  84. data/lib/measures/SetCOPforSingleSpeedDXCoolingUnits/LICENSE.md +7 -21
  85. data/lib/measures/SetCOPforSingleSpeedDXCoolingUnits/measure.rb +2 -32
  86. data/lib/measures/SetCOPforTwoSpeedDXCoolingUnits/LICENSE.md +7 -21
  87. data/lib/measures/SetCOPforTwoSpeedDXCoolingUnits/measure.rb +2 -32
  88. data/lib/measures/SetEnergyPlusInfiltrationFlowRatePerFloorArea/LICENSE.md +7 -21
  89. data/lib/measures/SetEnergyPlusInfiltrationFlowRatePerFloorArea/measure.rb +2 -32
  90. data/lib/measures/SetEnergyPlusLightObjectsLPD/LICENSE.md +7 -21
  91. data/lib/measures/SetEnergyPlusLightObjectsLPD/measure.rb +2 -32
  92. data/lib/measures/SetEnergyPlusMinimumOutdoorAirFlowRate/LICENSE.md +7 -21
  93. data/lib/measures/SetEnergyPlusMinimumOutdoorAirFlowRate/measure.rb +2 -32
  94. data/lib/measures/SetGasBurnerEfficiency/LICENSE.md +7 -21
  95. data/lib/measures/SetGasBurnerEfficiency/measure.rb +2 -32
  96. data/lib/measures/SetLifecycleCostParameters/LICENSE.md +7 -21
  97. data/lib/measures/SetLifecycleCostParameters/measure.rb +2 -32
  98. data/lib/measures/SetLightingLoadsByLPD/LICENSE.md +7 -21
  99. data/lib/measures/SetLightingLoadsByLPD/measure.rb +2 -32
  100. data/lib/measures/SetSpaceInfiltrationByExteriorSurfaceArea/LICENSE.md +7 -21
  101. data/lib/measures/SetSpaceInfiltrationByExteriorSurfaceArea/measure.rb +2 -32
  102. data/lib/measures/SetThermostatSchedules/LICENSE.md +7 -21
  103. data/lib/measures/SetThermostatSchedules/measure.rb +2 -32
  104. data/lib/measures/ShiftScheduleProfileTime/LICENSE.md +7 -21
  105. data/lib/measures/ShiftScheduleProfileTime/measure.rb +2 -32
  106. data/lib/measures/SwapLightsDefinition/LICENSE.md +7 -21
  107. data/lib/measures/SwapLightsDefinition/measure.rb +2 -32
  108. data/lib/measures/UnmetLoadHoursTroubleshooting/LICENSE.md +7 -21
  109. data/lib/measures/UnmetLoadHoursTroubleshooting/measure.rb +2 -32
  110. data/lib/measures/VentilationQAQC/LICENSE.md +7 -21
  111. data/lib/measures/VentilationQAQC/measure.rb +2 -32
  112. data/lib/measures/XcelEDAReportingandQAQC/LICENSE.md +13 -0
  113. data/lib/measures/XcelEDAReportingandQAQC/README.md +26 -0
  114. data/lib/measures/XcelEDAReportingandQAQC/README.md.erb +42 -0
  115. data/lib/measures/XcelEDAReportingandQAQC/measure.rb +201 -0
  116. data/lib/measures/XcelEDAReportingandQAQC/measure.xml +116 -0
  117. data/lib/measures/{generic_qaqc → XcelEDAReportingandQAQC}/resources/CreateResults.rb +53 -50
  118. data/lib/measures/XcelEDAReportingandQAQC/resources/EUI.rb +53 -0
  119. data/lib/measures/XcelEDAReportingandQAQC/resources/EndUseBreakdown.rb +88 -0
  120. data/lib/measures/XcelEDAReportingandQAQC/resources/FuelSwap.rb +275 -0
  121. data/lib/measures/XcelEDAReportingandQAQC/resources/PeakHeatCoolMonth.rb +191 -0
  122. data/lib/measures/XcelEDAReportingandQAQC/resources/UnmetHrs.rb +45 -0
  123. data/lib/measures/XcelEDATariffSelectionandModelSetup/LICENSE.md +13 -0
  124. data/lib/measures/XcelEDATariffSelectionandModelSetup/README.md +40 -0
  125. data/lib/measures/XcelEDATariffSelectionandModelSetup/README.md.erb +42 -0
  126. data/lib/measures/XcelEDATariffSelectionandModelSetup/measure.rb +367 -0
  127. data/lib/measures/XcelEDATariffSelectionandModelSetup/measure.xml +309 -0
  128. data/lib/measures/XcelEDATariffSelectionandModelSetup/resources/Commercial.idf +95 -0
  129. data/lib/measures/XcelEDATariffSelectionandModelSetup/resources/Interruptible Industrial G.idf +32 -0
  130. data/lib/measures/XcelEDATariffSelectionandModelSetup/resources/Large CG.idf +32 -0
  131. data/lib/measures/XcelEDATariffSelectionandModelSetup/resources/Non-Xcel Commercial.idf +95 -0
  132. data/lib/measures/XcelEDATariffSelectionandModelSetup/resources/Non-Xcel Gas Firm.idf +32 -0
  133. data/lib/measures/XcelEDATariffSelectionandModelSetup/resources/Non-Xcel Gas Interruptible.idf +32 -0
  134. data/lib/measures/XcelEDATariffSelectionandModelSetup/resources/Non-Xcel Primary General.idf +95 -0
  135. data/lib/measures/XcelEDATariffSelectionandModelSetup/resources/Non-Xcel Secondary General Low Load Factor.idf +95 -0
  136. data/lib/measures/XcelEDATariffSelectionandModelSetup/resources/Non-Xcel Secondary General.idf +95 -0
  137. data/lib/measures/XcelEDATariffSelectionandModelSetup/resources/Non-Xcel Transmission General.idf +95 -0
  138. data/lib/measures/XcelEDATariffSelectionandModelSetup/resources/Primary General.idf +95 -0
  139. data/lib/measures/XcelEDATariffSelectionandModelSetup/resources/Residential Gas.idf +32 -0
  140. data/lib/measures/XcelEDATariffSelectionandModelSetup/resources/Residential General.idf +95 -0
  141. data/lib/measures/XcelEDATariffSelectionandModelSetup/resources/Secondary General Low Load Factor.idf +95 -0
  142. data/lib/measures/XcelEDATariffSelectionandModelSetup/resources/Secondary General.idf +95 -0
  143. data/lib/measures/XcelEDATariffSelectionandModelSetup/resources/Secondary Photovoltaic Time-of-Use.idf +95 -0
  144. data/lib/measures/XcelEDATariffSelectionandModelSetup/resources/Small CG.idf +32 -0
  145. data/lib/measures/XcelEDATariffSelectionandModelSetup/resources/Transmission General.idf +95 -0
  146. data/lib/measures/ZoneReport/LICENSE.md +7 -21
  147. data/lib/measures/ZoneReport/measure.rb +2 -32
  148. data/lib/measures/add_ems_emissions_reporting/LICENSE.md +7 -21
  149. data/lib/measures/add_ems_emissions_reporting/measure.rb +2 -32
  150. data/lib/measures/add_ems_to_control_ev_charging/LICENSE.md +7 -21
  151. data/lib/measures/add_ems_to_control_ev_charging/measure.rb +2 -32
  152. data/lib/measures/add_ev_load/LICENSE.md +7 -21
  153. data/lib/measures/add_ev_load/measure.rb +2 -32
  154. data/lib/measures/add_rooftop_pv/LICENSE.md +7 -21
  155. data/lib/measures/add_rooftop_pv/measure.rb +2 -32
  156. data/lib/measures/add_zone_mixing_object/LICENSE.md +7 -21
  157. data/lib/measures/add_zone_mixing_object/measure.rb +2 -32
  158. data/lib/measures/add_zone_ventilation_design_flow_rate_object/LICENSE.md +7 -21
  159. data/lib/measures/add_zone_ventilation_design_flow_rate_object/measure.rb +2 -32
  160. data/lib/measures/air_wall_zone_mixing/LICENSE.md +7 -21
  161. data/lib/measures/air_wall_zone_mixing/measure.rb +2 -32
  162. data/lib/measures/create_csv_output/LICENSE.md +13 -0
  163. data/lib/measures/create_csv_output/README.md +36 -0
  164. data/lib/measures/create_csv_output/README.md.erb +45 -0
  165. data/lib/measures/create_csv_output/docs/.gitkeep +0 -0
  166. data/lib/measures/create_csv_output/measure.rb +235 -0
  167. data/lib/measures/create_csv_output/measure.xml +124 -0
  168. data/lib/measures/create_csv_output/resources/report.html.in +13 -0
  169. data/lib/measures/envelope_and_internal_load_breakdown/LICENSE.md +7 -21
  170. data/lib/measures/envelope_and_internal_load_breakdown/measure.rb +2 -32
  171. data/lib/measures/envelope_and_internal_load_breakdown/resources/os_lib_reporting_envelope_and_internal_loads_breakdown.rb +2 -32
  172. data/lib/measures/envelope_and_internal_load_breakdown/resources/report.html.erb +6 -32
  173. data/lib/measures/example_report/LICENSE.md +7 -21
  174. data/lib/measures/example_report/measure.rb +2 -32
  175. data/lib/measures/example_report/resources/os_lib_reporting_example.rb +2 -32
  176. data/lib/measures/example_report/resources/report.html.erb +6 -32
  177. data/lib/measures/gem_env_report/LICENSE.md +7 -21
  178. data/lib/measures/gem_env_report/measure.rb +2 -32
  179. data/lib/measures/gem_env_report/resources/gem_env_info.rb +2 -32
  180. data/lib/measures/gem_env_report/resources/openstudio_info.rb +2 -32
  181. data/lib/measures/gem_env_report/resources/run_gem_env_info.rb +2 -32
  182. data/lib/measures/gem_env_report/resources/run_openstudio_info.rb +2 -32
  183. data/lib/measures/generic_qaqc/LICENSE.md +7 -21
  184. data/lib/measures/generic_qaqc/measure.rb +2 -32
  185. data/lib/measures/generic_qaqc/measure.xml +175 -181
  186. data/lib/measures/generic_qaqc/resources/check_air_sys_temps.rb +2 -32
  187. data/lib/measures/generic_qaqc/resources/check_calibration.rb +2 -32
  188. data/lib/measures/generic_qaqc/resources/check_cond_zns.rb +2 -32
  189. data/lib/measures/generic_qaqc/resources/check_domestic_hot_water.rb +2 -32
  190. data/lib/measures/generic_qaqc/resources/check_envelope_conductance.rb +9 -32
  191. data/lib/measures/generic_qaqc/resources/check_eui_by_end_use.rb +2 -32
  192. data/lib/measures/generic_qaqc/resources/check_eui_reasonableness.rb +2 -32
  193. data/lib/measures/generic_qaqc/resources/check_fan_pwr.rb +2 -32
  194. data/lib/measures/generic_qaqc/resources/check_internal_loads.rb +2 -32
  195. data/lib/measures/generic_qaqc/resources/check_mech_sys_capacity.rb +2 -32
  196. data/lib/measures/generic_qaqc/resources/check_mech_sys_efficiency.rb +2 -32
  197. data/lib/measures/generic_qaqc/resources/check_mech_sys_part_load_eff.rb +2 -32
  198. data/lib/measures/generic_qaqc/resources/check_mech_sys_type.rb +2 -32
  199. data/lib/measures/generic_qaqc/resources/check_part_loads.rb +2 -32
  200. data/lib/measures/generic_qaqc/resources/check_placeholder.rb +2 -32
  201. data/lib/measures/generic_qaqc/resources/check_plant_cap.rb +2 -32
  202. data/lib/measures/generic_qaqc/resources/check_plant_temps.rb +2 -32
  203. data/lib/measures/generic_qaqc/resources/check_plenum_loads.rb +2 -32
  204. data/lib/measures/generic_qaqc/resources/check_pump_pwr.rb +2 -32
  205. data/lib/measures/generic_qaqc/resources/check_sch_coord.rb +2 -32
  206. data/lib/measures/generic_qaqc/resources/check_schedules.rb +2 -32
  207. data/lib/measures/generic_qaqc/resources/check_simultaneous_heating_and_cooling.rb +2 -32
  208. data/lib/measures/generic_qaqc/resources/check_supply_air_and_thermostat_temp_difference.rb +2 -32
  209. data/lib/measures/generic_qaqc/resources/check_weather_files.rb +2 -32
  210. data/lib/measures/generic_qaqc/resources/os_lib_reporting_qaqc.rb +2 -32
  211. data/lib/measures/generic_qaqc/resources/report.html.erb +6 -32
  212. data/lib/measures/get_site_from_building_component_library/LICENSE.md +7 -21
  213. data/lib/measures/get_site_from_building_component_library/measure.rb +2 -32
  214. data/lib/measures/hvac_psychrometric_chart/LICENSE.md +7 -21
  215. data/lib/measures/hvac_psychrometric_chart/measure.rb +2 -32
  216. data/lib/measures/hvac_psychrometric_chart/resources/report.html.erb +6 -32
  217. data/lib/measures/inject_idf_objects/LICENSE.md +7 -21
  218. data/lib/measures/inject_idf_objects/measure.rb +2 -32
  219. data/lib/measures/openstudio_results/LICENSE.md +7 -21
  220. data/lib/measures/openstudio_results/measure.rb +2 -32
  221. data/lib/measures/openstudio_results/resources/Siz.AirConditionerVariableRefrigerantFlow.rb +2 -32
  222. data/lib/measures/openstudio_results/resources/Siz.AirLoopHVAC.rb +2 -32
  223. data/lib/measures/openstudio_results/resources/Siz.AirLoopHVACUnitaryHeatCoolVAVChangeoverBypass.rb +2 -32
  224. data/lib/measures/openstudio_results/resources/Siz.AirLoopHVACUnitaryHeatPumpAirToAir.rb +2 -32
  225. data/lib/measures/openstudio_results/resources/Siz.AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed.rb +2 -32
  226. data/lib/measures/openstudio_results/resources/Siz.AirLoopHVACUnitarySystem.rb +2 -32
  227. data/lib/measures/openstudio_results/resources/Siz.AirTerminalDualDuctVAV.rb +2 -32
  228. data/lib/measures/openstudio_results/resources/Siz.AirTerminalSingleDuctConstantVolumeCooledBeam.rb +2 -32
  229. data/lib/measures/openstudio_results/resources/Siz.AirTerminalSingleDuctConstantVolumeFourPipeInduction.rb +2 -32
  230. data/lib/measures/openstudio_results/resources/Siz.AirTerminalSingleDuctConstantVolumeReheat.rb +2 -32
  231. data/lib/measures/openstudio_results/resources/Siz.AirTerminalSingleDuctParallelPIUReheat.rb +2 -32
  232. data/lib/measures/openstudio_results/resources/Siz.AirTerminalSingleDuctSeriesPIUReheat.rb +2 -32
  233. data/lib/measures/openstudio_results/resources/Siz.AirTerminalSingleDuctUncontrolled.rb +2 -32
  234. data/lib/measures/openstudio_results/resources/Siz.AirTerminalSingleDuctVAVHeatAndCoolNoReheat.rb +2 -32
  235. data/lib/measures/openstudio_results/resources/Siz.AirTerminalSingleDuctVAVHeatAndCoolReheat.rb +2 -32
  236. data/lib/measures/openstudio_results/resources/Siz.AirTerminalSingleDuctVAVNoReheat.rb +2 -32
  237. data/lib/measures/openstudio_results/resources/Siz.AirTerminalSingleDuctVAVReheat.rb +2 -32
  238. data/lib/measures/openstudio_results/resources/Siz.BoilerHotWater.rb +2 -32
  239. data/lib/measures/openstudio_results/resources/Siz.BoilerSteam.rb +2 -32
  240. data/lib/measures/openstudio_results/resources/Siz.ChillerAbsorption.rb +2 -32
  241. data/lib/measures/openstudio_results/resources/Siz.ChillerAbsorptionIndirect.rb +2 -32
  242. data/lib/measures/openstudio_results/resources/Siz.ChillerElectricEIR.rb +2 -32
  243. data/lib/measures/openstudio_results/resources/Siz.ChillerHeaterPerformanceElectricEIR.rb +2 -32
  244. data/lib/measures/openstudio_results/resources/Siz.CoilCoolingDXMultiSpeed.rb +2 -32
  245. data/lib/measures/openstudio_results/resources/Siz.CoilCoolingDXMultiSpeedStageData.rb +2 -32
  246. data/lib/measures/openstudio_results/resources/Siz.CoilCoolingDXSingleSpeed.rb +2 -32
  247. data/lib/measures/openstudio_results/resources/Siz.CoilCoolingDXTwoSpeed.rb +2 -32
  248. data/lib/measures/openstudio_results/resources/Siz.CoilCoolingDXTwoStageWithHumidityControlMode.rb +2 -32
  249. data/lib/measures/openstudio_results/resources/Siz.CoilCoolingDXVariableRefrigerantFlow.rb +2 -32
  250. data/lib/measures/openstudio_results/resources/Siz.CoilCoolingDXVariableSpeed.rb +2 -32
  251. data/lib/measures/openstudio_results/resources/Siz.CoilCoolingDXVariableSpeedSpeedData.rb +2 -32
  252. data/lib/measures/openstudio_results/resources/Siz.CoilCoolingLowTempRadiantVarFlow.rb +2 -32
  253. data/lib/measures/openstudio_results/resources/Siz.CoilCoolingWater.rb +2 -32
  254. data/lib/measures/openstudio_results/resources/Siz.CoilCoolingWaterToAirHeatPumpEquationFit.rb +2 -32
  255. data/lib/measures/openstudio_results/resources/Siz.CoilCoolingWaterToAirHeatPumpVariableSpeedEquationFit.rb +2 -32
  256. data/lib/measures/openstudio_results/resources/Siz.CoilCoolingWaterToAirHeatPumpVariableSpeedEquationFitSpeedData.rb +2 -32
  257. data/lib/measures/openstudio_results/resources/Siz.CoilHeatingDXMultiSpeed.rb +2 -32
  258. data/lib/measures/openstudio_results/resources/Siz.CoilHeatingDXMultiSpeedStageData.rb +2 -32
  259. data/lib/measures/openstudio_results/resources/Siz.CoilHeatingDXSingleSpeed.rb +2 -32
  260. data/lib/measures/openstudio_results/resources/Siz.CoilHeatingDXVariableRefrigerantFlow.rb +2 -32
  261. data/lib/measures/openstudio_results/resources/Siz.CoilHeatingDXVariableSpeed.rb +2 -32
  262. data/lib/measures/openstudio_results/resources/Siz.CoilHeatingDXVariableSpeedSpeedData.rb +2 -32
  263. data/lib/measures/openstudio_results/resources/Siz.CoilHeatingDesuperheater.rb +2 -32
  264. data/lib/measures/openstudio_results/resources/Siz.CoilHeatingElectric.rb +2 -32
  265. data/lib/measures/openstudio_results/resources/Siz.CoilHeatingGas.rb +2 -32
  266. data/lib/measures/openstudio_results/resources/Siz.CoilHeatingGasMultiStage.rb +2 -32
  267. data/lib/measures/openstudio_results/resources/Siz.CoilHeatingGasMultiStageStageData.rb +2 -32
  268. data/lib/measures/openstudio_results/resources/Siz.CoilHeatingLowTempRadiantVarFlow.rb +2 -32
  269. data/lib/measures/openstudio_results/resources/Siz.CoilHeatingWater.rb +2 -32
  270. data/lib/measures/openstudio_results/resources/Siz.CoilHeatingWaterBaseboard.rb +2 -32
  271. data/lib/measures/openstudio_results/resources/Siz.CoilHeatingWaterBaseboardRadiant.rb +2 -32
  272. data/lib/measures/openstudio_results/resources/Siz.CoilHeatingWaterToAirHeatPumpEquationFit.rb +2 -32
  273. data/lib/measures/openstudio_results/resources/Siz.CoilHeatingWaterToAirHeatPumpVariableSpeedEquationFit.rb +2 -32
  274. data/lib/measures/openstudio_results/resources/Siz.CoilHeatingWaterToAirHeatPumpVariableSpeedEquationFitSpeedData.rb +2 -32
  275. data/lib/measures/openstudio_results/resources/Siz.CoilPerformanceDXCooling.rb +2 -32
  276. data/lib/measures/openstudio_results/resources/Siz.CoilSystemCoolingDXHeatExchangerAssisted.rb +2 -32
  277. data/lib/measures/openstudio_results/resources/Siz.CoilSystemCoolingWaterHeatExchangerAssisted.rb +2 -32
  278. data/lib/measures/openstudio_results/resources/Siz.CoilWaterHeatingAirToWaterHeatPump.rb +2 -32
  279. data/lib/measures/openstudio_results/resources/Siz.CoilWaterHeatingAirToWaterHeatPumpWrapped.rb +2 -32
  280. data/lib/measures/openstudio_results/resources/Siz.CoilWaterHeatingDesuperheater.rb +2 -32
  281. data/lib/measures/openstudio_results/resources/Siz.ControllerOutdoorAir.rb +2 -32
  282. data/lib/measures/openstudio_results/resources/Siz.CoolingTowerSingleSpeed.rb +2 -32
  283. data/lib/measures/openstudio_results/resources/Siz.CoolingTowerTwoSpeed.rb +2 -32
  284. data/lib/measures/openstudio_results/resources/Siz.CoolingTowerVariableSpeed.rb +2 -32
  285. data/lib/measures/openstudio_results/resources/Siz.DistrictCooling.rb +2 -32
  286. data/lib/measures/openstudio_results/resources/Siz.DistrictHeating.rb +2 -32
  287. data/lib/measures/openstudio_results/resources/Siz.ElectricLoadCenterInverterLookUpTable.rb +2 -32
  288. data/lib/measures/openstudio_results/resources/Siz.ElectricLoadCenterInverterSimple.rb +2 -32
  289. data/lib/measures/openstudio_results/resources/Siz.ElectricLoadCenterStorageConverter.rb +2 -32
  290. data/lib/measures/openstudio_results/resources/Siz.ElectricLoadCenterStorageSimple.rb +2 -32
  291. data/lib/measures/openstudio_results/resources/Siz.EvaporativeCoolerDirectResearchSpecial.rb +2 -32
  292. data/lib/measures/openstudio_results/resources/Siz.EvaporativeCoolerIndirectResearchSpecial.rb +2 -32
  293. data/lib/measures/openstudio_results/resources/Siz.EvaporativeFluidCoolerSingleSpeed.rb +2 -32
  294. data/lib/measures/openstudio_results/resources/Siz.EvaporativeFluidCoolerTwoSpeed.rb +2 -32
  295. data/lib/measures/openstudio_results/resources/Siz.FanConstantVolume.rb +2 -32
  296. data/lib/measures/openstudio_results/resources/Siz.FanOnOff.rb +2 -32
  297. data/lib/measures/openstudio_results/resources/Siz.FanVariableVolume.rb +2 -32
  298. data/lib/measures/openstudio_results/resources/Siz.FanZoneExhaust.rb +2 -32
  299. data/lib/measures/openstudio_results/resources/Siz.FluidCoolerSingleSpeed.rb +2 -32
  300. data/lib/measures/openstudio_results/resources/Siz.FluidCoolerTwoSpeed.rb +2 -32
  301. data/lib/measures/openstudio_results/resources/Siz.GeneratorFuelCellElectricalStorage.rb +2 -32
  302. data/lib/measures/openstudio_results/resources/Siz.GeneratorFuelCellInverter.rb +2 -32
  303. data/lib/measures/openstudio_results/resources/Siz.GeneratorFuelCellPowerModule.rb +2 -32
  304. data/lib/measures/openstudio_results/resources/Siz.GeneratorMicroTurbine.rb +2 -32
  305. data/lib/measures/openstudio_results/resources/Siz.GeneratorMicroTurbineHeatRecovery.rb +2 -32
  306. data/lib/measures/openstudio_results/resources/Siz.HVACComponent.rb +2 -32
  307. data/lib/measures/openstudio_results/resources/Siz.HeaderedPumpsConstantSpeed.rb +2 -32
  308. data/lib/measures/openstudio_results/resources/Siz.HeaderedPumpsVariableSpeed.rb +2 -32
  309. data/lib/measures/openstudio_results/resources/Siz.HeatExchangerAirToAirSensibleAndLatent.rb +2 -32
  310. data/lib/measures/openstudio_results/resources/Siz.HeatExchangerFluidToFluid.rb +2 -32
  311. data/lib/measures/openstudio_results/resources/Siz.HeatPumpWaterToWaterEquationFitCooling.rb +2 -32
  312. data/lib/measures/openstudio_results/resources/Siz.HeatPumpWaterToWaterEquationFitHeating.rb +2 -32
  313. data/lib/measures/openstudio_results/resources/Siz.HumidifierSteamElectric.rb +2 -32
  314. data/lib/measures/openstudio_results/resources/Siz.Model.rb +2 -32
  315. data/lib/measures/openstudio_results/resources/Siz.ModelObject.rb +2 -32
  316. data/lib/measures/openstudio_results/resources/Siz.PhotovoltaicPerformanceSimple.rb +2 -32
  317. data/lib/measures/openstudio_results/resources/Siz.PlantComponentTemperatureSource.rb +2 -32
  318. data/lib/measures/openstudio_results/resources/Siz.PlantLoop.rb +2 -32
  319. data/lib/measures/openstudio_results/resources/Siz.PumpConstantSpeed.rb +2 -32
  320. data/lib/measures/openstudio_results/resources/Siz.PumpVariableSpeed.rb +2 -32
  321. data/lib/measures/openstudio_results/resources/Siz.RefrigerationSecondarySystem.rb +2 -32
  322. data/lib/measures/openstudio_results/resources/Siz.RefrigerationSystem.rb +2 -32
  323. data/lib/measures/openstudio_results/resources/Siz.RefrigerationTranscriticalSystem.rb +2 -32
  324. data/lib/measures/openstudio_results/resources/Siz.SizingSystem.rb +2 -32
  325. data/lib/measures/openstudio_results/resources/Siz.SolarCollectorFlatPlatePhotovoltaicThermal.rb +2 -32
  326. data/lib/measures/openstudio_results/resources/Siz.SolarCollectorPerformancePhotovoltaicThermalSimple.rb +2 -32
  327. data/lib/measures/openstudio_results/resources/Siz.ThermalStorageChilledWaterStratified.rb +2 -32
  328. data/lib/measures/openstudio_results/resources/Siz.WaterHeaterHeatPump.rb +2 -32
  329. data/lib/measures/openstudio_results/resources/Siz.WaterHeaterHeatPumpWrappedCondenser.rb +2 -32
  330. data/lib/measures/openstudio_results/resources/Siz.WaterHeaterMixed.rb +2 -32
  331. data/lib/measures/openstudio_results/resources/Siz.WaterHeaterStratified.rb +2 -32
  332. data/lib/measures/openstudio_results/resources/Siz.ZoneHVACBaseboardConvectiveElectric.rb +2 -32
  333. data/lib/measures/openstudio_results/resources/Siz.ZoneHVACBaseboardConvectiveWater.rb +2 -32
  334. data/lib/measures/openstudio_results/resources/Siz.ZoneHVACBaseboardRadiantConvectiveElectric.rb +2 -32
  335. data/lib/measures/openstudio_results/resources/Siz.ZoneHVACBaseboardRadiantConvectiveWater.rb +2 -32
  336. data/lib/measures/openstudio_results/resources/Siz.ZoneHVACEnergyRecoveryVentilator.rb +2 -32
  337. data/lib/measures/openstudio_results/resources/Siz.ZoneHVACFourPipeFanCoil.rb +2 -32
  338. data/lib/measures/openstudio_results/resources/Siz.ZoneHVACHighTemperatureRadiant.rb +2 -32
  339. data/lib/measures/openstudio_results/resources/Siz.ZoneHVACIdealLoadsAirSystem.rb +2 -32
  340. data/lib/measures/openstudio_results/resources/Siz.ZoneHVACLowTempRadiantConstFlow.rb +2 -32
  341. data/lib/measures/openstudio_results/resources/Siz.ZoneHVACLowTempRadiantVarFlow.rb +2 -32
  342. data/lib/measures/openstudio_results/resources/Siz.ZoneHVACPackagedTerminalAirConditioner.rb +2 -32
  343. data/lib/measures/openstudio_results/resources/Siz.ZoneHVACPackagedTerminalHeatPump.rb +2 -32
  344. data/lib/measures/openstudio_results/resources/Siz.ZoneHVACTerminalUnitVariableRefrigerantFlow.rb +2 -32
  345. data/lib/measures/openstudio_results/resources/Siz.ZoneHVACUnitHeater.rb +2 -32
  346. data/lib/measures/openstudio_results/resources/Siz.ZoneHVACUnitVentilator.rb +2 -32
  347. data/lib/measures/openstudio_results/resources/Siz.ZoneHVACWaterToAirHeatPump.rb +2 -32
  348. data/lib/measures/openstudio_results/resources/Siz.ZoneVentilationDesignFlowRate.rb +2 -32
  349. data/lib/measures/openstudio_results/resources/os_lib_reporting.rb +2 -32
  350. data/lib/measures/openstudio_results/resources/report.html.erb +6 -32
  351. data/lib/measures/remove_orphan_objects_and_unused_resources/LICENSE.md +7 -21
  352. data/lib/measures/remove_orphan_objects_and_unused_resources/measure.rb +12 -50
  353. data/lib/measures/remove_orphan_objects_and_unused_resources/measure.xml +9 -9
  354. data/lib/measures/set_electric_equipment_loads_by_epd/LICENSE.md +7 -21
  355. data/lib/measures/set_electric_equipment_loads_by_epd/measure.rb +2 -32
  356. data/lib/measures/set_exterior_walls_and_floors_to_adiabatic/LICENSE.md +7 -21
  357. data/lib/measures/set_exterior_walls_and_floors_to_adiabatic/measure.rb +2 -32
  358. data/lib/measures/set_run_period/LICENSE.md +7 -21
  359. data/lib/measures/set_run_period/measure.rb +2 -32
  360. data/lib/measures/set_run_period/measure.xml +2 -2
  361. data/lib/measures/set_space_infiltration_per_exterior_area/LICENSE.md +7 -21
  362. data/lib/measures/set_space_infiltration_per_exterior_area/measure.rb +2 -32
  363. data/lib/measures/shadow_calculation/LICENSE.md +13 -0
  364. data/lib/measures/shadow_calculation/README.md +80 -0
  365. data/lib/measures/shadow_calculation/README.md.erb +42 -0
  366. data/lib/measures/shadow_calculation/measure.rb +188 -0
  367. data/lib/measures/shadow_calculation/measure.xml +180 -0
  368. data/lib/measures/tariff_selection_block/LICENSE.md +7 -21
  369. data/lib/measures/tariff_selection_block/measure.rb +2 -32
  370. data/lib/measures/tariff_selection_flat/LICENSE.md +7 -21
  371. data/lib/measures/tariff_selection_flat/measure.rb +2 -32
  372. data/lib/measures/tariff_selection_generic/LICENSE.md +7 -21
  373. data/lib/measures/tariff_selection_generic/measure.rb +2 -32
  374. data/lib/measures/tariff_selection_time_and_date_dependant/LICENSE.md +7 -21
  375. data/lib/measures/tariff_selection_time_and_date_dependant/measure.rb +2 -32
  376. data/lib/measures/view_data/LICENSE.md +7 -21
  377. data/lib/measures/view_data/measure.rb +2 -32
  378. data/lib/measures/view_data/resources/va3c.rb +2 -32
  379. data/lib/measures/view_model/LICENSE.md +7 -21
  380. data/lib/measures/view_model/measure.rb +2 -32
  381. data/lib/measures/view_model/resources/va3c.rb +2 -32
  382. data/lib/openstudio/common_measures/extension.rb +2 -32
  383. data/lib/openstudio/common_measures/version.rb +3 -33
  384. data/lib/openstudio/common_measures.rb +2 -32
  385. data/lib/openstudio-common-measures.rb +2 -32
  386. data/openstudio-common-measures.gemspec +2 -2
  387. metadata +69 -8
@@ -0,0 +1,367 @@
1
+ # *******************************************************************************
2
+ # OpenStudio(R), Copyright (c) Alliance for Sustainable Energy, LLC.
3
+ # See also https://openstudio.net/license
4
+ # *******************************************************************************
5
+
6
+ # see the URL below for information on how to write OpenStuido measures
7
+ # http://openstudio.nrel.gov/openstudio-measure-writing-guide
8
+
9
+ # Query the user to select Xcel tariffs for consideration (a list of Boolean inputs, one for each tariff) and analysis period length only
10
+ # only going to let people choose 1 electric and 1 gas rate for now
11
+ # TODO Remove all existing tariffs
12
+ # this is difficult to do in workspace, and not likely necessary. Skipping for first version
13
+ # Add selected Xcel tariffs
14
+ # Set timestep to demand window
15
+ # TODO Set economic parameters such as discount rate, etc to hard coded values (current NIST values for 2012)
16
+
17
+ # start the measure
18
+ class XcelEDATariffSelectionandModelSetup < OpenStudio::Measure::EnergyPlusMeasure
19
+ # define the name that a user will see, this method may be deprecated as
20
+ # the display name in PAT comes from the name field in measure.xml
21
+ def name
22
+ return 'XcelEDATariffSelectionandModelSetup'
23
+ end
24
+
25
+ # define the arguments that the user will input
26
+ def arguments(workspace)
27
+ args = OpenStudio::Measure::OSArgumentVector.new
28
+
29
+ # make an argument for the electric tariff
30
+ elec_chs = OpenStudio::StringVector.new
31
+ elec_chs << 'Residential General'
32
+ elec_chs << 'Commercial'
33
+ elec_chs << 'Primary General'
34
+ elec_chs << 'Secondary General Low Load Factor'
35
+ elec_chs << 'Secondary General'
36
+ elec_chs << 'Secondary Photovoltaic Time-of-Use'
37
+ elec_chs << 'Transmission General'
38
+ elec_chs << 'Non-Xcel Commercial'
39
+ elec_chs << 'Non-Xcel Primary General'
40
+ elec_chs << 'Non-Xcel Secondary General Low Load Factor'
41
+ elec_chs << 'Non-Xcel Secondary General'
42
+ elec_chs << 'Non-Xcel Transmission General'
43
+ elec_tar = OpenStudio::Measure::OSArgument.makeChoiceArgument('elec_tar', elec_chs, true)
44
+ elec_tar.setDisplayName('Select an Electricity Tariff.')
45
+ elec_tar.setDefaultValue('Secondary General')
46
+ args << elec_tar
47
+
48
+ # make an argument for the gas tariff
49
+ gas_chs = OpenStudio::StringVector.new
50
+ gas_chs << 'Residential Gas'
51
+ gas_chs << 'Small CG'
52
+ gas_chs << 'Large CG'
53
+ gas_chs << 'Interruptible Industrial G'
54
+ gas_chs << 'Non-Xcel Gas Firm'
55
+ gas_chs << 'Non-Xcel Gas Interruptible'
56
+ gas_tar = OpenStudio::Measure::OSArgument.makeChoiceArgument('gas_tar', gas_chs, true)
57
+ gas_tar.setDisplayName('Select a Gas Tariff.')
58
+ gas_tar.setDefaultValue('Large CG')
59
+ args << gas_tar
60
+
61
+ return args
62
+ end
63
+
64
+ # define what happens when the measure is run
65
+ def run(workspace, runner, user_arguments)
66
+ super(workspace, runner, user_arguments)
67
+
68
+ # use the built-in error checking
69
+ if !runner.validateUserArguments(arguments(workspace), user_arguments)
70
+ return false
71
+ end
72
+
73
+ # assign the user inputs to variables
74
+ elec_tar = runner.getStringArgumentValue('elec_tar', user_arguments)
75
+ gas_tar = runner.getStringArgumentValue('gas_tar', user_arguments)
76
+
77
+ # import the tariffs
78
+ [elec_tar, gas_tar].each do |tar|
79
+ # load the idf file containing the electric tariff
80
+ tar_path = OpenStudio::Path.new("#{File.dirname(__FILE__)}/resources/#{tar}.idf")
81
+ tar_file = OpenStudio::IdfFile.load(tar_path)
82
+
83
+ # in OpenStudio PAT in 1.1.0 and earlier all resource files are moved up a directory.
84
+ # below is a temporary workaround for this before issuing an error.
85
+ if tar_file.empty?
86
+ tar_path = OpenStudio::Path.new("#{File.dirname(__FILE__)}/#{tar}.idf")
87
+ tar_file = OpenStudio::IdfFile.load(tar_path)
88
+ end
89
+
90
+ if tar_file.empty?
91
+ runner.registerError("Unable to find the file #{tar}.idf")
92
+ return false
93
+ else
94
+ tar_file = tar_file.get
95
+ end
96
+
97
+ # add the schedule type limits
98
+ workspace.addObjects(tar_file.getObjectsByType('ScheduleTypeLimits'.to_IddObjectType))
99
+
100
+ # add the schedules
101
+ workspace.addObjects(tar_file.getObjectsByType('Schedule:Compact'.to_IddObjectType))
102
+
103
+ # add the tariffs
104
+ workspace.addObjects(tar_file.getObjectsByType('UtilityCost:Tariff'.to_IddObjectType))
105
+
106
+ # add the simple charges
107
+ workspace.addObjects(tar_file.getObjectsByType('UtilityCost:Charge:Simple'.to_IddObjectType))
108
+
109
+ # add the block charges
110
+ workspace.addObjects(tar_file.getObjectsByType('UtilityCost:Charge:Block'.to_IddObjectType))
111
+
112
+ # let the user know what happened
113
+ runner.registerInfo("added a tariff named #{tar}")
114
+ end
115
+
116
+ # set the simulation timestep to 15min (4 per hour) to match the demand window of the tariffs
117
+ if !workspace.getObjectsByType('Timestep'.to_IddObjectType).empty?
118
+ workspace.getObjectsByType('Timestep'.to_IddObjectType)[0].setString(0, '4')
119
+ runner.registerInfo('set the simulation timestep to 15 min to match the demand window of the tariffs')
120
+ else
121
+ runner.registerError('there was no timestep object to alter')
122
+ end
123
+
124
+ # remove any existing lifecycle cost parameters
125
+ workspace.getObjectsByType('LifeCycleCost:Parameters'.to_IddObjectType).each do |object|
126
+ runner.registerInfo("removed existing lifecycle parameters named #{object.name}")
127
+ workspace.removeObjects([object.handle])
128
+ end
129
+
130
+ # and replace with the FEMP ones
131
+ life_cycle_params_string = "
132
+ LifeCycleCost:Parameters,
133
+ FEMP LifeCycle Cost Parameters, !- Name
134
+ EndOfYear, !- Discounting Convention
135
+ ConstantDollar, !- Inflation Approach
136
+ 0.03, !- Real Discount Rate
137
+ , !- Nominal Discount Rate
138
+ , !- Inflation
139
+ , !- Base Date Month
140
+ 2011, !- Base Date Year
141
+ , !- Service Date Month
142
+ 2011, !- Service Date Year
143
+ 25, !- Length of Study Period in Years
144
+ , !- Tax rate
145
+ None; !- Depreciation Method
146
+ "
147
+ life_cycle_params = OpenStudio::IdfObject.load(life_cycle_params_string).get
148
+ workspace.addObject(life_cycle_params)
149
+ runner.registerInfo("added lifecycle cost parameters named #{life_cycle_params.name}")
150
+
151
+ # remove any existing lifecycle cost parameters
152
+ workspace.getObjectsByType('LifeCycleCost:UsePriceEscalation'.to_IddObjectType).each do |object|
153
+ runner.registerInfo("removed existing fuel escalation rates named #{object.name}")
154
+ workspace.removeObjects([object.handle])
155
+ end
156
+
157
+ elec_escalation_string = "
158
+ LifeCycleCost:UsePriceEscalation,
159
+ U.S. Avg Commercial-Electricity, !- Name
160
+ Electricity, !- Resource
161
+ 2011, !- Escalation Start Year
162
+ January, !- Escalation Start Month
163
+ 0.9838, !- Year Escalation 1
164
+ 0.9730, !- Year Escalation 2
165
+ 0.9632, !- Year Escalation 3
166
+ 0.9611, !- Year Escalation 4
167
+ 0.9571, !- Year Escalation 5
168
+ 0.9553, !- Year Escalation 6
169
+ 0.9539, !- Year Escalation 7
170
+ 0.9521, !- Year Escalation 8
171
+ 0.9546, !- Year Escalation 9
172
+ 0.9550, !- Year Escalation 10
173
+ 0.9553, !- Year Escalation 11
174
+ 0.9564, !- Year Escalation 12
175
+ 0.9575, !- Year Escalation 13
176
+ 0.9596, !- Year Escalation 14
177
+ 0.9618, !- Year Escalation 15
178
+ 0.9614, !- Year Escalation 16
179
+ 0.9618, !- Year Escalation 17
180
+ 0.9618, !- Year Escalation 18
181
+ 0.9593, !- Year Escalation 19
182
+ 0.9589, !- Year Escalation 20
183
+ 0.9607, !- Year Escalation 21
184
+ 0.9625, !- Year Escalation 22
185
+ 0.9650, !- Year Escalation 23
186
+ 0.9708, !- Year Escalation 24
187
+ 0.9751, !- Year Escalation 25
188
+ 0.9762, !- Year Escalation 26
189
+ 0.9766, !- Year Escalation 27
190
+ 0.9766, !- Year Escalation 28
191
+ 0.9769, !- Year Escalation 29
192
+ 0.9773; !- Year Escalation 30
193
+ "
194
+ elec_escalation = OpenStudio::IdfObject.load(elec_escalation_string).get
195
+ workspace.addObject(elec_escalation)
196
+ runner.registerInfo("added fuel escalation rates named #{elec_escalation.name}")
197
+
198
+ fuel_oil_1_escalation_string = "
199
+ LifeCycleCost:UsePriceEscalation,
200
+ U.S. Avg Commercial-Distillate Oil, !- Name
201
+ FuelOilNo1, !- Resource
202
+ 2011, !- Escalation Start Year
203
+ January, !- Escalation Start Month
204
+ 0.9714, !- Year Escalation 1
205
+ 0.9730, !- Year Escalation 2
206
+ 0.9942, !- Year Escalation 3
207
+ 1.0164, !- Year Escalation 4
208
+ 1.0541, !- Year Escalation 5
209
+ 1.0928, !- Year Escalation 6
210
+ 1.1267, !- Year Escalation 7
211
+ 1.1580, !- Year Escalation 8
212
+ 1.1792, !- Year Escalation 9
213
+ 1.1967, !- Year Escalation 10
214
+ 1.2200, !- Year Escalation 11
215
+ 1.2333, !- Year Escalation 12
216
+ 1.2566, !- Year Escalation 13
217
+ 1.2709, !- Year Escalation 14
218
+ 1.2826, !- Year Escalation 15
219
+ 1.2985, !- Year Escalation 16
220
+ 1.3102, !- Year Escalation 17
221
+ 1.3250, !- Year Escalation 18
222
+ 1.3261, !- Year Escalation 19
223
+ 1.3282, !- Year Escalation 20
224
+ 1.3324, !- Year Escalation 21
225
+ 1.3356, !- Year Escalation 22
226
+ 1.3431, !- Year Escalation 23
227
+ 1.3510, !- Year Escalation 24
228
+ 1.3568, !- Year Escalation 25
229
+ 1.3606, !- Year Escalation 26
230
+ 1.3637, !- Year Escalation 27
231
+ 1.3674, !- Year Escalation 28
232
+ 1.3706, !- Year Escalation 29
233
+ 1.3743; !- Year Escalation 30
234
+ "
235
+ fuel_oil_1_escalation = OpenStudio::IdfObject.load(fuel_oil_1_escalation_string).get
236
+ workspace.addObject(fuel_oil_1_escalation)
237
+ runner.registerInfo("added fuel escalation rates named #{fuel_oil_1_escalation.name}")
238
+
239
+ fuel_oil_2_escalation_string = "
240
+ LifeCycleCost:UsePriceEscalation,
241
+ U.S. Avg Commercial-Residual Oil, !- Name
242
+ FuelOilNo2, !- Resource
243
+ 2011, !- Escalation Start Year
244
+ January, !- Escalation Start Month
245
+ 0.8469, !- Year Escalation 1
246
+ 0.8257, !- Year Escalation 2
247
+ 0.8681, !- Year Escalation 3
248
+ 0.8988, !- Year Escalation 4
249
+ 0.9289, !- Year Escalation 5
250
+ 0.9604, !- Year Escalation 6
251
+ 0.9897, !- Year Escalation 7
252
+ 1.0075, !- Year Escalation 8
253
+ 1.0314, !- Year Escalation 9
254
+ 1.0554, !- Year Escalation 10
255
+ 1.0861, !- Year Escalation 11
256
+ 1.1278, !- Year Escalation 12
257
+ 1.1497, !- Year Escalation 13
258
+ 1.1620, !- Year Escalation 14
259
+ 1.1743, !- Year Escalation 15
260
+ 1.1852, !- Year Escalation 16
261
+ 1.1948, !- Year Escalation 17
262
+ 1.2037, !- Year Escalation 18
263
+ 1.2071, !- Year Escalation 19
264
+ 1.2119, !- Year Escalation 20
265
+ 1.2139, !- Year Escalation 21
266
+ 1.2194, !- Year Escalation 22
267
+ 1.2276, !- Year Escalation 23
268
+ 1.2365, !- Year Escalation 24
269
+ 1.2420, !- Year Escalation 25
270
+ 1.2461, !- Year Escalation 26
271
+ 1.2509, !- Year Escalation 27
272
+ 1.2550, !- Year Escalation 28
273
+ 1.2591, !- Year Escalation 29
274
+ 1.2638; !- Year Escalation 30
275
+ "
276
+ fuel_oil_2_escalation = OpenStudio::IdfObject.load(fuel_oil_2_escalation_string).get
277
+ workspace.addObject(fuel_oil_2_escalation)
278
+ runner.registerInfo("added fuel escalation rates named #{fuel_oil_2_escalation.name}")
279
+
280
+ nat_gas_escalation_string = "
281
+ LifeCycleCost:UsePriceEscalation,
282
+ U.S. Avg Commercial-Natural gas, !- Name
283
+ NaturalGas, !- Resource
284
+ 2011, !- Escalation Start Year
285
+ January, !- Escalation Start Month
286
+ 0.9823, !- Year Escalation 1
287
+ 0.9557, !- Year Escalation 2
288
+ 0.9279, !- Year Escalation 3
289
+ 0.9257, !- Year Escalation 4
290
+ 0.9346, !- Year Escalation 5
291
+ 0.9412, !- Year Escalation 6
292
+ 0.9512, !- Year Escalation 7
293
+ 0.9645, !- Year Escalation 8
294
+ 0.9856, !- Year Escalation 9
295
+ 1.0067, !- Year Escalation 10
296
+ 1.0222, !- Year Escalation 11
297
+ 1.0410, !- Year Escalation 12
298
+ 1.0610, !- Year Escalation 13
299
+ 1.0787, !- Year Escalation 14
300
+ 1.0942, !- Year Escalation 15
301
+ 1.1098, !- Year Escalation 16
302
+ 1.1220, !- Year Escalation 17
303
+ 1.1308, !- Year Escalation 18
304
+ 1.1386, !- Year Escalation 19
305
+ 1.1486, !- Year Escalation 20
306
+ 1.1619, !- Year Escalation 21
307
+ 1.1763, !- Year Escalation 22
308
+ 1.1918, !- Year Escalation 23
309
+ 1.2118, !- Year Escalation 24
310
+ 1.2284, !- Year Escalation 25
311
+ 1.2439, !- Year Escalation 26
312
+ 1.2605, !- Year Escalation 27
313
+ 1.2772, !- Year Escalation 28
314
+ 1.2938, !- Year Escalation 29
315
+ 1.3115; !- Year Escalation 30
316
+ "
317
+ nat_gas_escalation = OpenStudio::IdfObject.load(nat_gas_escalation_string).get
318
+ workspace.addObject(nat_gas_escalation)
319
+ runner.registerInfo("added fuel escalation rates named #{nat_gas_escalation.name}")
320
+
321
+ coal_escalation_string = "
322
+ LifeCycleCost:UsePriceEscalation,
323
+ U.S. Avg Commercial-Coal, !- Name
324
+ Coal, !- Resource
325
+ 2011, !- Escalation Start Year
326
+ January, !- Escalation Start Month
327
+ 0.9970, !- Year Escalation 1
328
+ 1.0089, !- Year Escalation 2
329
+ 1.0089, !- Year Escalation 3
330
+ 0.9941, !- Year Escalation 4
331
+ 0.9941, !- Year Escalation 5
332
+ 1.0000, !- Year Escalation 6
333
+ 1.0030, !- Year Escalation 7
334
+ 1.0059, !- Year Escalation 8
335
+ 1.0089, !- Year Escalation 9
336
+ 1.0119, !- Year Escalation 10
337
+ 1.0148, !- Year Escalation 11
338
+ 1.0178, !- Year Escalation 12
339
+ 1.0208, !- Year Escalation 13
340
+ 1.0267, !- Year Escalation 14
341
+ 1.0297, !- Year Escalation 15
342
+ 1.0356, !- Year Escalation 16
343
+ 1.0415, !- Year Escalation 17
344
+ 1.0534, !- Year Escalation 18
345
+ 1.0564, !- Year Escalation 19
346
+ 1.0593, !- Year Escalation 20
347
+ 1.0653, !- Year Escalation 21
348
+ 1.0712, !- Year Escalation 22
349
+ 1.0742, !- Year Escalation 23
350
+ 1.0801, !- Year Escalation 24
351
+ 1.0831, !- Year Escalation 25
352
+ 1.0831, !- Year Escalation 26
353
+ 1.0861, !- Year Escalation 27
354
+ 1.0890, !- Year Escalation 28
355
+ 1.0920, !- Year Escalation 29
356
+ 1.0950; !- Year Escalation 30
357
+ "
358
+ coal_escalation = OpenStudio::IdfObject.load(coal_escalation_string).get
359
+ workspace.addObject(coal_escalation)
360
+ runner.registerInfo("added fuel escalation rates named #{coal_escalation.name}")
361
+
362
+ return true
363
+ end
364
+ end
365
+
366
+ # this allows the measure to be use by the application
367
+ XcelEDATariffSelectionandModelSetup.new.registerWithApplication
@@ -0,0 +1,309 @@
1
+ <?xml version="1.0"?>
2
+ <measure>
3
+ <schema_version>3.0</schema_version>
4
+ <name>xcel_eda_tariff_selectionand_model_setup</name>
5
+ <uid>c5ab60e9-b8e5-4653-a502-5ed030f1335d</uid>
6
+ <version_id>aee4a050-8cce-4e9a-8f6c-9ad93af850ba</version_id>
7
+ <version_modified>20230607T052233Z</version_modified>
8
+ <xml_checksum>4FA703D1</xml_checksum>
9
+ <class_name>XcelEDATariffSelectionandModelSetup</class_name>
10
+ <display_name>XcelEDATariffSelectionandModelSetup</display_name>
11
+ <description>Add the selected Xcel utility rate, as well as set the timestep and lifecycle costing parameters as required by the Xcel EDA program.</description>
12
+ <modeler_description>Adds the .idf text for the selected Xcel Energy tariffs, sets the timestep to 15min so that the demand window and the timestep align, and sets the lifecycle costing parameters to use NIST 2012 inflation and fuel escalation numbers. These NIST numbers will not affect the Xcel EDA results.</modeler_description>
13
+ <arguments>
14
+ <argument>
15
+ <name>elec_tar</name>
16
+ <display_name>Select an Electricity Tariff.</display_name>
17
+ <type>Choice</type>
18
+ <required>true</required>
19
+ <model_dependent>false</model_dependent>
20
+ <default_value>Secondary General</default_value>
21
+ <choices>
22
+ <choice>
23
+ <value>Residential General</value>
24
+ <display_name>Residential General</display_name>
25
+ </choice>
26
+ <choice>
27
+ <value>Commercial</value>
28
+ <display_name>Commercial</display_name>
29
+ </choice>
30
+ <choice>
31
+ <value>Primary General</value>
32
+ <display_name>Primary General</display_name>
33
+ </choice>
34
+ <choice>
35
+ <value>Secondary General Low Load Factor</value>
36
+ <display_name>Secondary General Low Load Factor</display_name>
37
+ </choice>
38
+ <choice>
39
+ <value>Secondary General</value>
40
+ <display_name>Secondary General</display_name>
41
+ </choice>
42
+ <choice>
43
+ <value>Secondary Photovoltaic Time-of-Use</value>
44
+ <display_name>Secondary Photovoltaic Time-of-Use</display_name>
45
+ </choice>
46
+ <choice>
47
+ <value>Transmission General</value>
48
+ <display_name>Transmission General</display_name>
49
+ </choice>
50
+ <choice>
51
+ <value>Non-Xcel Commercial</value>
52
+ <display_name>Non-Xcel Commercial</display_name>
53
+ </choice>
54
+ <choice>
55
+ <value>Non-Xcel Primary General</value>
56
+ <display_name>Non-Xcel Primary General</display_name>
57
+ </choice>
58
+ <choice>
59
+ <value>Non-Xcel Secondary General Low Load Factor</value>
60
+ <display_name>Non-Xcel Secondary General Low Load Factor</display_name>
61
+ </choice>
62
+ <choice>
63
+ <value>Non-Xcel Secondary General</value>
64
+ <display_name>Non-Xcel Secondary General</display_name>
65
+ </choice>
66
+ <choice>
67
+ <value>Non-Xcel Transmission General</value>
68
+ <display_name>Non-Xcel Transmission General</display_name>
69
+ </choice>
70
+ </choices>
71
+ </argument>
72
+ <argument>
73
+ <name>gas_tar</name>
74
+ <display_name>Select a Gas Tariff.</display_name>
75
+ <type>Choice</type>
76
+ <required>true</required>
77
+ <model_dependent>false</model_dependent>
78
+ <default_value>Large CG</default_value>
79
+ <choices>
80
+ <choice>
81
+ <value>Residential Gas</value>
82
+ <display_name>Residential Gas</display_name>
83
+ </choice>
84
+ <choice>
85
+ <value>Small CG</value>
86
+ <display_name>Small CG</display_name>
87
+ </choice>
88
+ <choice>
89
+ <value>Large CG</value>
90
+ <display_name>Large CG</display_name>
91
+ </choice>
92
+ <choice>
93
+ <value>Interruptible Industrial G</value>
94
+ <display_name>Interruptible Industrial G</display_name>
95
+ </choice>
96
+ <choice>
97
+ <value>Non-Xcel Gas Firm</value>
98
+ <display_name>Non-Xcel Gas Firm</display_name>
99
+ </choice>
100
+ <choice>
101
+ <value>Non-Xcel Gas Interruptible</value>
102
+ <display_name>Non-Xcel Gas Interruptible</display_name>
103
+ </choice>
104
+ </choices>
105
+ </argument>
106
+ </arguments>
107
+ <outputs />
108
+ <provenances />
109
+ <tags>
110
+ <tag>Economics.Life Cycle Cost Analysis</tag>
111
+ </tags>
112
+ <attributes>
113
+ <attribute>
114
+ <name>Measure Type</name>
115
+ <value>EnergyPlusMeasure</value>
116
+ <datatype>string</datatype>
117
+ </attribute>
118
+ <attribute>
119
+ <name>Measure Function</name>
120
+ <value>Measure</value>
121
+ <datatype>string</datatype>
122
+ </attribute>
123
+ <attribute>
124
+ <name>Requires EnergyPlus Results</name>
125
+ <value>false</value>
126
+ <datatype>boolean</datatype>
127
+ </attribute>
128
+ <attribute>
129
+ <name>Uses SketchUp API</name>
130
+ <value>false</value>
131
+ <datatype>boolean</datatype>
132
+ </attribute>
133
+ </attributes>
134
+ <files>
135
+ <file>
136
+ <filename>EnvelopeAndLoadTestModel_01.osm</filename>
137
+ <filetype>osm</filetype>
138
+ <usage_type>test</usage_type>
139
+ <checksum>E11F67BD</checksum>
140
+ </file>
141
+ <file>
142
+ <filename>Interruptible Industrial G.idf</filename>
143
+ <filetype>idf</filetype>
144
+ <usage_type>resource</usage_type>
145
+ <checksum>B643926B</checksum>
146
+ </file>
147
+ <file>
148
+ <filename>Commercial.idf</filename>
149
+ <filetype>idf</filetype>
150
+ <usage_type>resource</usage_type>
151
+ <checksum>3F35D94A</checksum>
152
+ </file>
153
+ <file>
154
+ <filename>Non-Xcel Commercial.idf</filename>
155
+ <filetype>idf</filetype>
156
+ <usage_type>resource</usage_type>
157
+ <checksum>63C4C653</checksum>
158
+ </file>
159
+ <file>
160
+ <filename>Non-Xcel Primary General.idf</filename>
161
+ <filetype>idf</filetype>
162
+ <usage_type>resource</usage_type>
163
+ <checksum>44AEF70B</checksum>
164
+ </file>
165
+ <file>
166
+ <filename>Non-Xcel Secondary General Low Load Factor.idf</filename>
167
+ <filetype>idf</filetype>
168
+ <usage_type>resource</usage_type>
169
+ <checksum>B0BAE314</checksum>
170
+ </file>
171
+ <file>
172
+ <filename>Non-Xcel Secondary General.idf</filename>
173
+ <filetype>idf</filetype>
174
+ <usage_type>resource</usage_type>
175
+ <checksum>6C1A056E</checksum>
176
+ </file>
177
+ <file>
178
+ <filename>Non-Xcel Transmission General.idf</filename>
179
+ <filetype>idf</filetype>
180
+ <usage_type>resource</usage_type>
181
+ <checksum>61F5CB73</checksum>
182
+ </file>
183
+ <file>
184
+ <filename>Primary General.idf</filename>
185
+ <filetype>idf</filetype>
186
+ <usage_type>resource</usage_type>
187
+ <checksum>85ABC54E</checksum>
188
+ </file>
189
+ <file>
190
+ <filename>Residential General.idf</filename>
191
+ <filetype>idf</filetype>
192
+ <usage_type>resource</usage_type>
193
+ <checksum>D93AE5BA</checksum>
194
+ </file>
195
+ <file>
196
+ <filename>Secondary General Low Load Factor.idf</filename>
197
+ <filetype>idf</filetype>
198
+ <usage_type>resource</usage_type>
199
+ <checksum>D9D72AFD</checksum>
200
+ </file>
201
+ <file>
202
+ <filename>Secondary General.idf</filename>
203
+ <filetype>idf</filetype>
204
+ <usage_type>resource</usage_type>
205
+ <checksum>0735795F</checksum>
206
+ </file>
207
+ <file>
208
+ <filename>Transmission General.idf</filename>
209
+ <filetype>idf</filetype>
210
+ <usage_type>resource</usage_type>
211
+ <checksum>CD615EA6</checksum>
212
+ </file>
213
+ <file>
214
+ <filename>Large CG.idf</filename>
215
+ <filetype>idf</filetype>
216
+ <usage_type>resource</usage_type>
217
+ <checksum>A27CAF65</checksum>
218
+ </file>
219
+ <file>
220
+ <filename>Residential Gas.idf</filename>
221
+ <filetype>idf</filetype>
222
+ <usage_type>resource</usage_type>
223
+ <checksum>5816D7C1</checksum>
224
+ </file>
225
+ <file>
226
+ <filename>Small CG.idf</filename>
227
+ <filetype>idf</filetype>
228
+ <usage_type>resource</usage_type>
229
+ <checksum>B1DA33A6</checksum>
230
+ </file>
231
+ <file>
232
+ <filename>Secondary Photovoltaic Time-of-Use.idf</filename>
233
+ <filetype>idf</filetype>
234
+ <usage_type>resource</usage_type>
235
+ <checksum>D5155043</checksum>
236
+ </file>
237
+ <file>
238
+ <filename>Non-Xcel Gas Firm.idf</filename>
239
+ <filetype>idf</filetype>
240
+ <usage_type>resource</usage_type>
241
+ <checksum>245CE0CB</checksum>
242
+ </file>
243
+ <file>
244
+ <filename>Non-Xcel Gas Interruptible.idf</filename>
245
+ <filetype>idf</filetype>
246
+ <usage_type>resource</usage_type>
247
+ <checksum>8A690662</checksum>
248
+ </file>
249
+ <file>
250
+ <filename>LICENSE.md</filename>
251
+ <filetype>md</filetype>
252
+ <usage_type>license</usage_type>
253
+ <checksum>9640B6CB</checksum>
254
+ </file>
255
+ <file>
256
+ <filename>README.md.erb</filename>
257
+ <filetype>erb</filetype>
258
+ <usage_type>readmeerb</usage_type>
259
+ <checksum>703C9964</checksum>
260
+ </file>
261
+ <file>
262
+ <filename>README.md</filename>
263
+ <filetype>md</filetype>
264
+ <usage_type>readme</usage_type>
265
+ <checksum>D8E0C68E</checksum>
266
+ </file>
267
+ <file>
268
+ <filename>XcelEDATariffSelectionandModelSetup_Test.rb</filename>
269
+ <filetype>rb</filetype>
270
+ <usage_type>test</usage_type>
271
+ <checksum>1486C77E</checksum>
272
+ </file>
273
+ <file>
274
+ <version>
275
+ <software_program>OpenStudio</software_program>
276
+ <identifier>2.0.0</identifier>
277
+ <min_compatible>2.0.0</min_compatible>
278
+ </version>
279
+ <filename>measure.rb</filename>
280
+ <filetype>rb</filetype>
281
+ <usage_type>script</usage_type>
282
+ <checksum>B040D95B</checksum>
283
+ </file>
284
+ <file>
285
+ <filename>EnvelopeAndLoadTestModel_01/project.osp-journal</filename>
286
+ <filetype>osp-journal</filetype>
287
+ <usage_type>test</usage_type>
288
+ <checksum>FF136880</checksum>
289
+ </file>
290
+ <file>
291
+ <filename>EnvelopeAndLoadTestModel_01/run.db</filename>
292
+ <filetype>db</filetype>
293
+ <usage_type>test</usage_type>
294
+ <checksum>7042FFF4</checksum>
295
+ </file>
296
+ <file>
297
+ <filename>EnvelopeAndLoadTestModel_01/files/USA_CO_Golden-NREL.724666_TMY3.epw</filename>
298
+ <filetype>epw</filetype>
299
+ <usage_type>test</usage_type>
300
+ <checksum>BDF687C1</checksum>
301
+ </file>
302
+ <file>
303
+ <filename>EnvelopeAndLoadTestModel_01/project.osp</filename>
304
+ <filetype>osp</filetype>
305
+ <usage_type>test</usage_type>
306
+ <checksum>2F951741</checksum>
307
+ </file>
308
+ </files>
309
+ </measure>