openstudio-standards 0.4.0 → 0.5.0.rc1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/data/inventory/thermal_bridging.csv +90 -0
- data/data/standards/OpenStudio_Standards-deer-comstock.xlsx +0 -0
- data/data/standards/manage_OpenStudio_Standards.rb +1 -1
- data/data/standards/test_performance_expected_dd_results.csv +2014 -1891
- data/lib/openstudio-standards/btap/analysis.rb +8 -8
- data/lib/openstudio-standards/btap/bridging.rb +664 -645
- data/lib/openstudio-standards/btap/btap.model.rb +14 -14
- data/lib/openstudio-standards/btap/btap.rb +7 -7
- data/lib/openstudio-standards/btap/btap_result.rb +1 -1
- data/lib/openstudio-standards/btap/economics.rb +23 -23
- data/lib/openstudio-standards/btap/envelope.rb +8 -8
- data/lib/openstudio-standards/btap/equest.rb +1 -1
- data/lib/openstudio-standards/btap/geometry.rb +2 -2
- data/lib/openstudio-standards/btap/mpc.rb +7 -7
- data/lib/openstudio-standards/btap/schedules.rb +1 -1
- data/lib/openstudio-standards/btap/simmanager.rb +4 -4
- data/lib/openstudio-standards/btap/spaceloads.rb +26 -26
- data/lib/openstudio-standards/btap/utilities.rb +6 -6
- data/lib/openstudio-standards/btap/vintagizer.rb +1 -1
- data/lib/openstudio-standards/constructions/information.rb +83 -0
- data/lib/openstudio-standards/constructions/materials/modify.rb +72 -0
- data/lib/openstudio-standards/constructions/modify.rb +80 -0
- data/lib/openstudio-standards/create_typical/create_typical.rb +983 -0
- data/lib/openstudio-standards/create_typical/enumerations.rb +484 -0
- data/lib/openstudio-standards/create_typical/space_type_blend.rb +791 -0
- data/lib/openstudio-standards/create_typical/space_type_ratios.rb +494 -0
- data/lib/openstudio-standards/daylighting/space.rb +47 -0
- data/lib/openstudio-standards/geometry/create.rb +801 -0
- data/lib/openstudio-standards/geometry/create_bar.rb +2171 -0
- data/lib/openstudio-standards/geometry/information.rb +462 -0
- data/lib/openstudio-standards/geometry/modify.rb +48 -0
- data/lib/openstudio-standards/hvac/air_loop/information.rb +79 -0
- data/lib/openstudio-standards/hvac/cbecs_hvac.rb +616 -0
- data/lib/openstudio-standards/hvac/setpoint_managers/information.rb +91 -0
- data/lib/openstudio-standards/prototypes/ashrae_90_1/ashrae_90_1_2004/ashrae_90_1_2004.AirTerminalSingleDuctVAVReheat.rb +1 -1
- data/lib/openstudio-standards/prototypes/ashrae_90_1/ashrae_90_1_2007/ashrae_90_1_2007.AirTerminalSingleDuctVAVReheat.rb +1 -1
- data/lib/openstudio-standards/prototypes/ashrae_90_1/ashrae_90_1_2010/ashrae_90_1_2010.AirTerminalSingleDuctVAVReheat.rb +1 -1
- data/lib/openstudio-standards/prototypes/ashrae_90_1/ashrae_90_1_2010/ashrae_90_1_2010.Model.rb +1 -1
- data/lib/openstudio-standards/prototypes/ashrae_90_1/ashrae_90_1_2013/ashrae_90_1_2013.AirTerminalSingleDuctVAVReheat.rb +1 -1
- data/lib/openstudio-standards/prototypes/ashrae_90_1/ashrae_90_1_2013/ashrae_90_1_2013.Model.rb +2 -2
- data/lib/openstudio-standards/prototypes/ashrae_90_1/ashrae_90_1_2013/ashrae_90_1_2013.hvac_systems.rb +1 -1
- data/lib/openstudio-standards/prototypes/ashrae_90_1/ashrae_90_1_2016/ashrae_90_1_2016.AirTerminalSingleDuctVAVReheat.rb +1 -1
- data/lib/openstudio-standards/prototypes/ashrae_90_1/ashrae_90_1_2016/ashrae_90_1_2016.Model.rb +4 -36
- data/lib/openstudio-standards/prototypes/ashrae_90_1/ashrae_90_1_2016/ashrae_90_1_2016.hvac_systems.rb +1 -1
- data/lib/openstudio-standards/prototypes/ashrae_90_1/ashrae_90_1_2019/ashrae_90_1_2019.AirTerminalSingleDuctVAVReheat.rb +1 -1
- data/lib/openstudio-standards/prototypes/ashrae_90_1/ashrae_90_1_2019/ashrae_90_1_2019.Model.rb +4 -36
- data/lib/openstudio-standards/prototypes/ashrae_90_1/ashrae_90_1_2019/ashrae_90_1_2019.Space.rb +3 -3
- data/lib/openstudio-standards/prototypes/ashrae_90_1/ashrae_90_1_2019/ashrae_90_1_2019.hvac_systems.rb +1 -1
- data/lib/openstudio-standards/prototypes/ashrae_90_1/doe_ref_1980_2004/doe_ref_1980_2004.AirTerminalSingleDuctVAVReheat.rb +1 -1
- data/lib/openstudio-standards/prototypes/ashrae_90_1/doe_ref_1980_2004/doe_ref_1980_2004.Model.elevators.rb +1 -1
- data/lib/openstudio-standards/prototypes/ashrae_90_1/doe_ref_pre_1980/doe_ref_pre_1980.AirTerminalSingleDuctVAVReheat.rb +1 -1
- data/lib/openstudio-standards/prototypes/ashrae_90_1/doe_ref_pre_1980/doe_ref_pre_1980.CoilHeatingGas.rb +1 -1
- data/lib/openstudio-standards/prototypes/ashrae_90_1/doe_ref_pre_1980/doe_ref_pre_1980.Model.elevators.rb +1 -1
- data/lib/openstudio-standards/prototypes/ashrae_90_1/nrel_nze_ready_2017/nrel_zne_ready_2017.AirTerminalSingleDuctVAVReheat.rb +1 -1
- data/lib/openstudio-standards/prototypes/ashrae_90_1/ze_aedg_multifamily/ze_aedg_multifamily.AirTerminalSingleDuctVAVReheat.rb +1 -1
- data/lib/openstudio-standards/prototypes/common/buildings/Prototype.College.rb +7 -7
- data/lib/openstudio-standards/prototypes/common/buildings/Prototype.Courthouse.rb +8 -8
- data/lib/openstudio-standards/prototypes/common/buildings/Prototype.FullServiceRestaurant.rb +14 -14
- data/lib/openstudio-standards/prototypes/common/buildings/Prototype.HighRiseApartment.rb +9 -9
- data/lib/openstudio-standards/prototypes/common/buildings/Prototype.Hospital.rb +16 -16
- data/lib/openstudio-standards/prototypes/common/buildings/Prototype.Laboratory.rb +7 -7
- data/lib/openstudio-standards/prototypes/common/buildings/Prototype.LargeDataCenterHighITE.rb +8 -8
- data/lib/openstudio-standards/prototypes/common/buildings/Prototype.LargeDataCenterLowITE.rb +8 -8
- data/lib/openstudio-standards/prototypes/common/buildings/Prototype.LargeHotel.rb +11 -11
- data/lib/openstudio-standards/prototypes/common/buildings/Prototype.LargeOffice.rb +7 -7
- data/lib/openstudio-standards/prototypes/common/buildings/Prototype.LargeOfficeDetailed.rb +9 -9
- data/lib/openstudio-standards/prototypes/common/buildings/Prototype.MediumOffice.rb +8 -8
- data/lib/openstudio-standards/prototypes/common/buildings/Prototype.MediumOfficeDetailed.rb +11 -11
- data/lib/openstudio-standards/prototypes/common/buildings/Prototype.MidriseApartment.rb +9 -9
- data/lib/openstudio-standards/prototypes/common/buildings/Prototype.Outpatient.rb +19 -19
- data/lib/openstudio-standards/prototypes/common/buildings/Prototype.PrimarySchool.rb +10 -10
- data/lib/openstudio-standards/prototypes/common/buildings/Prototype.QuickServiceRestaurant.rb +13 -13
- data/lib/openstudio-standards/prototypes/common/buildings/Prototype.RetailStandalone.rb +6 -6
- data/lib/openstudio-standards/prototypes/common/buildings/Prototype.RetailStripmall.rb +6 -6
- data/lib/openstudio-standards/prototypes/common/buildings/Prototype.SecondarySchool.rb +9 -9
- data/lib/openstudio-standards/prototypes/common/buildings/Prototype.SmallDataCenterHighITE.rb +8 -8
- data/lib/openstudio-standards/prototypes/common/buildings/Prototype.SmallDataCenterLowITE.rb +8 -8
- data/lib/openstudio-standards/prototypes/common/buildings/Prototype.SmallHotel.rb +8 -8
- data/lib/openstudio-standards/prototypes/common/buildings/Prototype.SmallOffice.rb +8 -8
- data/lib/openstudio-standards/prototypes/common/buildings/Prototype.SmallOfficeDetailed.rb +11 -11
- data/lib/openstudio-standards/prototypes/common/buildings/Prototype.SuperMarket.rb +10 -10
- data/lib/openstudio-standards/prototypes/common/buildings/Prototype.SuperTallBuilding.rb +19 -19
- data/lib/openstudio-standards/prototypes/common/buildings/Prototype.TallBuilding.rb +18 -18
- data/lib/openstudio-standards/prototypes/common/buildings/Prototype.Warehouse.rb +6 -6
- data/lib/openstudio-standards/prototypes/common/do_not_edit_metaclasses.rb +957 -957
- data/lib/openstudio-standards/prototypes/common/objects/Prototype.AirConditionerVariableRefrigerantFlow.rb +1 -1
- data/lib/openstudio-standards/prototypes/common/objects/Prototype.AirTerminalSingleDuctVAVReheat.rb +1 -1
- data/lib/openstudio-standards/prototypes/common/objects/Prototype.CoilCoolingWaterToAirHeatPumpEquationFit.rb +84 -16
- data/lib/openstudio-standards/prototypes/common/objects/Prototype.CoilHeatingDXSingleSpeed.rb +1 -1
- data/lib/openstudio-standards/prototypes/common/objects/Prototype.CoilHeatingGas.rb +1 -1
- data/lib/openstudio-standards/prototypes/common/objects/Prototype.CoilHeatingWaterToAirHeatPumpEquationFit.rb +61 -10
- data/lib/openstudio-standards/prototypes/common/objects/Prototype.ControllerWaterCoil.rb +1 -1
- data/lib/openstudio-standards/prototypes/common/objects/Prototype.CoolingTower.rb +1 -1
- data/lib/openstudio-standards/prototypes/common/objects/Prototype.Fan.rb +1 -1
- data/lib/openstudio-standards/prototypes/common/objects/Prototype.FanConstantVolume.rb +1 -1
- data/lib/openstudio-standards/prototypes/common/objects/Prototype.FanOnOff.rb +1 -1
- data/lib/openstudio-standards/prototypes/common/objects/Prototype.FanVariableVolume.rb +1 -1
- data/lib/openstudio-standards/prototypes/common/objects/Prototype.FanZoneExhaust.rb +1 -1
- data/lib/openstudio-standards/prototypes/common/objects/Prototype.HeatExchangerAirToAirSensibleAndLatent.rb +2 -2
- data/lib/openstudio-standards/prototypes/common/objects/Prototype.Model.exterior_lights.rb +4 -4
- data/lib/openstudio-standards/prototypes/common/objects/Prototype.Model.hvac.rb +4 -4
- data/lib/openstudio-standards/prototypes/common/objects/Prototype.Model.rb +43 -30
- data/lib/openstudio-standards/prototypes/common/objects/Prototype.Model.swh.rb +1 -1
- data/lib/openstudio-standards/prototypes/common/objects/Prototype.ServiceWaterHeating.rb +18 -11
- data/lib/openstudio-standards/prototypes/common/objects/Prototype.SizingSystem.rb +1 -1
- data/lib/openstudio-standards/prototypes/common/objects/Prototype.hvac_systems.rb +774 -117
- data/lib/openstudio-standards/prototypes/common/objects/Prototype.radiant_system_controls.rb +340 -481
- data/lib/openstudio-standards/prototypes/common/objects/Prototype.refrigeration.rb +3 -3
- data/lib/openstudio-standards/prototypes/common/objects/Prototype.utilities.rb +3 -3
- data/lib/openstudio-standards/prototypes/common/prototype_metaprogramming.rb +22 -22
- data/lib/openstudio-standards/prototypes/deer/deer.Model.rb +1 -1
- data/lib/openstudio-standards/qaqc/calibration.rb +131 -0
- data/lib/openstudio-standards/qaqc/create_results.rb +983 -0
- data/lib/openstudio-standards/qaqc/envelope.rb +399 -0
- data/lib/openstudio-standards/qaqc/eui.rb +213 -0
- data/lib/openstudio-standards/qaqc/hvac.rb +1943 -0
- data/lib/openstudio-standards/qaqc/internal_loads.rb +568 -0
- data/lib/openstudio-standards/qaqc/reporting.rb +141 -0
- data/lib/openstudio-standards/qaqc/schedules.rb +129 -0
- data/lib/openstudio-standards/qaqc/service_water_heating.rb +273 -0
- data/lib/openstudio-standards/qaqc/weather_files.rb +497 -0
- data/lib/openstudio-standards/qaqc/zone_conditions.rb +278 -0
- data/lib/openstudio-standards/schedules/create.rb +364 -0
- data/lib/openstudio-standards/schedules/information.rb +169 -0
- data/lib/openstudio-standards/schedules/modify.rb +445 -0
- data/lib/openstudio-standards/standards/Standards.AirLoopHVAC.rb +110 -71
- data/lib/openstudio-standards/standards/Standards.AirTerminalSingleDuctParallelPIUReheat.rb +3 -3
- data/lib/openstudio-standards/standards/Standards.AirTerminalSingleDuctVAVReheat.rb +4 -4
- data/lib/openstudio-standards/standards/Standards.BoilerHotWater.rb +2 -1
- data/lib/openstudio-standards/standards/Standards.ChillerElectricEIR.rb +16 -10
- data/lib/openstudio-standards/standards/Standards.CoilCoolingDXSingleSpeed.rb +4 -4
- data/lib/openstudio-standards/standards/Standards.CoilCoolingDXTwoSpeed.rb +1 -1
- data/lib/openstudio-standards/standards/Standards.CoilCoolingWaterToAirHeatPumpEquationFit.rb +1 -1
- data/lib/openstudio-standards/standards/Standards.CoilDX.rb +4 -4
- data/lib/openstudio-standards/standards/Standards.CoilHeatingDXMultiSpeed.rb +1 -1
- data/lib/openstudio-standards/standards/Standards.CoilHeatingDXSingleSpeed.rb +5 -5
- data/lib/openstudio-standards/standards/Standards.CoilHeatingGas.rb +1 -1
- data/lib/openstudio-standards/standards/Standards.CoilHeatingGasMultiStage.rb +1 -1
- data/lib/openstudio-standards/standards/Standards.CoilHeatingWaterToAirHeatPumpEquationFit.rb +1 -1
- data/lib/openstudio-standards/standards/Standards.Construction.rb +17 -18
- data/lib/openstudio-standards/standards/Standards.CoolingTower.rb +6 -6
- data/lib/openstudio-standards/standards/Standards.CoolingTowerSingleSpeed.rb +1 -1
- data/lib/openstudio-standards/standards/Standards.CoolingTowerTwoSpeed.rb +1 -1
- data/lib/openstudio-standards/standards/Standards.CoolingTowerVariableSpeed.rb +1 -1
- data/lib/openstudio-standards/standards/Standards.Fan.rb +6 -12
- data/lib/openstudio-standards/standards/Standards.FanVariableVolume.rb +2 -2
- data/lib/openstudio-standards/standards/Standards.FluidCooler.rb +1 -1
- data/lib/openstudio-standards/standards/Standards.HeaderedPumpsVariableSpeed.rb +1 -1
- data/lib/openstudio-standards/standards/Standards.HeatExchangerSensLat.rb +3 -3
- data/lib/openstudio-standards/standards/Standards.Model.rb +411 -261
- data/lib/openstudio-standards/standards/Standards.PlanarSurface.rb +2 -2
- data/lib/openstudio-standards/standards/Standards.PlantLoop.rb +94 -29
- data/lib/openstudio-standards/standards/Standards.Pump.rb +2 -2
- data/lib/openstudio-standards/standards/Standards.ScheduleConstant.rb +2 -2
- data/lib/openstudio-standards/standards/Standards.ScheduleRuleset.rb +14 -14
- data/lib/openstudio-standards/standards/Standards.Space.rb +37 -30
- data/lib/openstudio-standards/standards/Standards.SpaceType.rb +38 -29
- data/lib/openstudio-standards/standards/Standards.SubSurface.rb +7 -7
- data/lib/openstudio-standards/standards/Standards.Surface.rb +13 -13
- data/lib/openstudio-standards/standards/Standards.ThermalZone.rb +109 -66
- data/lib/openstudio-standards/standards/Standards.WaterHeaterMixed.rb +11 -4
- data/lib/openstudio-standards/standards/Standards.ZoneHVACComponent.rb +6 -6
- data/lib/openstudio-standards/standards/ashrae_90_1/ashrae_90_1_2004/ashrae_90_1_2004.AirLoopHVAC.rb +1 -1
- data/lib/openstudio-standards/standards/ashrae_90_1/ashrae_90_1_2004/ashrae_90_1_2004.PlantLoop.rb +1 -1
- data/lib/openstudio-standards/standards/ashrae_90_1/ashrae_90_1_2004/ashrae_90_1_2004.Space.rb +1 -1
- data/lib/openstudio-standards/standards/ashrae_90_1/ashrae_90_1_2007/ashrae_90_1_2007.Space.rb +1 -1
- data/lib/openstudio-standards/standards/ashrae_90_1/ashrae_90_1_2010/ashrae_90_1_2010.AirLoopHVAC.rb +4 -4
- data/lib/openstudio-standards/standards/ashrae_90_1/ashrae_90_1_2010/ashrae_90_1_2010.AirTerminalSingleDuctVAVReheat.rb +1 -1
- data/lib/openstudio-standards/standards/ashrae_90_1/ashrae_90_1_2010/ashrae_90_1_2010.Space.rb +4 -4
- data/lib/openstudio-standards/standards/ashrae_90_1/ashrae_90_1_2013/ashrae_90_1_2013.AirLoopHVAC.rb +4 -4
- data/lib/openstudio-standards/standards/ashrae_90_1/ashrae_90_1_2013/ashrae_90_1_2013.AirTerminalSingleDuctVAVReheat.rb +1 -1
- data/lib/openstudio-standards/standards/ashrae_90_1/ashrae_90_1_2013/ashrae_90_1_2013.CoolingTowerVariableSpeed.rb +1 -1
- data/lib/openstudio-standards/standards/ashrae_90_1/ashrae_90_1_2013/ashrae_90_1_2013.Model.rb +5 -21
- data/lib/openstudio-standards/standards/ashrae_90_1/ashrae_90_1_2013/ashrae_90_1_2013.Space.rb +4 -4
- data/lib/openstudio-standards/standards/ashrae_90_1/ashrae_90_1_2013/ashrae_90_1_2013.WaterHeaterMixed.rb +1 -1
- data/lib/openstudio-standards/standards/ashrae_90_1/ashrae_90_1_2013/ashrae_90_1_2013.ZoneHVACComponent.rb +1 -1
- data/lib/openstudio-standards/standards/ashrae_90_1/ashrae_90_1_2016/ashrae_90_1_2016.AirLoopHVAC.rb +36 -4
- data/lib/openstudio-standards/standards/ashrae_90_1/ashrae_90_1_2016/ashrae_90_1_2016.AirTerminalSingleDuctVAVReheat.rb +1 -1
- data/lib/openstudio-standards/standards/ashrae_90_1/ashrae_90_1_2016/ashrae_90_1_2016.CoolingTowerVariableSpeed.rb +1 -1
- data/lib/openstudio-standards/standards/ashrae_90_1/ashrae_90_1_2016/ashrae_90_1_2016.Space.rb +4 -4
- data/lib/openstudio-standards/standards/ashrae_90_1/ashrae_90_1_2016/ashrae_90_1_2016.ZoneHVACComponent.rb +1 -1
- 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
- data/lib/openstudio-standards/standards/ashrae_90_1/ashrae_90_1_2019/ashrae_90_1_2019.AirLoopHVAC.rb +53 -10
- data/lib/openstudio-standards/standards/ashrae_90_1/ashrae_90_1_2019/ashrae_90_1_2019.AirTerminalSingleDuctVAVReheat.rb +1 -1
- data/lib/openstudio-standards/standards/ashrae_90_1/ashrae_90_1_2019/ashrae_90_1_2019.CoolingTowerVariableSpeed.rb +1 -1
- data/lib/openstudio-standards/standards/ashrae_90_1/ashrae_90_1_2019/ashrae_90_1_2019.Space.rb +6 -6
- data/lib/openstudio-standards/standards/ashrae_90_1/ashrae_90_1_2019/ashrae_90_1_2019.ZoneHVACComponent.rb +2 -2
- 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
- data/lib/openstudio-standards/standards/ashrae_90_1/data/ashrae_90_1.curves.json +211 -211
- data/lib/openstudio-standards/standards/ashrae_90_1/doe_ref_1980_2004/data/doe_ref_1980_2004.economizers.json +14 -14
- data/lib/openstudio-standards/standards/ashrae_90_1/doe_ref_1980_2004/doe_ref_1980_2004.AirLoopHVAC.rb +4 -4
- data/lib/openstudio-standards/standards/ashrae_90_1/doe_ref_1980_2004/doe_ref_1980_2004.Model.rb +1 -1
- data/lib/openstudio-standards/standards/ashrae_90_1/doe_ref_1980_2004/doe_ref_1980_2004.PlantLoop.rb +1 -1
- data/lib/openstudio-standards/standards/ashrae_90_1/doe_ref_pre_1980/data/doe_ref_pre_1980.economizers.json +14 -14
- data/lib/openstudio-standards/standards/ashrae_90_1/doe_ref_pre_1980/doe_ref_pre_1980.AirLoopHVAC.rb +4 -4
- data/lib/openstudio-standards/standards/ashrae_90_1/doe_ref_pre_1980/doe_ref_pre_1980.Model.rb +1 -1
- data/lib/openstudio-standards/standards/ashrae_90_1/doe_ref_pre_1980/doe_ref_pre_1980.PlantLoop.rb +1 -1
- data/lib/openstudio-standards/standards/ashrae_90_1/nrel_zne_ready_2017/nrel_zne_ready_2017.AirLoopHVAC.rb +6 -6
- data/lib/openstudio-standards/standards/ashrae_90_1/nrel_zne_ready_2017/nrel_zne_ready_2017.AirTerminalSingleDuctVAVReheat.rb +1 -1
- data/lib/openstudio-standards/standards/ashrae_90_1/nrel_zne_ready_2017/nrel_zne_ready_2017.CoolingTowerVariableSpeed.rb +1 -1
- data/lib/openstudio-standards/standards/ashrae_90_1/nrel_zne_ready_2017/nrel_zne_ready_2017.PlantLoop.rb +1 -1
- data/lib/openstudio-standards/standards/ashrae_90_1/nrel_zne_ready_2017/nrel_zne_ready_2017.Space.rb +4 -4
- data/lib/openstudio-standards/standards/ashrae_90_1/ze_aedg_multifamily/ze_aedg_multifamily.AirLoopHVAC.rb +6 -6
- data/lib/openstudio-standards/standards/ashrae_90_1/ze_aedg_multifamily/ze_aedg_multifamily.AirTerminalSingleDuctVAVReheat.rb +1 -1
- data/lib/openstudio-standards/standards/ashrae_90_1/ze_aedg_multifamily/ze_aedg_multifamily.CoolingTowerVariableSpeed.rb +1 -1
- data/lib/openstudio-standards/standards/ashrae_90_1/ze_aedg_multifamily/ze_aedg_multifamily.PlantLoop.rb +1 -1
- data/lib/openstudio-standards/standards/ashrae_90_1/ze_aedg_multifamily/ze_aedg_multifamily.Space.rb +4 -4
- data/lib/openstudio-standards/standards/ashrae_90_1_prm/ashrae_90_1_prm.AirLoopHVAC.rb +22 -28
- data/lib/openstudio-standards/standards/ashrae_90_1_prm/ashrae_90_1_prm.AirTerminalSingleDuctParallelPIUReheat.rb +1 -1
- data/lib/openstudio-standards/standards/ashrae_90_1_prm/ashrae_90_1_prm.AirTerminalSingleDuctVAVReheat.rb +2 -2
- data/lib/openstudio-standards/standards/ashrae_90_1_prm/ashrae_90_1_prm.BoilerHotWater.rb +1 -74
- data/lib/openstudio-standards/standards/ashrae_90_1_prm/ashrae_90_1_prm.ChillerElectricEIR.rb +7 -59
- data/lib/openstudio-standards/standards/ashrae_90_1_prm/ashrae_90_1_prm.CoilCoolingDXSingleSpeed.rb +1 -1
- data/lib/openstudio-standards/standards/ashrae_90_1_prm/ashrae_90_1_prm.CoilCoolingDXTwoSpeed.rb +1 -1
- data/lib/openstudio-standards/standards/ashrae_90_1_prm/ashrae_90_1_prm.CoilDX.rb +1 -1
- data/lib/openstudio-standards/standards/ashrae_90_1_prm/ashrae_90_1_prm.CoilHeatingDXSingleSpeed.rb +1 -1
- data/lib/openstudio-standards/standards/ashrae_90_1_prm/ashrae_90_1_prm.CoilHeatingGas.rb +1 -21
- data/lib/openstudio-standards/standards/ashrae_90_1_prm/ashrae_90_1_prm.DesignSpecificationOutdoorAir.rb +101 -0
- data/lib/openstudio-standards/standards/ashrae_90_1_prm/ashrae_90_1_prm.FanConstantVolume.rb +1 -1
- data/lib/openstudio-standards/standards/ashrae_90_1_prm/ashrae_90_1_prm.FanOnOff.rb +1 -1
- data/lib/openstudio-standards/standards/ashrae_90_1_prm/ashrae_90_1_prm.FanVariableVolume.rb +1 -1
- data/lib/openstudio-standards/standards/ashrae_90_1_prm/ashrae_90_1_prm.HeatExchangerSensLat.rb +1 -1
- data/lib/openstudio-standards/standards/ashrae_90_1_prm/ashrae_90_1_prm.Model.rb +643 -526
- data/lib/openstudio-standards/standards/ashrae_90_1_prm/ashrae_90_1_prm.PlanarSurface.rb +8 -2
- data/lib/openstudio-standards/standards/ashrae_90_1_prm/ashrae_90_1_prm.PlantLoop.rb +17 -77
- data/lib/openstudio-standards/standards/ashrae_90_1_prm/ashrae_90_1_prm.Space.rb +74 -16
- data/lib/openstudio-standards/standards/ashrae_90_1_prm/ashrae_90_1_prm.SpaceType.rb +96 -44
- data/lib/openstudio-standards/standards/ashrae_90_1_prm/ashrae_90_1_prm.Surface.rb +6 -6
- data/lib/openstudio-standards/standards/ashrae_90_1_prm/ashrae_90_1_prm.ThermalZone.rb +18 -6
- data/lib/openstudio-standards/standards/ashrae_90_1_prm/ashrae_90_1_prm.ZoneHVACComponent.rb +1 -1
- data/lib/openstudio-standards/standards/ashrae_90_1_prm/ashrae_90_1_prm.rb +328 -74
- data/lib/openstudio-standards/standards/ashrae_90_1_prm/ashrae_90_1_prm_2019/ashrae_90_1_prm_2019.Model.rb +0 -118
- data/lib/openstudio-standards/standards/ashrae_90_1_prm/ashrae_90_1_prm_2019/ashrae_90_1_prm_2019.rb +2 -1
- 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
- data/lib/openstudio-standards/standards/ashrae_90_1_prm/docs/baseline_outdoor_air.md +35 -0
- data/lib/openstudio-standards/standards/ashrae_90_1_prm/docs/set_plug_load_measures.md +1 -1
- data/lib/openstudio-standards/standards/ashrae_90_1_prm/userdata_csv/ashrae_90_1_prm.UserData.rb +228 -0
- data/lib/openstudio-standards/standards/ashrae_90_1_prm/userdata_csv/userdata_enums.rb +131 -0
- data/lib/openstudio-standards/standards/ashrae_90_1_prm/userdata_csv/userdata_space.csv +1 -1
- data/lib/openstudio-standards/standards/cbes/cbes.AirLoopHVAC.rb +5 -5
- data/lib/openstudio-standards/standards/cbes/cbes.Model.rb +1 -1
- data/lib/openstudio-standards/standards/cbes/cbes.PlantLoop.rb +1 -1
- data/lib/openstudio-standards/standards/cbes/cbes.Space.rb +1 -1
- data/lib/openstudio-standards/standards/cbes/cbes_t24_2005/cbes_t24_2005.Space.rb +1 -1
- data/lib/openstudio-standards/standards/cbes/cbes_t24_2008/cbes_t24_2008.Space.rb +1 -1
- data/lib/openstudio-standards/standards/deer/deer.AirLoopHVAC.rb +109 -27
- data/lib/openstudio-standards/standards/deer/deer.Space.rb +1 -1
- data/lib/openstudio-standards/standards/deer/deer_1985/data/deer_1985.economizers.json +246 -4
- data/lib/openstudio-standards/standards/deer/deer_1996/data/deer_1996.economizers.json +246 -4
- data/lib/openstudio-standards/standards/deer/deer_2003/data/deer_2003.economizers.json +246 -4
- data/lib/openstudio-standards/standards/deer/deer_2003/deer_2003.ThermalZone.rb +18 -18
- data/lib/openstudio-standards/standards/deer/deer_2007/data/deer_2007.economizers.json +246 -4
- data/lib/openstudio-standards/standards/deer/deer_2007/deer_2007.ThermalZone.rb +18 -18
- data/lib/openstudio-standards/standards/deer/deer_2011/data/deer_2011.economizers.json +246 -4
- data/lib/openstudio-standards/standards/deer/deer_2011/deer_2011.ThermalZone.rb +18 -18
- data/lib/openstudio-standards/standards/deer/deer_2014/data/deer_2014.economizers.json +248 -6
- data/lib/openstudio-standards/standards/deer/deer_2014/deer_2014.Space.rb +3 -3
- data/lib/openstudio-standards/standards/deer/deer_2014/deer_2014.ThermalZone.rb +18 -18
- data/lib/openstudio-standards/standards/deer/deer_2015/data/deer_2015.economizers.json +248 -6
- data/lib/openstudio-standards/standards/deer/deer_2015/deer_2015.Space.rb +3 -3
- data/lib/openstudio-standards/standards/deer/deer_2015/deer_2015.ThermalZone.rb +18 -18
- data/lib/openstudio-standards/standards/deer/deer_2017/data/deer_2017.economizers.json +248 -6
- data/lib/openstudio-standards/standards/deer/deer_2017/deer_2017.Space.rb +3 -3
- data/lib/openstudio-standards/standards/deer/deer_2017/deer_2017.ThermalZone.rb +18 -18
- data/lib/openstudio-standards/standards/deer/deer_2020/data/deer_2020.economizers.json +248 -6
- data/lib/openstudio-standards/standards/deer/deer_2020/deer_2020.AirLoopHVAC.rb +18 -5
- data/lib/openstudio-standards/standards/deer/deer_2020/deer_2020.FanVariableVolume.rb +1 -1
- data/lib/openstudio-standards/standards/deer/deer_2020/deer_2020.Space.rb +3 -3
- data/lib/openstudio-standards/standards/deer/deer_2020/deer_2020.ThermalZone.rb +18 -18
- data/lib/openstudio-standards/standards/deer/deer_2025/data/deer_2025.economizers.json +248 -6
- data/lib/openstudio-standards/standards/deer/deer_2025/deer_2025.AirLoopHVAC.rb +3 -3
- data/lib/openstudio-standards/standards/deer/deer_2025/deer_2025.FanVariableVolume.rb +1 -1
- data/lib/openstudio-standards/standards/deer/deer_2025/deer_2025.Space.rb +3 -3
- data/lib/openstudio-standards/standards/deer/deer_2030/data/deer_2030.economizers.json +248 -6
- data/lib/openstudio-standards/standards/deer/deer_2030/data/deer_2030.heat_pumps.json +2 -2
- data/lib/openstudio-standards/standards/deer/deer_2030/deer_2030.AirLoopHVAC.rb +3 -3
- data/lib/openstudio-standards/standards/deer/deer_2030/deer_2030.FanVariableVolume.rb +1 -1
- data/lib/openstudio-standards/standards/deer/deer_2030/deer_2030.Space.rb +3 -3
- data/lib/openstudio-standards/standards/deer/deer_2035/data/deer_2035.economizers.json +248 -6
- data/lib/openstudio-standards/standards/deer/deer_2035/deer_2035.AirLoopHVAC.rb +3 -3
- data/lib/openstudio-standards/standards/deer/deer_2035/deer_2035.FanVariableVolume.rb +1 -1
- data/lib/openstudio-standards/standards/deer/deer_2035/deer_2035.Space.rb +3 -3
- data/lib/openstudio-standards/standards/deer/deer_2040/data/deer_2040.economizers.json +248 -6
- data/lib/openstudio-standards/standards/deer/deer_2040/deer_2040.AirLoopHVAC.rb +3 -3
- data/lib/openstudio-standards/standards/deer/deer_2040/deer_2040.FanVariableVolume.rb +1 -1
- data/lib/openstudio-standards/standards/deer/deer_2040/deer_2040.Space.rb +3 -3
- data/lib/openstudio-standards/standards/deer/deer_2045/data/deer_2045.economizers.json +260 -0
- data/lib/openstudio-standards/standards/deer/deer_2045/deer_2045.AirLoopHVAC.rb +3 -3
- data/lib/openstudio-standards/standards/deer/deer_2045/deer_2045.FanVariableVolume.rb +1 -1
- data/lib/openstudio-standards/standards/deer/deer_2045/deer_2045.Space.rb +3 -3
- data/lib/openstudio-standards/standards/deer/deer_2050/data/deer_2050.economizers.json +248 -6
- data/lib/openstudio-standards/standards/deer/deer_2050/deer_2050.AirLoopHVAC.rb +3 -3
- data/lib/openstudio-standards/standards/deer/deer_2050/deer_2050.FanVariableVolume.rb +1 -1
- data/lib/openstudio-standards/standards/deer/deer_2050/deer_2050.Space.rb +3 -3
- data/lib/openstudio-standards/standards/deer/deer_2055/data/deer_2055.economizers.json +248 -6
- data/lib/openstudio-standards/standards/deer/deer_2055/deer_2055.AirLoopHVAC.rb +3 -3
- data/lib/openstudio-standards/standards/deer/deer_2055/deer_2055.FanVariableVolume.rb +1 -1
- data/lib/openstudio-standards/standards/deer/deer_2055/deer_2055.Space.rb +3 -3
- data/lib/openstudio-standards/standards/deer/deer_2060/data/deer_2060.economizers.json +248 -6
- data/lib/openstudio-standards/standards/deer/deer_2060/deer_2060.AirLoopHVAC.rb +3 -3
- data/lib/openstudio-standards/standards/deer/deer_2060/deer_2060.FanVariableVolume.rb +1 -1
- data/lib/openstudio-standards/standards/deer/deer_2060/deer_2060.Space.rb +3 -3
- data/lib/openstudio-standards/standards/deer/deer_2065/data/deer_2065.economizers.json +248 -6
- data/lib/openstudio-standards/standards/deer/deer_2065/deer_2065.AirLoopHVAC.rb +3 -3
- data/lib/openstudio-standards/standards/deer/deer_2065/deer_2065.FanVariableVolume.rb +1 -1
- data/lib/openstudio-standards/standards/deer/deer_2065/deer_2065.Space.rb +3 -3
- data/lib/openstudio-standards/standards/deer/deer_2070/data/deer_2070.economizers.json +248 -6
- data/lib/openstudio-standards/standards/deer/deer_2070/deer_2070.AirLoopHVAC.rb +3 -3
- data/lib/openstudio-standards/standards/deer/deer_2070/deer_2070.FanVariableVolume.rb +1 -1
- data/lib/openstudio-standards/standards/deer/deer_2070/deer_2070.Space.rb +3 -3
- data/lib/openstudio-standards/standards/deer/deer_2075/data/deer_2075.economizers.json +248 -6
- data/lib/openstudio-standards/standards/deer/deer_2075/deer_2075.AirLoopHVAC.rb +3 -3
- data/lib/openstudio-standards/standards/deer/deer_2075/deer_2075.FanVariableVolume.rb +1 -1
- data/lib/openstudio-standards/standards/deer/deer_2075/deer_2075.Space.rb +3 -3
- data/lib/openstudio-standards/standards/deer/deer_pre_1975/data/deer_pre_1975.economizers.json +246 -4
- data/lib/openstudio-standards/standards/necb/BTAP1980TO2010/data/space_types.json +447 -223
- data/lib/openstudio-standards/standards/necb/BTAPPRE1980/building_envelope.rb +1 -1
- data/lib/openstudio-standards/standards/necb/BTAPPRE1980/data/space_types.json +447 -223
- data/lib/openstudio-standards/standards/necb/BTAPPRE1980/hvac_systems.rb +5 -2
- data/lib/openstudio-standards/standards/necb/ECMS/data/chiller_types.json +25 -0
- data/lib/openstudio-standards/standards/necb/ECMS/data/chillers.json +44 -0
- data/lib/openstudio-standards/standards/necb/ECMS/data/curves.json +225 -0
- data/lib/openstudio-standards/standards/necb/ECMS/ecms.rb +2 -2
- data/lib/openstudio-standards/standards/necb/ECMS/hvac_systems.rb +193 -73
- data/lib/openstudio-standards/standards/necb/ECMS/pv_ground.rb +1 -1
- data/lib/openstudio-standards/standards/necb/NECB2011/autozone.rb +10 -4
- data/lib/openstudio-standards/standards/necb/NECB2011/beps_compliance_path.rb +7 -7
- data/lib/openstudio-standards/standards/necb/NECB2011/building_envelope.rb +4 -5
- data/lib/openstudio-standards/standards/necb/NECB2011/data/chiller_types.json +32 -0
- data/lib/openstudio-standards/standards/necb/NECB2011/data/chillers.json +1 -1
- data/lib/openstudio-standards/standards/necb/NECB2011/data/constants.json +36 -0
- data/lib/openstudio-standards/standards/necb/NECB2011/data/fuel_type_sets.json +7 -7
- data/lib/openstudio-standards/standards/necb/NECB2011/data/geometry/NorthernEducation.osm +47587 -0
- data/lib/openstudio-standards/standards/necb/NECB2011/data/geometry/NorthernHealthCare.osm +49764 -0
- data/lib/openstudio-standards/standards/necb/NECB2011/data/geometry/Warehouse.osm +283 -297
- data/lib/openstudio-standards/standards/necb/NECB2011/data/space_type_unit_definitions.txt +2 -1
- data/lib/openstudio-standards/standards/necb/NECB2011/data/space_types.json +447 -223
- data/lib/openstudio-standards/standards/necb/NECB2011/data/standards_data.rb +3 -3
- data/lib/openstudio-standards/standards/necb/NECB2011/hvac_system_1_multi_speed.rb +1 -1
- data/lib/openstudio-standards/standards/necb/NECB2011/hvac_systems.rb +49 -27
- data/lib/openstudio-standards/standards/necb/NECB2011/necb_2011.rb +400 -202
- data/lib/openstudio-standards/standards/necb/NECB2011/service_water_heating.rb +4 -4
- data/lib/openstudio-standards/standards/necb/NECB2015/data/space_types.json +637 -318
- data/lib/openstudio-standards/standards/necb/NECB2015/hvac_systems.rb +18 -1
- data/lib/openstudio-standards/standards/necb/NECB2015/necb_2015.rb +3 -3
- data/lib/openstudio-standards/standards/necb/NECB2017/data/space_types.json +637 -318
- data/lib/openstudio-standards/standards/necb/NECB2017/hvac_systems.rb +1 -1
- data/lib/openstudio-standards/standards/necb/NECB2017/necb_2017.rb +3 -3
- data/lib/openstudio-standards/standards/necb/NECB2020/building_envelope.rb +1 -1
- data/lib/openstudio-standards/standards/necb/NECB2020/data/space_types.json +615 -307
- data/lib/openstudio-standards/standards/necb/NECB2020/service_water_heating.rb +4 -4
- data/lib/openstudio-standards/standards/necb/common/btap_data.rb +10 -5
- data/lib/openstudio-standards/standards/necb/common/btap_datapoint.rb +1 -1
- data/lib/openstudio-standards/utilities/assertion.rb +128 -0
- data/lib/openstudio-standards/utilities/logging.rb +2 -3
- data/lib/openstudio-standards/utilities/object_info.rb +39 -18
- data/lib/openstudio-standards/utilities/schedule_translator.rb +8 -6
- data/lib/openstudio-standards/utilities/simulation.rb +24 -11
- data/lib/openstudio-standards/utilities/sqlfile.rb +10 -5
- data/lib/openstudio-standards/version.rb +1 -1
- data/lib/openstudio-standards/weather/Weather.Model.rb +8 -9
- data/lib/openstudio-standards/weather/Weather.stat_file.rb +3 -3
- data/lib/openstudio-standards/weather/information.rb +35 -0
- data/lib/openstudio-standards.rb +69 -5
- metadata +52 -16
- data/data/standards/OpenStudio_Standards-deer-ALL-comstock(space_types).xlsx +0 -0
- data/lib/openstudio-standards/hvac_sizing/Siz.AirLoopHVAC.rb +0 -59
- data/lib/openstudio-standards/hvac_sizing/Siz.CoilCoolingWater.rb +0 -13
- data/lib/openstudio-standards/hvac_sizing/Siz.HVACComponent.rb +0 -36
- data/lib/openstudio-standards/hvac_sizing/Siz.HeatingCoolingFuels.rb +0 -898
- data/lib/openstudio-standards/hvac_sizing/Siz.Model.rb +0 -126
- data/lib/openstudio-standards/hvac_sizing/Siz.ThermalZone.rb +0 -356
- data/lib/openstudio-standards/prototypes/ashrae_90_1/nrel_nze_ready_2017/nrel_zne_ready_2017.Model.rb +0 -35
- data/lib/openstudio-standards/standards/ashrae_90_1_prm/ashrae_90_1_prm.CoolingTower.rb +0 -110
- data/lib/openstudio-standards/standards/ashrae_90_1_prm/ashrae_90_1_prm.CoolingTowerVariableSpeed.rb +0 -5
@@ -0,0 +1,497 @@
|
|
1
|
+
# Module to apply QAQC checks to a model
|
2
|
+
module OpenstudioStandards
|
3
|
+
module QAQC
|
4
|
+
# @!group Weather File
|
5
|
+
|
6
|
+
# Check the weather file design days and climate zone
|
7
|
+
#
|
8
|
+
# @param category [String] category to bin this check into
|
9
|
+
# @param options [Hash] Hash with epw file as a string,
|
10
|
+
# with child objects, 'summer' and 'winter' for each design day (strings),
|
11
|
+
# and 'climate_zone' for the climate zone number
|
12
|
+
# @param name_only [Boolean] If true, only return the name of this check
|
13
|
+
# @return [OpenStudio::Attribute] OpenStudio Attribute object containing check results
|
14
|
+
def self.check_weather_files(category, options, name_only: false)
|
15
|
+
# summary of the check
|
16
|
+
check_elems = OpenStudio::AttributeVector.new
|
17
|
+
check_elems << OpenStudio::Attribute.new('name', 'Weather Files')
|
18
|
+
check_elems << OpenStudio::Attribute.new('category', category)
|
19
|
+
check_elems << OpenStudio::Attribute.new('description', "Check weather file, design days, and climate zone against #{@utility_name} list of allowable options.")
|
20
|
+
|
21
|
+
# stop here if only name is requested this is used to populate display name for arguments
|
22
|
+
if name_only == true
|
23
|
+
results = []
|
24
|
+
check_elems.each do |elem|
|
25
|
+
results << elem.valueAsString
|
26
|
+
end
|
27
|
+
return results
|
28
|
+
end
|
29
|
+
|
30
|
+
begin
|
31
|
+
# get weather file
|
32
|
+
model_epw = nil
|
33
|
+
if @model.getWeatherFile.url.is_initialized
|
34
|
+
raw_epw = @model.getWeatherFile.url.get
|
35
|
+
end_path_index = raw_epw.rindex('/')
|
36
|
+
model_epw = raw_epw.slice!(end_path_index + 1, raw_epw.length) # everything right of last forward slash
|
37
|
+
end
|
38
|
+
|
39
|
+
# check design days (model must have one or more of the required summer and winter design days)
|
40
|
+
# get design days names from model
|
41
|
+
model_summer_dd_names = []
|
42
|
+
model_winter_dd_names = []
|
43
|
+
@model.getDesignDays.each do |design_day|
|
44
|
+
if design_day.dayType == 'SummerDesignDay'
|
45
|
+
model_summer_dd_names << design_day.name.to_s
|
46
|
+
elsif design_day.dayType == 'WinterDesignDay'
|
47
|
+
model_winter_dd_names << design_day.name.to_s
|
48
|
+
else
|
49
|
+
puts "unexpected day type of #{design_day.dayType} wont' be included in check"
|
50
|
+
end
|
51
|
+
end
|
52
|
+
|
53
|
+
# find matching weather file from options, as well as design days and climate zone
|
54
|
+
if options.key?(model_epw)
|
55
|
+
required_summer_dd = options[model_epw]['summer']
|
56
|
+
required_winter_dd = options[model_epw]['winter']
|
57
|
+
valid_climate_zones = [options[model_epw]['climate_zone']]
|
58
|
+
|
59
|
+
# check for intersection betwen model valid design days
|
60
|
+
summer_intersection = (required_summer_dd & model_summer_dd_names)
|
61
|
+
winter_intersection = (required_winter_dd & model_winter_dd_names)
|
62
|
+
if summer_intersection.empty? && !required_summer_dd.empty?
|
63
|
+
check_elems << OpenStudio::Attribute.new('flag', "Didn't find any of the expected summer design days for #{model_epw}")
|
64
|
+
end
|
65
|
+
if winter_intersection.empty? && !required_winter_dd.empty?
|
66
|
+
check_elems << OpenStudio::Attribute.new('flag', "Didn't find any of the expected winter design days for #{model_epw}")
|
67
|
+
end
|
68
|
+
|
69
|
+
else
|
70
|
+
check_elems << OpenStudio::Attribute.new('flag', "#{model_epw} is not a an expected weather file.")
|
71
|
+
check_elems << OpenStudio::Attribute.new('flag', "Model doesn't have expected epw file, as a result can't validate design days.")
|
72
|
+
valid_climate_zones = []
|
73
|
+
options.each do |lookup_epw, value|
|
74
|
+
valid_climate_zones << value['climate_zone']
|
75
|
+
end
|
76
|
+
end
|
77
|
+
|
78
|
+
# get ashrae climate zone from model
|
79
|
+
model_climate_zone = nil
|
80
|
+
climateZones = @model.getClimateZones
|
81
|
+
climateZones.climateZones.each do |climateZone|
|
82
|
+
if climateZone.institution == 'ASHRAE'
|
83
|
+
model_climate_zone = climateZone.value
|
84
|
+
next
|
85
|
+
end
|
86
|
+
end
|
87
|
+
if model_climate_zone == ''
|
88
|
+
check_elems << OpenStudio::Attribute.new('flag', "The model's ASHRAE climate zone has not been defined. Expected climate zone was #{valid_climate_zones.uniq.join(',')}.")
|
89
|
+
elsif !valid_climate_zones.include?(model_climate_zone)
|
90
|
+
check_elems << OpenStudio::Attribute.new('flag', "The model's ASHRAE climate zone was #{model_climate_zone}. Expected climate zone was #{valid_climate_zones.uniq.join(',')}.")
|
91
|
+
end
|
92
|
+
rescue StandardError => e
|
93
|
+
# brief description of ruby error
|
94
|
+
check_elems << OpenStudio::Attribute.new('flag', "Error prevented QAQC check from running (#{e}).")
|
95
|
+
|
96
|
+
# backtrace of ruby error for diagnostic use
|
97
|
+
if @error_backtrace then check_elems << OpenStudio::Attribute.new('flag', e.backtrace.join("\n").to_s) end
|
98
|
+
end
|
99
|
+
|
100
|
+
# add check_elms to new attribute
|
101
|
+
check_elem = OpenStudio::Attribute.new('check', check_elems)
|
102
|
+
|
103
|
+
return check_elem
|
104
|
+
end
|
105
|
+
|
106
|
+
# checks the weather files matches the appropriate weather file for the Los Angeles zip code
|
107
|
+
#
|
108
|
+
# @param category [String] category to bin this check into
|
109
|
+
# @param zip_code [String] Los Angeles zip code
|
110
|
+
# @param name_only [Boolean] If true, only return the name of this check
|
111
|
+
# @return [OpenStudio::Attribute] OpenStudio Attribute object containing check results
|
112
|
+
def self.check_la_weather_files(category, zip_code, name_only: false)
|
113
|
+
# summary of the check
|
114
|
+
check_elems = OpenStudio::AttributeVector.new
|
115
|
+
check_elems << OpenStudio::Attribute.new('name', 'LA Weather Files')
|
116
|
+
check_elems << OpenStudio::Attribute.new('category', category)
|
117
|
+
check_elems << OpenStudio::Attribute.new('description', 'Check that correct weather file was used for the selected zip code.')
|
118
|
+
|
119
|
+
# stop here if only name is requested this is used to populate display name for arguments
|
120
|
+
if name_only == true
|
121
|
+
results = []
|
122
|
+
check_elems.each do |elem|
|
123
|
+
results << elem.valueAsString
|
124
|
+
end
|
125
|
+
return results
|
126
|
+
end
|
127
|
+
|
128
|
+
begin
|
129
|
+
# get weather file
|
130
|
+
model_epw = nil
|
131
|
+
if @model.getWeatherFile.url.is_initialized
|
132
|
+
model_epw = @model.getWeatherFile.url.get
|
133
|
+
model_epw = model_epw.gsub('file:', '')
|
134
|
+
model_epw = model_epw.gsub('files/', '')
|
135
|
+
end
|
136
|
+
|
137
|
+
# Get the correct weather file based on the zip code
|
138
|
+
zip_to_epw = {
|
139
|
+
'90001' => 'USA_CA_Hawthorne-Jack.Northrop.Field.722956_TMY3.epw',
|
140
|
+
'90002' => 'USA_CA_Hawthorne-Jack.Northrop.Field.722956_TMY3.epw',
|
141
|
+
'90003' => 'USA_CA_Hawthorne-Jack.Northrop.Field.722956_TMY3.epw',
|
142
|
+
'90004' => 'LOS-ANGELES-DOWNTOWN_722874_CZ2010.epw',
|
143
|
+
'90005' => 'LOS-ANGELES-DOWNTOWN_722874_CZ2010.epw',
|
144
|
+
'90006' => 'LOS-ANGELES-DOWNTOWN_722874_CZ2010.epw',
|
145
|
+
'90007' => 'LOS-ANGELES-DOWNTOWN_722874_CZ2010.epw',
|
146
|
+
'90008' => 'USA_CA_Hawthorne-Jack.Northrop.Field.722956_TMY3.epw',
|
147
|
+
'90010' => 'LOS-ANGELES-DOWNTOWN_722874_CZ2010.epw',
|
148
|
+
'90011' => 'USA_CA_Hawthorne-Jack.Northrop.Field.722956_TMY3.epw',
|
149
|
+
'90012' => 'LOS-ANGELES-DOWNTOWN_722874_CZ2010.epw',
|
150
|
+
'90013' => 'LOS-ANGELES-DOWNTOWN_722874_CZ2010.epw',
|
151
|
+
'90014' => 'LOS-ANGELES-DOWNTOWN_722874_CZ2010.epw',
|
152
|
+
'90015' => 'LOS-ANGELES-DOWNTOWN_722874_CZ2010.epw',
|
153
|
+
'90016' => 'LOS-ANGELES-DOWNTOWN_722874_CZ2010.epw',
|
154
|
+
'90017' => 'LOS-ANGELES-DOWNTOWN_722874_CZ2010.epw',
|
155
|
+
'90018' => 'LOS-ANGELES-DOWNTOWN_722874_CZ2010.epw',
|
156
|
+
'90019' => 'LOS-ANGELES-DOWNTOWN_722874_CZ2010.epw',
|
157
|
+
'90020' => 'LOS-ANGELES-DOWNTOWN_722874_CZ2010.epw',
|
158
|
+
'90021' => 'LOS-ANGELES-DOWNTOWN_722874_CZ2010.epw',
|
159
|
+
'90022' => 'LOS-ANGELES-DOWNTOWN_722874_CZ2010.epw',
|
160
|
+
'90023' => 'LOS-ANGELES-DOWNTOWN_722874_CZ2010.epw',
|
161
|
+
'90024' => 'USA_CA_Santa.Monica.Muni.AP.722885_TMY3.epw',
|
162
|
+
'90025' => 'USA_CA_Santa.Monica.Muni.AP.722885_TMY3.epw',
|
163
|
+
'90026' => 'LOS-ANGELES-DOWNTOWN_722874_CZ2010.epw',
|
164
|
+
'90027' => 'USA_CA_Burbank-Glendale-Pasadena.Bob.Hope.AP.722880_ TMY3.epw',
|
165
|
+
'90028' => 'USA_CA_Burbank-Glendale-Pasadena.Bob.Hope.AP.722880_ TMY3.epw',
|
166
|
+
'90029' => 'LOS-ANGELES-DOWNTOWN_722874_CZ2010.epw',
|
167
|
+
'90031' => 'LOS-ANGELES-DOWNTOWN_722874_CZ2010.epw',
|
168
|
+
'90032' => 'LOS-ANGELES-DOWNTOWN_722874_CZ2010.epw',
|
169
|
+
'90033' => 'LOS-ANGELES-DOWNTOWN_722874_CZ2010.epw',
|
170
|
+
'90034' => 'USA_CA_Santa.Monica.Muni.AP.722885_TMY3.epw',
|
171
|
+
'90035' => 'LOS-ANGELES-DOWNTOWN_722874_CZ2010.epw',
|
172
|
+
'90036' => 'LOS-ANGELES-DOWNTOWN_722874_CZ2010.epw',
|
173
|
+
'90037' => 'USA_CA_Hawthorne-Jack.Northrop.Field.722956_TMY3.epw',
|
174
|
+
'90038' => 'LOS-ANGELES-DOWNTOWN_722874_CZ2010.epw',
|
175
|
+
'90039' => 'LOS-ANGELES-DOWNTOWN_722874_CZ2010.epw',
|
176
|
+
'90040' => 'LOS-ANGELES-DOWNTOWN_722874_CZ2010.epw',
|
177
|
+
'90041' => 'LOS-ANGELES-DOWNTOWN_722874_CZ2010.epw',
|
178
|
+
'90042' => 'LOS-ANGELES-DOWNTOWN_722874_CZ2010.epw',
|
179
|
+
'90043' => 'USA_CA_Hawthorne-Jack.Northrop.Field.722956_TMY3.epw',
|
180
|
+
'90044' => 'USA_CA_Hawthorne-Jack.Northrop.Field.722956_TMY3.epw',
|
181
|
+
'90045' => 'USA_CA_Los.Angeles.Intl.AP.722950_TMY3.epw',
|
182
|
+
'90046' => 'USA_CA_Burbank-Glendale-Pasadena.Bob.Hope.AP.722880_ TMY3.epw',
|
183
|
+
'90047' => 'USA_CA_Hawthorne-Jack.Northrop.Field.722956_TMY3.epw',
|
184
|
+
'90048' => 'LOS-ANGELES-DOWNTOWN_722874_CZ2010.epw',
|
185
|
+
'90049' => 'USA_CA_Santa.Monica.Muni.AP.722885_TMY3.epw',
|
186
|
+
'90056' => 'USA_CA_Los.Angeles.Intl.AP.722950_TMY3.epw',
|
187
|
+
'90057' => 'LOS-ANGELES-DOWNTOWN_722874_CZ2010.epw',
|
188
|
+
'90058' => 'USA_CA_Hawthorne-Jack.Northrop.Field.722956_TMY3.epw',
|
189
|
+
'90059' => 'USA_CA_Hawthorne-Jack.Northrop.Field.722956_TMY3.epw',
|
190
|
+
'90061' => 'USA_CA_Hawthorne-Jack.Northrop.Field.722956_TMY3.epw',
|
191
|
+
'90062' => 'USA_CA_Hawthorne-Jack.Northrop.Field.722956_TMY3.epw',
|
192
|
+
'90063' => 'LOS-ANGELES-DOWNTOWN_722874_CZ2010.epw',
|
193
|
+
'90064' => 'USA_CA_Santa.Monica.Muni.AP.722885_TMY3.epw',
|
194
|
+
'90065' => 'LOS-ANGELES-DOWNTOWN_722874_CZ2010.epw',
|
195
|
+
'90066' => 'USA_CA_Santa.Monica.Muni.AP.722885_TMY3.epw',
|
196
|
+
'90067' => 'LOS-ANGELES-DOWNTOWN_722874_CZ2010.epw',
|
197
|
+
'90068' => 'USA_CA_Burbank-Glendale-Pasadena.Bob.Hope.AP.722880_ TMY3.epw',
|
198
|
+
'90069' => 'USA_CA_Burbank-Glendale-Pasadena.Bob.Hope.AP.722880_ TMY3.epw',
|
199
|
+
'90071' => 'LOS-ANGELES-DOWNTOWN_722874_CZ2010.epw',
|
200
|
+
'90073' => 'USA_CA_Santa.Monica.Muni.AP.722885_TMY3.epw',
|
201
|
+
'90077' => 'USA_CA_Santa.Monica.Muni.AP.722885_TMY3.epw',
|
202
|
+
'90089' => 'USA_CA_Hawthorne-Jack.Northrop.Field.722956_TMY3.epw',
|
203
|
+
'90094' => 'USA_CA_Santa.Monica.Muni.AP.722885_TMY3.epw',
|
204
|
+
'90095' => 'USA_CA_Santa.Monica.Muni.AP.722885_TMY3.epw',
|
205
|
+
'90201' => 'USA_CA_Hawthorne-Jack.Northrop.Field.722956_TMY3.epw',
|
206
|
+
'90210' => 'USA_CA_Burbank-Glendale-Pasadena.Bob.Hope.AP.722880_ TMY3.epw',
|
207
|
+
'90211' => 'LOS-ANGELES-DOWNTOWN_722874_CZ2010.epw',
|
208
|
+
'90212' => 'USA_CA_Burbank-Glendale-Pasadena.Bob.Hope.AP.722880_ TMY3.epw',
|
209
|
+
'90222' => 'USA_CA_Hawthorne-Jack.Northrop.Field.722956_TMY3.epw',
|
210
|
+
'90230' => 'USA_CA_Santa.Monica.Muni.AP.722885_TMY3.epw',
|
211
|
+
'90232' => 'USA_CA_Santa.Monica.Muni.AP.722885_TMY3.epw',
|
212
|
+
'90240' => 'LOS-ANGELES-DOWNTOWN_722874_CZ2010.epw',
|
213
|
+
'90245' => 'USA_CA_Los.Angeles.Intl.AP.722950_TMY3.epw',
|
214
|
+
'90247' => 'USA_CA_Hawthorne-Jack.Northrop.Field.722956_TMY3.epw',
|
215
|
+
'90248' => 'USA_CA_Hawthorne-Jack.Northrop.Field.722956_TMY3.epw',
|
216
|
+
'90249' => 'USA_CA_Hawthorne-Jack.Northrop.Field.722956_TMY3.epw',
|
217
|
+
'90250' => 'USA_CA_Hawthorne-Jack.Northrop.Field.722956_TMY3.epw',
|
218
|
+
'90254' => 'USA_CA_Los.Angeles.Intl.AP.722950_TMY3.epw',
|
219
|
+
'90255' => 'USA_CA_Hawthorne-Jack.Northrop.Field.722956_TMY3.epw',
|
220
|
+
'90260' => 'USA_CA_Hawthorne-Jack.Northrop.Field.722956_TMY3.epw',
|
221
|
+
'90262' => 'USA_CA_Hawthorne-Jack.Northrop.Field.722956_TMY3.epw',
|
222
|
+
'90263' => 'USA_CA_Santa.Monica.Muni.AP.722885_TMY3.epw',
|
223
|
+
'90265' => 'USA_CA_Van.Nuys.AP.722886_TMY3.epw',
|
224
|
+
'90266' => 'USA_CA_Los.Angeles.Intl.AP.722950_TMY3.epw',
|
225
|
+
'90270' => 'USA_CA_Hawthorne-Jack.Northrop.Field.722956_TMY3.epw',
|
226
|
+
'90272' => 'USA_CA_Santa.Monica.Muni.AP.722885_TMY3.epw',
|
227
|
+
'90274' => 'TORRANCE_722955_CZ2010.epw',
|
228
|
+
'90275' => 'TORRANCE_722955_CZ2010.epw',
|
229
|
+
'90277' => 'TORRANCE_722955_CZ2010.epw',
|
230
|
+
'90278' => 'USA_CA_Hawthorne-Jack.Northrop.Field.722956_TMY3.epw',
|
231
|
+
'90280' => 'USA_CA_Hawthorne-Jack.Northrop.Field.722956_TMY3.epw',
|
232
|
+
'90290' => 'USA_CA_Santa.Monica.Muni.AP.722885_TMY3.epw',
|
233
|
+
'90291' => 'USA_CA_Santa.Monica.Muni.AP.722885_TMY3.epw',
|
234
|
+
'90292' => 'USA_CA_Santa.Monica.Muni.AP.722885_TMY3.epw',
|
235
|
+
'90293' => 'USA_CA_Los.Angeles.Intl.AP.722950_TMY3.epw',
|
236
|
+
'90301' => 'USA_CA_Hawthorne-Jack.Northrop.Field.722956_TMY3.epw',
|
237
|
+
'90302' => 'USA_CA_Hawthorne-Jack.Northrop.Field.722956_TMY3.epw',
|
238
|
+
'90303' => 'USA_CA_Hawthorne-Jack.Northrop.Field.722956_TMY3.epw',
|
239
|
+
'90304' => 'USA_CA_Hawthorne-Jack.Northrop.Field.722956_TMY3.epw',
|
240
|
+
'90305' => 'USA_CA_Hawthorne-Jack.Northrop.Field.722956_TMY3.epw',
|
241
|
+
'90401' => 'USA_CA_Santa.Monica.Muni.AP.722885_TMY3.epw',
|
242
|
+
'90402' => 'USA_CA_Santa.Monica.Muni.AP.722885_TMY3.epw',
|
243
|
+
'90403' => 'USA_CA_Santa.Monica.Muni.AP.722885_TMY3.epw',
|
244
|
+
'90404' => 'USA_CA_Santa.Monica.Muni.AP.722885_TMY3.epw',
|
245
|
+
'90405' => 'USA_CA_Santa.Monica.Muni.AP.722885_TMY3.epw',
|
246
|
+
'90501' => 'TORRANCE_722955_CZ2010.epw',
|
247
|
+
'90502' => 'TORRANCE_722955_CZ2010.epw',
|
248
|
+
'90503' => 'TORRANCE_722955_CZ2010.epw',
|
249
|
+
'90504' => 'USA_CA_Hawthorne-Jack.Northrop.Field.722956_TMY3.epw',
|
250
|
+
'90505' => 'TORRANCE_722955_CZ2010.epw',
|
251
|
+
'90506' => 'USA_CA_Hawthorne-Jack.Northrop.Field.722956_TMY3.epw',
|
252
|
+
'90601' => 'LOS-ANGELES-DOWNTOWN_722874_CZ2010.epw',
|
253
|
+
'90602' => 'LOS-ANGELES-DOWNTOWN_722874_CZ2010.epw',
|
254
|
+
'90603' => 'LOS-ANGELES-DOWNTOWN_722874_CZ2010.epw',
|
255
|
+
'90604' => 'LOS-ANGELES-DOWNTOWN_722874_CZ2010.epw',
|
256
|
+
'90605' => 'LOS-ANGELES-DOWNTOWN_722874_CZ2010.epw',
|
257
|
+
'90606' => 'LOS-ANGELES-DOWNTOWN_722874_CZ2010.epw',
|
258
|
+
'90621' => 'LOS-ANGELES-DOWNTOWN_722874_CZ2010.epw',
|
259
|
+
'90631' => 'LOS-ANGELES-DOWNTOWN_722874_CZ2010.epw',
|
260
|
+
'90638' => 'LOS-ANGELES-DOWNTOWN_722874_CZ2010.epw',
|
261
|
+
'90639' => 'LOS-ANGELES-DOWNTOWN_722874_CZ2010.epw',
|
262
|
+
'90640' => 'LOS-ANGELES-DOWNTOWN_722874_CZ2010.epw',
|
263
|
+
'90650' => 'LOS-ANGELES-DOWNTOWN_722874_CZ2010.epw',
|
264
|
+
'90660' => 'LOS-ANGELES-DOWNTOWN_722874_CZ2010.epw',
|
265
|
+
'90670' => 'LOS-ANGELES-DOWNTOWN_722874_CZ2010.epw',
|
266
|
+
'90680' => 'TORRANCE_722955_CZ2010.epw',
|
267
|
+
'90710' => 'TORRANCE_722955_CZ2010.epw',
|
268
|
+
'90717' => 'TORRANCE_722955_CZ2010.epw',
|
269
|
+
'90720' => 'TORRANCE_722955_CZ2010.epw',
|
270
|
+
'90731' => 'TORRANCE_722955_CZ2010.epw',
|
271
|
+
'90732' => 'TORRANCE_722955_CZ2010.epw',
|
272
|
+
'90740' => 'TORRANCE_722955_CZ2010.epw',
|
273
|
+
'90742' => 'TORRANCE_722955_CZ2010.epw',
|
274
|
+
'90743' => 'TORRANCE_722955_CZ2010.epw',
|
275
|
+
'90744' => 'TORRANCE_722955_CZ2010.epw',
|
276
|
+
'90745' => 'TORRANCE_722955_CZ2010.epw',
|
277
|
+
'90746' => 'TORRANCE_722955_CZ2010.epw',
|
278
|
+
'90755' => 'TORRANCE_722955_CZ2010.epw',
|
279
|
+
'90802' => 'TORRANCE_722955_CZ2010.epw',
|
280
|
+
'90803' => 'TORRANCE_722955_CZ2010.epw',
|
281
|
+
'90804' => 'TORRANCE_722955_CZ2010.epw',
|
282
|
+
'90806' => 'TORRANCE_722955_CZ2010.epw',
|
283
|
+
'90807' => 'TORRANCE_722955_CZ2010.epw',
|
284
|
+
'90810' => 'TORRANCE_722955_CZ2010.epw',
|
285
|
+
'90813' => 'TORRANCE_722955_CZ2010.epw',
|
286
|
+
'90814' => 'TORRANCE_722955_CZ2010.epw',
|
287
|
+
'90815' => 'TORRANCE_722955_CZ2010.epw',
|
288
|
+
'90840' => 'TORRANCE_722955_CZ2010.epw',
|
289
|
+
'91001' => 'USA_CA_Burbank-Glendale-Pasadena.Bob.Hope.AP.722880_ TMY3.epw',
|
290
|
+
'91006' => 'LOS-ANGELES-DOWNTOWN_722874_CZ2010.epw',
|
291
|
+
'91007' => 'LOS-ANGELES-DOWNTOWN_722874_CZ2010.epw',
|
292
|
+
'91008' => 'LOS-ANGELES-DOWNTOWN_722874_CZ2010.epw',
|
293
|
+
'91010' => 'LOS-ANGELES-DOWNTOWN_722874_CZ2010.epw',
|
294
|
+
'91011' => 'USA_CA_Burbank-Glendale-Pasadena.Bob.Hope.AP.722880_ TMY3.epw',
|
295
|
+
'91016' => 'LOS-ANGELES-DOWNTOWN_722874_CZ2010.epw',
|
296
|
+
'91020' => 'USA_CA_Burbank-Glendale-Pasadena.Bob.Hope.AP.722880_ TMY3.epw',
|
297
|
+
'91024' => 'LOS-ANGELES-DOWNTOWN_722874_CZ2010.epw',
|
298
|
+
'91030' => 'LOS-ANGELES-DOWNTOWN_722874_CZ2010.epw',
|
299
|
+
'91040' => 'USA_CA_Burbank-Glendale-Pasadena.Bob.Hope.AP.722880_ TMY3.epw',
|
300
|
+
'91042' => 'USA_CA_Burbank-Glendale-Pasadena.Bob.Hope.AP.722880_ TMY3.epw',
|
301
|
+
'91101' => 'LOS-ANGELES-DOWNTOWN_722874_CZ2010.epw',
|
302
|
+
'91103' => 'USA_CA_Burbank-Glendale-Pasadena.Bob.Hope.AP.722880_ TMY3.epw',
|
303
|
+
'91104' => 'LOS-ANGELES-DOWNTOWN_722874_CZ2010.epw',
|
304
|
+
'91105' => 'LOS-ANGELES-DOWNTOWN_722874_CZ2010.epw',
|
305
|
+
'91106' => 'LOS-ANGELES-DOWNTOWN_722874_CZ2010.epw',
|
306
|
+
'91107' => 'LOS-ANGELES-DOWNTOWN_722874_CZ2010.epw',
|
307
|
+
'91108' => 'LOS-ANGELES-DOWNTOWN_722874_CZ2010.epw',
|
308
|
+
'91123' => 'LOS-ANGELES-DOWNTOWN_722874_CZ2010.epw',
|
309
|
+
'91201' => 'USA_CA_Burbank-Glendale-Pasadena.Bob.Hope.AP.722880_ TMY3.epw',
|
310
|
+
'91202' => 'USA_CA_Burbank-Glendale-Pasadena.Bob.Hope.AP.722880_ TMY3.epw',
|
311
|
+
'91203' => 'USA_CA_Burbank-Glendale-Pasadena.Bob.Hope.AP.722880_ TMY3.epw',
|
312
|
+
'91204' => 'USA_CA_Burbank-Glendale-Pasadena.Bob.Hope.AP.722880_ TMY3.epw',
|
313
|
+
'91205' => 'LOS-ANGELES-DOWNTOWN_722874_CZ2010.epw',
|
314
|
+
'91206' => 'USA_CA_Burbank-Glendale-Pasadena.Bob.Hope.AP.722880_ TMY3.epw',
|
315
|
+
'91207' => 'USA_CA_Burbank-Glendale-Pasadena.Bob.Hope.AP.722880_ TMY3.epw',
|
316
|
+
'91208' => 'USA_CA_Burbank-Glendale-Pasadena.Bob.Hope.AP.722880_ TMY3.epw',
|
317
|
+
'91214' => 'USA_CA_Burbank-Glendale-Pasadena.Bob.Hope.AP.722880_ TMY3.epw',
|
318
|
+
'91301' => 'USA_CA_Van.Nuys.AP.722886_TMY3.epw',
|
319
|
+
'91302' => 'USA_CA_Santa.Monica.Muni.AP.722885_TMY3.epw',
|
320
|
+
'91303' => 'USA_CA_Van.Nuys.AP.722886_TMY3.epw',
|
321
|
+
'91304' => 'USA_CA_Van.Nuys.AP.722886_TMY3.epw',
|
322
|
+
'91306' => 'USA_CA_Van.Nuys.AP.722886_TMY3.epw',
|
323
|
+
'91307' => 'USA_CA_Van.Nuys.AP.722886_TMY3.epw',
|
324
|
+
'91311' => 'USA_CA_Van.Nuys.AP.722886_TMY3.epw',
|
325
|
+
'91316' => 'USA_CA_Van.Nuys.AP.722886_TMY3.epw',
|
326
|
+
'91320' => 'USA_CA_Van.Nuys.AP.722886_TMY3.epw',
|
327
|
+
'91321' => 'USA_CA_Van.Nuys.AP.722886_TMY3.epw',
|
328
|
+
'91324' => 'USA_CA_Van.Nuys.AP.722886_TMY3.epw',
|
329
|
+
'91325' => 'USA_CA_Van.Nuys.AP.722886_TMY3.epw',
|
330
|
+
'91326' => 'USA_CA_Van.Nuys.AP.722886_TMY3.epw',
|
331
|
+
'91330' => 'USA_CA_Van.Nuys.AP.722886_TMY3.epw',
|
332
|
+
'91331' => 'USA_CA_Van.Nuys.AP.722886_TMY3.epw',
|
333
|
+
'91335' => 'USA_CA_Van.Nuys.AP.722886_TMY3.epw',
|
334
|
+
'91340' => 'USA_CA_Van.Nuys.AP.722886_TMY3.epw',
|
335
|
+
'91342' => 'USA_CA_Van.Nuys.AP.722886_TMY3.epw',
|
336
|
+
'91343' => 'USA_CA_Van.Nuys.AP.722886_TMY3.epw',
|
337
|
+
'91344' => 'USA_CA_Van.Nuys.AP.722886_TMY3.epw',
|
338
|
+
'91345' => 'USA_CA_Van.Nuys.AP.722886_TMY3.epw',
|
339
|
+
'91350' => 'USA_CA_Van.Nuys.AP.722886_TMY3.epw',
|
340
|
+
'91351' => 'USA_CA_Van.Nuys.AP.722886_TMY3.epw',
|
341
|
+
'91352' => 'USA_CA_Burbank-Glendale-Pasadena.Bob.Hope.AP.722880_ TMY3.epw',
|
342
|
+
'91354' => 'USA_CA_Van.Nuys.AP.722886_TMY3.epw',
|
343
|
+
'91355' => 'USA_CA_Van.Nuys.AP.722886_TMY3.epw',
|
344
|
+
'91356' => 'USA_CA_Van.Nuys.AP.722886_TMY3.epw',
|
345
|
+
'91360' => 'USA_CA_Van.Nuys.AP.722886_TMY3.epw',
|
346
|
+
'91361' => 'USA_CA_Van.Nuys.AP.722886_TMY3.epw',
|
347
|
+
'91362' => 'USA_CA_Van.Nuys.AP.722886_TMY3.epw',
|
348
|
+
'91364' => 'USA_CA_Van.Nuys.AP.722886_TMY3.epw',
|
349
|
+
'91367' => 'USA_CA_Van.Nuys.AP.722886_TMY3.epw',
|
350
|
+
'91371' => 'USA_CA_Van.Nuys.AP.722886_TMY3.epw',
|
351
|
+
'91377' => 'USA_CA_Van.Nuys.AP.722886_TMY3.epw',
|
352
|
+
'91381' => 'USA_CA_Van.Nuys.AP.722886_TMY3.epw',
|
353
|
+
'91384' => 'USA_CA_Van.Nuys.AP.722886_TMY3.epw',
|
354
|
+
'91387' => 'USA_CA_Van.Nuys.AP.722886_TMY3.epw',
|
355
|
+
'91390' => 'USA_CA_Van.Nuys.AP.722886_TMY3.epw',
|
356
|
+
'91401' => 'USA_CA_Van.Nuys.AP.722886_TMY3.epw',
|
357
|
+
'91402' => 'USA_CA_Van.Nuys.AP.722886_TMY3.epw',
|
358
|
+
'91403' => 'USA_CA_Van.Nuys.AP.722886_TMY3.epw',
|
359
|
+
'91405' => 'USA_CA_Van.Nuys.AP.722886_TMY3.epw',
|
360
|
+
'91406' => 'USA_CA_Van.Nuys.AP.722886_TMY3.epw',
|
361
|
+
'91411' => 'USA_CA_Van.Nuys.AP.722886_TMY3.epw',
|
362
|
+
'91423' => 'USA_CA_Van.Nuys.AP.722886_TMY3.epw',
|
363
|
+
'91436' => 'USA_CA_Van.Nuys.AP.722886_TMY3.epw',
|
364
|
+
'91501' => 'USA_CA_Burbank-Glendale-Pasadena.Bob.Hope.AP.722880_ TMY3.epw',
|
365
|
+
'91502' => 'USA_CA_Burbank-Glendale-Pasadena.Bob.Hope.AP.722880_ TMY3.epw',
|
366
|
+
'91504' => 'USA_CA_Burbank-Glendale-Pasadena.Bob.Hope.AP.722880_ TMY3.epw',
|
367
|
+
'91505' => 'USA_CA_Burbank-Glendale-Pasadena.Bob.Hope.AP.722880_ TMY3.epw',
|
368
|
+
'91506' => 'USA_CA_Burbank-Glendale-Pasadena.Bob.Hope.AP.722880_ TMY3.epw',
|
369
|
+
'91521' => 'USA_CA_Burbank-Glendale-Pasadena.Bob.Hope.AP.722880_ TMY3.epw',
|
370
|
+
'91522' => 'USA_CA_Burbank-Glendale-Pasadena.Bob.Hope.AP.722880_ TMY3.epw',
|
371
|
+
'91523' => 'USA_CA_Burbank-Glendale-Pasadena.Bob.Hope.AP.722880_ TMY3.epw',
|
372
|
+
'91601' => 'USA_CA_Burbank-Glendale-Pasadena.Bob.Hope.AP.722880_ TMY3.epw',
|
373
|
+
'91602' => 'USA_CA_Burbank-Glendale-Pasadena.Bob.Hope.AP.722880_ TMY3.epw',
|
374
|
+
'91604' => 'USA_CA_Burbank-Glendale-Pasadena.Bob.Hope.AP.722880_ TMY3.epw',
|
375
|
+
'91605' => 'USA_CA_Burbank-Glendale-Pasadena.Bob.Hope.AP.722880_ TMY3.epw',
|
376
|
+
'91606' => 'USA_CA_Burbank-Glendale-Pasadena.Bob.Hope.AP.722880_ TMY3.epw',
|
377
|
+
'91607' => 'USA_CA_Burbank-Glendale-Pasadena.Bob.Hope.AP.722880_ TMY3.epw',
|
378
|
+
'91608' => 'USA_CA_Burbank-Glendale-Pasadena.Bob.Hope.AP.722880_ TMY3.epw',
|
379
|
+
'91702' => 'LOS-ANGELES-DOWNTOWN_722874_CZ2010.epw',
|
380
|
+
'91706' => 'LOS-ANGELES-DOWNTOWN_722874_CZ2010.epw',
|
381
|
+
'91709' => 'LOS-ANGELES-DOWNTOWN_722874_CZ2010.epw',
|
382
|
+
'91710' => 'LOS-ANGELES-DOWNTOWN_722874_CZ2010.epw',
|
383
|
+
'91711' => 'LOS-ANGELES-DOWNTOWN_722874_CZ2010.epw',
|
384
|
+
'91722' => 'LOS-ANGELES-DOWNTOWN_722874_CZ2010.epw',
|
385
|
+
'91723' => 'LOS-ANGELES-DOWNTOWN_722874_CZ2010.epw',
|
386
|
+
'91724' => 'LOS-ANGELES-DOWNTOWN_722874_CZ2010.epw',
|
387
|
+
'91731' => 'LOS-ANGELES-DOWNTOWN_722874_CZ2010.epw',
|
388
|
+
'91732' => 'LOS-ANGELES-DOWNTOWN_722874_CZ2010.epw',
|
389
|
+
'91733' => 'LOS-ANGELES-DOWNTOWN_722874_CZ2010.epw',
|
390
|
+
'91740' => 'LOS-ANGELES-DOWNTOWN_722874_CZ2010.epw',
|
391
|
+
'91741' => 'LOS-ANGELES-DOWNTOWN_722874_CZ2010.epw',
|
392
|
+
'91744' => 'LOS-ANGELES-DOWNTOWN_722874_CZ2010.epw',
|
393
|
+
'91745' => 'LOS-ANGELES-DOWNTOWN_722874_CZ2010.epw',
|
394
|
+
'91746' => 'LOS-ANGELES-DOWNTOWN_722874_CZ2010.epw',
|
395
|
+
'91748' => 'LOS-ANGELES-DOWNTOWN_722874_CZ2010.epw',
|
396
|
+
'91750' => 'LOS-ANGELES-DOWNTOWN_722874_CZ2010.epw',
|
397
|
+
'91754' => 'LOS-ANGELES-DOWNTOWN_722874_CZ2010.epw',
|
398
|
+
'91755' => 'LOS-ANGELES-DOWNTOWN_722874_CZ2010.epw',
|
399
|
+
'91763' => 'LOS-ANGELES-DOWNTOWN_722874_CZ2010.epw',
|
400
|
+
'91765' => 'LOS-ANGELES-DOWNTOWN_722874_CZ2010.epw',
|
401
|
+
'91766' => 'LOS-ANGELES-DOWNTOWN_722874_CZ2010.epw',
|
402
|
+
'91767' => 'LOS-ANGELES-DOWNTOWN_722874_CZ2010.epw',
|
403
|
+
'91768' => 'LOS-ANGELES-DOWNTOWN_722874_CZ2010.epw',
|
404
|
+
'91770' => 'LOS-ANGELES-DOWNTOWN_722874_CZ2010.epw',
|
405
|
+
'91773' => 'LOS-ANGELES-DOWNTOWN_722874_CZ2010.epw',
|
406
|
+
'91775' => 'LOS-ANGELES-DOWNTOWN_722874_CZ2010.epw',
|
407
|
+
'91776' => 'LOS-ANGELES-DOWNTOWN_722874_CZ2010.epw',
|
408
|
+
'91780' => 'LOS-ANGELES-DOWNTOWN_722874_CZ2010.epw',
|
409
|
+
'91784' => 'LOS-ANGELES-DOWNTOWN_722874_CZ2010.epw',
|
410
|
+
'91789' => 'LOS-ANGELES-DOWNTOWN_722874_CZ2010.epw',
|
411
|
+
'91790' => 'LOS-ANGELES-DOWNTOWN_722874_CZ2010.epw',
|
412
|
+
'91791' => 'LOS-ANGELES-DOWNTOWN_722874_CZ2010.epw',
|
413
|
+
'91792' => 'LOS-ANGELES-DOWNTOWN_722874_CZ2010.epw',
|
414
|
+
'91801' => 'LOS-ANGELES-DOWNTOWN_722874_CZ2010.epw',
|
415
|
+
'91803' => 'LOS-ANGELES-DOWNTOWN_722874_CZ2010.epw',
|
416
|
+
'92603' => 'TORRANCE_722955_CZ2010.epw',
|
417
|
+
'92612' => 'TORRANCE_722955_CZ2010.epw',
|
418
|
+
'92614' => 'TORRANCE_722955_CZ2010.epw',
|
419
|
+
'92617' => 'TORRANCE_722955_CZ2010.epw',
|
420
|
+
'92624' => 'TORRANCE_722955_CZ2010.epw',
|
421
|
+
'92625' => 'TORRANCE_722955_CZ2010.epw',
|
422
|
+
'92626' => 'TORRANCE_722955_CZ2010.epw',
|
423
|
+
'92627' => 'TORRANCE_722955_CZ2010.epw',
|
424
|
+
'92629' => 'TORRANCE_722955_CZ2010.epw',
|
425
|
+
'92637' => 'TORRANCE_722955_CZ2010.epw',
|
426
|
+
'92646' => 'TORRANCE_722955_CZ2010.epw',
|
427
|
+
'92647' => 'TORRANCE_722955_CZ2010.epw',
|
428
|
+
'92648' => 'TORRANCE_722955_CZ2010.epw',
|
429
|
+
'92649' => 'TORRANCE_722955_CZ2010.epw',
|
430
|
+
'92651' => 'TORRANCE_722955_CZ2010.epw',
|
431
|
+
'92653' => 'TORRANCE_722955_CZ2010.epw',
|
432
|
+
'92655' => 'TORRANCE_722955_CZ2010.epw',
|
433
|
+
'92656' => 'TORRANCE_722955_CZ2010.epw',
|
434
|
+
'92657' => 'TORRANCE_722955_CZ2010.epw',
|
435
|
+
'92660' => 'TORRANCE_722955_CZ2010.epw',
|
436
|
+
'92661' => 'TORRANCE_722955_CZ2010.epw',
|
437
|
+
'92662' => 'TORRANCE_722955_CZ2010.epw',
|
438
|
+
'92663' => 'TORRANCE_722955_CZ2010.epw',
|
439
|
+
'92672' => 'TORRANCE_722955_CZ2010.epw',
|
440
|
+
'92673' => 'TORRANCE_722955_CZ2010.epw',
|
441
|
+
'92675' => 'TORRANCE_722955_CZ2010.epw',
|
442
|
+
'92677' => 'TORRANCE_722955_CZ2010.epw',
|
443
|
+
'92683' => 'TORRANCE_722955_CZ2010.epw',
|
444
|
+
'92691' => 'TORRANCE_722955_CZ2010.epw',
|
445
|
+
'92692' => 'TORRANCE_722955_CZ2010.epw',
|
446
|
+
'92697' => 'TORRANCE_722955_CZ2010.epw',
|
447
|
+
'92703' => 'TORRANCE_722955_CZ2010.epw',
|
448
|
+
'92704' => 'TORRANCE_722955_CZ2010.epw',
|
449
|
+
'92707' => 'TORRANCE_722955_CZ2010.epw',
|
450
|
+
'92708' => 'TORRANCE_722955_CZ2010.epw',
|
451
|
+
'92821' => 'LOS-ANGELES-DOWNTOWN_722874_CZ2010.epw',
|
452
|
+
'92823' => 'LOS-ANGELES-DOWNTOWN_722874_CZ2010.epw',
|
453
|
+
'92833' => 'LOS-ANGELES-DOWNTOWN_722874_CZ2010.epw',
|
454
|
+
'92841' => 'TORRANCE_722955_CZ2010.epw',
|
455
|
+
'92843' => 'TORRANCE_722955_CZ2010.epw',
|
456
|
+
'92844' => 'TORRANCE_722955_CZ2010.epw',
|
457
|
+
'92845' => 'TORRANCE_722955_CZ2010.epw',
|
458
|
+
'93001' => 'USA_CA_Van.Nuys.AP.722886_TMY3.epw',
|
459
|
+
'93003' => 'USA_CA_Van.Nuys.AP.722886_TMY3.epw',
|
460
|
+
'93004' => 'USA_CA_Van.Nuys.AP.722886_TMY3.epw',
|
461
|
+
'93012' => 'USA_CA_Van.Nuys.AP.722886_TMY3.epw',
|
462
|
+
'93013' => 'USA_CA_Van.Nuys.AP.722886_TMY3.epw',
|
463
|
+
'93015' => 'USA_CA_Van.Nuys.AP.722886_TMY3.epw',
|
464
|
+
'93021' => 'USA_CA_Van.Nuys.AP.722886_TMY3.epw',
|
465
|
+
'93022' => 'USA_CA_Van.Nuys.AP.722886_TMY3.epw',
|
466
|
+
'93023' => 'USA_CA_Van.Nuys.AP.722886_TMY3.epw',
|
467
|
+
'93060' => 'USA_CA_Van.Nuys.AP.722886_TMY3.epw',
|
468
|
+
'93063' => 'USA_CA_Van.Nuys.AP.722886_TMY3.epw',
|
469
|
+
'93065' => 'USA_CA_Van.Nuys.AP.722886_TMY3.epw',
|
470
|
+
'93066' => 'USA_CA_Van.Nuys.AP.722886_TMY3.epw',
|
471
|
+
'93108' => 'USA_CA_Van.Nuys.AP.722886_TMY3.epw',
|
472
|
+
'93510' => 'USA_CA_Burbank-Glendale-Pasadena.Bob.Hope.AP.722880_ TMY3.epw'
|
473
|
+
}
|
474
|
+
|
475
|
+
correct_epw = zip_to_epw[zip_code]
|
476
|
+
if correct_epw.nil?
|
477
|
+
check_elems << OpenStudio::Attribute.new('flag', "There is no correct weather file specified for the zip code #{zip_code}")
|
478
|
+
end
|
479
|
+
|
480
|
+
unless model_epw == correct_epw
|
481
|
+
check_elems << OpenStudio::Attribute.new('flag', "The selected weather file #{model_epw} is incorrect for zip code #{zip_code}. The correct weather file is #{correct_epw}.")
|
482
|
+
end
|
483
|
+
rescue StandardError => e
|
484
|
+
# brief description of ruby error
|
485
|
+
check_elems << OpenStudio::Attribute.new('flag', "Error prevented QAQC check from running (#{e}).")
|
486
|
+
|
487
|
+
# backtrace of ruby error for diagnostic use
|
488
|
+
if @error_backtrace then check_elems << OpenStudio::Attribute.new('flag', e.backtrace.join("\n").to_s) end
|
489
|
+
end
|
490
|
+
|
491
|
+
# add check_elms to new attribute
|
492
|
+
check_elem = OpenStudio::Attribute.new('check', check_elems)
|
493
|
+
|
494
|
+
return check_elem
|
495
|
+
end
|
496
|
+
end
|
497
|
+
end
|