lib/openstudio-standards/standards/Standards.CoilHeatingDXSingleSpeed.rb in openstudio-standards-0.2.12 vs lib/openstudio-standards/standards/Standards.CoilHeatingDXSingleSpeed.rb in openstudio-standards-0.2.13.rc3
- old
+ new
@@ -22,11 +22,12 @@
elsif containing_comp.to_AirLoopHVACUnitarySystem.is_initialized
unitary = containing_comp.to_AirLoopHVACUnitarySystem.get
if unitary.coolingCoil.is_initialized
clg_coil = unitary.coolingCoil.get
end
- end # TODO: Add other unitary systems
+ end
+ # TODO: Add other unitary systems
elsif coil_heating_dx_single_speed.containingZoneHVACComponent.is_initialized
containing_comp = coil_heating_dx_single_speed.containingZoneHVACComponent.get
# PTHP
if containing_comp.to_ZoneHVACPackagedTerminalHeatPump.is_initialized
pthp = containing_comp.to_ZoneHVACPackagedTerminalHeatPump.get
@@ -43,9 +44,10 @@
'OS:Coil:Cooling:DX:TwoSpeed',
'OS:Coil:Cooling:DX:MultiSpeed']
clg_types.each do |ct|
coils = air_loop.supplyComponents(ct.to_IddObjectType)
next if coils.empty?
+
clg_coil = coils[0]
break # Stop on first DX cooling coil found
end
end