lib/openstudio-standards/standards/Standards.CoilHeatingDXSingleSpeed.rb in openstudio-standards-0.6.0.rc2 vs lib/openstudio-standards/standards/Standards.CoilHeatingDXSingleSpeed.rb in openstudio-standards-0.6.3

- old
+ new

@@ -84,17 +84,15 @@ # If it's a PTAC or PTHP System, we need to divide the capacity by the potential zone multiplier # because the COP is dependent on capacity, and the capacity should be the capacity of a single zone, not all the zones if ['PTAC', 'PTHP'].include?(coil_dx_subcategory(coil_heating_dx_single_speed)) mult = 1 comp = coil_heating_dx_single_speed.containingZoneHVACComponent - if comp.is_initialized - if comp.get.thermalZone.is_initialized - mult = comp.get.thermalZone.get.multiplier - if mult > 1 - total_cap = capacity_w - capacity_w /= mult - OpenStudio.logFree(OpenStudio::Info, 'openstudio.standards.CoilHeatingDXSingleSpeed', "For #{coil_heating_dx_single_speed.name}, total capacity of #{OpenStudio.convert(total_cap, 'W', 'kBtu/hr').get.round(2)}kBTU/hr was divided by the zone multiplier of #{mult} to give #{capacity_kbtu_per_hr = OpenStudio.convert(capacity_w, 'W', 'kBtu/hr').get.round(2)}kBTU/hr.") - end + if comp.is_initialized && comp.get.thermalZone.is_initialized + mult = comp.get.thermalZone.get.multiplier + if mult > 1 + total_cap = capacity_w + capacity_w /= mult + OpenStudio.logFree(OpenStudio::Info, 'openstudio.standards.CoilHeatingDXSingleSpeed', "For #{coil_heating_dx_single_speed.name}, total capacity of #{OpenStudio.convert(total_cap, 'W', 'kBtu/hr').get.round(2)}kBTU/hr was divided by the zone multiplier of #{mult} to give #{capacity_kbtu_per_hr = OpenStudio.convert(capacity_w, 'W', 'kBtu/hr').get.round(2)}kBTU/hr.") end end end return capacity_w