openstudio-standards 0.2.12.rc4 → 0.2.13.rc3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (541) hide show
  1. checksums.yaml +4 -4
  2. data/data/geometry/ASHRAE90120162019HighriseApartment.json +1042 -0
  3. data/data/geometry/ASHRAE90120162019Hospital.json +199 -0
  4. data/data/geometry/ASHRAE90120162019LargeHotel.json +73 -0
  5. data/data/geometry/ASHRAE90120162019LargeOffice.json +109 -0
  6. data/data/geometry/ASHRAE90120162019SecondarySchool.json +205 -0
  7. data/data/geometry/ASHRAECourthouse.json +112 -0
  8. data/data/geometry/ASHRAECourthouse.osm +26470 -0
  9. data/data/geometry/ASHRAELargeHotel.osm +11 -1
  10. data/data/geometry/ASHRAELargeOffice.json +4 -0
  11. data/data/geometry/ASHRAESmallDataCenter.json +1 -1
  12. data/data/standards/OpenStudio_Standards-ashrae_90_1(space_types).xlsx +0 -0
  13. data/data/standards/OpenStudio_Standards-ashrae_90_1-ALL-comstock(space_types).xlsx +0 -0
  14. data/data/standards/OpenStudio_Standards-ashrae_90_1.xlsx +0 -0
  15. data/data/standards/exclude_list.csv +19 -0
  16. data/data/standards/export/ashrae_90_1/ashrae_90_1_2004/data/ashrae_90_1_2004.boilers.json +49 -0
  17. data/data/standards/export/ashrae_90_1/ashrae_90_1_2004/data/ashrae_90_1_2004.chillers.json +293 -0
  18. data/data/standards/export/ashrae_90_1/ashrae_90_1_2004/data/ashrae_90_1_2004.construction_properties.json +25426 -0
  19. data/data/standards/export/ashrae_90_1/ashrae_90_1_2004/data/ashrae_90_1_2004.construction_sets.json +1600 -0
  20. data/data/standards/export/ashrae_90_1/ashrae_90_1_2004/data/ashrae_90_1_2004.economizers.json +564 -0
  21. data/data/standards/export/ashrae_90_1/ashrae_90_1_2004/data/ashrae_90_1_2004.elevators.json +349 -0
  22. data/data/standards/export/ashrae_90_1/ashrae_90_1_2004/data/ashrae_90_1_2004.ext_ltg.json +164 -0
  23. data/data/standards/export/ashrae_90_1/ashrae_90_1_2004/data/ashrae_90_1_2004.ground_temperatures.json +10663 -0
  24. data/data/standards/export/ashrae_90_1/ashrae_90_1_2004/data/ashrae_90_1_2004.heat_pumps.json +508 -0
  25. data/data/standards/export/ashrae_90_1/ashrae_90_1_2004/data/ashrae_90_1_2004.heat_pumps_heating.json +156 -0
  26. data/data/standards/export/ashrae_90_1/ashrae_90_1_2004/data/ashrae_90_1_2004.heat_rejection.json +44 -0
  27. data/data/standards/export/ashrae_90_1/ashrae_90_1_2004/data/ashrae_90_1_2004.motors.json +184 -0
  28. data/data/standards/export/ashrae_90_1/ashrae_90_1_2004/data/ashrae_90_1_2004.prototype_inputs.json +3094 -0
  29. data/data/standards/export/ashrae_90_1/ashrae_90_1_2004/data/ashrae_90_1_2004.ref_cases.json +829 -0
  30. data/data/standards/export/ashrae_90_1/ashrae_90_1_2004/data/ashrae_90_1_2004.ref_lnup.json +562 -0
  31. data/data/standards/export/ashrae_90_1/ashrae_90_1_2004/data/ashrae_90_1_2004.refrigeration_compressors.json +52 -0
  32. data/data/standards/export/ashrae_90_1/ashrae_90_1_2004/data/ashrae_90_1_2004.refrigeration_condenser.json +220 -0
  33. data/data/standards/export/ashrae_90_1/ashrae_90_1_2004/data/ashrae_90_1_2004.refrigeration_system.json +156 -0
  34. data/data/standards/export/ashrae_90_1/ashrae_90_1_2004/data/ashrae_90_1_2004.refrigeration_walkins.json +1316 -0
  35. data/data/standards/export/ashrae_90_1/ashrae_90_1_2004/data/ashrae_90_1_2004.spc_typ.json +21446 -0
  36. data/data/standards/export/ashrae_90_1/ashrae_90_1_2004/data/ashrae_90_1_2004.unitary_acs.json +554 -0
  37. data/data/standards/export/ashrae_90_1/ashrae_90_1_2004/data/ashrae_90_1_2004.water_heaters.json +68 -0
  38. data/data/standards/export/ashrae_90_1/ashrae_90_1_2004/data/ashrae_90_1_2004.water_source_heat_pumps.json +28 -0
  39. data/data/standards/export/ashrae_90_1/ashrae_90_1_2004/data/ashrae_90_1_2004.water_source_heat_pumps_heating.json +12 -0
  40. data/data/standards/export/ashrae_90_1/ashrae_90_1_2007/data/ashrae_90_1_2007.boilers.json +49 -0
  41. data/data/standards/export/ashrae_90_1/ashrae_90_1_2007/data/ashrae_90_1_2007.chillers.json +293 -0
  42. data/data/standards/export/ashrae_90_1/ashrae_90_1_2007/data/ashrae_90_1_2007.construction_properties.json +12487 -0
  43. data/data/standards/export/ashrae_90_1/ashrae_90_1_2007/data/ashrae_90_1_2007.construction_sets.json +1600 -0
  44. data/data/standards/export/ashrae_90_1/ashrae_90_1_2007/data/ashrae_90_1_2007.economizers.json +564 -0
  45. data/data/standards/export/ashrae_90_1/ashrae_90_1_2007/data/ashrae_90_1_2007.elevators.json +349 -0
  46. data/data/standards/export/ashrae_90_1/ashrae_90_1_2007/data/ashrae_90_1_2007.ext_ltg.json +164 -0
  47. data/data/standards/export/ashrae_90_1/ashrae_90_1_2007/data/ashrae_90_1_2007.ground_temperatures.json +10663 -0
  48. data/data/standards/export/ashrae_90_1/ashrae_90_1_2007/data/ashrae_90_1_2007.heat_pumps.json +466 -0
  49. data/data/standards/export/ashrae_90_1/ashrae_90_1_2007/data/ashrae_90_1_2007.heat_pumps_heating.json +137 -0
  50. data/data/standards/export/ashrae_90_1/ashrae_90_1_2007/data/ashrae_90_1_2007.heat_rejection.json +44 -0
  51. data/data/standards/export/ashrae_90_1/ashrae_90_1_2007/data/ashrae_90_1_2007.motors.json +184 -0
  52. data/data/standards/export/ashrae_90_1/ashrae_90_1_2007/data/ashrae_90_1_2007.prototype_inputs.json +3094 -0
  53. data/data/standards/export/ashrae_90_1/ashrae_90_1_2007/data/ashrae_90_1_2007.ref_cases.json +829 -0
  54. data/data/standards/export/ashrae_90_1/ashrae_90_1_2007/data/ashrae_90_1_2007.ref_lnup.json +562 -0
  55. data/data/standards/export/ashrae_90_1/ashrae_90_1_2007/data/ashrae_90_1_2007.refrigeration_compressors.json +52 -0
  56. data/data/standards/export/ashrae_90_1/ashrae_90_1_2007/data/ashrae_90_1_2007.refrigeration_condenser.json +220 -0
  57. data/data/standards/export/ashrae_90_1/ashrae_90_1_2007/data/ashrae_90_1_2007.refrigeration_system.json +156 -0
  58. data/data/standards/export/ashrae_90_1/ashrae_90_1_2007/data/ashrae_90_1_2007.refrigeration_walkins.json +1316 -0
  59. data/data/standards/export/ashrae_90_1/ashrae_90_1_2007/data/ashrae_90_1_2007.spc_typ.json +21380 -0
  60. data/data/standards/export/ashrae_90_1/ashrae_90_1_2007/data/ashrae_90_1_2007.unitary_acs.json +554 -0
  61. data/data/standards/export/ashrae_90_1/ashrae_90_1_2007/data/ashrae_90_1_2007.water_heaters.json +68 -0
  62. data/data/standards/export/ashrae_90_1/ashrae_90_1_2007/data/ashrae_90_1_2007.water_source_heat_pumps.json +28 -0
  63. data/data/standards/export/ashrae_90_1/ashrae_90_1_2007/data/ashrae_90_1_2007.water_source_heat_pumps_heating.json +12 -0
  64. data/data/standards/export/ashrae_90_1/ashrae_90_1_2010/data/ashrae_90_1_2010.boilers.json +49 -0
  65. data/data/standards/export/ashrae_90_1/ashrae_90_1_2010/data/ashrae_90_1_2010.chillers.json +395 -0
  66. data/data/standards/export/ashrae_90_1/ashrae_90_1_2010/data/ashrae_90_1_2010.construction_properties.json +12487 -0
  67. data/data/standards/export/ashrae_90_1/ashrae_90_1_2010/data/ashrae_90_1_2010.construction_sets.json +1600 -0
  68. data/data/standards/export/ashrae_90_1/ashrae_90_1_2010/data/ashrae_90_1_2010.economizers.json +592 -0
  69. data/data/standards/export/ashrae_90_1/ashrae_90_1_2010/data/ashrae_90_1_2010.elevators.json +349 -0
  70. data/data/standards/export/ashrae_90_1/ashrae_90_1_2010/data/ashrae_90_1_2010.energy_recovery.json +550 -0
  71. data/data/standards/export/ashrae_90_1/ashrae_90_1_2010/data/ashrae_90_1_2010.ext_ltg.json +164 -0
  72. data/data/standards/export/ashrae_90_1/ashrae_90_1_2010/data/ashrae_90_1_2010.ground_temperatures.json +10663 -0
  73. data/data/standards/export/ashrae_90_1/ashrae_90_1_2010/data/ashrae_90_1_2010.heat_pumps.json +466 -0
  74. data/data/standards/export/ashrae_90_1/ashrae_90_1_2010/data/ashrae_90_1_2010.heat_pumps_heating.json +137 -0
  75. data/data/standards/export/ashrae_90_1/ashrae_90_1_2010/data/ashrae_90_1_2010.heat_rejection.json +44 -0
  76. data/data/standards/export/ashrae_90_1/ashrae_90_1_2010/data/ashrae_90_1_2010.motors.json +238 -0
  77. data/data/standards/export/ashrae_90_1/ashrae_90_1_2010/data/ashrae_90_1_2010.prototype_inputs.json +3094 -0
  78. data/data/standards/export/ashrae_90_1/ashrae_90_1_2010/data/ashrae_90_1_2010.ref_cases.json +829 -0
  79. data/data/standards/export/ashrae_90_1/ashrae_90_1_2010/data/ashrae_90_1_2010.ref_lnup.json +562 -0
  80. data/data/standards/export/ashrae_90_1/ashrae_90_1_2010/data/ashrae_90_1_2010.refrigeration_compressors.json +52 -0
  81. data/data/standards/export/ashrae_90_1/ashrae_90_1_2010/data/ashrae_90_1_2010.refrigeration_condenser.json +220 -0
  82. data/data/standards/export/ashrae_90_1/ashrae_90_1_2010/data/ashrae_90_1_2010.refrigeration_system.json +156 -0
  83. data/data/standards/export/ashrae_90_1/ashrae_90_1_2010/data/ashrae_90_1_2010.refrigeration_walkins.json +1316 -0
  84. data/data/standards/export/ashrae_90_1/ashrae_90_1_2010/data/ashrae_90_1_2010.spc_typ.json +21548 -0
  85. data/data/standards/export/ashrae_90_1/ashrae_90_1_2010/data/ashrae_90_1_2010.unitary_acs.json +554 -0
  86. data/data/standards/export/ashrae_90_1/ashrae_90_1_2010/data/ashrae_90_1_2010.water_heaters.json +68 -0
  87. data/data/standards/export/ashrae_90_1/ashrae_90_1_2010/data/ashrae_90_1_2010.water_source_heat_pumps.json +28 -0
  88. data/data/standards/export/ashrae_90_1/ashrae_90_1_2010/data/ashrae_90_1_2010.water_source_heat_pumps_heating.json +12 -0
  89. data/data/standards/export/ashrae_90_1/ashrae_90_1_2013/data/ashrae_90_1_2013.boilers.json +64 -0
  90. data/data/standards/export/ashrae_90_1/ashrae_90_1_2013/data/ashrae_90_1_2013.chillers.json +871 -0
  91. data/data/standards/export/ashrae_90_1/ashrae_90_1_2013/data/ashrae_90_1_2013.construction_properties.json +12487 -0
  92. data/data/standards/export/ashrae_90_1/ashrae_90_1_2013/data/ashrae_90_1_2013.construction_sets.json +1600 -0
  93. data/data/standards/export/ashrae_90_1/ashrae_90_1_2013/data/ashrae_90_1_2013.economizers.json +592 -0
  94. data/data/standards/export/ashrae_90_1/ashrae_90_1_2013/data/ashrae_90_1_2013.elevators.json +349 -0
  95. data/data/standards/export/ashrae_90_1/ashrae_90_1_2013/data/ashrae_90_1_2013.energy_recovery.json +1096 -0
  96. data/data/standards/export/ashrae_90_1/ashrae_90_1_2013/data/ashrae_90_1_2013.ext_ltg.json +164 -0
  97. data/data/standards/export/ashrae_90_1/ashrae_90_1_2013/data/ashrae_90_1_2013.ground_temperatures.json +10663 -0
  98. data/data/standards/export/ashrae_90_1/ashrae_90_1_2013/data/ashrae_90_1_2013.heat_pumps.json +886 -0
  99. data/data/standards/export/ashrae_90_1/ashrae_90_1_2013/data/ashrae_90_1_2013.heat_pumps_heating.json +194 -0
  100. data/data/standards/export/ashrae_90_1/ashrae_90_1_2013/data/ashrae_90_1_2013.heat_rejection.json +44 -0
  101. data/data/standards/export/ashrae_90_1/ashrae_90_1_2013/data/ashrae_90_1_2013.motors.json +247 -0
  102. data/data/standards/export/ashrae_90_1/ashrae_90_1_2013/data/ashrae_90_1_2013.prototype_inputs.json +3094 -0
  103. data/data/standards/export/ashrae_90_1/ashrae_90_1_2013/data/ashrae_90_1_2013.ref_cases.json +829 -0
  104. data/data/standards/export/ashrae_90_1/ashrae_90_1_2013/data/ashrae_90_1_2013.ref_lnup.json +562 -0
  105. data/data/standards/export/ashrae_90_1/ashrae_90_1_2013/data/ashrae_90_1_2013.refrigeration_compressors.json +52 -0
  106. data/data/standards/export/ashrae_90_1/ashrae_90_1_2013/data/ashrae_90_1_2013.refrigeration_condenser.json +220 -0
  107. data/data/standards/export/ashrae_90_1/ashrae_90_1_2013/data/ashrae_90_1_2013.refrigeration_system.json +156 -0
  108. data/data/standards/export/ashrae_90_1/ashrae_90_1_2013/data/ashrae_90_1_2013.refrigeration_walkins.json +1316 -0
  109. data/data/standards/export/ashrae_90_1/ashrae_90_1_2013/data/ashrae_90_1_2013.spc_typ.json +22079 -0
  110. data/data/standards/export/ashrae_90_1/ashrae_90_1_2013/data/ashrae_90_1_2013.unitary_acs.json +994 -0
  111. data/data/standards/export/ashrae_90_1/ashrae_90_1_2013/data/ashrae_90_1_2013.water_heaters.json +68 -0
  112. data/data/standards/export/ashrae_90_1/ashrae_90_1_2013/data/ashrae_90_1_2013.water_source_heat_pumps.json +28 -0
  113. data/data/standards/export/ashrae_90_1/ashrae_90_1_2013/data/ashrae_90_1_2013.water_source_heat_pumps_heating.json +12 -0
  114. data/data/standards/manage_OpenStudio_Standards.rb +87 -37
  115. data/data/standards/metadata_units_OpenStudio_Standards-ashrae_90_1-ALL-comstockspace_types.csv +236 -0
  116. data/data/standards/metadata_units_OpenStudio_Standards-ashrae_90_1.csv +622 -0
  117. data/data/standards/metadata_units_OpenStudio_Standards-ashrae_90_1space_types.csv +191 -0
  118. data/data/standards/openstudio_standards_duplicates_log.csv +17 -0
  119. data/data/standards/test_performance_expected_dd_results.csv +1971 -1171
  120. data/lib/openstudio-standards.rb +76 -18
  121. data/lib/openstudio-standards/btap/btap.model.rb +1 -1
  122. data/lib/openstudio-standards/btap/economics.rb +14 -11
  123. data/lib/openstudio-standards/btap/envelope.rb +185 -257
  124. data/lib/openstudio-standards/btap/fileio.rb +1 -0
  125. data/lib/openstudio-standards/btap/geometry.rb +21 -1
  126. data/lib/openstudio-standards/btap/measures.rb +12 -11
  127. data/lib/openstudio-standards/btap/schedules.rb +3 -12
  128. data/lib/openstudio-standards/hvac_sizing/Siz.AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed.rb +178 -0
  129. data/lib/openstudio-standards/hvac_sizing/Siz.CoilCoolingDXMultiSpeed.rb +8 -8
  130. data/lib/openstudio-standards/hvac_sizing/Siz.Model.rb +3 -0
  131. data/lib/openstudio-standards/prototypes/ashrae_90_1/ashrae_90_1_2004/ashrae_90_1_2004.PumpVariableSpeed.rb +28 -0
  132. data/lib/openstudio-standards/prototypes/ashrae_90_1/ashrae_90_1_2007/ashrae_90_1_2007.FanVariableVolume.rb +0 -1
  133. data/lib/openstudio-standards/prototypes/ashrae_90_1/ashrae_90_1_2007/ashrae_90_1_2007.PumpVariableSpeed.rb +28 -0
  134. data/lib/openstudio-standards/prototypes/ashrae_90_1/ashrae_90_1_2010/ashrae_90_1_2010.Model.rb +53 -2
  135. data/lib/openstudio-standards/prototypes/ashrae_90_1/ashrae_90_1_2010/ashrae_90_1_2010.PumpVariableSpeed.rb +29 -0
  136. data/lib/openstudio-standards/prototypes/ashrae_90_1/ashrae_90_1_2013/ashrae_90_1_2013.Model.rb +157 -2
  137. data/lib/openstudio-standards/prototypes/ashrae_90_1/ashrae_90_1_2013/ashrae_90_1_2013.PumpVariableSpeed.rb +29 -0
  138. data/lib/openstudio-standards/prototypes/ashrae_90_1/ashrae_90_1_2016/ashrae_90_1_2016.AirTerminalSingleDuctVAVReheat.rb +24 -0
  139. data/lib/openstudio-standards/prototypes/ashrae_90_1/ashrae_90_1_2016/ashrae_90_1_2016.FanConstantVolume.rb +32 -0
  140. data/lib/openstudio-standards/prototypes/ashrae_90_1/ashrae_90_1_2016/ashrae_90_1_2016.FanOnOff.rb +33 -0
  141. data/lib/openstudio-standards/prototypes/ashrae_90_1/ashrae_90_1_2016/ashrae_90_1_2016.FanVariableVolume.rb +32 -0
  142. data/lib/openstudio-standards/prototypes/ashrae_90_1/ashrae_90_1_2016/ashrae_90_1_2016.Model.elevators.rb +25 -0
  143. data/lib/openstudio-standards/prototypes/ashrae_90_1/ashrae_90_1_2016/ashrae_90_1_2016.Model.rb +366 -0
  144. data/lib/openstudio-standards/prototypes/ashrae_90_1/ashrae_90_1_2016/ashrae_90_1_2016.PumpVariableSpeed.rb +144 -0
  145. data/lib/openstudio-standards/prototypes/ashrae_90_1/ashrae_90_1_2016/ashrae_90_1_2016.hvac_systems.rb +11 -0
  146. data/lib/openstudio-standards/prototypes/ashrae_90_1/ashrae_90_1_2019/ashrae_90_1_2019.AirTerminalSingleDuctVAVReheat.rb +24 -0
  147. data/lib/openstudio-standards/prototypes/ashrae_90_1/ashrae_90_1_2019/ashrae_90_1_2019.FanConstantVolume.rb +32 -0
  148. data/lib/openstudio-standards/prototypes/ashrae_90_1/ashrae_90_1_2019/ashrae_90_1_2019.FanOnOff.rb +33 -0
  149. data/lib/openstudio-standards/prototypes/ashrae_90_1/ashrae_90_1_2019/ashrae_90_1_2019.FanVariableVolume.rb +32 -0
  150. data/lib/openstudio-standards/prototypes/ashrae_90_1/ashrae_90_1_2019/ashrae_90_1_2019.Model.elevators.rb +25 -0
  151. data/lib/openstudio-standards/prototypes/ashrae_90_1/ashrae_90_1_2019/ashrae_90_1_2019.Model.rb +367 -0
  152. data/lib/openstudio-standards/prototypes/ashrae_90_1/ashrae_90_1_2019/ashrae_90_1_2019.PumpVariableSpeed.rb +144 -0
  153. data/lib/openstudio-standards/prototypes/ashrae_90_1/ashrae_90_1_2019/ashrae_90_1_2019.hvac_systems.rb +11 -0
  154. data/lib/openstudio-standards/prototypes/ashrae_90_1/doe_ref_1980_2004/doe_ref_1980_2004.AirTerminalSingleDuctVAVReheat.rb +0 -1
  155. data/lib/openstudio-standards/prototypes/ashrae_90_1/doe_ref_pre_1980/doe_ref_pre_1980.AirTerminalSingleDuctVAVReheat.rb +0 -1
  156. data/lib/openstudio-standards/prototypes/ashrae_90_1/nrel_nze_ready_2017/nrel_zne_ready_2017.HeatExchangerAirToAirSensibleAndLatent.rb +1 -1
  157. data/lib/openstudio-standards/prototypes/ashrae_90_1/nrel_nze_ready_2017/nrel_zne_ready_2017.Model.rb +1 -1
  158. data/lib/openstudio-standards/prototypes/ashrae_90_1/ze_aedg_multifamily/ze_aedg_multifamily.HeatExchangerAirToAirSensibleAndLatent.rb +1 -1
  159. data/lib/openstudio-standards/prototypes/ashrae_90_1/ze_aedg_multifamily/ze_aedg_multifamily.Model.rb +1 -1
  160. data/lib/openstudio-standards/prototypes/common/buildings/Prototype.College.rb +3 -3
  161. data/lib/openstudio-standards/prototypes/common/buildings/Prototype.Courthouse.rb +74 -0
  162. data/lib/openstudio-standards/prototypes/common/buildings/Prototype.FullServiceRestaurant.rb +46 -30
  163. data/lib/openstudio-standards/prototypes/common/buildings/Prototype.HighRiseApartment.rb +23 -8
  164. data/lib/openstudio-standards/prototypes/common/buildings/Prototype.Hospital.rb +26 -15
  165. data/lib/openstudio-standards/prototypes/common/buildings/Prototype.Laboratory.rb +8 -11
  166. data/lib/openstudio-standards/prototypes/common/buildings/Prototype.LargeDataCenterHighITE.rb +54 -60
  167. data/lib/openstudio-standards/prototypes/common/buildings/Prototype.LargeDataCenterLowITE.rb +56 -60
  168. data/lib/openstudio-standards/prototypes/common/buildings/Prototype.LargeHotel.rb +38 -12
  169. data/lib/openstudio-standards/prototypes/common/buildings/Prototype.LargeOffice.rb +218 -134
  170. data/lib/openstudio-standards/prototypes/common/buildings/Prototype.LargeOfficeDetailed.rb +6 -2
  171. data/lib/openstudio-standards/prototypes/common/buildings/Prototype.MediumOffice.rb +230 -134
  172. data/lib/openstudio-standards/prototypes/common/buildings/Prototype.MediumOfficeDetailed.rb +60 -62
  173. data/lib/openstudio-standards/prototypes/common/buildings/Prototype.MidriseApartment.rb +25 -15
  174. data/lib/openstudio-standards/prototypes/common/buildings/Prototype.Outpatient.rb +34 -22
  175. data/lib/openstudio-standards/prototypes/common/buildings/Prototype.PrimarySchool.rb +31 -7
  176. data/lib/openstudio-standards/prototypes/common/buildings/Prototype.QuickServiceRestaurant.rb +43 -28
  177. data/lib/openstudio-standards/prototypes/common/buildings/Prototype.RetailStandalone.rb +48 -38
  178. data/lib/openstudio-standards/prototypes/common/buildings/Prototype.RetailStripmall.rb +9 -5
  179. data/lib/openstudio-standards/prototypes/common/buildings/Prototype.SecondarySchool.rb +575 -345
  180. data/lib/openstudio-standards/prototypes/common/buildings/Prototype.SmallDataCenterHighITE.rb +13 -19
  181. data/lib/openstudio-standards/prototypes/common/buildings/Prototype.SmallDataCenterLowITE.rb +13 -17
  182. data/lib/openstudio-standards/prototypes/common/buildings/Prototype.SmallHotel.rb +9 -5
  183. data/lib/openstudio-standards/prototypes/common/buildings/Prototype.SmallOffice.rb +79 -51
  184. data/lib/openstudio-standards/prototypes/common/buildings/Prototype.SmallOfficeDetailed.rb +60 -60
  185. data/lib/openstudio-standards/prototypes/common/buildings/Prototype.SuperMarket.rb +2 -4
  186. data/lib/openstudio-standards/prototypes/common/buildings/Prototype.SuperTallBuilding.rb +133 -120
  187. data/lib/openstudio-standards/prototypes/common/buildings/Prototype.TallBuilding.rb +124 -112
  188. data/lib/openstudio-standards/prototypes/common/buildings/Prototype.Warehouse.rb +138 -66
  189. data/lib/openstudio-standards/prototypes/common/do_not_edit_metaclasses.rb +7275 -199
  190. data/lib/openstudio-standards/prototypes/common/objects/Prototype.AirConditionerVariableRefrigerantFlow.rb +35 -35
  191. data/lib/openstudio-standards/prototypes/common/objects/Prototype.BoilerHotWater.rb +2 -2
  192. data/lib/openstudio-standards/prototypes/common/objects/Prototype.CentralAirSourceHeatPump.rb +2 -2
  193. data/lib/openstudio-standards/prototypes/common/objects/Prototype.CoilCoolingDXSingleSpeed.rb +3 -3
  194. data/lib/openstudio-standards/prototypes/common/objects/Prototype.CoilCoolingDXTwoSpeed.rb +1 -1
  195. data/lib/openstudio-standards/prototypes/common/objects/Prototype.CoilCoolingWater.rb +2 -2
  196. data/lib/openstudio-standards/prototypes/common/objects/Prototype.CoilCoolingWaterToAirHeatPumpEquationFit.rb +2 -2
  197. data/lib/openstudio-standards/prototypes/common/objects/Prototype.CoilHeatingDXSingleSpeed.rb +1 -1
  198. data/lib/openstudio-standards/prototypes/common/objects/Prototype.CoilHeatingElectric.rb +2 -2
  199. data/lib/openstudio-standards/prototypes/common/objects/Prototype.CoilHeatingWater.rb +2 -2
  200. data/lib/openstudio-standards/prototypes/common/objects/Prototype.CoilHeatingWaterToAirHeatPumpEquationFit.rb +2 -2
  201. data/lib/openstudio-standards/prototypes/common/objects/Prototype.CoolingTower.rb +1 -1
  202. data/lib/openstudio-standards/prototypes/common/objects/Prototype.Fan.rb +4 -3
  203. data/lib/openstudio-standards/prototypes/common/objects/Prototype.FanConstantVolume.rb +7 -8
  204. data/lib/openstudio-standards/prototypes/common/objects/Prototype.FanOnOff.rb +7 -8
  205. data/lib/openstudio-standards/prototypes/common/objects/Prototype.FanVariableVolume.rb +13 -14
  206. data/lib/openstudio-standards/prototypes/common/objects/Prototype.FanZoneExhaust.rb +7 -5
  207. data/lib/openstudio-standards/prototypes/common/objects/Prototype.Model.elevators.rb +4 -1
  208. data/lib/openstudio-standards/prototypes/common/objects/Prototype.Model.exterior_lights.rb +0 -1
  209. data/lib/openstudio-standards/prototypes/common/objects/Prototype.Model.hvac.rb +25 -14
  210. data/lib/openstudio-standards/prototypes/common/objects/Prototype.Model.rb +474 -89
  211. data/lib/openstudio-standards/prototypes/common/objects/Prototype.Model.swh.rb +35 -33
  212. data/lib/openstudio-standards/prototypes/common/objects/Prototype.Pump.rb +3 -0
  213. data/lib/openstudio-standards/prototypes/common/objects/Prototype.PumpVariableSpeed.rb +72 -0
  214. data/lib/openstudio-standards/prototypes/common/objects/Prototype.ServiceWaterHeating.rb +120 -120
  215. data/lib/openstudio-standards/prototypes/common/objects/Prototype.hvac_systems.rb +142 -154
  216. data/lib/openstudio-standards/prototypes/common/objects/Prototype.radiant_system_controls.rb +9 -3
  217. data/lib/openstudio-standards/prototypes/common/objects/Prototype.refrigeration.rb +11 -5
  218. data/lib/openstudio-standards/prototypes/common/objects/Prototype.utilities.rb +26 -14
  219. data/lib/openstudio-standards/prototypes/common/prototype_metaprogramming.rb +270 -247
  220. data/lib/openstudio-standards/prototypes/deer/deer.Model.rb +1 -1
  221. data/lib/openstudio-standards/refs/references.rb +5 -2
  222. data/lib/openstudio-standards/standards/Standards.AirLoopHVAC.rb +70 -51
  223. data/lib/openstudio-standards/standards/Standards.AirTerminalSingleDuctVAVReheat.rb +0 -1
  224. data/lib/openstudio-standards/standards/Standards.BoilerHotWater.rb +0 -1
  225. data/lib/openstudio-standards/standards/Standards.BuildingStory.rb +1 -0
  226. data/lib/openstudio-standards/standards/Standards.ChillerElectricEIR.rb +2 -4
  227. data/lib/openstudio-standards/standards/Standards.CoilCoolingDXMultiSpeed.rb +91 -2
  228. data/lib/openstudio-standards/standards/Standards.CoilCoolingDXSingleSpeed.rb +4 -5
  229. data/lib/openstudio-standards/standards/Standards.CoilCoolingDXTwoSpeed.rb +0 -1
  230. data/lib/openstudio-standards/standards/Standards.CoilCoolingWaterToAirHeatPumpEquationFit.rb +1 -1
  231. data/lib/openstudio-standards/standards/Standards.CoilDX.rb +30 -9
  232. data/lib/openstudio-standards/standards/Standards.CoilHeatingDXMultiSpeed.rb +2 -1
  233. data/lib/openstudio-standards/standards/Standards.CoilHeatingDXSingleSpeed.rb +3 -1
  234. data/lib/openstudio-standards/standards/Standards.CoilHeatingGas.rb +0 -3
  235. data/lib/openstudio-standards/standards/Standards.CoilHeatingGasMultiStage.rb +37 -1
  236. data/lib/openstudio-standards/standards/Standards.CoilHeatingWaterToAirHeatPumpEquationFit.rb +1 -3
  237. data/lib/openstudio-standards/standards/Standards.Construction.rb +124 -118
  238. data/lib/openstudio-standards/standards/Standards.CoolingTower.rb +0 -1
  239. data/lib/openstudio-standards/standards/Standards.CoolingTowerSingleSpeed.rb +0 -1
  240. data/lib/openstudio-standards/standards/Standards.CoolingTowerTwoSpeed.rb +0 -1
  241. data/lib/openstudio-standards/standards/Standards.CoolingTowerVariableSpeed.rb +0 -1
  242. data/lib/openstudio-standards/standards/Standards.Fan.rb +0 -1
  243. data/lib/openstudio-standards/standards/Standards.FanConstantVolume.rb +0 -1
  244. data/lib/openstudio-standards/standards/Standards.FanOnOff.rb +0 -1
  245. data/lib/openstudio-standards/standards/Standards.FanVariableVolume.rb +2 -4
  246. data/lib/openstudio-standards/standards/Standards.FanZoneExhaust.rb +0 -1
  247. data/lib/openstudio-standards/standards/Standards.FluidCooler.rb +10 -3
  248. data/lib/openstudio-standards/standards/Standards.HeaderedPumpsConstantSpeed.rb +0 -1
  249. data/lib/openstudio-standards/standards/Standards.HeaderedPumpsVariableSpeed.rb +0 -1
  250. data/lib/openstudio-standards/standards/Standards.Model.rb +305 -247
  251. data/lib/openstudio-standards/standards/Standards.PlanarSurface.rb +2 -0
  252. data/lib/openstudio-standards/standards/Standards.PlantLoop.rb +11 -9
  253. data/lib/openstudio-standards/standards/Standards.Pump.rb +0 -1
  254. data/lib/openstudio-standards/standards/Standards.PumpConstantSpeed.rb +0 -1
  255. data/lib/openstudio-standards/standards/Standards.PumpVariableSpeed.rb +0 -1
  256. data/lib/openstudio-standards/standards/Standards.ScheduleCompact.rb +0 -1
  257. data/lib/openstudio-standards/standards/Standards.ScheduleConstant.rb +0 -1
  258. data/lib/openstudio-standards/standards/Standards.ScheduleRuleset.rb +103 -121
  259. data/lib/openstudio-standards/standards/Standards.Space.rb +42 -35
  260. data/lib/openstudio-standards/standards/Standards.SpaceType.rb +9 -17
  261. data/lib/openstudio-standards/standards/Standards.SubSurface.rb +25 -27
  262. data/lib/openstudio-standards/standards/Standards.Surface.rb +97 -52
  263. data/lib/openstudio-standards/standards/Standards.ThermalZone.rb +76 -25
  264. data/lib/openstudio-standards/standards/Standards.WaterHeaterMixed.rb +6 -7
  265. data/lib/openstudio-standards/standards/Standards.ZoneHVACComponent.rb +85 -7
  266. data/lib/openstudio-standards/standards/ashrae_90_1/ashrae_90_1.Standards.FanVariableVolume.rb +0 -1
  267. data/lib/openstudio-standards/standards/ashrae_90_1/ashrae_90_1_2004/ashrae_90_1_2004.AirLoopHVAC.rb +10 -2
  268. data/lib/openstudio-standards/standards/ashrae_90_1/ashrae_90_1_2004/ashrae_90_1_2004.Model.rb +2 -2
  269. data/lib/openstudio-standards/standards/ashrae_90_1/ashrae_90_1_2004/comstock_ashrae_90_1_2004/data/ashrae_90_1.schedules.json +63 -99
  270. data/lib/openstudio-standards/standards/ashrae_90_1/ashrae_90_1_2004/comstock_ashrae_90_1_2004/data/comstock_ashrae_90_1_2004.ext_ltg.json +7 -7
  271. data/lib/openstudio-standards/standards/ashrae_90_1/ashrae_90_1_2004/data/ashrae_90_1_2004.construction_properties.json +2420 -0
  272. data/lib/openstudio-standards/standards/ashrae_90_1/ashrae_90_1_2004/data/ashrae_90_1_2004.economizers.json +32 -0
  273. data/lib/openstudio-standards/standards/ashrae_90_1/ashrae_90_1_2004/data/ashrae_90_1_2004.heat_rejection.json +9 -0
  274. data/lib/openstudio-standards/standards/ashrae_90_1/ashrae_90_1_2004/data/ashrae_90_1_2004.prototype_inputs.json +70 -40
  275. data/lib/openstudio-standards/standards/ashrae_90_1/ashrae_90_1_2004/data/ashrae_90_1_2004.spc_typ.json +105 -40
  276. data/lib/openstudio-standards/standards/ashrae_90_1/ashrae_90_1_2004/data/ashrae_90_1_2004.unitary_acs.json +15 -15
  277. data/lib/openstudio-standards/standards/ashrae_90_1/ashrae_90_1_2007/ashrae_90_1_2007.AirLoopHVAC.rb +5 -1
  278. data/lib/openstudio-standards/standards/ashrae_90_1/ashrae_90_1_2007/comstock_ashrae_90_1_2007/data/ashrae_90_1.schedules.json +63 -99
  279. data/lib/openstudio-standards/standards/ashrae_90_1/ashrae_90_1_2007/comstock_ashrae_90_1_2007/data/comstock_ashrae_90_1_2007.ext_ltg.json +7 -7
  280. data/lib/openstudio-standards/standards/ashrae_90_1/ashrae_90_1_2007/data/ashrae_90_1_2007.construction_properties.json +1460 -0
  281. data/lib/openstudio-standards/standards/ashrae_90_1/ashrae_90_1_2007/data/ashrae_90_1_2007.economizers.json +32 -0
  282. data/lib/openstudio-standards/standards/ashrae_90_1/ashrae_90_1_2007/data/ashrae_90_1_2007.heat_rejection.json +9 -0
  283. data/lib/openstudio-standards/standards/ashrae_90_1/ashrae_90_1_2007/data/ashrae_90_1_2007.prototype_inputs.json +123 -39
  284. data/lib/openstudio-standards/standards/ashrae_90_1/ashrae_90_1_2007/data/ashrae_90_1_2007.spc_typ.json +104 -17
  285. data/lib/openstudio-standards/standards/ashrae_90_1/ashrae_90_1_2007/data/ashrae_90_1_2007.unitary_acs.json +15 -15
  286. data/lib/openstudio-standards/standards/ashrae_90_1/ashrae_90_1_2010/ashrae_90_1_2010.AirLoopHVAC.rb +32 -15
  287. data/lib/openstudio-standards/standards/ashrae_90_1/ashrae_90_1_2010/ashrae_90_1_2010.Space.rb +1 -1
  288. data/lib/openstudio-standards/standards/ashrae_90_1/ashrae_90_1_2010/comstock_ashrae_90_1_2010/data/ashrae_90_1.schedules.json +63 -99
  289. data/lib/openstudio-standards/standards/ashrae_90_1/ashrae_90_1_2010/comstock_ashrae_90_1_2010/data/comstock_ashrae_90_1_2010.ext_ltg.json +7 -7
  290. data/lib/openstudio-standards/standards/ashrae_90_1/ashrae_90_1_2010/data/ashrae_90_1_2010.construction_properties.json +1460 -0
  291. data/lib/openstudio-standards/standards/ashrae_90_1/ashrae_90_1_2010/data/ashrae_90_1_2010.economizers.json +64 -0
  292. data/lib/openstudio-standards/standards/ashrae_90_1/ashrae_90_1_2010/data/ashrae_90_1_2010.energy_recovery.json +52 -0
  293. data/lib/openstudio-standards/standards/ashrae_90_1/ashrae_90_1_2010/data/ashrae_90_1_2010.heat_rejection.json +9 -0
  294. data/lib/openstudio-standards/standards/ashrae_90_1/ashrae_90_1_2010/data/ashrae_90_1_2010.prototype_inputs.json +123 -39
  295. data/lib/openstudio-standards/standards/ashrae_90_1/ashrae_90_1_2010/data/ashrae_90_1_2010.spc_typ.json +112 -25
  296. data/lib/openstudio-standards/standards/ashrae_90_1/ashrae_90_1_2010/data/ashrae_90_1_2010.unitary_acs.json +5 -5
  297. data/lib/openstudio-standards/standards/ashrae_90_1/ashrae_90_1_2013/ashrae_90_1_2013.AirLoopHVAC.rb +37 -14
  298. data/lib/openstudio-standards/standards/ashrae_90_1/ashrae_90_1_2013/ashrae_90_1_2013.WaterHeaterMixed.rb +1 -1
  299. data/lib/openstudio-standards/standards/ashrae_90_1/ashrae_90_1_2013/comstock_ashrae_90_1_2013/data/ashrae_90_1.schedules.json +63 -99
  300. data/lib/openstudio-standards/standards/ashrae_90_1/ashrae_90_1_2013/comstock_ashrae_90_1_2013/data/comstock_ashrae_90_1_2013.ext_ltg.json +7 -7
  301. data/lib/openstudio-standards/standards/ashrae_90_1/ashrae_90_1_2013/data/ashrae_90_1_2013.boilers.json +1 -1
  302. data/lib/openstudio-standards/standards/ashrae_90_1/ashrae_90_1_2013/data/ashrae_90_1_2013.chillers.json +2 -2
  303. data/lib/openstudio-standards/standards/ashrae_90_1/ashrae_90_1_2013/data/ashrae_90_1_2013.construction_properties.json +1460 -0
  304. data/lib/openstudio-standards/standards/ashrae_90_1/ashrae_90_1_2013/data/ashrae_90_1_2013.economizers.json +64 -0
  305. data/lib/openstudio-standards/standards/ashrae_90_1/ashrae_90_1_2013/data/ashrae_90_1_2013.energy_recovery.json +104 -0
  306. data/lib/openstudio-standards/standards/ashrae_90_1/ashrae_90_1_2013/data/ashrae_90_1_2013.heat_rejection.json +9 -0
  307. data/lib/openstudio-standards/standards/ashrae_90_1/ashrae_90_1_2013/data/ashrae_90_1_2013.prototype_inputs.json +125 -41
  308. data/lib/openstudio-standards/standards/ashrae_90_1/ashrae_90_1_2013/data/ashrae_90_1_2013.spc_typ.json +172 -55
  309. data/lib/openstudio-standards/standards/ashrae_90_1/ashrae_90_1_2013/data/ashrae_90_1_2013.unitary_acs.json +15 -15
  310. data/lib/openstudio-standards/standards/ashrae_90_1/ashrae_90_1_2013/data/ashrae_90_1_2013.water_heaters.json +4 -4
  311. data/lib/openstudio-standards/standards/ashrae_90_1/ashrae_90_1_2013/data/ashrae_90_1_2013.water_source_heat_pumps_heating.json +1 -1
  312. data/lib/openstudio-standards/standards/ashrae_90_1/ashrae_90_1_2016/ashrae_90_1_2016.AirLoopHVAC.rb +456 -0
  313. data/lib/openstudio-standards/standards/ashrae_90_1/ashrae_90_1_2016/ashrae_90_1_2016.AirTerminalSingleDuctVAVReheat.rb +24 -0
  314. data/lib/openstudio-standards/standards/ashrae_90_1/ashrae_90_1_2016/ashrae_90_1_2016.CoolingTower.rb +19 -0
  315. data/lib/openstudio-standards/standards/ashrae_90_1/ashrae_90_1_2016/ashrae_90_1_2016.CoolingTowerSingleSpeed.rb +5 -0
  316. data/lib/openstudio-standards/standards/ashrae_90_1/ashrae_90_1_2016/ashrae_90_1_2016.CoolingTowerTwoSpeed.rb +5 -0
  317. data/lib/openstudio-standards/standards/ashrae_90_1/ashrae_90_1_2016/ashrae_90_1_2016.CoolingTowerVariableSpeed.rb +16 -0
  318. data/lib/openstudio-standards/standards/ashrae_90_1/ashrae_90_1_2016/ashrae_90_1_2016.FanVariableVolume.rb +37 -0
  319. data/lib/openstudio-standards/standards/ashrae_90_1/ashrae_90_1_2016/ashrae_90_1_2016.Space.rb +189 -0
  320. data/lib/openstudio-standards/standards/ashrae_90_1/ashrae_90_1_2016/ashrae_90_1_2016.ThermalZone.rb +57 -0
  321. data/lib/openstudio-standards/standards/ashrae_90_1/ashrae_90_1_2016/ashrae_90_1_2016.ZoneHVACComponent.rb +22 -0
  322. data/lib/openstudio-standards/standards/ashrae_90_1/ashrae_90_1_2016/ashrae_90_1_2016.rb +16 -0
  323. data/lib/openstudio-standards/standards/ashrae_90_1/ashrae_90_1_2016/data/ashrae_90_1_2016.boilers.json +68 -0
  324. data/lib/openstudio-standards/standards/ashrae_90_1/ashrae_90_1_2016/data/ashrae_90_1_2016.chillers.json +490 -0
  325. data/lib/openstudio-standards/standards/ashrae_90_1/ashrae_90_1_2016/data/ashrae_90_1_2016.construction_properties.json +21244 -0
  326. data/lib/openstudio-standards/standards/ashrae_90_1/ashrae_90_1_2016/data/ashrae_90_1_2016.construction_sets.json +2111 -0
  327. data/lib/openstudio-standards/standards/ashrae_90_1/ashrae_90_1_2016/data/ashrae_90_1_2016.economizers.json +676 -0
  328. data/lib/openstudio-standards/standards/ashrae_90_1/ashrae_90_1_2016/data/ashrae_90_1_2016.elevators.json +372 -0
  329. data/lib/openstudio-standards/standards/ashrae_90_1/ashrae_90_1_2016/data/ashrae_90_1_2016.energy_recovery.json +1096 -0
  330. data/lib/openstudio-standards/standards/ashrae_90_1/ashrae_90_1_2016/data/ashrae_90_1_2016.ext_ltg.json +169 -0
  331. data/lib/openstudio-standards/standards/ashrae_90_1/ashrae_90_1_2016/data/ashrae_90_1_2016.heat_pumps.json +532 -0
  332. data/lib/openstudio-standards/standards/ashrae_90_1/ashrae_90_1_2016/data/ashrae_90_1_2016.heat_pumps_heating.json +164 -0
  333. data/lib/openstudio-standards/standards/ashrae_90_1/ashrae_90_1_2016/data/ashrae_90_1_2016.heat_rejection.json +49 -0
  334. data/lib/openstudio-standards/standards/ashrae_90_1/ashrae_90_1_2016/data/ashrae_90_1_2016.motors.json +274 -0
  335. data/lib/openstudio-standards/standards/ashrae_90_1/ashrae_90_1_2016/data/ashrae_90_1_2016.prototype_inputs.json +3094 -0
  336. data/lib/openstudio-standards/standards/ashrae_90_1/ashrae_90_1_2016/data/ashrae_90_1_2016.ref_cases.json +854 -0
  337. data/lib/openstudio-standards/standards/ashrae_90_1/ashrae_90_1_2016/data/ashrae_90_1_2016.ref_lnup.json +562 -0
  338. data/lib/openstudio-standards/standards/ashrae_90_1/ashrae_90_1_2016/data/ashrae_90_1_2016.refrigeration_compressors.json +58 -0
  339. data/lib/openstudio-standards/standards/ashrae_90_1/ashrae_90_1_2016/data/ashrae_90_1_2016.refrigeration_condenser.json +238 -0
  340. data/lib/openstudio-standards/standards/ashrae_90_1/ashrae_90_1_2016/data/ashrae_90_1_2016.refrigeration_system.json +12 -0
  341. data/lib/openstudio-standards/standards/ashrae_90_1/ashrae_90_1_2016/data/ashrae_90_1_2016.refrigeration_walkins.json +1316 -0
  342. data/lib/openstudio-standards/standards/ashrae_90_1/ashrae_90_1_2016/data/ashrae_90_1_2016.spc_typ.json +23067 -0
  343. data/lib/openstudio-standards/standards/ashrae_90_1/ashrae_90_1_2016/data/ashrae_90_1_2016.unitary_acs.json +648 -0
  344. data/lib/openstudio-standards/standards/ashrae_90_1/ashrae_90_1_2016/data/ashrae_90_1_2016.water_heaters.json +72 -0
  345. data/lib/openstudio-standards/standards/ashrae_90_1/ashrae_90_1_2016/data/ashrae_90_1_2016.water_source_heat_pumps.json +31 -0
  346. data/lib/openstudio-standards/standards/ashrae_90_1/ashrae_90_1_2016/data/ashrae_90_1_2016.water_source_heat_pumps_heating.json +13 -0
  347. data/lib/openstudio-standards/standards/ashrae_90_1/ashrae_90_1_2019/ashrae_90_1_2019.AirLoopHVAC.rb +456 -0
  348. data/lib/openstudio-standards/standards/ashrae_90_1/ashrae_90_1_2019/ashrae_90_1_2019.AirTerminalSingleDuctVAVReheat.rb +24 -0
  349. data/lib/openstudio-standards/standards/ashrae_90_1/ashrae_90_1_2019/ashrae_90_1_2019.CoolingTower.rb +19 -0
  350. data/lib/openstudio-standards/standards/ashrae_90_1/ashrae_90_1_2019/ashrae_90_1_2019.CoolingTowerSingleSpeed.rb +5 -0
  351. data/lib/openstudio-standards/standards/ashrae_90_1/ashrae_90_1_2019/ashrae_90_1_2019.CoolingTowerTwoSpeed.rb +5 -0
  352. data/lib/openstudio-standards/standards/ashrae_90_1/ashrae_90_1_2019/ashrae_90_1_2019.CoolingTowerVariableSpeed.rb +16 -0
  353. data/lib/openstudio-standards/standards/ashrae_90_1/ashrae_90_1_2019/ashrae_90_1_2019.FanVariableVolume.rb +37 -0
  354. data/lib/openstudio-standards/standards/ashrae_90_1/ashrae_90_1_2019/ashrae_90_1_2019.Space.rb +189 -0
  355. data/lib/openstudio-standards/standards/ashrae_90_1/ashrae_90_1_2019/ashrae_90_1_2019.ThermalZone.rb +57 -0
  356. data/lib/openstudio-standards/standards/ashrae_90_1/ashrae_90_1_2019/ashrae_90_1_2019.ZoneHVACComponent.rb +22 -0
  357. data/lib/openstudio-standards/standards/ashrae_90_1/ashrae_90_1_2019/ashrae_90_1_2019.rb +16 -0
  358. data/lib/openstudio-standards/standards/ashrae_90_1/ashrae_90_1_2019/data/ashrae_90_1_2019.boilers.json +68 -0
  359. data/lib/openstudio-standards/standards/ashrae_90_1/ashrae_90_1_2019/data/ashrae_90_1_2019.chillers.json +490 -0
  360. data/lib/openstudio-standards/standards/ashrae_90_1/ashrae_90_1_2019/data/ashrae_90_1_2019.construction_properties.json +21244 -0
  361. data/lib/openstudio-standards/standards/ashrae_90_1/ashrae_90_1_2019/data/ashrae_90_1_2019.construction_sets.json +2111 -0
  362. data/lib/openstudio-standards/standards/ashrae_90_1/ashrae_90_1_2019/data/ashrae_90_1_2019.economizers.json +676 -0
  363. data/lib/openstudio-standards/standards/ashrae_90_1/ashrae_90_1_2019/data/ashrae_90_1_2019.elevators.json +372 -0
  364. data/lib/openstudio-standards/standards/ashrae_90_1/ashrae_90_1_2019/data/ashrae_90_1_2019.energy_recovery.json +1096 -0
  365. data/lib/openstudio-standards/standards/ashrae_90_1/ashrae_90_1_2019/data/ashrae_90_1_2019.ext_ltg.json +169 -0
  366. data/lib/openstudio-standards/standards/ashrae_90_1/ashrae_90_1_2019/data/ashrae_90_1_2019.heat_pumps.json +664 -0
  367. data/lib/openstudio-standards/standards/ashrae_90_1/ashrae_90_1_2019/data/ashrae_90_1_2019.heat_pumps_heating.json +204 -0
  368. data/lib/openstudio-standards/standards/ashrae_90_1/ashrae_90_1_2019/data/ashrae_90_1_2019.heat_rejection.json +49 -0
  369. data/lib/openstudio-standards/standards/ashrae_90_1/ashrae_90_1_2019/data/ashrae_90_1_2019.motors.json +274 -0
  370. data/lib/openstudio-standards/standards/ashrae_90_1/ashrae_90_1_2019/data/ashrae_90_1_2019.prototype_inputs.json +3094 -0
  371. data/lib/openstudio-standards/standards/ashrae_90_1/ashrae_90_1_2019/data/ashrae_90_1_2019.ref_cases.json +854 -0
  372. data/lib/openstudio-standards/standards/ashrae_90_1/ashrae_90_1_2019/data/ashrae_90_1_2019.ref_lnup.json +562 -0
  373. data/lib/openstudio-standards/standards/ashrae_90_1/ashrae_90_1_2019/data/ashrae_90_1_2019.refrigeration_compressors.json +58 -0
  374. data/lib/openstudio-standards/standards/ashrae_90_1/ashrae_90_1_2019/data/ashrae_90_1_2019.refrigeration_condenser.json +238 -0
  375. data/lib/openstudio-standards/standards/ashrae_90_1/ashrae_90_1_2019/data/ashrae_90_1_2019.refrigeration_system.json +12 -0
  376. data/lib/openstudio-standards/standards/ashrae_90_1/ashrae_90_1_2019/data/ashrae_90_1_2019.refrigeration_walkins.json +1316 -0
  377. data/lib/openstudio-standards/standards/ashrae_90_1/ashrae_90_1_2019/data/ashrae_90_1_2019.spc_typ.json +23067 -0
  378. data/lib/openstudio-standards/standards/ashrae_90_1/ashrae_90_1_2019/data/ashrae_90_1_2019.unitary_acs.json +671 -0
  379. data/lib/openstudio-standards/standards/ashrae_90_1/ashrae_90_1_2019/data/ashrae_90_1_2019.water_heaters.json +72 -0
  380. data/lib/openstudio-standards/standards/ashrae_90_1/ashrae_90_1_2019/data/ashrae_90_1_2019.water_source_heat_pumps.json +31 -0
  381. data/lib/openstudio-standards/standards/ashrae_90_1/ashrae_90_1_2019/data/ashrae_90_1_2019.water_source_heat_pumps_heating.json +13 -0
  382. data/lib/openstudio-standards/standards/ashrae_90_1/data/ashrae_90_1.constructions.json +1662 -332
  383. data/lib/openstudio-standards/standards/ashrae_90_1/data/ashrae_90_1.fans.json +1 -1
  384. data/lib/openstudio-standards/standards/ashrae_90_1/data/ashrae_90_1.materials.json +4994 -234
  385. data/lib/openstudio-standards/standards/ashrae_90_1/data/ashrae_90_1.schedules.json +1743 -161
  386. data/lib/openstudio-standards/standards/ashrae_90_1/doe_ref_1980_2004/comstock_doe_ref_1980_2004/data/ashrae_90_1.schedules.json +63 -99
  387. data/lib/openstudio-standards/standards/ashrae_90_1/doe_ref_1980_2004/comstock_doe_ref_1980_2004/data/comstock_doe_ref_1980_2004.ext_ltg.json +11 -11
  388. data/lib/openstudio-standards/standards/ashrae_90_1/doe_ref_1980_2004/data/doe_ref_1980_2004.heat_rejection.json +9 -0
  389. data/lib/openstudio-standards/standards/ashrae_90_1/doe_ref_1980_2004/data/doe_ref_1980_2004.prototype_inputs.json +8 -8
  390. data/lib/openstudio-standards/standards/ashrae_90_1/doe_ref_1980_2004/data/doe_ref_1980_2004.spc_typ.json +5967 -2727
  391. data/lib/openstudio-standards/standards/ashrae_90_1/doe_ref_1980_2004/doe_ref_1980_2004.Model.rb +4 -4
  392. data/lib/openstudio-standards/standards/ashrae_90_1/doe_ref_pre_1980/comstock_doe_ref_pre_1980/data/ashrae_90_1.schedules.json +63 -99
  393. data/lib/openstudio-standards/standards/ashrae_90_1/doe_ref_pre_1980/comstock_doe_ref_pre_1980/data/comstock_doe_ref_pre_1980.ext_ltg.json +10 -10
  394. data/lib/openstudio-standards/standards/ashrae_90_1/doe_ref_pre_1980/data/doe_ref_pre_1980.heat_rejection.json +9 -0
  395. data/lib/openstudio-standards/standards/ashrae_90_1/doe_ref_pre_1980/data/doe_ref_pre_1980.prototype_inputs.json +7 -7
  396. data/lib/openstudio-standards/standards/ashrae_90_1/doe_ref_pre_1980/data/doe_ref_pre_1980.spc_typ.json +5920 -2700
  397. data/lib/openstudio-standards/standards/ashrae_90_1/doe_ref_pre_1980/doe_ref_pre_1980.Model.rb +4 -4
  398. data/lib/openstudio-standards/standards/ashrae_90_1/nrel_zne_ready_2017/data/nrel_zne_ready_2017.heat_rejection.json +9 -0
  399. data/lib/openstudio-standards/standards/ashrae_90_1/nrel_zne_ready_2017/data/nrel_zne_ready_2017.spc_typ.json +2011 -1112
  400. data/lib/openstudio-standards/standards/ashrae_90_1/nrel_zne_ready_2017/nrel_zne_ready_2017.AirLoopHVAC.rb +0 -1
  401. data/lib/openstudio-standards/standards/ashrae_90_1/nrel_zne_ready_2017/nrel_zne_ready_2017.Model.rb +4 -4
  402. data/lib/openstudio-standards/standards/ashrae_90_1/nrel_zne_ready_2017/nrel_zne_ready_2017.PlantLoop.rb +1 -1
  403. data/lib/openstudio-standards/standards/ashrae_90_1/nrel_zne_ready_2017/nrel_zne_ready_2017.ZoneHVACComponent.rb +1 -1
  404. data/lib/openstudio-standards/standards/ashrae_90_1/ze_aedg_multifamily/data/ze_aedg_multifamily.heat_rejection.json +9 -0
  405. data/lib/openstudio-standards/standards/ashrae_90_1/ze_aedg_multifamily/data/ze_aedg_multifamily.spc_typ.json +1946 -1106
  406. data/lib/openstudio-standards/standards/ashrae_90_1/ze_aedg_multifamily/data/ze_aedg_multifamily.water_heaters.json +2 -2
  407. data/lib/openstudio-standards/standards/ashrae_90_1/ze_aedg_multifamily/ze_aedg_multifamily.AirLoopHVAC.rb +3 -6
  408. data/lib/openstudio-standards/standards/ashrae_90_1/ze_aedg_multifamily/ze_aedg_multifamily.Model.rb +4 -4
  409. data/lib/openstudio-standards/standards/ashrae_90_1/ze_aedg_multifamily/ze_aedg_multifamily.PlantLoop.rb +1 -1
  410. data/lib/openstudio-standards/standards/ashrae_90_1/ze_aedg_multifamily/ze_aedg_multifamily.ZoneHVACComponent.rb +1 -1
  411. data/lib/openstudio-standards/standards/cbes/cbes.Model.rb +1 -3
  412. data/lib/openstudio-standards/standards/cbes/cbes.rb +1 -1
  413. data/lib/openstudio-standards/standards/deer/deer.AirLoopHVAC.rb +8 -13
  414. data/lib/openstudio-standards/standards/deer/deer.Model.rb +2 -2
  415. data/lib/openstudio-standards/standards/deer/deer.PlanarSurface.rb +2 -0
  416. data/lib/openstudio-standards/standards/deer/deer.Space.rb +1 -1
  417. data/lib/openstudio-standards/standards/deer/deer_2011/deer_2011.rb +0 -1
  418. data/lib/openstudio-standards/standards/deer/deer_2014/deer_2014.Space.rb +0 -1
  419. data/lib/openstudio-standards/standards/deer/deer_2014/deer_2014.rb +0 -1
  420. data/lib/openstudio-standards/standards/deer/deer_2015/deer_2015.Space.rb +0 -1
  421. data/lib/openstudio-standards/standards/deer/deer_2017/deer_2017.Space.rb +0 -1
  422. data/lib/openstudio-standards/standards/deer/deer_2020/deer_2020.AirLoopHVAC.rb +1 -1
  423. data/lib/openstudio-standards/standards/deer/deer_2020/deer_2020.FanVariableVolume.rb +1 -1
  424. data/lib/openstudio-standards/standards/deer/deer_2020/deer_2020.Space.rb +0 -1
  425. data/lib/openstudio-standards/standards/deer/deer_2025/deer_2025.AirLoopHVAC.rb +1 -1
  426. data/lib/openstudio-standards/standards/deer/deer_2025/deer_2025.FanVariableVolume.rb +1 -1
  427. data/lib/openstudio-standards/standards/deer/deer_2025/deer_2025.Space.rb +0 -1
  428. data/lib/openstudio-standards/standards/deer/deer_2030/deer_2030.AirLoopHVAC.rb +1 -1
  429. data/lib/openstudio-standards/standards/deer/deer_2030/deer_2030.FanVariableVolume.rb +1 -1
  430. data/lib/openstudio-standards/standards/deer/deer_2030/deer_2030.Space.rb +0 -1
  431. data/lib/openstudio-standards/standards/deer/deer_2035/deer_2035.AirLoopHVAC.rb +1 -1
  432. data/lib/openstudio-standards/standards/deer/deer_2035/deer_2035.FanVariableVolume.rb +1 -1
  433. data/lib/openstudio-standards/standards/deer/deer_2035/deer_2035.Space.rb +0 -1
  434. data/lib/openstudio-standards/standards/deer/deer_2040/deer_2040.AirLoopHVAC.rb +1 -1
  435. data/lib/openstudio-standards/standards/deer/deer_2040/deer_2040.FanVariableVolume.rb +1 -1
  436. data/lib/openstudio-standards/standards/deer/deer_2040/deer_2040.Space.rb +0 -1
  437. data/lib/openstudio-standards/standards/deer/deer_2045/deer_2045.AirLoopHVAC.rb +1 -1
  438. data/lib/openstudio-standards/standards/deer/deer_2045/deer_2045.FanVariableVolume.rb +1 -1
  439. data/lib/openstudio-standards/standards/deer/deer_2045/deer_2045.Space.rb +0 -1
  440. data/lib/openstudio-standards/standards/deer/deer_2050/deer_2050.AirLoopHVAC.rb +1 -1
  441. data/lib/openstudio-standards/standards/deer/deer_2050/deer_2050.FanVariableVolume.rb +1 -1
  442. data/lib/openstudio-standards/standards/deer/deer_2050/deer_2050.Space.rb +0 -1
  443. data/lib/openstudio-standards/standards/deer/deer_2055/deer_2055.AirLoopHVAC.rb +1 -1
  444. data/lib/openstudio-standards/standards/deer/deer_2055/deer_2055.FanVariableVolume.rb +1 -1
  445. data/lib/openstudio-standards/standards/deer/deer_2055/deer_2055.Space.rb +0 -1
  446. data/lib/openstudio-standards/standards/deer/deer_2060/deer_2060.AirLoopHVAC.rb +1 -1
  447. data/lib/openstudio-standards/standards/deer/deer_2060/deer_2060.FanVariableVolume.rb +1 -1
  448. data/lib/openstudio-standards/standards/deer/deer_2060/deer_2060.Space.rb +0 -1
  449. data/lib/openstudio-standards/standards/deer/deer_2065/deer_2065.AirLoopHVAC.rb +1 -1
  450. data/lib/openstudio-standards/standards/deer/deer_2065/deer_2065.FanVariableVolume.rb +1 -1
  451. data/lib/openstudio-standards/standards/deer/deer_2065/deer_2065.Space.rb +0 -1
  452. data/lib/openstudio-standards/standards/deer/deer_2070/deer_2070.AirLoopHVAC.rb +1 -1
  453. data/lib/openstudio-standards/standards/deer/deer_2070/deer_2070.FanVariableVolume.rb +1 -1
  454. data/lib/openstudio-standards/standards/deer/deer_2070/deer_2070.Space.rb +0 -1
  455. data/lib/openstudio-standards/standards/deer/deer_2075/deer_2075.AirLoopHVAC.rb +1 -1
  456. data/lib/openstudio-standards/standards/deer/deer_2075/deer_2075.FanVariableVolume.rb +1 -1
  457. data/lib/openstudio-standards/standards/deer/deer_2075/deer_2075.Space.rb +0 -1
  458. data/lib/openstudio-standards/standards/icc_iecc/icc_iecc_2015/icc_iecc_2015.rb +0 -1
  459. data/lib/openstudio-standards/standards/necb/BTAP1980TO2010/btap_1980to2010.rb +2 -18
  460. data/lib/openstudio-standards/standards/necb/BTAP1980TO2010/data/space_types.json +1677 -1005
  461. data/lib/openstudio-standards/standards/necb/BTAPPRE1980/btap_pre1980.rb +87 -15
  462. data/lib/openstudio-standards/standards/necb/BTAPPRE1980/building_envelope.rb +31 -19
  463. data/lib/openstudio-standards/standards/necb/BTAPPRE1980/data/curves.json +75 -0
  464. data/lib/openstudio-standards/standards/necb/BTAPPRE1980/data/heat_pumps.json +16 -16
  465. data/lib/openstudio-standards/standards/necb/BTAPPRE1980/data/space_types.json +1677 -1005
  466. data/lib/openstudio-standards/standards/necb/BTAPPRE1980/hvac_system_3_and_8_single_speed.rb +16 -2
  467. data/lib/openstudio-standards/standards/necb/BTAPPRE1980/hvac_system_4.rb +15 -0
  468. data/lib/openstudio-standards/standards/necb/BTAPPRE1980/hvac_system_6.rb +14 -0
  469. data/lib/openstudio-standards/standards/necb/ECMS/data/boiler_set.json +29 -0
  470. data/lib/openstudio-standards/standards/necb/ECMS/data/curves.json +913 -0
  471. data/lib/openstudio-standards/standards/necb/ECMS/data/equip_eff_lim.json +52 -0
  472. data/lib/openstudio-standards/standards/necb/ECMS/data/erv.json +109 -0
  473. data/lib/openstudio-standards/standards/necb/ECMS/data/furnace_set.json +23 -0
  474. data/lib/openstudio-standards/standards/necb/ECMS/data/heat_pumps.json +803 -0
  475. data/lib/openstudio-standards/standards/necb/ECMS/data/heat_pumps_heating.json +787 -0
  476. data/lib/openstudio-standards/standards/necb/ECMS/data/pv.json +112 -0
  477. data/lib/openstudio-standards/standards/necb/ECMS/data/shw_set.json +29 -0
  478. data/lib/openstudio-standards/standards/necb/ECMS/data/unitary_acs.json +50 -0
  479. data/lib/openstudio-standards/standards/necb/ECMS/ecms.rb +100 -0
  480. data/lib/openstudio-standards/standards/necb/ECMS/erv.rb +33 -0
  481. data/lib/openstudio-standards/standards/necb/ECMS/hvac_systems.rb +1729 -0
  482. data/lib/openstudio-standards/standards/necb/ECMS/nv.rb +189 -0
  483. data/lib/openstudio-standards/standards/necb/ECMS/pv_ground.rb +104 -0
  484. data/lib/openstudio-standards/standards/necb/NECB2011/autozone.rb +68 -33
  485. data/lib/openstudio-standards/standards/necb/NECB2011/beps_compliance_path.rb +24 -13
  486. data/lib/openstudio-standards/standards/necb/NECB2011/building_envelope.rb +110 -99
  487. data/lib/openstudio-standards/standards/necb/NECB2011/data/constants.json +24 -24
  488. data/lib/openstudio-standards/standards/necb/NECB2011/data/curves.json +50 -0
  489. data/lib/openstudio-standards/standards/necb/NECB2011/data/erv.json +31 -0
  490. data/lib/openstudio-standards/standards/necb/NECB2011/data/geometry/LowriseApartment.osm +39278 -0
  491. data/lib/openstudio-standards/standards/necb/NECB2011/data/led_lighting_data.json +2028 -0
  492. data/lib/openstudio-standards/standards/necb/NECB2011/data/space_types.json +1745 -1297
  493. data/lib/openstudio-standards/standards/necb/NECB2011/daylighting_control.md +70 -0
  494. data/lib/openstudio-standards/standards/necb/NECB2011/demand_controlled_ventilation.md +46 -0
  495. data/lib/openstudio-standards/standards/necb/NECB2011/hvac_system_1_multi_speed.rb +69 -107
  496. data/lib/openstudio-standards/standards/necb/NECB2011/hvac_system_1_single_speed.rb +41 -2
  497. data/lib/openstudio-standards/standards/necb/NECB2011/hvac_system_2_and_5.rb +15 -0
  498. data/lib/openstudio-standards/standards/necb/NECB2011/hvac_system_3_and_8_multi_speed.rb +139 -141
  499. data/lib/openstudio-standards/standards/necb/NECB2011/hvac_system_3_and_8_single_speed.rb +38 -2
  500. data/lib/openstudio-standards/standards/necb/NECB2011/hvac_system_4.rb +13 -0
  501. data/lib/openstudio-standards/standards/necb/NECB2011/hvac_system_6.rb +12 -0
  502. data/lib/openstudio-standards/standards/necb/NECB2011/hvac_systems.rb +492 -240
  503. data/lib/openstudio-standards/standards/necb/NECB2011/led_lighting.md +51 -0
  504. data/lib/openstudio-standards/standards/necb/NECB2011/lighting.rb +75 -9
  505. data/lib/openstudio-standards/standards/necb/NECB2011/necb_2011.rb +1229 -37
  506. data/lib/openstudio-standards/standards/necb/NECB2011/nv.md +74 -0
  507. data/lib/openstudio-standards/standards/necb/NECB2011/pv_ground.md +44 -0
  508. data/lib/openstudio-standards/standards/necb/NECB2011/qaqc/necb_qaqc.rb +11 -3
  509. data/lib/openstudio-standards/standards/necb/NECB2011/qaqc/qaqc_resources/neb_end_use_prices.csv +39 -84
  510. data/lib/openstudio-standards/standards/necb/NECB2011/service_water_heating.rb +1 -1
  511. data/lib/openstudio-standards/standards/necb/NECB2015/data/led_lighting_data.json +2883 -0
  512. data/lib/openstudio-standards/standards/necb/NECB2015/data/space_types.json +2554 -1916
  513. data/lib/openstudio-standards/standards/necb/NECB2015/necb_2015.rb +32 -1
  514. data/lib/openstudio-standards/standards/necb/NECB2017/data/led_lighting_data.json +2883 -0
  515. data/lib/openstudio-standards/standards/necb/NECB2017/data/space_types.json +2554 -1916
  516. data/lib/openstudio-standards/standards/necb/NECB2017/necb_2017.rb +29 -0
  517. data/lib/openstudio-standards/standards/oeesc/oeesc_2014/oeesc_2014.rb +0 -1
  518. data/lib/openstudio-standards/standards/standard.rb +6 -5
  519. data/lib/openstudio-standards/utilities/Add_template_field_to_json.rb +3 -3
  520. data/lib/openstudio-standards/utilities/convert_surfaces_to_adiabatic_necb_8426.rb +54 -54
  521. data/lib/openstudio-standards/utilities/generate_prototype_database.rb +2 -2
  522. data/lib/openstudio-standards/utilities/generate_space_types.rb +3 -3
  523. data/lib/openstudio-standards/utilities/logging.rb +7 -7
  524. data/lib/openstudio-standards/utilities/necb_to_epw_map.rb +14 -14
  525. data/lib/openstudio-standards/utilities/os_sim_extract.rb +25 -25
  526. data/lib/openstudio-standards/utilities/rename_surfaces.rb +10 -13
  527. data/lib/openstudio-standards/utilities/round_surf_coords.rb +18 -20
  528. data/lib/openstudio-standards/utilities/sched_create.rb +39 -41
  529. data/lib/openstudio-standards/utilities/set_mult_to_adiabatic.rb +31 -31
  530. data/lib/openstudio-standards/utilities/simulation.rb +13 -21
  531. data/lib/openstudio-standards/utilities/speacetype_map_converter.rb +10 -11
  532. data/lib/openstudio-standards/utilities/sqlfile.rb +6 -8
  533. data/lib/openstudio-standards/utilities/template_measure/measure.rb +108 -0
  534. data/lib/openstudio-standards/utilities/template_measure/measure.xml +162 -0
  535. data/lib/openstudio-standards/utilities/template_measure/resources/BTAPMeasureHelper.rb +448 -0
  536. data/lib/openstudio-standards/utilities/template_measure/tests/test.rb +160 -0
  537. data/lib/openstudio-standards/utilities/weatherData1_xlsx_to_json.rb +23 -26
  538. data/lib/openstudio-standards/version.rb +1 -1
  539. data/lib/openstudio-standards/weather/Weather.Model.rb +112 -87
  540. data/lib/openstudio-standards/weather/Weather.stat_file.rb +17 -17
  541. metadata +236 -2
@@ -1,4 +1,3 @@
1
-
2
1
  # Custom changes for the SuperMarket prototype.
3
2
  # These are changes that are inconsistent with other prototype
4
3
  # building types.
@@ -71,7 +70,7 @@ module SuperMarket
71
70
  ventilation.setOutdoorAirFlowperPerson(0)
72
71
  ventilation.setOutdoorAirFlowperFloorArea(0.0015)
73
72
  # case template
74
- # when '90.1-2004','90.1-2007','90.1-2010', '90.1-2013'
73
+ # when '90.1-2004','90.1-2007','90.1-2010', '90.1-2013', '90.1-2016', '90.1-2019',
75
74
  # ventilation.setOutdoorAirFlowRate(4.27112436)
76
75
  # end
77
76
  end
@@ -79,7 +78,7 @@ module SuperMarket
79
78
 
80
79
  def update_waterheater_loss_coefficient(model)
81
80
  case template
82
- when '90.1-2004', '90.1-2007', '90.1-2010', '90.1-2013', 'NECB2011'
81
+ when '90.1-2004', '90.1-2007', '90.1-2010', '90.1-2013', '90.1-2016', '90.1-2019', 'NECB2011'
83
82
  model.getWaterHeaterMixeds.sort.each do |water_heater|
84
83
  water_heater.setOffCycleLossCoefficienttoAmbientTemperature(0.798542707)
85
84
  water_heater.setOnCycleLossCoefficienttoAmbientTemperature(0.798542707)
@@ -94,7 +93,6 @@ module SuperMarket
94
93
  end
95
94
 
96
95
  def model_custom_geometry_tweaks(building_type, climate_zone, prototype_input, model)
97
-
98
96
  return true
99
97
  end
100
98
  end
@@ -8,10 +8,10 @@ module SuperTallBuilding
8
8
  # TODO: make additional parameters mutable by the user
9
9
  # the number of floors for each function type is defined in additional_params
10
10
  additional_params = {
11
- num_of_floor_retail: 3,
12
- num_of_floor_office: 34,
13
- num_of_floor_residential: 17,
14
- num_of_floor_hotel: 17
11
+ num_of_floor_retail: 3,
12
+ num_of_floor_office: 34,
13
+ num_of_floor_residential: 17,
14
+ num_of_floor_hotel: 17
15
15
  }
16
16
 
17
17
  # add tall building elevators to the elevator machine room
@@ -185,9 +185,9 @@ module SuperTallBuilding
185
185
  next if space.name.to_s.downcase.include? 'plenum'
186
186
 
187
187
  search_criteria = {
188
- 'template' => template,
189
- 'building_type' => space.spaceType.get.standardsBuildingType.get,
190
- 'space_type' => space.spaceType.get.standardsSpaceType.get
188
+ 'template' => template,
189
+ 'building_type' => space.spaceType.get.standardsBuildingType.get,
190
+ 'space_type' => space.spaceType.get.standardsSpaceType.get
191
191
  }
192
192
  data = standards_lookup_table_first(table_name: 'space_types', search_criteria: search_criteria)
193
193
 
@@ -272,8 +272,12 @@ module SuperTallBuilding
272
272
  # Step2: add new infiltration obj, assign with HVAC off schedule, assign the coeff to System Off set.
273
273
  # hotel and apartment HVAC are always on, so just do Step1, no Step2
274
274
 
275
- coeff_a_on, coeff_b_on, coeff_d_on = -0.019024771, 0.057038142, 0.221309293
276
- coeff_a_off, coeff_b_off, coeff_d_off = 0.0, 0.064905216, 0.013202036
275
+ coeff_a_on = -0.019024771
276
+ coeff_b_on = 0.057038142
277
+ coeff_d_on = 0.221309293
278
+ coeff_a_off = 0.0
279
+ coeff_b_off = 0.064905216
280
+ coeff_d_off = 0.013202036
277
281
  office_hvac_sch = model_add_schedule(model, 'OfficeLarge HVACOperationSchd')
278
282
  office_hvac_off_sch = model_add_schedule(model, 'OfficeLarge HVACOperationOFFSchd')
279
283
  retail_hvac_sch = model_add_schedule(model, 'RetailStandalone HVACOperationSchd')
@@ -364,15 +368,18 @@ module SuperTallBuilding
364
368
  # TODO: make additional parameters mutable by the user
365
369
  # the number of floors for each function type is defined in additional_params
366
370
  additional_params = {
367
- num_of_floor_retail: 3,
368
- num_of_floor_office: 34,
369
- num_of_floor_residential: 17,
370
- num_of_floor_hotel: 17
371
+ num_of_floor_retail: 3,
372
+ num_of_floor_office: 34,
373
+ num_of_floor_residential: 17,
374
+ num_of_floor_hotel: 17
371
375
  }
372
376
 
373
377
  # get the number of floors for each function
374
378
  if additional_params.nil?
375
- num_retail_flr, num_office_flr, num_resi_flr, num_hotel_flr = 4, 34, 17, 17
379
+ num_retail_flr = 4
380
+ num_office_flr = 34
381
+ num_resi_flr = 17
382
+ num_hotel_flr = 17
376
383
  elsif additional_params.is_a?(Hash)
377
384
  keys = [:num_of_floor_retail, :num_of_floor_office, :num_of_floor_residential, :num_of_floor_hotel]
378
385
  if (additional_params.keys & keys).any? # if any function type is assigned with number of floor
@@ -397,35 +404,41 @@ module SuperTallBuilding
397
404
  num_hotel_flr = 0
398
405
  end
399
406
  if num_retail_flr == 0 && num_office_flr == 0 && num_resi_flr == 0 && num_hotel_flr == 0
400
- num_retail_flr, num_office_flr, num_resi_flr, num_hotel_flr = 4, 34, 17, 17
407
+ num_retail_flr = 4
408
+ num_office_flr = 34
409
+ num_resi_flr = 17
410
+ num_hotel_flr = 17
401
411
  elsif num_retail_flr + num_office_flr + num_resi_flr + num_hotel_flr < 60
402
- OpenStudio::logFree(OpenStudio::Error, 'openstudio.model.Model',
403
- 'The building is not eligible as a supertall building because the total number of floors is less than 60')
412
+ OpenStudio.logFree(OpenStudio::Error, 'openstudio.model.Model',
413
+ 'The building is not eligible as a supertall building because the total number of floors is less than 60')
404
414
  return false
405
415
  end
406
416
  else # if no number of floor is given for any function type
407
- num_retail_flr, num_office_flr, num_resi_flr, num_hotel_flr = 4, 34, 17, 17
417
+ num_retail_flr = 4
418
+ num_office_flr = 34
419
+ num_resi_flr = 17
420
+ num_hotel_flr = 17
408
421
  end
409
422
  else
410
- OpenStudio::logFree(OpenStudio::Error, 'openstudio.model.Model', 'additional_params is not a Hash')
423
+ OpenStudio.logFree(OpenStudio::Error, 'openstudio.model.Model', 'additional_params is not a Hash')
411
424
  return false
412
425
  end
413
426
 
414
427
  # Validate number of floors values, can't be negative
415
428
  if num_retail_flr < 0
416
- OpenStudio::logFree(OpenStudio::Error, 'openstudio.model.Model', 'Number of floors for Retail is negative.')
429
+ OpenStudio.logFree(OpenStudio::Error, 'openstudio.model.Model', 'Number of floors for Retail is negative.')
417
430
  return false
418
431
  elsif num_office_flr < 0
419
- OpenStudio::logFree(OpenStudio::Error, 'openstudio.model.Model', 'Number of floors for Office is negative.')
432
+ OpenStudio.logFree(OpenStudio::Error, 'openstudio.model.Model', 'Number of floors for Office is negative.')
420
433
  return false
421
434
  elsif num_resi_flr < 0
422
- OpenStudio::logFree(OpenStudio::Error, 'openstudio.model.Model', 'Number of floors for Apartment is negative.')
435
+ OpenStudio.logFree(OpenStudio::Error, 'openstudio.model.Model', 'Number of floors for Apartment is negative.')
423
436
  return false
424
437
  elsif num_hotel_flr < 0
425
- OpenStudio::logFree(OpenStudio::Error, 'openstudio.model.Model', 'Number of floors for Hotel is negative.')
438
+ OpenStudio.logFree(OpenStudio::Error, 'openstudio.model.Model', 'Number of floors for Hotel is negative.')
426
439
  return false
427
440
  elsif num_retail_flr == 0 && num_office_flr == 0 && num_resi_flr == 0 && num_hotel_flr == 0
428
- OpenStudio::logFree(OpenStudio::Error, 'openstudio.model.Model', 'Number of floors for all function types are all zero.')
441
+ OpenStudio.logFree(OpenStudio::Error, 'openstudio.model.Model', 'Number of floors for all function types are all zero.')
429
442
  return false
430
443
  end
431
444
 
@@ -813,113 +826,113 @@ module SuperTallBuilding
813
826
  end
814
827
  if story_name.include? 'Office'
815
828
  hvac_obj = {
816
- "type": 'VAV',
817
- "name": story_name + ' VAV WITH REHEAT',
818
- "return_plenum": plenum_space,
819
- "operation_schedule": 'OfficeLarge HVACOperationSchd',
820
- "oa_damper_schedule": 'OfficeLarge MinOA_MotorizedDamper_Sched',
821
- "chw_pumping_type": 'const_pri_var_sec',
822
- "chiller_cooling_type": 'WaterCooled',
823
- "chiller_condenser_type": nil,
824
- "chiller_compressor_type": 'Centrifugal',
825
- "chw_number_chillers": num_chillers,
826
- "number_cooling_towers": num_chillers,
827
- "space_names": space_names
829
+ "type": 'VAV',
830
+ "name": story_name + ' VAV WITH REHEAT',
831
+ "return_plenum": plenum_space,
832
+ "operation_schedule": 'OfficeLarge HVACOperationSchd',
833
+ "oa_damper_schedule": 'OfficeLarge MinOA_MotorizedDamper_Sched',
834
+ "chw_pumping_type": 'const_pri_var_sec',
835
+ "chiller_cooling_type": 'WaterCooled',
836
+ "chiller_condenser_type": nil,
837
+ "chiller_compressor_type": 'Centrifugal',
838
+ "chw_number_chillers": num_chillers,
839
+ "number_cooling_towers": num_chillers,
840
+ "space_names": space_names
828
841
  }
829
842
 
830
843
  elsif story_name.include? 'Retail'
831
844
  hvac_obj = {
832
- "type": 'VAV',
833
- "name": story_name + ' VAV WITH REHEAT',
834
- "return_plenum": plenum_space,
835
- "operation_schedule": 'RetailStandalone HVACOperationSchd',
836
- "oa_damper_schedule": 'RetailStandalone MinOA_MotorizedDamper_Sched',
837
- "chw_pumping_type": 'const_pri_var_sec',
838
- "chiller_cooling_type": 'WaterCooled',
839
- "chiller_condenser_type": nil,
840
- "chiller_compressor_type": 'Centrifugal',
841
- "chw_number_chillers": num_chillers,
842
- "number_cooling_towers": num_chillers,
843
- "space_names": space_names
845
+ "type": 'VAV',
846
+ "name": story_name + ' VAV WITH REHEAT',
847
+ "return_plenum": plenum_space,
848
+ "operation_schedule": 'RetailStandalone HVACOperationSchd',
849
+ "oa_damper_schedule": 'RetailStandalone MinOA_MotorizedDamper_Sched',
850
+ "chw_pumping_type": 'const_pri_var_sec',
851
+ "chiller_cooling_type": 'WaterCooled',
852
+ "chiller_condenser_type": nil,
853
+ "chiller_compressor_type": 'Centrifugal',
854
+ "chw_number_chillers": num_chillers,
855
+ "number_cooling_towers": num_chillers,
856
+ "space_names": space_names
844
857
  }
845
858
 
846
859
  elsif story_name.include? 'Hotel'
847
860
  hvac_obj = {
848
- "type": 'DOAS Cold Supply',
849
- "name": story_name + ' DOAS',
850
- "return_plenum": plenum_space,
851
- "operation_schedule": 'HotelLarge HVACOperationSchd',
852
- "oa_damper_schedule": 'HotelLarge MinOA_MotorizedDamper_Sched',
853
- "chw_pumping_type": 'const_pri_var_sec',
854
- "chiller_cooling_type": 'WaterCooled',
855
- "chiller_condenser_type": nil,
856
- "chiller_compressor_type": 'Centrifugal',
857
- "chw_number_chillers": num_chillers,
858
- "number_cooling_towers": num_chillers,
859
- "economizer_control_method": 'DifferentialDryBulb',
860
- "space_names": space_names
861
+ "type": 'DOAS Cold Supply',
862
+ "name": story_name + ' DOAS',
863
+ "return_plenum": plenum_space,
864
+ "operation_schedule": 'HotelLarge HVACOperationSchd',
865
+ "oa_damper_schedule": 'HotelLarge MinOA_MotorizedDamper_Sched',
866
+ "chw_pumping_type": 'const_pri_var_sec',
867
+ "chiller_cooling_type": 'WaterCooled',
868
+ "chiller_condenser_type": nil,
869
+ "chiller_compressor_type": 'Centrifugal',
870
+ "chw_number_chillers": num_chillers,
871
+ "number_cooling_towers": num_chillers,
872
+ "economizer_control_method": 'DifferentialDryBulb',
873
+ "space_names": space_names
861
874
  }
862
875
  # get the top floor plenum for hotel common areas' VAV system
863
876
  hotel_top_plenum_space = plenum_space if story_name.include? 'top'
864
877
 
865
878
  elsif story_name.include? 'Resi'
866
879
  hvac_obj = {
867
- "type": 'DOAS Cold Supply',
868
- "name": story_name + ' DOAS',
869
- "return_plenum": plenum_space,
870
- "operation_schedule": 'Always On',
871
- "oa_damper_schedule": 'Always On',
872
- "chw_pumping_type": 'const_pri_var_sec',
873
- "chiller_cooling_type": 'WaterCooled',
874
- "chiller_condenser_type": nil,
875
- "chiller_compressor_type": 'Centrifugal',
876
- "chw_number_chillers": num_chillers,
877
- "number_cooling_towers": num_chillers,
878
- "economizer_control_method": 'DifferentialDryBulb',
879
- "space_names": space_names
880
+ "type": 'DOAS Cold Supply',
881
+ "name": story_name + ' DOAS',
882
+ "return_plenum": plenum_space,
883
+ "operation_schedule": 'Always On',
884
+ "oa_damper_schedule": 'Always On',
885
+ "chw_pumping_type": 'const_pri_var_sec',
886
+ "chiller_cooling_type": 'WaterCooled',
887
+ "chiller_condenser_type": nil,
888
+ "chiller_compressor_type": 'Centrifugal',
889
+ "chw_number_chillers": num_chillers,
890
+ "number_cooling_towers": num_chillers,
891
+ "economizer_control_method": 'DifferentialDryBulb',
892
+ "space_names": space_names
880
893
  }
881
894
 
882
895
  elsif story_name.include? 'Basement'
883
896
  hvac_obj = {
884
- "type": 'CAV',
885
- "name": 'CAV_bas',
886
- "operation_schedule": 'OfficeLarge HVACOperationSchd',
887
- "oa_damper_schedule": 'OfficeLarge MinOA_MotorizedDamper_Sched',
888
- "chw_pumping_type": 'const_pri_var_sec',
889
- "chiller_cooling_type": 'WaterCooled',
890
- "chiller_condenser_type": nil,
891
- "chiller_compressor_type": 'Centrifugal',
892
- "chw_number_chillers": num_chillers,
893
- "number_cooling_towers": num_chillers,
894
- "space_names": space_names
897
+ "type": 'CAV',
898
+ "name": 'CAV_bas',
899
+ "operation_schedule": 'OfficeLarge HVACOperationSchd',
900
+ "oa_damper_schedule": 'OfficeLarge MinOA_MotorizedDamper_Sched',
901
+ "chw_pumping_type": 'const_pri_var_sec',
902
+ "chiller_cooling_type": 'WaterCooled',
903
+ "chiller_condenser_type": nil,
904
+ "chiller_compressor_type": 'Centrifugal',
905
+ "chw_number_chillers": num_chillers,
906
+ "number_cooling_towers": num_chillers,
907
+ "space_names": space_names
895
908
  }
896
909
 
897
910
  elsif story_name.include? 'Skylobby'
898
911
  hvac_obj = {
899
- "type": 'VAV',
900
- "name": story_name + ' VAV WITH REHEAT',
901
- "return_plenum": plenum_space,
902
- "operation_schedule": 'HotelLarge HVACOperationSchd',
903
- "oa_damper_schedule": 'HotelLarge MinOA_MotorizedDamper_Sched',
904
- "chw_pumping_type": 'const_pri_var_sec',
905
- "chiller_cooling_type": 'WaterCooled',
906
- "chiller_condenser_type": nil,
907
- "chiller_compressor_type": 'Centrifugal',
908
- "chw_number_chillers": num_chillers,
909
- "number_cooling_towers": num_chillers,
910
- "space_names": space_names
912
+ "type": 'VAV',
913
+ "name": story_name + ' VAV WITH REHEAT',
914
+ "return_plenum": plenum_space,
915
+ "operation_schedule": 'HotelLarge HVACOperationSchd',
916
+ "oa_damper_schedule": 'HotelLarge MinOA_MotorizedDamper_Sched',
917
+ "chw_pumping_type": 'const_pri_var_sec',
918
+ "chiller_cooling_type": 'WaterCooled',
919
+ "chiller_condenser_type": nil,
920
+ "chiller_compressor_type": 'Centrifugal',
921
+ "chw_number_chillers": num_chillers,
922
+ "number_cooling_towers": num_chillers,
923
+ "space_names": space_names
911
924
  }
912
925
 
913
926
  elsif story_name.include? 'ElevatorMachineRm'
914
927
  hvac_obj = {
915
- "type": 'PSZ-AC',
916
- "name": story_name + ' PSZ-AC',
917
- "operation_schedule": 'Always On',
918
- "oa_damper_schedule": 'Always On',
919
- "cooling_type": 'Single Speed DX AC',
920
- "heating_type": 'Electricity',
921
- "fan_type": 'ConstantVolume',
922
- "space_names": space_names
928
+ "type": 'PSZ-AC',
929
+ "name": story_name + ' PSZ-AC',
930
+ "operation_schedule": 'Always On',
931
+ "oa_damper_schedule": 'Always On',
932
+ "cooling_type": 'Single Speed DX AC',
933
+ "heating_type": 'Electricity',
934
+ "fan_type": 'ConstantVolume',
935
+ "space_names": space_names
923
936
  }
924
937
  end
925
938
 
@@ -929,18 +942,18 @@ module SuperTallBuilding
929
942
  # add VAV system for all hotel common area spaces
930
943
  if num_hotel_flr >= 1
931
944
  hotel_common_hvac_obj = {
932
- "type": 'VAV',
933
- "name": 'Hotel Common Areas VAV WITH REHEAT',
934
- "return_plenum": hotel_top_plenum_space,
935
- "operation_schedule": 'HotelLarge HVACOperationSchd',
936
- "oa_damper_schedule": 'HotelLarge MinOA_MotorizedDamper_Sched',
937
- "chw_pumping_type": 'const_pri_var_sec',
938
- "chiller_cooling_type": 'WaterCooled',
939
- "chiller_condenser_type": nil,
940
- "chiller_compressor_type": 'Centrifugal',
941
- "chw_number_chillers": num_chillers,
942
- "number_cooling_towers": num_chillers,
943
- "space_names": hotel_common_spaces
945
+ "type": 'VAV',
946
+ "name": 'Hotel Common Areas VAV WITH REHEAT',
947
+ "return_plenum": hotel_top_plenum_space,
948
+ "operation_schedule": 'HotelLarge HVACOperationSchd',
949
+ "oa_damper_schedule": 'HotelLarge MinOA_MotorizedDamper_Sched',
950
+ "chw_pumping_type": 'const_pri_var_sec',
951
+ "chiller_cooling_type": 'WaterCooled',
952
+ "chiller_condenser_type": nil,
953
+ "chiller_compressor_type": 'Centrifugal',
954
+ "chw_number_chillers": num_chillers,
955
+ "number_cooling_towers": num_chillers,
956
+ "space_names": hotel_common_spaces
944
957
  }
945
958
  new_json.push(hotel_common_hvac_obj)
946
959
  end
@@ -1051,14 +1064,14 @@ module SuperTallBuilding
1051
1064
  # locate the skylobby story (find the most middle story bottom, add skylobby below it)
1052
1065
  # rank the stories from low to high (not including the elevator machine room, which hasn't assign the nominal Z coordinate)
1053
1066
  all_stories = model.getBuildingStorys
1054
- all_stories = all_stories.select { |story| !story.nominalZCoordinate.empty? }
1067
+ all_stories = all_stories.reject { |story| story.nominalZCoordinate.empty? }
1055
1068
  all_stories = all_stories.sort { |a, b| a.nominalZCoordinate.get.to_f <=> b.nominalZCoordinate.get.to_f }
1056
1069
  all_stories_names = all_stories.map { |story| story.name.to_s }
1057
1070
 
1058
1071
  # the Z coordinates of the bottom of the stories (if story has multiplier, this refers to the real bottom)
1059
1072
  z_coordinates_bot = []
1060
1073
  all_stories.each do |story|
1061
- raise "nominal floor to floor height missing in story #{story.name.to_s}." if story.nominalFloortoFloorHeight.empty?
1074
+ raise "nominal floor to floor height missing in story #{story.name}." if story.nominalFloortoFloorHeight.empty?
1062
1075
 
1063
1076
  f_to_f_height = story.nominalFloortoFloorHeight.get
1064
1077
  multiplier = story.spaces[0].multiplier
@@ -1090,7 +1103,7 @@ module SuperTallBuilding
1090
1103
  all_stories_names.drop(mid_story_idx).each do |story_name|
1091
1104
  # reset story name with new floor number
1092
1105
  story = model.getBuildingStoryByName(story_name).get
1093
- orin_num_flrs = story_name.scan(/\d+/).map { |x| x.to_i }
1106
+ orin_num_flrs = story_name.scan(/\d+/).map(&:to_i)
1094
1107
 
1095
1108
  new_num_flrs = orin_num_flrs.map { |x| x + 1 }
1096
1109
  if new_num_flrs.size == 1
@@ -8,10 +8,10 @@ module TallBuilding
8
8
  # TODO: make additional parameters mutable by the user
9
9
  # the number of floors for each function type is defined in additional_params
10
10
  additional_params = {
11
- num_of_floor_retail: 2,
12
- num_of_floor_office: 18,
13
- num_of_floor_residential: 9,
14
- num_of_floor_hotel: 9
11
+ num_of_floor_retail: 2,
12
+ num_of_floor_office: 18,
13
+ num_of_floor_residential: 9,
14
+ num_of_floor_hotel: 9
15
15
  }
16
16
 
17
17
  # add tall building elevators to the elevator machine room
@@ -185,9 +185,9 @@ module TallBuilding
185
185
  next if space.name.to_s.downcase.include? 'plenum'
186
186
 
187
187
  search_criteria = {
188
- 'template' => template,
189
- 'building_type' => space.spaceType.get.standardsBuildingType.get,
190
- 'space_type' => space.spaceType.get.standardsSpaceType.get
188
+ 'template' => template,
189
+ 'building_type' => space.spaceType.get.standardsBuildingType.get,
190
+ 'space_type' => space.spaceType.get.standardsSpaceType.get
191
191
  }
192
192
  data = standards_lookup_table_first(table_name: 'space_types', search_criteria: search_criteria)
193
193
 
@@ -273,8 +273,12 @@ module TallBuilding
273
273
  # Step2: add new infiltration obj, assign with HVAC off schedule, assign the coeff to System Off set.
274
274
  # hotel and apartment HVAC are always on, so just do Step1, no Step2
275
275
 
276
- coeff_a_on, coeff_b_on, coeff_d_on = -0.03973203, 0.02282265, 0.083767524
277
- coeff_a_off, coeff_b_off, coeff_d_off = 0.0, 0.031045705, 0.016210069
276
+ coeff_a_on = -0.03973203
277
+ coeff_b_on = 0.02282265
278
+ coeff_d_on = 0.083767524
279
+ coeff_a_off = 0.0
280
+ coeff_b_off = 0.031045705
281
+ coeff_d_off = 0.016210069
278
282
  office_hvac_sch = model_add_schedule(model, 'OfficeLarge HVACOperationSchd')
279
283
  office_hvac_off_sch = model_add_schedule(model, 'OfficeLarge HVACOperationOFFSchd')
280
284
  retail_hvac_sch = model_add_schedule(model, 'RetailStandalone HVACOperationSchd')
@@ -366,15 +370,18 @@ module TallBuilding
366
370
  # TODO: make additional parameters mutable by the user
367
371
  # the number of floors for each function type is defined in additional_params
368
372
  additional_params = {
369
- num_of_floor_retail: 2,
370
- num_of_floor_office: 18,
371
- num_of_floor_residential: 9,
372
- num_of_floor_hotel: 9
373
+ num_of_floor_retail: 2,
374
+ num_of_floor_office: 18,
375
+ num_of_floor_residential: 9,
376
+ num_of_floor_hotel: 9
373
377
  }
374
378
 
375
379
  # get the number of floors for each function
376
380
  if additional_params.nil?
377
- num_retail_flr, num_office_flr, num_resi_flr, num_hotel_flr = 2, 18, 9, 9
381
+ num_retail_flr = 2
382
+ num_office_flr = 18
383
+ num_resi_flr = 9
384
+ num_hotel_flr = 9
378
385
  elsif additional_params.is_a?(Hash)
379
386
  keys = [:num_of_floor_retail, :num_of_floor_office, :num_of_floor_residential, :num_of_floor_hotel]
380
387
  if (additional_params.keys & keys).any? # if any function type is assigned with number of floor
@@ -399,40 +406,46 @@ module TallBuilding
399
406
  num_hotel_flr = 0
400
407
  end
401
408
  if num_retail_flr == 0 && num_office_flr == 0 && num_resi_flr == 0 && num_hotel_flr == 0
402
- num_retail_flr, num_office_flr, num_resi_flr, num_hotel_flr = 2, 18, 9, 9
409
+ num_retail_flr = 2
410
+ num_office_flr = 18
411
+ num_resi_flr = 9
412
+ num_hotel_flr = 9
403
413
  elsif num_retail_flr + num_office_flr + num_resi_flr + num_hotel_flr < 20
404
- OpenStudio::logFree(OpenStudio::Error, 'openstudio.model.Model',
405
- 'The building is not eligible as a tall building because the total number of floors is less than 20')
414
+ OpenStudio.logFree(OpenStudio::Error, 'openstudio.model.Model',
415
+ 'The building is not eligible as a tall building because the total number of floors is less than 20')
406
416
  return false
407
417
  elsif num_retail_flr + num_office_flr + num_resi_flr + num_hotel_flr >= 75
408
- OpenStudio::logFree(OpenStudio::Error, 'openstudio.model.Model',
409
- "The building has #{num_retail_flr + num_office_flr + num_resi_flr + num_hotel_flr} floors, which should "\
410
- 'be classified as super tall building. Please select SuperTall Building as the building type instead.')
418
+ OpenStudio.logFree(OpenStudio::Error, 'openstudio.model.Model',
419
+ "The building has #{num_retail_flr + num_office_flr + num_resi_flr + num_hotel_flr} floors, which should "\
420
+ 'be classified as super tall building. Please select SuperTall Building as the building type instead.')
411
421
  return false
412
422
  end
413
423
  else # if no number of floor is given for any function type
414
- num_retail_flr, num_office_flr, num_resi_flr, num_hotel_flr = 2, 18, 9, 9
424
+ num_retail_flr = 2
425
+ num_office_flr = 18
426
+ num_resi_flr = 9
427
+ num_hotel_flr = 9
415
428
  end
416
429
  else
417
- OpenStudio::logFree(OpenStudio::Error, 'openstudio.model.Model', 'additional_params is not a Hash')
430
+ OpenStudio.logFree(OpenStudio::Error, 'openstudio.model.Model', 'additional_params is not a Hash')
418
431
  return false
419
432
  end
420
433
 
421
434
  # Validate number of floors values, can't be negative
422
435
  if num_retail_flr < 0
423
- OpenStudio::logFree(OpenStudio::Error, 'openstudio.model.Model', 'Number of floors for Retail is negative.')
436
+ OpenStudio.logFree(OpenStudio::Error, 'openstudio.model.Model', 'Number of floors for Retail is negative.')
424
437
  return false
425
438
  elsif num_office_flr < 0
426
- OpenStudio::logFree(OpenStudio::Error, 'openstudio.model.Model', 'Number of floors for Office is negative.')
439
+ OpenStudio.logFree(OpenStudio::Error, 'openstudio.model.Model', 'Number of floors for Office is negative.')
427
440
  return false
428
441
  elsif num_resi_flr < 0
429
- OpenStudio::logFree(OpenStudio::Error, 'openstudio.model.Model', 'Number of floors for Apartment is negative.')
442
+ OpenStudio.logFree(OpenStudio::Error, 'openstudio.model.Model', 'Number of floors for Apartment is negative.')
430
443
  return false
431
444
  elsif num_hotel_flr < 0
432
- OpenStudio::logFree(OpenStudio::Error, 'openstudio.model.Model', 'Number of floors for Hotel is negative.')
445
+ OpenStudio.logFree(OpenStudio::Error, 'openstudio.model.Model', 'Number of floors for Hotel is negative.')
433
446
  return false
434
447
  elsif num_retail_flr == 0 && num_office_flr == 0 && num_resi_flr == 0 && num_hotel_flr == 0
435
- OpenStudio::logFree(OpenStudio::Error, 'openstudio.model.Model', 'Number of floors for all function types are all zero.')
448
+ OpenStudio.logFree(OpenStudio::Error, 'openstudio.model.Model', 'Number of floors for all function types are all zero.')
436
449
  return false
437
450
  end
438
451
 
@@ -767,9 +780,9 @@ module TallBuilding
767
780
 
768
781
  # Relocate the ElevatorMachineRm story
769
782
  building_height = num_retail_flr * f_to_f_height_retail + (num_office_flr + num_resi_flr + num_hotel_flr) * f_to_f_height_non_retail
770
- top_elevatorMachineRm_story = model.getBuildingStoryByName('ElevatorMachineRm story').get
771
- top_elevatorMachineRm_story.setNominalZCoordinate(building_height)
772
- top_elevatorMachineRm_story.spaces.each do |space|
783
+ top_elevator_machine_rm_story = model.getBuildingStoryByName('ElevatorMachineRm story').get
784
+ top_elevator_machine_rm_story.setNominalZCoordinate(building_height)
785
+ top_elevator_machine_rm_story.spaces.each do |space|
773
786
  space.setZOrigin(building_height)
774
787
  end
775
788
 
@@ -815,97 +828,97 @@ module TallBuilding
815
828
  end
816
829
  if story_name.include? 'Office'
817
830
  hvac_obj = {
818
- "type": 'VAV',
819
- "name": story_name + ' VAV WITH REHEAT',
820
- "return_plenum": plenum_space,
821
- "operation_schedule": 'OfficeLarge HVACOperationSchd',
822
- "oa_damper_schedule": 'OfficeLarge MinOA_MotorizedDamper_Sched',
823
- "chw_pumping_type": 'const_pri_var_sec',
824
- "chiller_cooling_type": 'WaterCooled',
825
- "chiller_condenser_type": nil,
826
- "chiller_compressor_type": 'Centrifugal',
827
- "chw_number_chillers": num_chillers,
828
- "number_cooling_towers": num_chillers,
829
- "space_names": space_names
831
+ "type": 'VAV',
832
+ "name": story_name + ' VAV WITH REHEAT',
833
+ "return_plenum": plenum_space,
834
+ "operation_schedule": 'OfficeLarge HVACOperationSchd',
835
+ "oa_damper_schedule": 'OfficeLarge MinOA_MotorizedDamper_Sched',
836
+ "chw_pumping_type": 'const_pri_var_sec',
837
+ "chiller_cooling_type": 'WaterCooled',
838
+ "chiller_condenser_type": nil,
839
+ "chiller_compressor_type": 'Centrifugal',
840
+ "chw_number_chillers": num_chillers,
841
+ "number_cooling_towers": num_chillers,
842
+ "space_names": space_names
830
843
  }
831
844
 
832
845
  elsif story_name.include? 'Retail'
833
846
  hvac_obj = {
834
- "type": 'VAV',
835
- "name": story_name + ' VAV WITH REHEAT',
836
- "return_plenum": plenum_space,
837
- "operation_schedule": 'RetailStandalone HVACOperationSchd',
838
- "oa_damper_schedule": 'RetailStandalone MinOA_MotorizedDamper_Sched',
839
- "chw_pumping_type": 'const_pri_var_sec',
840
- "chiller_cooling_type": 'WaterCooled',
841
- "chiller_condenser_type": nil,
842
- "chiller_compressor_type": 'Centrifugal',
843
- "chw_number_chillers": num_chillers,
844
- "number_cooling_towers": num_chillers,
845
- "space_names": space_names
847
+ "type": 'VAV',
848
+ "name": story_name + ' VAV WITH REHEAT',
849
+ "return_plenum": plenum_space,
850
+ "operation_schedule": 'RetailStandalone HVACOperationSchd',
851
+ "oa_damper_schedule": 'RetailStandalone MinOA_MotorizedDamper_Sched',
852
+ "chw_pumping_type": 'const_pri_var_sec',
853
+ "chiller_cooling_type": 'WaterCooled',
854
+ "chiller_condenser_type": nil,
855
+ "chiller_compressor_type": 'Centrifugal',
856
+ "chw_number_chillers": num_chillers,
857
+ "number_cooling_towers": num_chillers,
858
+ "space_names": space_names
846
859
  }
847
860
 
848
861
  elsif story_name.include? 'Hotel'
849
862
  hvac_obj = {
850
- "type": 'DOAS Cold Supply',
851
- "name": story_name + ' DOAS',
852
- "return_plenum": plenum_space,
853
- "operation_schedule": 'HotelLarge HVACOperationSchd',
854
- "oa_damper_schedule": 'HotelLarge MinOA_MotorizedDamper_Sched',
855
- "chw_pumping_type": 'const_pri_var_sec',
856
- "chiller_cooling_type": 'WaterCooled',
857
- "chiller_condenser_type": nil,
858
- "chiller_compressor_type": 'Centrifugal',
859
- "chw_number_chillers": num_chillers,
860
- "number_cooling_towers": num_chillers,
861
- "economizer_control_method": 'DifferentialDryBulb',
862
- "space_names": space_names
863
+ "type": 'DOAS Cold Supply',
864
+ "name": story_name + ' DOAS',
865
+ "return_plenum": plenum_space,
866
+ "operation_schedule": 'HotelLarge HVACOperationSchd',
867
+ "oa_damper_schedule": 'HotelLarge MinOA_MotorizedDamper_Sched',
868
+ "chw_pumping_type": 'const_pri_var_sec',
869
+ "chiller_cooling_type": 'WaterCooled',
870
+ "chiller_condenser_type": nil,
871
+ "chiller_compressor_type": 'Centrifugal',
872
+ "chw_number_chillers": num_chillers,
873
+ "number_cooling_towers": num_chillers,
874
+ "economizer_control_method": 'DifferentialDryBulb',
875
+ "space_names": space_names
863
876
  }
864
877
  # get the top floor plenum for hotel common areas' VAV system
865
878
  hotel_top_plenum_space = plenum_space if story_name.include? 'top'
866
879
 
867
880
  elsif story_name.include? 'Resi'
868
881
  hvac_obj = {
869
- "type": 'DOAS Cold Supply',
870
- "name": story_name + ' DOAS',
871
- "return_plenum": plenum_space,
872
- "operation_schedule": 'Always On',
873
- "oa_damper_schedule": 'Always On',
874
- "chw_pumping_type": 'const_pri_var_sec',
875
- "chiller_cooling_type": 'WaterCooled',
876
- "chiller_condenser_type": nil,
877
- "chiller_compressor_type": 'Centrifugal',
878
- "chw_number_chillers": num_chillers,
879
- "number_cooling_towers": num_chillers,
880
- "economizer_control_method": 'DifferentialDryBulb',
881
- "space_names": space_names
882
+ "type": 'DOAS Cold Supply',
883
+ "name": story_name + ' DOAS',
884
+ "return_plenum": plenum_space,
885
+ "operation_schedule": 'Always On',
886
+ "oa_damper_schedule": 'Always On',
887
+ "chw_pumping_type": 'const_pri_var_sec',
888
+ "chiller_cooling_type": 'WaterCooled',
889
+ "chiller_condenser_type": nil,
890
+ "chiller_compressor_type": 'Centrifugal',
891
+ "chw_number_chillers": num_chillers,
892
+ "number_cooling_towers": num_chillers,
893
+ "economizer_control_method": 'DifferentialDryBulb',
894
+ "space_names": space_names
882
895
  }
883
896
 
884
897
  elsif story_name.include? 'Basement'
885
898
  hvac_obj = {
886
- "type": 'CAV',
887
- "name": 'CAV_bas',
888
- "operation_schedule": 'OfficeLarge HVACOperationSchd',
889
- "oa_damper_schedule": 'OfficeLarge MinOA_MotorizedDamper_Sched',
890
- "chw_pumping_type": 'const_pri_var_sec',
891
- "chiller_cooling_type": 'WaterCooled',
892
- "chiller_condenser_type": nil,
893
- "chiller_compressor_type": 'Centrifugal',
894
- "chw_number_chillers": num_chillers,
895
- "number_cooling_towers": num_chillers,
896
- "space_names": space_names
899
+ "type": 'CAV',
900
+ "name": 'CAV_bas',
901
+ "operation_schedule": 'OfficeLarge HVACOperationSchd',
902
+ "oa_damper_schedule": 'OfficeLarge MinOA_MotorizedDamper_Sched',
903
+ "chw_pumping_type": 'const_pri_var_sec',
904
+ "chiller_cooling_type": 'WaterCooled',
905
+ "chiller_condenser_type": nil,
906
+ "chiller_compressor_type": 'Centrifugal',
907
+ "chw_number_chillers": num_chillers,
908
+ "number_cooling_towers": num_chillers,
909
+ "space_names": space_names
897
910
  }
898
911
 
899
912
  elsif story_name.include? 'ElevatorMachineRm'
900
913
  hvac_obj = {
901
- "type": 'PSZ-AC',
902
- "name": story_name + ' PSZ-AC',
903
- "operation_schedule": 'Always On',
904
- "oa_damper_schedule": 'Always On',
905
- "cooling_type": 'Single Speed DX AC',
906
- "heating_type": 'Electricity',
907
- "fan_type": 'ConstantVolume',
908
- "space_names": space_names
914
+ "type": 'PSZ-AC',
915
+ "name": story_name + ' PSZ-AC',
916
+ "operation_schedule": 'Always On',
917
+ "oa_damper_schedule": 'Always On',
918
+ "cooling_type": 'Single Speed DX AC',
919
+ "heating_type": 'Electricity',
920
+ "fan_type": 'ConstantVolume',
921
+ "space_names": space_names
909
922
  }
910
923
  end
911
924
 
@@ -915,18 +928,18 @@ module TallBuilding
915
928
  # add VAV system for all hotel common area spaces
916
929
  if num_hotel_flr >= 1
917
930
  hotel_common_hvac_obj = {
918
- "type": 'VAV',
919
- "name": 'Hotel Common Areas VAV WITH REHEAT',
920
- "return_plenum": hotel_top_plenum_space,
921
- "operation_schedule": 'HotelLarge HVACOperationSchd',
922
- "oa_damper_schedule": 'HotelLarge MinOA_MotorizedDamper_Sched',
923
- "chw_pumping_type": 'const_pri_var_sec',
924
- "chiller_cooling_type": 'WaterCooled',
925
- "chiller_condenser_type": nil,
926
- "chiller_compressor_type": 'Centrifugal',
927
- "chw_number_chillers": num_chillers,
928
- "number_cooling_towers": num_chillers,
929
- "space_names": hotel_common_spaces
931
+ "type": 'VAV',
932
+ "name": 'Hotel Common Areas VAV WITH REHEAT',
933
+ "return_plenum": hotel_top_plenum_space,
934
+ "operation_schedule": 'HotelLarge HVACOperationSchd',
935
+ "oa_damper_schedule": 'HotelLarge MinOA_MotorizedDamper_Sched',
936
+ "chw_pumping_type": 'const_pri_var_sec',
937
+ "chiller_cooling_type": 'WaterCooled',
938
+ "chiller_condenser_type": nil,
939
+ "chiller_compressor_type": 'Centrifugal',
940
+ "chw_number_chillers": num_chillers,
941
+ "number_cooling_towers": num_chillers,
942
+ "space_names": hotel_common_spaces
930
943
  }
931
944
  new_json.push(hotel_common_hvac_obj)
932
945
  end
@@ -1031,5 +1044,4 @@ module TallBuilding
1031
1044
  end
1032
1045
  end
1033
1046
  end
1034
-
1035
1047
  end