openstudio-standards 0.4.0 → 0.5.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (378) hide show
  1. checksums.yaml +4 -4
  2. data/LICENSE.md +33 -0
  3. data/data/inventory/thermal_bridging.csv +90 -0
  4. data/data/standards/OpenStudio_Standards-deer-comstock.xlsx +0 -0
  5. data/data/standards/manage_OpenStudio_Standards.rb +1 -1
  6. data/data/standards/test_performance_expected_dd_results.csv +2014 -1891
  7. data/lib/openstudio-standards/btap/analysis.rb +8 -8
  8. data/lib/openstudio-standards/btap/bridging.rb +664 -645
  9. data/lib/openstudio-standards/btap/btap.model.rb +14 -14
  10. data/lib/openstudio-standards/btap/btap.rb +7 -7
  11. data/lib/openstudio-standards/btap/btap_result.rb +1 -1
  12. data/lib/openstudio-standards/btap/economics.rb +23 -23
  13. data/lib/openstudio-standards/btap/envelope.rb +8 -8
  14. data/lib/openstudio-standards/btap/equest.rb +1 -1
  15. data/lib/openstudio-standards/btap/geometry.rb +2 -2
  16. data/lib/openstudio-standards/btap/mpc.rb +7 -7
  17. data/lib/openstudio-standards/btap/schedules.rb +1 -1
  18. data/lib/openstudio-standards/btap/simmanager.rb +4 -4
  19. data/lib/openstudio-standards/btap/spaceloads.rb +26 -26
  20. data/lib/openstudio-standards/btap/utilities.rb +6 -6
  21. data/lib/openstudio-standards/btap/vintagizer.rb +1 -1
  22. data/lib/openstudio-standards/constructions/information.rb +83 -0
  23. data/lib/openstudio-standards/constructions/materials/modify.rb +72 -0
  24. data/lib/openstudio-standards/constructions/modify.rb +80 -0
  25. data/lib/openstudio-standards/create_typical/create_typical.rb +983 -0
  26. data/lib/openstudio-standards/create_typical/enumerations.rb +484 -0
  27. data/lib/openstudio-standards/create_typical/space_type_blend.rb +791 -0
  28. data/lib/openstudio-standards/create_typical/space_type_ratios.rb +494 -0
  29. data/lib/openstudio-standards/daylighting/space.rb +47 -0
  30. data/lib/openstudio-standards/geometry/create.rb +801 -0
  31. data/lib/openstudio-standards/geometry/create_bar.rb +2170 -0
  32. data/lib/openstudio-standards/geometry/information.rb +462 -0
  33. data/lib/openstudio-standards/geometry/modify.rb +48 -0
  34. data/lib/openstudio-standards/hvac/air_loop/information.rb +79 -0
  35. data/lib/openstudio-standards/hvac/cbecs_hvac.rb +616 -0
  36. data/lib/openstudio-standards/hvac/setpoint_managers/information.rb +91 -0
  37. data/lib/openstudio-standards/prototypes/ashrae_90_1/ashrae_90_1_2004/ashrae_90_1_2004.AirTerminalSingleDuctVAVReheat.rb +1 -1
  38. data/lib/openstudio-standards/prototypes/ashrae_90_1/ashrae_90_1_2007/ashrae_90_1_2007.AirTerminalSingleDuctVAVReheat.rb +1 -1
  39. data/lib/openstudio-standards/prototypes/ashrae_90_1/ashrae_90_1_2010/ashrae_90_1_2010.AirTerminalSingleDuctVAVReheat.rb +1 -1
  40. data/lib/openstudio-standards/prototypes/ashrae_90_1/ashrae_90_1_2010/ashrae_90_1_2010.Model.rb +1 -1
  41. data/lib/openstudio-standards/prototypes/ashrae_90_1/ashrae_90_1_2013/ashrae_90_1_2013.AirTerminalSingleDuctVAVReheat.rb +1 -1
  42. data/lib/openstudio-standards/prototypes/ashrae_90_1/ashrae_90_1_2013/ashrae_90_1_2013.Model.rb +2 -2
  43. data/lib/openstudio-standards/prototypes/ashrae_90_1/ashrae_90_1_2013/ashrae_90_1_2013.hvac_systems.rb +1 -1
  44. data/lib/openstudio-standards/prototypes/ashrae_90_1/ashrae_90_1_2016/ashrae_90_1_2016.AirTerminalSingleDuctVAVReheat.rb +1 -1
  45. data/lib/openstudio-standards/prototypes/ashrae_90_1/ashrae_90_1_2016/ashrae_90_1_2016.Model.rb +4 -36
  46. data/lib/openstudio-standards/prototypes/ashrae_90_1/ashrae_90_1_2016/ashrae_90_1_2016.hvac_systems.rb +1 -1
  47. data/lib/openstudio-standards/prototypes/ashrae_90_1/ashrae_90_1_2019/ashrae_90_1_2019.AirTerminalSingleDuctVAVReheat.rb +1 -1
  48. data/lib/openstudio-standards/prototypes/ashrae_90_1/ashrae_90_1_2019/ashrae_90_1_2019.Model.rb +4 -36
  49. data/lib/openstudio-standards/prototypes/ashrae_90_1/ashrae_90_1_2019/ashrae_90_1_2019.Space.rb +3 -3
  50. data/lib/openstudio-standards/prototypes/ashrae_90_1/ashrae_90_1_2019/ashrae_90_1_2019.hvac_systems.rb +1 -1
  51. data/lib/openstudio-standards/prototypes/ashrae_90_1/doe_ref_1980_2004/doe_ref_1980_2004.AirTerminalSingleDuctVAVReheat.rb +1 -1
  52. data/lib/openstudio-standards/prototypes/ashrae_90_1/doe_ref_1980_2004/doe_ref_1980_2004.Model.elevators.rb +1 -1
  53. data/lib/openstudio-standards/prototypes/ashrae_90_1/doe_ref_pre_1980/doe_ref_pre_1980.AirTerminalSingleDuctVAVReheat.rb +1 -1
  54. data/lib/openstudio-standards/prototypes/ashrae_90_1/doe_ref_pre_1980/doe_ref_pre_1980.CoilHeatingGas.rb +1 -1
  55. data/lib/openstudio-standards/prototypes/ashrae_90_1/doe_ref_pre_1980/doe_ref_pre_1980.Model.elevators.rb +1 -1
  56. data/lib/openstudio-standards/prototypes/ashrae_90_1/nrel_nze_ready_2017/nrel_zne_ready_2017.AirTerminalSingleDuctVAVReheat.rb +1 -1
  57. data/lib/openstudio-standards/prototypes/ashrae_90_1/ze_aedg_multifamily/ze_aedg_multifamily.AirTerminalSingleDuctVAVReheat.rb +1 -1
  58. data/lib/openstudio-standards/prototypes/common/buildings/Prototype.College.rb +7 -7
  59. data/lib/openstudio-standards/prototypes/common/buildings/Prototype.Courthouse.rb +8 -8
  60. data/lib/openstudio-standards/prototypes/common/buildings/Prototype.FullServiceRestaurant.rb +14 -14
  61. data/lib/openstudio-standards/prototypes/common/buildings/Prototype.HighRiseApartment.rb +9 -9
  62. data/lib/openstudio-standards/prototypes/common/buildings/Prototype.Hospital.rb +16 -16
  63. data/lib/openstudio-standards/prototypes/common/buildings/Prototype.Laboratory.rb +7 -7
  64. data/lib/openstudio-standards/prototypes/common/buildings/Prototype.LargeDataCenterHighITE.rb +8 -8
  65. data/lib/openstudio-standards/prototypes/common/buildings/Prototype.LargeDataCenterLowITE.rb +8 -8
  66. data/lib/openstudio-standards/prototypes/common/buildings/Prototype.LargeHotel.rb +11 -11
  67. data/lib/openstudio-standards/prototypes/common/buildings/Prototype.LargeOffice.rb +7 -7
  68. data/lib/openstudio-standards/prototypes/common/buildings/Prototype.LargeOfficeDetailed.rb +9 -9
  69. data/lib/openstudio-standards/prototypes/common/buildings/Prototype.MediumOffice.rb +8 -8
  70. data/lib/openstudio-standards/prototypes/common/buildings/Prototype.MediumOfficeDetailed.rb +11 -11
  71. data/lib/openstudio-standards/prototypes/common/buildings/Prototype.MidriseApartment.rb +9 -9
  72. data/lib/openstudio-standards/prototypes/common/buildings/Prototype.Outpatient.rb +19 -19
  73. data/lib/openstudio-standards/prototypes/common/buildings/Prototype.PrimarySchool.rb +10 -10
  74. data/lib/openstudio-standards/prototypes/common/buildings/Prototype.QuickServiceRestaurant.rb +13 -13
  75. data/lib/openstudio-standards/prototypes/common/buildings/Prototype.RetailStandalone.rb +6 -6
  76. data/lib/openstudio-standards/prototypes/common/buildings/Prototype.RetailStripmall.rb +6 -6
  77. data/lib/openstudio-standards/prototypes/common/buildings/Prototype.SecondarySchool.rb +9 -9
  78. data/lib/openstudio-standards/prototypes/common/buildings/Prototype.SmallDataCenterHighITE.rb +8 -8
  79. data/lib/openstudio-standards/prototypes/common/buildings/Prototype.SmallDataCenterLowITE.rb +8 -8
  80. data/lib/openstudio-standards/prototypes/common/buildings/Prototype.SmallHotel.rb +8 -8
  81. data/lib/openstudio-standards/prototypes/common/buildings/Prototype.SmallOffice.rb +8 -8
  82. data/lib/openstudio-standards/prototypes/common/buildings/Prototype.SmallOfficeDetailed.rb +11 -11
  83. data/lib/openstudio-standards/prototypes/common/buildings/Prototype.SuperMarket.rb +10 -10
  84. data/lib/openstudio-standards/prototypes/common/buildings/Prototype.SuperTallBuilding.rb +19 -19
  85. data/lib/openstudio-standards/prototypes/common/buildings/Prototype.TallBuilding.rb +18 -18
  86. data/lib/openstudio-standards/prototypes/common/buildings/Prototype.Warehouse.rb +6 -6
  87. data/lib/openstudio-standards/prototypes/common/do_not_edit_metaclasses.rb +957 -957
  88. data/lib/openstudio-standards/prototypes/common/objects/Prototype.AirConditionerVariableRefrigerantFlow.rb +1 -1
  89. data/lib/openstudio-standards/prototypes/common/objects/Prototype.AirTerminalSingleDuctVAVReheat.rb +1 -1
  90. data/lib/openstudio-standards/prototypes/common/objects/Prototype.CoilCoolingWaterToAirHeatPumpEquationFit.rb +84 -16
  91. data/lib/openstudio-standards/prototypes/common/objects/Prototype.CoilHeatingDXSingleSpeed.rb +1 -1
  92. data/lib/openstudio-standards/prototypes/common/objects/Prototype.CoilHeatingGas.rb +1 -1
  93. data/lib/openstudio-standards/prototypes/common/objects/Prototype.CoilHeatingWaterToAirHeatPumpEquationFit.rb +61 -10
  94. data/lib/openstudio-standards/prototypes/common/objects/Prototype.ControllerWaterCoil.rb +1 -1
  95. data/lib/openstudio-standards/prototypes/common/objects/Prototype.CoolingTower.rb +1 -1
  96. data/lib/openstudio-standards/prototypes/common/objects/Prototype.Fan.rb +1 -1
  97. data/lib/openstudio-standards/prototypes/common/objects/Prototype.FanConstantVolume.rb +1 -1
  98. data/lib/openstudio-standards/prototypes/common/objects/Prototype.FanOnOff.rb +1 -1
  99. data/lib/openstudio-standards/prototypes/common/objects/Prototype.FanVariableVolume.rb +1 -1
  100. data/lib/openstudio-standards/prototypes/common/objects/Prototype.FanZoneExhaust.rb +1 -1
  101. data/lib/openstudio-standards/prototypes/common/objects/Prototype.HeatExchangerAirToAirSensibleAndLatent.rb +2 -2
  102. data/lib/openstudio-standards/prototypes/common/objects/Prototype.Model.exterior_lights.rb +4 -4
  103. data/lib/openstudio-standards/prototypes/common/objects/Prototype.Model.hvac.rb +4 -4
  104. data/lib/openstudio-standards/prototypes/common/objects/Prototype.Model.rb +43 -30
  105. data/lib/openstudio-standards/prototypes/common/objects/Prototype.Model.swh.rb +1 -1
  106. data/lib/openstudio-standards/prototypes/common/objects/Prototype.ServiceWaterHeating.rb +18 -11
  107. data/lib/openstudio-standards/prototypes/common/objects/Prototype.SizingSystem.rb +1 -1
  108. data/lib/openstudio-standards/prototypes/common/objects/Prototype.hvac_systems.rb +774 -117
  109. data/lib/openstudio-standards/prototypes/common/objects/Prototype.radiant_system_controls.rb +340 -481
  110. data/lib/openstudio-standards/prototypes/common/objects/Prototype.refrigeration.rb +3 -3
  111. data/lib/openstudio-standards/prototypes/common/objects/Prototype.utilities.rb +3 -3
  112. data/lib/openstudio-standards/prototypes/common/prototype_metaprogramming.rb +22 -22
  113. data/lib/openstudio-standards/prototypes/deer/deer.Model.rb +1 -1
  114. data/lib/openstudio-standards/qaqc/calibration.rb +131 -0
  115. data/lib/openstudio-standards/qaqc/create_results.rb +983 -0
  116. data/lib/openstudio-standards/qaqc/envelope.rb +399 -0
  117. data/lib/openstudio-standards/qaqc/eui.rb +213 -0
  118. data/lib/openstudio-standards/qaqc/hvac.rb +1943 -0
  119. data/lib/openstudio-standards/qaqc/internal_loads.rb +568 -0
  120. data/lib/openstudio-standards/qaqc/reporting.rb +141 -0
  121. data/lib/openstudio-standards/qaqc/schedules.rb +129 -0
  122. data/lib/openstudio-standards/qaqc/service_water_heating.rb +273 -0
  123. data/lib/openstudio-standards/qaqc/weather_files.rb +497 -0
  124. data/lib/openstudio-standards/qaqc/zone_conditions.rb +278 -0
  125. data/lib/openstudio-standards/schedules/create.rb +364 -0
  126. data/lib/openstudio-standards/schedules/information.rb +169 -0
  127. data/lib/openstudio-standards/schedules/modify.rb +445 -0
  128. data/lib/openstudio-standards/standards/Standards.AirLoopHVAC.rb +110 -71
  129. data/lib/openstudio-standards/standards/Standards.AirTerminalSingleDuctParallelPIUReheat.rb +3 -3
  130. data/lib/openstudio-standards/standards/Standards.AirTerminalSingleDuctVAVReheat.rb +4 -4
  131. data/lib/openstudio-standards/standards/Standards.BoilerHotWater.rb +2 -1
  132. data/lib/openstudio-standards/standards/Standards.ChillerElectricEIR.rb +16 -10
  133. data/lib/openstudio-standards/standards/Standards.CoilCoolingDXSingleSpeed.rb +4 -4
  134. data/lib/openstudio-standards/standards/Standards.CoilCoolingDXTwoSpeed.rb +1 -1
  135. data/lib/openstudio-standards/standards/Standards.CoilCoolingWaterToAirHeatPumpEquationFit.rb +1 -1
  136. data/lib/openstudio-standards/standards/Standards.CoilDX.rb +4 -4
  137. data/lib/openstudio-standards/standards/Standards.CoilHeatingDXMultiSpeed.rb +1 -1
  138. data/lib/openstudio-standards/standards/Standards.CoilHeatingDXSingleSpeed.rb +5 -5
  139. data/lib/openstudio-standards/standards/Standards.CoilHeatingGas.rb +1 -1
  140. data/lib/openstudio-standards/standards/Standards.CoilHeatingGasMultiStage.rb +1 -1
  141. data/lib/openstudio-standards/standards/Standards.CoilHeatingWaterToAirHeatPumpEquationFit.rb +1 -1
  142. data/lib/openstudio-standards/standards/Standards.Construction.rb +17 -18
  143. data/lib/openstudio-standards/standards/Standards.CoolingTower.rb +6 -6
  144. data/lib/openstudio-standards/standards/Standards.CoolingTowerSingleSpeed.rb +1 -1
  145. data/lib/openstudio-standards/standards/Standards.CoolingTowerTwoSpeed.rb +1 -1
  146. data/lib/openstudio-standards/standards/Standards.CoolingTowerVariableSpeed.rb +1 -1
  147. data/lib/openstudio-standards/standards/Standards.Fan.rb +6 -12
  148. data/lib/openstudio-standards/standards/Standards.FanVariableVolume.rb +2 -2
  149. data/lib/openstudio-standards/standards/Standards.FluidCooler.rb +1 -1
  150. data/lib/openstudio-standards/standards/Standards.HeaderedPumpsVariableSpeed.rb +1 -1
  151. data/lib/openstudio-standards/standards/Standards.HeatExchangerSensLat.rb +3 -3
  152. data/lib/openstudio-standards/standards/Standards.Model.rb +411 -261
  153. data/lib/openstudio-standards/standards/Standards.PlanarSurface.rb +2 -2
  154. data/lib/openstudio-standards/standards/Standards.PlantLoop.rb +94 -29
  155. data/lib/openstudio-standards/standards/Standards.Pump.rb +2 -2
  156. data/lib/openstudio-standards/standards/Standards.ScheduleConstant.rb +2 -2
  157. data/lib/openstudio-standards/standards/Standards.ScheduleRuleset.rb +14 -14
  158. data/lib/openstudio-standards/standards/Standards.Space.rb +37 -30
  159. data/lib/openstudio-standards/standards/Standards.SpaceType.rb +38 -29
  160. data/lib/openstudio-standards/standards/Standards.SubSurface.rb +7 -7
  161. data/lib/openstudio-standards/standards/Standards.Surface.rb +13 -13
  162. data/lib/openstudio-standards/standards/Standards.ThermalZone.rb +109 -66
  163. data/lib/openstudio-standards/standards/Standards.WaterHeaterMixed.rb +11 -4
  164. data/lib/openstudio-standards/standards/Standards.ZoneHVACComponent.rb +6 -6
  165. data/lib/openstudio-standards/standards/ashrae_90_1/ashrae_90_1_2004/ashrae_90_1_2004.AirLoopHVAC.rb +1 -1
  166. data/lib/openstudio-standards/standards/ashrae_90_1/ashrae_90_1_2004/ashrae_90_1_2004.PlantLoop.rb +1 -1
  167. data/lib/openstudio-standards/standards/ashrae_90_1/ashrae_90_1_2004/ashrae_90_1_2004.Space.rb +1 -1
  168. data/lib/openstudio-standards/standards/ashrae_90_1/ashrae_90_1_2007/ashrae_90_1_2007.Space.rb +1 -1
  169. data/lib/openstudio-standards/standards/ashrae_90_1/ashrae_90_1_2010/ashrae_90_1_2010.AirLoopHVAC.rb +4 -4
  170. data/lib/openstudio-standards/standards/ashrae_90_1/ashrae_90_1_2010/ashrae_90_1_2010.AirTerminalSingleDuctVAVReheat.rb +1 -1
  171. data/lib/openstudio-standards/standards/ashrae_90_1/ashrae_90_1_2010/ashrae_90_1_2010.Space.rb +4 -4
  172. data/lib/openstudio-standards/standards/ashrae_90_1/ashrae_90_1_2013/ashrae_90_1_2013.AirLoopHVAC.rb +4 -4
  173. data/lib/openstudio-standards/standards/ashrae_90_1/ashrae_90_1_2013/ashrae_90_1_2013.AirTerminalSingleDuctVAVReheat.rb +1 -1
  174. data/lib/openstudio-standards/standards/ashrae_90_1/ashrae_90_1_2013/ashrae_90_1_2013.CoolingTowerVariableSpeed.rb +1 -1
  175. data/lib/openstudio-standards/standards/ashrae_90_1/ashrae_90_1_2013/ashrae_90_1_2013.Model.rb +5 -21
  176. data/lib/openstudio-standards/standards/ashrae_90_1/ashrae_90_1_2013/ashrae_90_1_2013.Space.rb +4 -4
  177. data/lib/openstudio-standards/standards/ashrae_90_1/ashrae_90_1_2013/ashrae_90_1_2013.WaterHeaterMixed.rb +1 -1
  178. data/lib/openstudio-standards/standards/ashrae_90_1/ashrae_90_1_2013/ashrae_90_1_2013.ZoneHVACComponent.rb +1 -1
  179. data/lib/openstudio-standards/standards/ashrae_90_1/ashrae_90_1_2016/ashrae_90_1_2016.AirLoopHVAC.rb +36 -4
  180. data/lib/openstudio-standards/standards/ashrae_90_1/ashrae_90_1_2016/ashrae_90_1_2016.AirTerminalSingleDuctVAVReheat.rb +1 -1
  181. data/lib/openstudio-standards/standards/ashrae_90_1/ashrae_90_1_2016/ashrae_90_1_2016.CoolingTowerVariableSpeed.rb +1 -1
  182. data/lib/openstudio-standards/standards/ashrae_90_1/ashrae_90_1_2016/ashrae_90_1_2016.Space.rb +4 -4
  183. data/lib/openstudio-standards/standards/ashrae_90_1/ashrae_90_1_2016/ashrae_90_1_2016.ZoneHVACComponent.rb +1 -1
  184. data/lib/openstudio-standards/standards/ashrae_90_1/ashrae_90_1_2016/comstock_ashrae_90_1_2016/comstock_ashrae_90_1_2016.AirLoopHVAC.rb +26 -0
  185. data/lib/openstudio-standards/standards/ashrae_90_1/ashrae_90_1_2019/ashrae_90_1_2019.AirLoopHVAC.rb +53 -10
  186. data/lib/openstudio-standards/standards/ashrae_90_1/ashrae_90_1_2019/ashrae_90_1_2019.AirTerminalSingleDuctVAVReheat.rb +1 -1
  187. data/lib/openstudio-standards/standards/ashrae_90_1/ashrae_90_1_2019/ashrae_90_1_2019.CoolingTowerVariableSpeed.rb +1 -1
  188. data/lib/openstudio-standards/standards/ashrae_90_1/ashrae_90_1_2019/ashrae_90_1_2019.Space.rb +6 -6
  189. data/lib/openstudio-standards/standards/ashrae_90_1/ashrae_90_1_2019/ashrae_90_1_2019.ZoneHVACComponent.rb +2 -2
  190. data/lib/openstudio-standards/standards/ashrae_90_1/ashrae_90_1_2019/comstock_ashrae_90_1_2019/comstock_ashrae_90_1_2019.AirLoopHVAC.rb +26 -0
  191. data/lib/openstudio-standards/standards/ashrae_90_1/data/ashrae_90_1.curves.json +211 -211
  192. data/lib/openstudio-standards/standards/ashrae_90_1/doe_ref_1980_2004/data/doe_ref_1980_2004.economizers.json +14 -14
  193. data/lib/openstudio-standards/standards/ashrae_90_1/doe_ref_1980_2004/doe_ref_1980_2004.AirLoopHVAC.rb +4 -4
  194. data/lib/openstudio-standards/standards/ashrae_90_1/doe_ref_1980_2004/doe_ref_1980_2004.Model.rb +1 -1
  195. data/lib/openstudio-standards/standards/ashrae_90_1/doe_ref_1980_2004/doe_ref_1980_2004.PlantLoop.rb +1 -1
  196. data/lib/openstudio-standards/standards/ashrae_90_1/doe_ref_pre_1980/data/doe_ref_pre_1980.economizers.json +14 -14
  197. data/lib/openstudio-standards/standards/ashrae_90_1/doe_ref_pre_1980/doe_ref_pre_1980.AirLoopHVAC.rb +4 -4
  198. data/lib/openstudio-standards/standards/ashrae_90_1/doe_ref_pre_1980/doe_ref_pre_1980.Model.rb +1 -1
  199. data/lib/openstudio-standards/standards/ashrae_90_1/doe_ref_pre_1980/doe_ref_pre_1980.PlantLoop.rb +1 -1
  200. data/lib/openstudio-standards/standards/ashrae_90_1/nrel_zne_ready_2017/nrel_zne_ready_2017.AirLoopHVAC.rb +6 -6
  201. data/lib/openstudio-standards/standards/ashrae_90_1/nrel_zne_ready_2017/nrel_zne_ready_2017.AirTerminalSingleDuctVAVReheat.rb +1 -1
  202. data/lib/openstudio-standards/standards/ashrae_90_1/nrel_zne_ready_2017/nrel_zne_ready_2017.CoolingTowerVariableSpeed.rb +1 -1
  203. data/lib/openstudio-standards/standards/ashrae_90_1/nrel_zne_ready_2017/nrel_zne_ready_2017.PlantLoop.rb +1 -1
  204. data/lib/openstudio-standards/standards/ashrae_90_1/nrel_zne_ready_2017/nrel_zne_ready_2017.Space.rb +4 -4
  205. data/lib/openstudio-standards/standards/ashrae_90_1/ze_aedg_multifamily/ze_aedg_multifamily.AirLoopHVAC.rb +6 -6
  206. data/lib/openstudio-standards/standards/ashrae_90_1/ze_aedg_multifamily/ze_aedg_multifamily.AirTerminalSingleDuctVAVReheat.rb +1 -1
  207. data/lib/openstudio-standards/standards/ashrae_90_1/ze_aedg_multifamily/ze_aedg_multifamily.CoolingTowerVariableSpeed.rb +1 -1
  208. data/lib/openstudio-standards/standards/ashrae_90_1/ze_aedg_multifamily/ze_aedg_multifamily.PlantLoop.rb +1 -1
  209. data/lib/openstudio-standards/standards/ashrae_90_1/ze_aedg_multifamily/ze_aedg_multifamily.Space.rb +4 -4
  210. data/lib/openstudio-standards/standards/ashrae_90_1_prm/ashrae_90_1_prm.AirLoopHVAC.rb +22 -28
  211. data/lib/openstudio-standards/standards/ashrae_90_1_prm/ashrae_90_1_prm.AirTerminalSingleDuctParallelPIUReheat.rb +1 -1
  212. data/lib/openstudio-standards/standards/ashrae_90_1_prm/ashrae_90_1_prm.AirTerminalSingleDuctVAVReheat.rb +2 -2
  213. data/lib/openstudio-standards/standards/ashrae_90_1_prm/ashrae_90_1_prm.BoilerHotWater.rb +1 -74
  214. data/lib/openstudio-standards/standards/ashrae_90_1_prm/ashrae_90_1_prm.ChillerElectricEIR.rb +7 -59
  215. data/lib/openstudio-standards/standards/ashrae_90_1_prm/ashrae_90_1_prm.CoilCoolingDXSingleSpeed.rb +1 -1
  216. data/lib/openstudio-standards/standards/ashrae_90_1_prm/ashrae_90_1_prm.CoilCoolingDXTwoSpeed.rb +1 -1
  217. data/lib/openstudio-standards/standards/ashrae_90_1_prm/ashrae_90_1_prm.CoilDX.rb +1 -1
  218. data/lib/openstudio-standards/standards/ashrae_90_1_prm/ashrae_90_1_prm.CoilHeatingDXSingleSpeed.rb +1 -1
  219. data/lib/openstudio-standards/standards/ashrae_90_1_prm/ashrae_90_1_prm.CoilHeatingGas.rb +1 -21
  220. data/lib/openstudio-standards/standards/ashrae_90_1_prm/ashrae_90_1_prm.DesignSpecificationOutdoorAir.rb +101 -0
  221. data/lib/openstudio-standards/standards/ashrae_90_1_prm/ashrae_90_1_prm.FanConstantVolume.rb +1 -1
  222. data/lib/openstudio-standards/standards/ashrae_90_1_prm/ashrae_90_1_prm.FanOnOff.rb +1 -1
  223. data/lib/openstudio-standards/standards/ashrae_90_1_prm/ashrae_90_1_prm.FanVariableVolume.rb +1 -1
  224. data/lib/openstudio-standards/standards/ashrae_90_1_prm/ashrae_90_1_prm.HeatExchangerSensLat.rb +1 -1
  225. data/lib/openstudio-standards/standards/ashrae_90_1_prm/ashrae_90_1_prm.Model.rb +643 -526
  226. data/lib/openstudio-standards/standards/ashrae_90_1_prm/ashrae_90_1_prm.PlanarSurface.rb +8 -2
  227. data/lib/openstudio-standards/standards/ashrae_90_1_prm/ashrae_90_1_prm.PlantLoop.rb +17 -77
  228. data/lib/openstudio-standards/standards/ashrae_90_1_prm/ashrae_90_1_prm.Space.rb +74 -16
  229. data/lib/openstudio-standards/standards/ashrae_90_1_prm/ashrae_90_1_prm.SpaceType.rb +96 -44
  230. data/lib/openstudio-standards/standards/ashrae_90_1_prm/ashrae_90_1_prm.Surface.rb +6 -6
  231. data/lib/openstudio-standards/standards/ashrae_90_1_prm/ashrae_90_1_prm.ThermalZone.rb +18 -6
  232. data/lib/openstudio-standards/standards/ashrae_90_1_prm/ashrae_90_1_prm.ZoneHVACComponent.rb +1 -1
  233. data/lib/openstudio-standards/standards/ashrae_90_1_prm/ashrae_90_1_prm.rb +328 -74
  234. data/lib/openstudio-standards/standards/ashrae_90_1_prm/ashrae_90_1_prm_2019/ashrae_90_1_prm_2019.Model.rb +0 -118
  235. data/lib/openstudio-standards/standards/ashrae_90_1_prm/ashrae_90_1_prm_2019/ashrae_90_1_prm_2019.rb +2 -1
  236. data/lib/openstudio-standards/standards/ashrae_90_1_prm/ashrae_90_1_prm_2019/data/ashrae_90_1_prm_2019.heat_rejection.json +1 -1
  237. data/lib/openstudio-standards/standards/ashrae_90_1_prm/docs/baseline_outdoor_air.md +35 -0
  238. data/lib/openstudio-standards/standards/ashrae_90_1_prm/docs/set_plug_load_measures.md +1 -1
  239. data/lib/openstudio-standards/standards/ashrae_90_1_prm/userdata_csv/ashrae_90_1_prm.UserData.rb +228 -0
  240. data/lib/openstudio-standards/standards/ashrae_90_1_prm/userdata_csv/userdata_enums.rb +131 -0
  241. data/lib/openstudio-standards/standards/ashrae_90_1_prm/userdata_csv/userdata_space.csv +1 -1
  242. data/lib/openstudio-standards/standards/cbes/cbes.AirLoopHVAC.rb +5 -5
  243. data/lib/openstudio-standards/standards/cbes/cbes.Model.rb +1 -1
  244. data/lib/openstudio-standards/standards/cbes/cbes.PlantLoop.rb +1 -1
  245. data/lib/openstudio-standards/standards/cbes/cbes.Space.rb +1 -1
  246. data/lib/openstudio-standards/standards/cbes/cbes_t24_2005/cbes_t24_2005.Space.rb +1 -1
  247. data/lib/openstudio-standards/standards/cbes/cbes_t24_2008/cbes_t24_2008.Space.rb +1 -1
  248. data/lib/openstudio-standards/standards/deer/deer.AirLoopHVAC.rb +109 -27
  249. data/lib/openstudio-standards/standards/deer/deer.Space.rb +1 -1
  250. data/lib/openstudio-standards/standards/deer/deer_1985/data/deer_1985.economizers.json +246 -4
  251. data/lib/openstudio-standards/standards/deer/deer_1996/data/deer_1996.economizers.json +246 -4
  252. data/lib/openstudio-standards/standards/deer/deer_2003/data/deer_2003.economizers.json +246 -4
  253. data/lib/openstudio-standards/standards/deer/deer_2003/deer_2003.ThermalZone.rb +18 -18
  254. data/lib/openstudio-standards/standards/deer/deer_2007/data/deer_2007.economizers.json +246 -4
  255. data/lib/openstudio-standards/standards/deer/deer_2007/deer_2007.ThermalZone.rb +18 -18
  256. data/lib/openstudio-standards/standards/deer/deer_2011/data/deer_2011.economizers.json +246 -4
  257. data/lib/openstudio-standards/standards/deer/deer_2011/deer_2011.ThermalZone.rb +18 -18
  258. data/lib/openstudio-standards/standards/deer/deer_2014/data/deer_2014.economizers.json +248 -6
  259. data/lib/openstudio-standards/standards/deer/deer_2014/deer_2014.Space.rb +3 -3
  260. data/lib/openstudio-standards/standards/deer/deer_2014/deer_2014.ThermalZone.rb +18 -18
  261. data/lib/openstudio-standards/standards/deer/deer_2015/data/deer_2015.economizers.json +248 -6
  262. data/lib/openstudio-standards/standards/deer/deer_2015/deer_2015.Space.rb +3 -3
  263. data/lib/openstudio-standards/standards/deer/deer_2015/deer_2015.ThermalZone.rb +18 -18
  264. data/lib/openstudio-standards/standards/deer/deer_2017/data/deer_2017.economizers.json +248 -6
  265. data/lib/openstudio-standards/standards/deer/deer_2017/deer_2017.Space.rb +3 -3
  266. data/lib/openstudio-standards/standards/deer/deer_2017/deer_2017.ThermalZone.rb +18 -18
  267. data/lib/openstudio-standards/standards/deer/deer_2020/data/deer_2020.economizers.json +248 -6
  268. data/lib/openstudio-standards/standards/deer/deer_2020/deer_2020.AirLoopHVAC.rb +18 -5
  269. data/lib/openstudio-standards/standards/deer/deer_2020/deer_2020.FanVariableVolume.rb +1 -1
  270. data/lib/openstudio-standards/standards/deer/deer_2020/deer_2020.Space.rb +3 -3
  271. data/lib/openstudio-standards/standards/deer/deer_2020/deer_2020.ThermalZone.rb +18 -18
  272. data/lib/openstudio-standards/standards/deer/deer_2025/data/deer_2025.economizers.json +248 -6
  273. data/lib/openstudio-standards/standards/deer/deer_2025/deer_2025.AirLoopHVAC.rb +3 -3
  274. data/lib/openstudio-standards/standards/deer/deer_2025/deer_2025.FanVariableVolume.rb +1 -1
  275. data/lib/openstudio-standards/standards/deer/deer_2025/deer_2025.Space.rb +3 -3
  276. data/lib/openstudio-standards/standards/deer/deer_2030/data/deer_2030.economizers.json +248 -6
  277. data/lib/openstudio-standards/standards/deer/deer_2030/data/deer_2030.heat_pumps.json +2 -2
  278. data/lib/openstudio-standards/standards/deer/deer_2030/deer_2030.AirLoopHVAC.rb +3 -3
  279. data/lib/openstudio-standards/standards/deer/deer_2030/deer_2030.FanVariableVolume.rb +1 -1
  280. data/lib/openstudio-standards/standards/deer/deer_2030/deer_2030.Space.rb +3 -3
  281. data/lib/openstudio-standards/standards/deer/deer_2035/data/deer_2035.economizers.json +248 -6
  282. data/lib/openstudio-standards/standards/deer/deer_2035/deer_2035.AirLoopHVAC.rb +3 -3
  283. data/lib/openstudio-standards/standards/deer/deer_2035/deer_2035.FanVariableVolume.rb +1 -1
  284. data/lib/openstudio-standards/standards/deer/deer_2035/deer_2035.Space.rb +3 -3
  285. data/lib/openstudio-standards/standards/deer/deer_2040/data/deer_2040.economizers.json +248 -6
  286. data/lib/openstudio-standards/standards/deer/deer_2040/deer_2040.AirLoopHVAC.rb +3 -3
  287. data/lib/openstudio-standards/standards/deer/deer_2040/deer_2040.FanVariableVolume.rb +1 -1
  288. data/lib/openstudio-standards/standards/deer/deer_2040/deer_2040.Space.rb +3 -3
  289. data/lib/openstudio-standards/standards/deer/deer_2045/data/deer_2045.economizers.json +260 -0
  290. data/lib/openstudio-standards/standards/deer/deer_2045/deer_2045.AirLoopHVAC.rb +3 -3
  291. data/lib/openstudio-standards/standards/deer/deer_2045/deer_2045.FanVariableVolume.rb +1 -1
  292. data/lib/openstudio-standards/standards/deer/deer_2045/deer_2045.Space.rb +3 -3
  293. data/lib/openstudio-standards/standards/deer/deer_2050/data/deer_2050.economizers.json +248 -6
  294. data/lib/openstudio-standards/standards/deer/deer_2050/deer_2050.AirLoopHVAC.rb +3 -3
  295. data/lib/openstudio-standards/standards/deer/deer_2050/deer_2050.FanVariableVolume.rb +1 -1
  296. data/lib/openstudio-standards/standards/deer/deer_2050/deer_2050.Space.rb +3 -3
  297. data/lib/openstudio-standards/standards/deer/deer_2055/data/deer_2055.economizers.json +248 -6
  298. data/lib/openstudio-standards/standards/deer/deer_2055/deer_2055.AirLoopHVAC.rb +3 -3
  299. data/lib/openstudio-standards/standards/deer/deer_2055/deer_2055.FanVariableVolume.rb +1 -1
  300. data/lib/openstudio-standards/standards/deer/deer_2055/deer_2055.Space.rb +3 -3
  301. data/lib/openstudio-standards/standards/deer/deer_2060/data/deer_2060.economizers.json +248 -6
  302. data/lib/openstudio-standards/standards/deer/deer_2060/deer_2060.AirLoopHVAC.rb +3 -3
  303. data/lib/openstudio-standards/standards/deer/deer_2060/deer_2060.FanVariableVolume.rb +1 -1
  304. data/lib/openstudio-standards/standards/deer/deer_2060/deer_2060.Space.rb +3 -3
  305. data/lib/openstudio-standards/standards/deer/deer_2065/data/deer_2065.economizers.json +248 -6
  306. data/lib/openstudio-standards/standards/deer/deer_2065/deer_2065.AirLoopHVAC.rb +3 -3
  307. data/lib/openstudio-standards/standards/deer/deer_2065/deer_2065.FanVariableVolume.rb +1 -1
  308. data/lib/openstudio-standards/standards/deer/deer_2065/deer_2065.Space.rb +3 -3
  309. data/lib/openstudio-standards/standards/deer/deer_2070/data/deer_2070.economizers.json +248 -6
  310. data/lib/openstudio-standards/standards/deer/deer_2070/deer_2070.AirLoopHVAC.rb +3 -3
  311. data/lib/openstudio-standards/standards/deer/deer_2070/deer_2070.FanVariableVolume.rb +1 -1
  312. data/lib/openstudio-standards/standards/deer/deer_2070/deer_2070.Space.rb +3 -3
  313. data/lib/openstudio-standards/standards/deer/deer_2075/data/deer_2075.economizers.json +248 -6
  314. data/lib/openstudio-standards/standards/deer/deer_2075/deer_2075.AirLoopHVAC.rb +3 -3
  315. data/lib/openstudio-standards/standards/deer/deer_2075/deer_2075.FanVariableVolume.rb +1 -1
  316. data/lib/openstudio-standards/standards/deer/deer_2075/deer_2075.Space.rb +3 -3
  317. data/lib/openstudio-standards/standards/deer/deer_pre_1975/data/deer_pre_1975.economizers.json +246 -4
  318. data/lib/openstudio-standards/standards/necb/BTAP1980TO2010/data/space_types.json +447 -223
  319. data/lib/openstudio-standards/standards/necb/BTAPPRE1980/building_envelope.rb +1 -1
  320. data/lib/openstudio-standards/standards/necb/BTAPPRE1980/data/space_types.json +447 -223
  321. data/lib/openstudio-standards/standards/necb/BTAPPRE1980/hvac_systems.rb +5 -2
  322. data/lib/openstudio-standards/standards/necb/ECMS/data/chiller_types.json +25 -0
  323. data/lib/openstudio-standards/standards/necb/ECMS/data/chillers.json +44 -0
  324. data/lib/openstudio-standards/standards/necb/ECMS/data/curves.json +225 -0
  325. data/lib/openstudio-standards/standards/necb/ECMS/ecms.rb +2 -2
  326. data/lib/openstudio-standards/standards/necb/ECMS/hvac_systems.rb +193 -73
  327. data/lib/openstudio-standards/standards/necb/ECMS/pv_ground.rb +1 -1
  328. data/lib/openstudio-standards/standards/necb/NECB2011/autozone.rb +10 -4
  329. data/lib/openstudio-standards/standards/necb/NECB2011/beps_compliance_path.rb +7 -7
  330. data/lib/openstudio-standards/standards/necb/NECB2011/building_envelope.rb +4 -5
  331. data/lib/openstudio-standards/standards/necb/NECB2011/data/chiller_types.json +32 -0
  332. data/lib/openstudio-standards/standards/necb/NECB2011/data/chillers.json +1 -1
  333. data/lib/openstudio-standards/standards/necb/NECB2011/data/constants.json +36 -0
  334. data/lib/openstudio-standards/standards/necb/NECB2011/data/fuel_type_sets.json +7 -7
  335. data/lib/openstudio-standards/standards/necb/NECB2011/data/geometry/NorthernEducation.osm +47587 -0
  336. data/lib/openstudio-standards/standards/necb/NECB2011/data/geometry/NorthernHealthCare.osm +49764 -0
  337. data/lib/openstudio-standards/standards/necb/NECB2011/data/geometry/Warehouse.osm +283 -297
  338. data/lib/openstudio-standards/standards/necb/NECB2011/data/space_type_unit_definitions.txt +2 -1
  339. data/lib/openstudio-standards/standards/necb/NECB2011/data/space_types.json +447 -223
  340. data/lib/openstudio-standards/standards/necb/NECB2011/data/standards_data.rb +3 -3
  341. data/lib/openstudio-standards/standards/necb/NECB2011/hvac_system_1_multi_speed.rb +1 -1
  342. data/lib/openstudio-standards/standards/necb/NECB2011/hvac_systems.rb +49 -27
  343. data/lib/openstudio-standards/standards/necb/NECB2011/necb_2011.rb +400 -202
  344. data/lib/openstudio-standards/standards/necb/NECB2011/service_water_heating.rb +4 -4
  345. data/lib/openstudio-standards/standards/necb/NECB2015/data/space_types.json +637 -318
  346. data/lib/openstudio-standards/standards/necb/NECB2015/hvac_systems.rb +18 -1
  347. data/lib/openstudio-standards/standards/necb/NECB2015/necb_2015.rb +3 -3
  348. data/lib/openstudio-standards/standards/necb/NECB2017/data/space_types.json +637 -318
  349. data/lib/openstudio-standards/standards/necb/NECB2017/hvac_systems.rb +1 -1
  350. data/lib/openstudio-standards/standards/necb/NECB2017/necb_2017.rb +3 -3
  351. data/lib/openstudio-standards/standards/necb/NECB2020/building_envelope.rb +1 -1
  352. data/lib/openstudio-standards/standards/necb/NECB2020/data/space_types.json +615 -307
  353. data/lib/openstudio-standards/standards/necb/NECB2020/service_water_heating.rb +4 -4
  354. data/lib/openstudio-standards/standards/necb/common/btap_data.rb +10 -5
  355. data/lib/openstudio-standards/standards/necb/common/btap_datapoint.rb +1 -1
  356. data/lib/openstudio-standards/utilities/assertion.rb +128 -0
  357. data/lib/openstudio-standards/utilities/logging.rb +2 -3
  358. data/lib/openstudio-standards/utilities/object_info.rb +39 -18
  359. data/lib/openstudio-standards/utilities/schedule_translator.rb +8 -6
  360. data/lib/openstudio-standards/utilities/simulation.rb +24 -11
  361. data/lib/openstudio-standards/utilities/sqlfile.rb +10 -5
  362. data/lib/openstudio-standards/version.rb +1 -1
  363. data/lib/openstudio-standards/weather/Weather.Model.rb +8 -9
  364. data/lib/openstudio-standards/weather/Weather.stat_file.rb +3 -3
  365. data/lib/openstudio-standards/weather/information.rb +35 -0
  366. data/lib/openstudio-standards.rb +69 -5
  367. metadata +54 -18
  368. data/License.txt +0 -65
  369. data/data/standards/OpenStudio_Standards-deer-ALL-comstock(space_types).xlsx +0 -0
  370. data/lib/openstudio-standards/hvac_sizing/Siz.AirLoopHVAC.rb +0 -59
  371. data/lib/openstudio-standards/hvac_sizing/Siz.CoilCoolingWater.rb +0 -13
  372. data/lib/openstudio-standards/hvac_sizing/Siz.HVACComponent.rb +0 -36
  373. data/lib/openstudio-standards/hvac_sizing/Siz.HeatingCoolingFuels.rb +0 -898
  374. data/lib/openstudio-standards/hvac_sizing/Siz.Model.rb +0 -126
  375. data/lib/openstudio-standards/hvac_sizing/Siz.ThermalZone.rb +0 -356
  376. data/lib/openstudio-standards/prototypes/ashrae_90_1/nrel_nze_ready_2017/nrel_zne_ready_2017.Model.rb +0 -35
  377. data/lib/openstudio-standards/standards/ashrae_90_1_prm/ashrae_90_1_prm.CoolingTower.rb +0 -110
  378. data/lib/openstudio-standards/standards/ashrae_90_1_prm/ashrae_90_1_prm.CoolingTowerVariableSpeed.rb +0 -5
@@ -0,0 +1,494 @@
1
+ # Methods to create available inputs for typical models
2
+ module OpenstudioStandards
3
+ module CreateTypical
4
+ # create hash of space types and generic ratios of building floor area.
5
+ # some building type and template combination are incompatible
6
+ #
7
+ # @param building_type [String] standard building type
8
+ # @param building_subtype [String] building subtype for large offices or warehouses
9
+ # @param template [String] standard template
10
+ # @param whole_building [Boolean] use a whole building space type for Office types
11
+ # @return [Hash] hash of space types
12
+ # @todo this method will be replaced with space type specific edits
13
+ # @todo enable each building type and template combination
14
+ def self.get_space_types_from_building_type(building_type,
15
+ building_subtype: nil,
16
+ template: nil,
17
+ whole_building: true)
18
+ hash = {}
19
+
20
+ # DOE Prototypes
21
+ if building_type == 'SecondarySchool'
22
+ if ['DOE Ref Pre-1980', 'DOE Ref 1980-2004', 'ComStock DOE Ref Pre-1980', 'ComStock DOE Ref 1980-2004'].include?(template)
23
+ hash['Auditorium'] = { ratio: 0.0504, space_type_gen: true, default: false, story_height: 26.0 }
24
+ hash['Cafeteria'] = { ratio: 0.0319, space_type_gen: true, default: false }
25
+ hash['Classroom'] = { ratio: 0.3528, space_type_gen: true, default: true }
26
+ hash['Corridor'] = { ratio: 0.2144, space_type_gen: true, default: false, circ: true }
27
+ hash['Gym'] = { ratio: 0.1009, space_type_gen: true, default: false, story_height: 26.0 }
28
+ hash['Gym - audience'] = { ratio: 0.0637, space_type_gen: true, default: false, story_height: 26.0 }
29
+ hash['Kitchen'] = { ratio: 0.0110, space_type_gen: true, default: false }
30
+ hash['Library'] = { ratio: 0.0429, space_type_gen: true, default: false }
31
+ hash['Lobby'] = { ratio: 0.0214, space_type_gen: true, default: false }
32
+ hash['Mechanical'] = { ratio: 0.0349, space_type_gen: true, default: false }
33
+ hash['Office'] = { ratio: 0.0543, space_type_gen: true, default: false }
34
+ hash['Restroom'] = { ratio: 0.0214, space_type_gen: true, default: false }
35
+ else
36
+ hash['Auditorium'] = { ratio: 0.0504, space_type_gen: true, default: false, story_height: 26.0 }
37
+ hash['Cafeteria'] = { ratio: 0.0319, space_type_gen: true, default: false }
38
+ hash['Classroom'] = { ratio: 0.3041, space_type_gen: true, default: true }
39
+ hash['ComputerRoom'] = { ratio: 0.0487, space_type_gen: true, default: true }
40
+ hash['Corridor'] = { ratio: 0.2144, space_type_gen: true, default: false, circ: true }
41
+ hash['Gym'] = { ratio: 0.1646, space_type_gen: true, default: false, story_height: 26.0 }
42
+ hash['Kitchen'] = { ratio: 0.0110, space_type_gen: true, default: false }
43
+ hash['Library'] = { ratio: 0.0429, space_type_gen: true, default: false }
44
+ hash['Lobby'] = { ratio: 0.0214, space_type_gen: true, default: false }
45
+ hash['Mechanical'] = { ratio: 0.0349, space_type_gen: true, default: false }
46
+ hash['Office'] = { ratio: 0.0543, space_type_gen: true, default: false }
47
+ hash['Restroom'] = { ratio: 0.0214, space_type_gen: true, default: false }
48
+ end
49
+ elsif building_type == 'PrimarySchool'
50
+ if ['DOE Ref Pre-1980', 'DOE Ref 1980-2004', 'ComStock DOE Ref Pre-1980', 'ComStock DOE Ref 1980-2004'].include?(template)
51
+ # updated to 2004 which includes library vs. pre-1980
52
+ hash['Cafeteria'] = { ratio: 0.0458, space_type_gen: true, default: false }
53
+ hash['Classroom'] = { ratio: 0.5610, space_type_gen: true, default: true }
54
+ hash['Corridor'] = { ratio: 0.1633, space_type_gen: true, default: false, circ: true }
55
+ hash['Gym'] = { ratio: 0.0520, space_type_gen: true, default: false }
56
+ hash['Kitchen'] = { ratio: 0.0244, space_type_gen: true, default: false }
57
+ hash['Library'] = { ratio: 0.0, space_type_gen: true, default: false } # no library in model
58
+ hash['Lobby'] = { ratio: 0.0249, space_type_gen: true, default: false }
59
+ hash['Mechanical'] = { ratio: 0.0367, space_type_gen: true, default: false }
60
+ hash['Office'] = { ratio: 0.0642, space_type_gen: true, default: false }
61
+ hash['Restroom'] = { ratio: 0.0277, space_type_gen: true, default: false }
62
+ else
63
+ # updated to 2004 which includes library vs. pre-1980
64
+ hash['Cafeteria'] = { ratio: 0.0458, space_type_gen: true, default: false }
65
+ hash['Classroom'] = { ratio: 0.4793, space_type_gen: true, default: true }
66
+ hash['ComputerRoom'] = { ratio: 0.0236, space_type_gen: true, default: true }
67
+ hash['Corridor'] = { ratio: 0.1633, space_type_gen: true, default: false, circ: true }
68
+ hash['Gym'] = { ratio: 0.0520, space_type_gen: true, default: false }
69
+ hash['Kitchen'] = { ratio: 0.0244, space_type_gen: true, default: false }
70
+ hash['Library'] = { ratio: 0.0581, space_type_gen: true, default: false }
71
+ hash['Lobby'] = { ratio: 0.0249, space_type_gen: true, default: false }
72
+ hash['Mechanical'] = { ratio: 0.0367, space_type_gen: true, default: false }
73
+ hash['Office'] = { ratio: 0.0642, space_type_gen: true, default: false }
74
+ hash['Restroom'] = { ratio: 0.0277, space_type_gen: true, default: false }
75
+ end
76
+ elsif building_type == 'SmallOffice'
77
+ # @todo populate Small, Medium, and Large office for whole_building false
78
+ if whole_building
79
+ hash['WholeBuilding - Sm Office'] = { ratio: 1.0, space_type_gen: true, default: true }
80
+ else
81
+ hash['SmallOffice - Breakroom'] = { ratio: 0.99, space_type_gen: true, default: false }
82
+ hash['SmallOffice - ClosedOffice'] = { ratio: 0.99, space_type_gen: true, default: false }
83
+ hash['SmallOffice - Conference'] = { ratio: 0.99, space_type_gen: true, default: false }
84
+ hash['SmallOffice - Corridor'] = { ratio: 0.99, space_type_gen: true, default: false, circ: true }
85
+ hash['SmallOffice - Elec/MechRoom'] = { ratio: 0.99, space_type_gen: true, default: false }
86
+ hash['SmallOffice - Lobby'] = { ratio: 0.99, space_type_gen: true, default: false }
87
+ hash['SmallOffice - OpenOffice'] = { ratio: 0.99, space_type_gen: true, default: true }
88
+ hash['SmallOffice - Restroom'] = { ratio: 0.99, space_type_gen: true, default: false }
89
+ hash['SmallOffice - Stair'] = { ratio: 0.99, space_type_gen: true, default: false }
90
+ hash['SmallOffice - Storage'] = { ratio: 0.99, space_type_gen: true, default: false }
91
+ hash['SmallOffice - Classroom'] = { ratio: 0.99, space_type_gen: true, default: false }
92
+ hash['SmallOffice - Dining'] = { ratio: 0.99, space_type_gen: true, default: false }
93
+ hash['WholeBuilding - Sm Office'] = { ratio: 0.0, space_type_gen: true, default: false }
94
+ end
95
+ elsif building_type == 'MediumOffice'
96
+ if whole_building
97
+ hash['WholeBuilding - Md Office'] = { ratio: 1.0, space_type_gen: true, default: true }
98
+ else
99
+ hash['MediumOffice - Breakroom'] = { ratio: 0.99, space_type_gen: true, default: false }
100
+ hash['MediumOffice - ClosedOffice'] = { ratio: 0.99, space_type_gen: true, default: false }
101
+ hash['MediumOffice - Conference'] = { ratio: 0.99, space_type_gen: true, default: false }
102
+ hash['MediumOffice - Corridor'] = { ratio: 0.99, space_type_gen: true, default: false, circ: true }
103
+ hash['MediumOffice - Elec/MechRoom'] = { ratio: 0.99, space_type_gen: true, default: false }
104
+ hash['MediumOffice - Lobby'] = { ratio: 0.99, space_type_gen: true, default: false }
105
+ hash['MediumOffice - OpenOffice'] = { ratio: 0.99, space_type_gen: true, default: true }
106
+ hash['MediumOffice - Restroom'] = { ratio: 0.99, space_type_gen: true, default: false }
107
+ hash['MediumOffice - Stair'] = { ratio: 0.99, space_type_gen: true, default: false }
108
+ hash['MediumOffice - Storage'] = { ratio: 0.99, space_type_gen: true, default: false }
109
+ hash['MediumOffice - Classroom'] = { ratio: 0.99, space_type_gen: true, default: false }
110
+ hash['MediumOffice - Dining'] = { ratio: 0.99, space_type_gen: true, default: false }
111
+ hash['WholeBuilding - Md Office'] = { ratio: 0.0, space_type_gen: true, default: false }
112
+ end
113
+ elsif building_type == 'LargeOffice'
114
+ case building_subtype
115
+ when 'largeoffice_datacenter'
116
+ hash['WholeBuilding - Lg Office'] = { ratio: 0.9737, space_type_gen: true, default: true }
117
+ hash['OfficeLarge Data Center'] = { ratio: 0.0094, space_type_gen: true, default: false }
118
+ hash['OfficeLarge Main Data Center'] = { ratio: 0.0169, space_type_gen: true, default: false }
119
+ when 'largeoffice_datacenteronly'
120
+ hash['OfficeLarge Data Center'] = { ratio: 1.0, space_type_gen: true, default: false }
121
+ when 'largeoffice_nodatacenter'
122
+ hash['WholeBuilding - Lg Office'] = { ratio: 1.0, space_type_gen: true, default: true }
123
+ when 'largeoffice_default'
124
+ if ['DOE Ref Pre-1980', 'DOE Ref 1980-2004', 'ComStock DOE Ref Pre-1980', 'ComStock DOE Ref 1980-2004'].include?(template)
125
+ if whole_building
126
+ hash['WholeBuilding - Lg Office'] = { ratio: 1.0, space_type_gen: true, default: true }
127
+ else
128
+ hash['BreakRoom'] = { ratio: 0.99, space_type_gen: true, default: false }
129
+ hash['ClosedOffice'] = { ratio: 0.99, space_type_gen: true, default: false }
130
+ hash['Conference'] = { ratio: 0.99, space_type_gen: true, default: false }
131
+ hash['Corridor'] = { ratio: 0.99, space_type_gen: true, default: false, circ: true }
132
+ hash['Elec/MechRoom'] = { ratio: 0.99, space_type_gen: true, default: false }
133
+ hash['IT_Room'] = { ratio: 0.99, space_type_gen: true, default: false }
134
+ hash['Lobby'] = { ratio: 0.99, space_type_gen: true, default: false }
135
+ hash['OpenOffice'] = { ratio: 0.99, space_type_gen: true, default: true }
136
+ hash['PrintRoom'] = { ratio: 0.99, space_type_gen: true, default: false }
137
+ hash['Restroom'] = { ratio: 0.99, space_type_gen: true, default: false }
138
+ hash['Stair'] = { ratio: 0.99, space_type_gen: true, default: false }
139
+ hash['Storage'] = { ratio: 0.99, space_type_gen: true, default: false }
140
+ hash['Vending'] = { ratio: 0.99, space_type_gen: true, default: false }
141
+ hash['WholeBuilding - Lg Office'] = { ratio: 0.0, space_type_gen: true, default: false }
142
+ end
143
+ else
144
+ if whole_building
145
+ hash['WholeBuilding - Lg Office'] = { ratio: 0.9737, space_type_gen: true, default: true }
146
+ hash['OfficeLarge Data Center'] = { ratio: 0.0094, space_type_gen: true, default: false }
147
+ hash['OfficeLarge Main Data Center'] = { ratio: 0.0169, space_type_gen: true, default: false }
148
+ else
149
+ hash['BreakRoom'] = { ratio: 0.99, space_type_gen: true, default: false }
150
+ hash['ClosedOffice'] = { ratio: 0.99, space_type_gen: true, default: false }
151
+ hash['Conference'] = { ratio: 0.99, space_type_gen: true, default: false }
152
+ hash['Corridor'] = { ratio: 0.99, space_type_gen: true, default: false, circ: true }
153
+ hash['Elec/MechRoom'] = { ratio: 0.99, space_type_gen: true, default: false }
154
+ hash['IT_Room'] = { ratio: 0.99, space_type_gen: true, default: false }
155
+ hash['Lobby'] = { ratio: 0.99, space_type_gen: true, default: false }
156
+ hash['OpenOffice'] = { ratio: 0.99, space_type_gen: true, default: true }
157
+ hash['PrintRoom'] = { ratio: 0.99, space_type_gen: true, default: false }
158
+ hash['Restroom'] = { ratio: 0.99, space_type_gen: true, default: false }
159
+ hash['Stair'] = { ratio: 0.99, space_type_gen: true, default: false }
160
+ hash['Storage'] = { ratio: 0.99, space_type_gen: true, default: false }
161
+ hash['Vending'] = { ratio: 0.99, space_type_gen: true, default: false }
162
+ hash['WholeBuilding - Lg Office'] = { ratio: 0.0, space_type_gen: true, default: false }
163
+ hash['OfficeLarge Data Center'] = { ratio: 0.0, space_type_gen: true, default: false }
164
+ hash['OfficeLarge Main Data Center'] = { ratio: 0.0, space_type_gen: true, default: false }
165
+ end
166
+ end
167
+ end
168
+ elsif building_type == 'SmallHotel'
169
+ hash['Corridor'] = { ratio: 0.1313, space_type_gen: true, default: false, circ: true }
170
+ hash['Elec/MechRoom'] = { ratio: 0.0038, space_type_gen: true, default: false }
171
+ hash['ElevatorCore'] = { ratio: 0.0113, space_type_gen: true, default: false }
172
+ hash['Exercise'] = { ratio: 0.0081, space_type_gen: true, default: false }
173
+ hash['GuestLounge'] = { ratio: 0.0406, space_type_gen: true, default: false }
174
+ hash['GuestRoom123Occ'] = { ratio: 0.4081, space_type_gen: true, default: true }
175
+ hash['GuestRoom123Vac'] = { ratio: 0.2231, space_type_gen: true, default: false }
176
+ hash['Laundry'] = { ratio: 0.0244, space_type_gen: true, default: false }
177
+ hash['Mechanical'] = { ratio: 0.0081, space_type_gen: true, default: false }
178
+ hash['Meeting'] = { ratio: 0.0200, space_type_gen: true, default: false }
179
+ hash['Office'] = { ratio: 0.0325, space_type_gen: true, default: false }
180
+ hash['PublicRestroom'] = { ratio: 0.0081, space_type_gen: true, default: false }
181
+ hash['StaffLounge'] = { ratio: 0.0081, space_type_gen: true, default: false }
182
+ hash['Stair'] = { ratio: 0.0400, space_type_gen: true, default: false }
183
+ hash['Storage'] = { ratio: 0.0325, space_type_gen: true, default: false }
184
+ elsif building_type == 'LargeHotel'
185
+ hash['Banquet'] = { ratio: 0.0585, space_type_gen: true, default: false }
186
+ hash['Basement'] = { ratio: 0.1744, space_type_gen: false, default: false }
187
+ hash['Cafe'] = { ratio: 0.0166, space_type_gen: true, default: false }
188
+ hash['Corridor'] = { ratio: 0.1736, space_type_gen: true, default: false, circ: true }
189
+ hash['GuestRoom'] = { ratio: 0.4099, space_type_gen: true, default: true }
190
+ hash['Kitchen'] = { ratio: 0.0091, space_type_gen: true, default: false }
191
+ hash['Laundry'] = { ratio: 0.0069, space_type_gen: true, default: false }
192
+ hash['Lobby'] = { ratio: 0.1153, space_type_gen: true, default: false }
193
+ hash['Mechanical'] = { ratio: 0.0145, space_type_gen: true, default: false }
194
+ hash['Retail'] = { ratio: 0.0128, space_type_gen: true, default: false }
195
+ hash['Storage'] = { ratio: 0.0084, space_type_gen: true, default: false }
196
+ elsif building_type == 'Warehouse'
197
+ case building_subtype
198
+ when 'warehouse_bulk100'
199
+ hash['Bulk'] = { ratio: 1.0, space_type_gen: true, default: true }
200
+ when 'warehouse_fine100'
201
+ hash['Fine'] = { ratio: 1.0, space_type_gen: true, default: true }
202
+ when 'warehouse_bulk80'
203
+ hash['Bulk'] = { ratio: 0.80, space_type_gen: true, default: true }
204
+ hash['Fine'] = { ratio: 0.151, space_type_gen: true, default: false }
205
+ hash['Office'] = { ratio: 0.0490, space_type_gen: true, default: false, wwr: 0.71, story_height: 14.0 }
206
+ when 'warehouse_bulk40'
207
+ hash['Bulk'] = { ratio: 0.40, space_type_gen: true, default: true }
208
+ hash['Fine'] = { ratio: 0.551, space_type_gen: true, default: false }
209
+ hash['Office'] = { ratio: 0.0490, space_type_gen: true, default: false, wwr: 0.71, story_height: 14.0 }
210
+ when 'warehouse_bulk20'
211
+ hash['Bulk'] = { ratio: 0.20, space_type_gen: true, default: true }
212
+ hash['Fine'] = { ratio: 0.751, space_type_gen: true, default: false }
213
+ hash['Office'] = { ratio: 0.0490, space_type_gen: true, default: false, wwr: 0.71, story_height: 14.0 }
214
+ when 'warehouse_default'
215
+ hash['Bulk'] = { ratio: 0.6628, space_type_gen: true, default: true }
216
+ hash['Fine'] = { ratio: 0.2882, space_type_gen: true, default: false }
217
+ hash['Office'] = { ratio: 0.0490, space_type_gen: true, default: false, wwr: 0.71, story_height: 14.0 }
218
+ else
219
+ hash['Bulk'] = { ratio: 0.6628, space_type_gen: true, default: true }
220
+ hash['Fine'] = { ratio: 0.2882, space_type_gen: true, default: false }
221
+ hash['Office'] = { ratio: 0.0490, space_type_gen: true, default: false, wwr: 0.71, story_height: 14.0 }
222
+ end
223
+ elsif building_type == 'RetailStandalone'
224
+ hash['Back_Space'] = { ratio: 0.1656, space_type_gen: true, default: false }
225
+ hash['Entry'] = { ratio: 0.0052, space_type_gen: true, default: false }
226
+ hash['Point_of_Sale'] = { ratio: 0.0657, space_type_gen: true, default: false }
227
+ hash['Retail'] = { ratio: 0.7635, space_type_gen: true, default: true }
228
+ elsif building_type == 'RetailStripmall'
229
+ hash['Strip mall - type 1'] = { ratio: 0.25, space_type_gen: true, default: false }
230
+ hash['Strip mall - type 2'] = { ratio: 0.25, space_type_gen: true, default: false }
231
+ hash['Strip mall - type 3'] = { ratio: 0.50, space_type_gen: true, default: true }
232
+ elsif building_type == 'QuickServiceRestaurant'
233
+ hash['Dining'] = { ratio: 0.5, space_type_gen: true, default: true }
234
+ hash['Kitchen'] = { ratio: 0.5, space_type_gen: true, default: false }
235
+ elsif building_type == 'FullServiceRestaurant'
236
+ hash['Dining'] = { ratio: 0.7272, space_type_gen: true, default: true }
237
+ hash['Kitchen'] = { ratio: 0.2728, space_type_gen: true, default: false }
238
+ elsif building_type == 'MidriseApartment'
239
+ hash['Apartment'] = { ratio: 0.8727, space_type_gen: true, default: true }
240
+ hash['Corridor'] = { ratio: 0.0991, space_type_gen: true, default: false, circ: true }
241
+ hash['Office'] = { ratio: 0.0282, space_type_gen: true, default: false }
242
+ elsif building_type == 'HighriseApartment'
243
+ hash['Apartment'] = { ratio: 0.8896, space_type_gen: true, default: true }
244
+ hash['Corridor'] = { ratio: 0.0991, space_type_gen: true, default: false, circ: true }
245
+ hash['Office'] = { ratio: 0.0113, space_type_gen: true, default: false }
246
+ elsif building_type == 'Hospital'
247
+ hash['Basement'] = { ratio: 0.1667, space_type_gen: false, default: false }
248
+ hash['Corridor'] = { ratio: 0.1741, space_type_gen: true, default: false, circ: true }
249
+ hash['Dining'] = { ratio: 0.0311, space_type_gen: true, default: false }
250
+ hash['ER_Exam'] = { ratio: 0.0099, space_type_gen: true, default: false }
251
+ hash['ER_NurseStn'] = { ratio: 0.0551, space_type_gen: true, default: false }
252
+ hash['ER_Trauma'] = { ratio: 0.0025, space_type_gen: true, default: false }
253
+ hash['ER_Triage'] = { ratio: 0.0050, space_type_gen: true, default: false }
254
+ hash['ICU_NurseStn'] = { ratio: 0.0298, space_type_gen: true, default: false }
255
+ hash['ICU_Open'] = { ratio: 0.0275, space_type_gen: true, default: false }
256
+ hash['ICU_PatRm'] = { ratio: 0.0115, space_type_gen: true, default: false }
257
+ hash['Kitchen'] = { ratio: 0.0414, space_type_gen: true, default: false }
258
+ hash['Lab'] = { ratio: 0.0236, space_type_gen: true, default: false }
259
+ hash['Lobby'] = { ratio: 0.0657, space_type_gen: true, default: false }
260
+ hash['NurseStn'] = { ratio: 0.1723, space_type_gen: true, default: false }
261
+ hash['Office'] = { ratio: 0.0286, space_type_gen: true, default: false }
262
+ hash['OR'] = { ratio: 0.0273, space_type_gen: true, default: false }
263
+ hash['PatCorridor'] = { ratio: 0.0, space_type_gen: true, default: false } # not in prototype
264
+ hash['PatRoom'] = { ratio: 0.0845, space_type_gen: true, default: true }
265
+ hash['PhysTherapy'] = { ratio: 0.0217, space_type_gen: true, default: false }
266
+ hash['Radiology'] = { ratio: 0.0217, space_type_gen: true, default: false }
267
+ elsif building_type == 'Outpatient'
268
+ hash['Anesthesia'] = { ratio: 0.0026, space_type_gen: true, default: false }
269
+ hash['BioHazard'] = { ratio: 0.0014, space_type_gen: true, default: false }
270
+ hash['Cafe'] = { ratio: 0.0103, space_type_gen: true, default: false }
271
+ hash['CleanWork'] = { ratio: 0.0071, space_type_gen: true, default: false }
272
+ hash['Conference'] = { ratio: 0.0082, space_type_gen: true, default: false }
273
+ hash['DressingRoom'] = { ratio: 0.0021, space_type_gen: true, default: false }
274
+ hash['Elec/MechRoom'] = { ratio: 0.0109, space_type_gen: true, default: false }
275
+ hash['ElevatorPumpRoom'] = { ratio: 0.0022, space_type_gen: true, default: false }
276
+ hash['Exam'] = { ratio: 0.1029, space_type_gen: true, default: true }
277
+ hash['Hall'] = { ratio: 0.1924, space_type_gen: true, default: false, circ: true }
278
+ hash['IT_Room'] = { ratio: 0.0027, space_type_gen: true, default: false }
279
+ hash['Janitor'] = { ratio: 0.0672, space_type_gen: true, default: false }
280
+ hash['Lobby'] = { ratio: 0.0152, space_type_gen: true, default: false }
281
+ hash['LockerRoom'] = { ratio: 0.0190, space_type_gen: true, default: false }
282
+ hash['Lounge'] = { ratio: 0.0293, space_type_gen: true, default: false }
283
+ hash['MedGas'] = { ratio: 0.0014, space_type_gen: true, default: false }
284
+ hash['MRI'] = { ratio: 0.0107, space_type_gen: true, default: false }
285
+ hash['MRI_Control'] = { ratio: 0.0041, space_type_gen: true, default: false }
286
+ hash['NurseStation'] = { ratio: 0.0189, space_type_gen: true, default: false }
287
+ hash['Office'] = { ratio: 0.1828, space_type_gen: true, default: false }
288
+ hash['OR'] = { ratio: 0.0346, space_type_gen: true, default: false }
289
+ hash['PACU'] = { ratio: 0.0232, space_type_gen: true, default: false }
290
+ hash['PhysicalTherapy'] = { ratio: 0.0462, space_type_gen: true, default: false }
291
+ hash['PreOp'] = { ratio: 0.0129, space_type_gen: true, default: false }
292
+ hash['ProcedureRoom'] = { ratio: 0.0070, space_type_gen: true, default: false }
293
+ hash['Reception'] = { ratio: 0.0365, space_type_gen: true, default: false }
294
+ hash['Soil Work'] = { ratio: 0.0088, space_type_gen: true, default: false }
295
+ hash['Stair'] = { ratio: 0.0146, space_type_gen: true, default: false }
296
+ hash['Toilet'] = { ratio: 0.0193, space_type_gen: true, default: false }
297
+ hash['Undeveloped'] = { ratio: 0.0835, space_type_gen: false, default: false }
298
+ hash['Xray'] = { ratio: 0.0220, space_type_gen: true, default: false }
299
+ elsif building_type == 'SuperMarket'
300
+ # @todo populate ratios for SuperMarket
301
+ hash['Bakery'] = { ratio: 0.99, space_type_gen: true, default: false }
302
+ hash['Deli'] = { ratio: 0.99, space_type_gen: true, default: false }
303
+ hash['DryStorage'] = { ratio: 0.99, space_type_gen: true, default: false }
304
+ hash['Office'] = { ratio: 0.99, space_type_gen: true, default: false }
305
+ hash['Produce'] = { ratio: 0.99, space_type_gen: true, default: true }
306
+ hash['Sales'] = { ratio: 0.99, space_type_gen: true, default: true }
307
+ hash['Corridor'] = { ratio: 0.99, space_type_gen: true, default: true }
308
+ hash['Dining'] = { ratio: 0.99, space_type_gen: true, default: true }
309
+ hash['Elec/MechRoom'] = { ratio: 0.99, space_type_gen: true, default: true }
310
+ hash['Meeting'] = { ratio: 0.99, space_type_gen: true, default: true }
311
+ hash['Restroom'] = { ratio: 0.99, space_type_gen: true, default: true }
312
+ hash['Vestibule'] = { ratio: 0.99, space_type_gen: true, default: true }
313
+ elsif building_type == 'Laboratory'
314
+ hash['Office'] = { ratio: 0.50, space_type_gen: true, default: true }
315
+ hash['Open lab'] = { ratio: 0.35, space_type_gen: true, default: true }
316
+ hash['Equipment corridor'] = { ratio: 0.05, space_type_gen: true, default: true }
317
+ hash['Lab with fume hood'] = { ratio: 0.10, space_type_gen: true, default: true }
318
+ elsif building_type == 'LargeDataCenterHighITE'
319
+ hash['StandaloneDataCenter'] = { ratio: 1.0, space_type_gen: true, default: true }
320
+ elsif building_type == 'LargeDataCenterLowITE'
321
+ hash['StandaloneDataCenter'] = { ratio: 1.0, space_type_gen: true, default: true }
322
+ elsif building_type == 'SmallDataCenterHighITE'
323
+ hash['ComputerRoom'] = { ratio: 1.0, space_type_gen: true, default: true }
324
+ elsif building_type == 'SmallDataCenterLowITE'
325
+ hash['ComputerRoom'] = { ratio: 1.0, space_type_gen: true, default: true }
326
+ elsif building_type == 'Courthouse'
327
+ hash['Courthouse - Break Room'] = { ratio: 0.0067, space_type_gen: true, default: false }
328
+ hash['Courthouse - Cell'] = { ratio: 0.0731, space_type_gen: true, default: false }
329
+ hash['Courthouse - Conference'] = { ratio: 0.0203, space_type_gen: true, default: false }
330
+ hash['Courthouse - Corridor'] = { ratio: 0.0829, space_type_gen: true, default: false }
331
+ hash['Courthouse - Courtroom'] = { ratio: 0.1137, space_type_gen: true, default: false }
332
+ hash['Courthouse - Courtroom Waiting'] = { ratio: 0.051, space_type_gen: true, default: false }
333
+ hash['Courthouse - Elevator Lobby'] = { ratio: 0.0085, space_type_gen: true, default: false }
334
+ hash['Courthouse - Elevator Shaft'] = { ratio: 0.0047, space_type_gen: true, default: false }
335
+ hash['Courthouse - Entrance Lobby'] = { ratio: 0.0299, space_type_gen: true, default: false }
336
+ hash['Courthouse - Judges Chamber'] = { ratio: 0.0261, space_type_gen: true, default: false }
337
+ hash['Courthouse - Jury Assembly'] = { ratio: 0.0355, space_type_gen: true, default: false }
338
+ hash['Courthouse - Jury Deliberation'] = { ratio: 0.0133, space_type_gen: true, default: false }
339
+ hash['Courthouse - Library'] = { ratio: 0.0302, space_type_gen: true, default: false }
340
+ hash['Courthouse - Office'] = { ratio: 0.1930, space_type_gen: true, default: true }
341
+ hash['Courthouse - Parking'] = { ratio: 0.1083, space_type_gen: true, default: false }
342
+ hash['Courthouse - Restrooms'] = { ratio: 0.04, space_type_gen: true, default: false }
343
+ hash['Courthouse - Security Screening'] = { ratio: 0.0132, space_type_gen: true, default: false }
344
+ hash['Courthouse - Service Shaft'] = { ratio: 0.0019, space_type_gen: true, default: false }
345
+ hash['Courthouse - Stairs'] = { ratio: 0.0111, space_type_gen: true, default: false }
346
+ hash['Courthouse - Storage'] = { ratio: 0.0882, space_type_gen: true, default: false }
347
+ hash['Courthouse - Utility'] = { ratio: 0.0484, space_type_gen: true, default: false }
348
+ elsif building_type == 'College'
349
+ hash['College - Art Classroom'] = { ratio: 0.1868, space_type_gen: true, default: false }
350
+ hash['College - Classroom'] = { ratio: 0.2348, space_type_gen: true, default: true }
351
+ hash['College - Conference'] = { ratio: 0.0215, space_type_gen: true, default: false }
352
+ hash['College - Corridor'] = { ratio: 0.0716, space_type_gen: true, default: false }
353
+ hash['College - Elevator Shaft'] = { ratio: 0.0074, space_type_gen: true, default: false }
354
+ hash['College - Entrance Lobby'] = { ratio: 0.0117, space_type_gen: true, default: false }
355
+ hash['College - Laboratory'] = { ratio: 0.0843, space_type_gen: true, default: false }
356
+ hash['College - Lecture Hall'] = { ratio: 0.0421, space_type_gen: true, default: false }
357
+ hash['College - Lounge'] = { ratio: 0.028, space_type_gen: true, default: false }
358
+ hash['College - Media Center'] = { ratio: 0.0421, space_type_gen: true, default: false }
359
+ hash['College - Office'] = { ratio: 0.1894, space_type_gen: true, default: false }
360
+ hash['College - Restroom'] = { ratio: 0.0363, space_type_gen: true, default: false }
361
+ hash['College - Stairs'] = { ratio: 0.0272, space_type_gen: true, default: false }
362
+ hash['College - Storage'] = { ratio: 0.0117, space_type_gen: true, default: false }
363
+ hash['College - Utility'] = { ratio: 0.0051, space_type_gen: true, default: false }
364
+ # DEER Prototypes
365
+ elsif building_type == 'Asm'
366
+ hash['Auditorium'] = { ratio: 0.7658, space_type_gen: true, default: true }
367
+ hash['OfficeGeneral'] = { ratio: 0.2342, space_type_gen: true, default: false }
368
+ elsif building_type == 'ECC'
369
+ hash['Classroom'] = { ratio: 0.5558, space_type_gen: true, default: true }
370
+ hash['CompRoomClassRm'] = { ratio: 0.0319, space_type_gen: true, default: false }
371
+ hash['Shop'] = { ratio: 0.1249, space_type_gen: true, default: false }
372
+ hash['Dining'] = { ratio: 0.0876, space_type_gen: true, default: false }
373
+ hash['Kitchen'] = { ratio: 0.0188, space_type_gen: true, default: false }
374
+ hash['OfficeGeneral'] = { ratio: 0.181, space_type_gen: true, default: false }
375
+ elsif building_type == 'EPr'
376
+ hash['Classroom'] = { ratio: 0.53, space_type_gen: true, default: true }
377
+ hash['CorridorStairway'] = { ratio: 0.1, space_type_gen: true, default: false }
378
+ hash['Dining'] = { ratio: 0.15, space_type_gen: true, default: false }
379
+ hash['Gymnasium'] = { ratio: 0.15, space_type_gen: true, default: false }
380
+ hash['Kitchen'] = { ratio: 0.07, space_type_gen: true, default: false }
381
+ elsif building_type == 'ERC'
382
+ hash['Classroom'] = { ratio: 0.5, space_type_gen: true, default: true }
383
+ elsif building_type == 'ESe'
384
+ hash['Classroom'] = { ratio: 0.488, space_type_gen: true, default: true }
385
+ hash['CompRoomClassRm'] = { ratio: 0.021, space_type_gen: true, default: false }
386
+ hash['CorridorStairway'] = { ratio: 0.1, space_type_gen: true, default: false }
387
+ hash['Dining'] = { ratio: 0.15, space_type_gen: true, default: false }
388
+ hash['Gymnasium'] = { ratio: 0.15, space_type_gen: true, default: false }
389
+ hash['Kitchen'] = { ratio: 0.07, space_type_gen: true, default: false }
390
+ hash['OfficeGeneral'] = { ratio: 0.021, space_type_gen: true, default: true }
391
+ elsif building_type == 'EUn'
392
+ hash['Dining'] = { ratio: 0.0238, space_type_gen: true, default: false }
393
+ hash['Classroom'] = { ratio: 0.3056, space_type_gen: true, default: false }
394
+ hash['OfficeGeneral'] = { ratio: 0.3422, space_type_gen: true, default: true }
395
+ hash['CompRoomClassRm'] = { ratio: 0.038, space_type_gen: true, default: false }
396
+ hash['Kitchen'] = { ratio: 0.0105, space_type_gen: true, default: false }
397
+ hash['CorridorStairway'] = { ratio: 0.03, space_type_gen: true, default: false }
398
+ hash['FacMaint'] = { ratio: 0.08, space_type_gen: true, default: false }
399
+ hash['DormitoryRoom'] = { ratio: 0.1699, space_type_gen: true, default: false }
400
+ elsif building_type == 'Gro'
401
+ hash['GrocSales'] = { ratio: 0.8002, space_type_gen: true, default: true }
402
+ hash['RefWalkInCool'] = { ratio: 0.0312, space_type_gen: true, default: false }
403
+ hash['OfficeGeneral'] = { ratio: 0.07, space_type_gen: true, default: false }
404
+ hash['RefFoodPrep'] = { ratio: 0.0253, space_type_gen: true, default: false }
405
+ hash['RefWalkInFreeze'] = { ratio: 0.0162, space_type_gen: true, default: false }
406
+ hash['IndLoadDock'] = { ratio: 0.057, space_type_gen: true, default: false }
407
+ elsif building_type == 'Hsp'
408
+ hash['HspSurgOutptLab'] = { ratio: 0.2317, space_type_gen: true, default: false }
409
+ hash['Dining'] = { ratio: 0.0172, space_type_gen: true, default: false }
410
+ hash['Kitchen'] = { ratio: 0.0075, space_type_gen: true, default: false }
411
+ hash['OfficeGeneral'] = { ratio: 0.3636, space_type_gen: true, default: false }
412
+ hash['PatientRoom'] = { ratio: 0.38, space_type_gen: true, default: true }
413
+ elsif building_type == 'Htl'
414
+ hash['Dining'] = { ratio: 0.004, space_type_gen: true, default: false }
415
+ hash['BarCasino'] = { ratio: 0.005, space_type_gen: true, default: false }
416
+ hash['HotelLobby'] = { ratio: 0.0411, space_type_gen: true, default: false }
417
+ hash['OfficeGeneral'] = { ratio: 0.0205, space_type_gen: true, default: false }
418
+ hash['GuestRmCorrid'] = { ratio: 0.1011, space_type_gen: true, default: false }
419
+ hash['Laundry'] = { ratio: 0.0205, space_type_gen: true, default: false }
420
+ hash['GuestRmOcc'] = { ratio: 0.64224, space_type_gen: true, default: true }
421
+ hash['GuestRmUnOcc'] = { ratio: 0.16056, space_type_gen: true, default: true }
422
+ hash['Kitchen'] = { ratio: 0.005, space_type_gen: true, default: false }
423
+ elsif building_type == 'MBT'
424
+ hash['CompRoomData'] = { ratio: 0.02, space_type_gen: true, default: false }
425
+ hash['Laboratory'] = { ratio: 0.4534, space_type_gen: true, default: true }
426
+ hash['CorridorStairway'] = { ratio: 0.2, space_type_gen: true, default: false }
427
+ hash['Conference'] = { ratio: 0.02, space_type_gen: true, default: false }
428
+ hash['Dining'] = { ratio: 0.03, space_type_gen: true, default: false }
429
+ hash['OfficeOpen'] = { ratio: 0.2666, space_type_gen: true, default: false }
430
+ hash['Kitchen'] = { ratio: 0.01, space_type_gen: true, default: false }
431
+ elsif building_type == 'MFm'
432
+ hash['ResLiving'] = { ratio: 0.9297, space_type_gen: true, default: true }
433
+ hash['ResPublicArea'] = { ratio: 0.0725, space_type_gen: true, default: false }
434
+ elsif building_type == 'MLI'
435
+ hash['StockRoom'] = { ratio: 0.2, space_type_gen: true, default: false }
436
+ hash['Work'] = { ratio: 0.8, space_type_gen: true, default: true }
437
+ elsif building_type == 'Mtl'
438
+ hash['OfficeGeneral'] = { ratio: 0.02, space_type_gen: true, default: false }
439
+ hash['GuestRmCorrid'] = { ratio: 0.649, space_type_gen: true, default: true }
440
+ hash['Laundry'] = { ratio: 0.016, space_type_gen: true, default: false }
441
+ hash['GuestRmOcc'] = { ratio: 0.25208, space_type_gen: true, default: false }
442
+ hash['GuestRmUnOcc'] = { ratio: 0.06302, space_type_gen: true, default: false }
443
+ elsif building_type == 'Nrs'
444
+ hash['CorridorStairway'] = { ratio: 0.0555, space_type_gen: true, default: false }
445
+ hash['Dining'] = { ratio: 0.105, space_type_gen: true, default: false }
446
+ hash['Kitchen'] = { ratio: 0.045, space_type_gen: true, default: false }
447
+ hash['OfficeGeneral'] = { ratio: 0.35, space_type_gen: true, default: false }
448
+ hash['PatientRoom'] = { ratio: 0.4445, space_type_gen: true, default: true }
449
+ elsif building_type == 'OfL'
450
+ hash['LobbyWaiting'] = { ratio: 0.0412, space_type_gen: true, default: false }
451
+ hash['OfficeSmall'] = { ratio: 0.3704, space_type_gen: true, default: false }
452
+ hash['OfficeOpen'] = { ratio: 0.5296, space_type_gen: true, default: true }
453
+ hash['MechElecRoom'] = { ratio: 0.0588, space_type_gen: true, default: false }
454
+ elsif building_type == 'OfS'
455
+ hash['Hall'] = { ratio: 0.3141, space_type_gen: true, default: false }
456
+ hash['OfficeSmall'] = { ratio: 0.6859, space_type_gen: true, default: true }
457
+ elsif building_type == 'RFF'
458
+ hash['Dining'] = { ratio: 0.3997, space_type_gen: true, default: false }
459
+ hash['Kitchen'] = { ratio: 0.4, space_type_gen: true, default: true }
460
+ hash['LobbyWaiting'] = { ratio: 0.1501, space_type_gen: true, default: false }
461
+ hash['Restroom'] = { ratio: 0.0501, space_type_gen: true, default: false }
462
+ elsif building_type == 'RSD'
463
+ hash['Restroom'] = { ratio: 0.0357, space_type_gen: true, default: false }
464
+ hash['Dining'] = { ratio: 0.5353, space_type_gen: true, default: true }
465
+ hash['LobbyWaiting'] = { ratio: 0.1429, space_type_gen: true, default: false }
466
+ hash['Kitchen'] = { ratio: 0.2861, space_type_gen: true, default: false }
467
+ elsif building_type == 'Rt3'
468
+ hash['RetailSales'] = { ratio: 1.0, space_type_gen: true, default: true }
469
+ elsif building_type == 'RtL'
470
+ hash['OfficeGeneral'] = { ratio: 0.0363, space_type_gen: true, default: false }
471
+ hash['Work'] = { ratio: 0.0405, space_type_gen: true, default: false }
472
+ hash['StockRoom'] = { ratio: 0.0920, space_type_gen: true, default: false }
473
+ hash['RetailSales'] = { ratio: 0.8312, space_type_gen: true, default: true }
474
+ # hash['Kitchen'] = { ratio: 0.0113, space_type_gen: true, default: false }
475
+ elsif building_type == 'RtS'
476
+ hash['RetailSales'] = { ratio: 0.8, space_type_gen: true, default: true }
477
+ hash['StockRoom'] = { ratio: 0.2, space_type_gen: true, default: false }
478
+ elsif building_type == 'SCn'
479
+ hash['WarehouseCond'] = { ratio: 1.0, space_type_gen: true, default: true }
480
+ elsif building_type == 'SUn'
481
+ hash['WarehouseUnCond'] = { ratio: 1.0, space_type_gen: true, default: true }
482
+ elsif building_type == 'WRf'
483
+ hash['IndLoadDock'] = { ratio: 0.08, space_type_gen: true, default: false }
484
+ hash['OfficeGeneral'] = { ratio: 0.02, space_type_gen: true, default: false }
485
+ hash['RefStorFreezer'] = { ratio: 0.4005, space_type_gen: true, default: false }
486
+ hash['RefStorCooler'] = { ratio: 0.4995, space_type_gen: true, default: true }
487
+ else
488
+ return false
489
+ end
490
+
491
+ return hash
492
+ end
493
+ end
494
+ end
@@ -0,0 +1,47 @@
1
+ # Methods to add daylighting to a space
2
+ module OpenstudioStandards
3
+ module Daylighting
4
+ # @!group Space
5
+
6
+
7
+ # add a daylight sensor to a space
8
+ #
9
+ # @param space [OpenStudio::Model::Space] OpenStudio Space object
10
+ # @param name [String] name of sensor, if nil, will use "<space name> daylight sensor"
11
+ # @param position [OpenStudio::Point3d] point to place daylight sensor, defaults to 1 meter above the center of the space
12
+ # @param phi_rotation_around_z_axis [Double] Rotation around z-axis
13
+ # @param illuminance_setpoint [Double] illuminance setpoint in lux, default 430 lux is roughly 40 foot-candles
14
+ # @param lighting_control_type [String] Options are 'None', 'Continuous', Stepped', 'Continuous/Off'
15
+ # @param minimum_input_power_fraction_continuous [Double] minimum input power fraction for continuous dimming control
16
+ # @param minimum_light_output_fraction_continuous [Double] minimum light output fraction for continuous dimming control
17
+ # @param number_of_stepped_control_steps [Integer] number of steps if stepped control
18
+ # @return [OpenStudio::Model::DaylightingControl] daylight sensor
19
+ def self.space_add_daylight_sensor(space,
20
+ name: nil,
21
+ position: nil,
22
+ phi_rotation_around_z_axis: 0.0,
23
+ illuminance_setpoint: 430.0,
24
+ lighting_control_type: 'Continuous',
25
+ minimum_input_power_fraction_continuous: 0.3,
26
+ minimum_light_output_fraction_continuous: 0.2,
27
+ number_of_stepped_control_steps: 1)
28
+
29
+ daylight_sensor = OpenStudio::Model::DaylightingControl.new(space.model)
30
+ daylight_sensor.setSpace(space)
31
+ sensor_name = name.nil? ? "#{space.name} Daylight Sensor" : name
32
+ daylight_sensor.setName(sensor_name)
33
+ if position.nil?
34
+ position = OpenstudioStandards::Geometry.space_create_point_at_center_of_floor(space, 1.0)
35
+ end
36
+ daylight_sensor.setPosition(position)
37
+ daylight_sensor.setPhiRotationAroundZAxis(phi_rotation_around_z_axis) unless phi_rotation_around_z_axis.nil?
38
+ daylight_sensor.setIlluminanceSetpoint(illuminance_setpoint)
39
+ daylight_sensor.setLightingControlType(lighting_control_type)
40
+ daylight_sensor.setMinimumInputPowerFractionforContinuousDimmingControl(minimum_input_power_fraction_continuous)
41
+ daylight_sensor.setMinimumLightOutputFractionforContinuousDimmingControl(minimum_light_output_fraction_continuous)
42
+ daylight_sensor.setNumberofSteppedControlSteps(number_of_stepped_control_steps)
43
+
44
+ return daylight_sensor
45
+ end
46
+ end
47
+ end