lib/openstudio-standards/standards/Standards.CoilDX.rb in openstudio-standards-0.2.12 vs lib/openstudio-standards/standards/Standards.CoilDX.rb in openstudio-standards-0.2.13.rc3
- old
+ new
@@ -1,6 +1,5 @@
-
# A variety of DX coil methods that are the same regardless of coil type.
# These methods are available to:
# CoilCoolingDXSingleSpeed, CoilCoolingDXTwoSpeed, CoilCoolingDXMultiSpeed
module CoilDX
# @!group CoilDX
@@ -33,11 +32,12 @@
if containing_comp.to_ZoneHVACPackagedTerminalAirConditioner.is_initialized
sub_category = 'PTAC'
# PTHP
elsif containing_comp.to_ZoneHVACPackagedTerminalHeatPump.is_initialized
sub_category = 'PTHP'
- end # TODO: Add other zone hvac systems
+ end
+ # TODO: Add other zone hvac systems
end
end
return sub_category
end
@@ -59,15 +59,16 @@
elsif coil_dx.containingZoneHVACComponent.is_initialized
containing_comp = coil_dx.containingZoneHVACComponent.get
# PTHP
if containing_comp.to_ZoneHVACPackagedTerminalHeatPump.is_initialized
heat_pump = true
- end # TODO: Add other zone hvac systems
+ end
+ # TODO: Add other zone hvac systems
end
else
- if (!coil_dx.airLoopHVAC.get.supplyComponents('OS:Coil:Heating:DX:SingleSpeed'.to_IddObjectType).empty?) ||
- (!coil_dx.airLoopHVAC.get.supplyComponents('OS:Coil:Heating:DX:VariableSpeed'.to_IddObjectType).empty?)
+ if !coil_dx.airLoopHVAC.get.supplyComponents('OS:Coil:Heating:DX:SingleSpeed'.to_IddObjectType).empty? ||
+ !coil_dx.airLoopHVAC.get.supplyComponents('OS:Coil:Heating:DX:VariableSpeed'.to_IddObjectType).empty?
heat_pump = true
end
end
return heat_pump
@@ -95,11 +96,12 @@
if htg_coil.to_CoilHeatingDXMultiSpeed.is_initialized || supp_htg_coil.to_CoilHeatingElectric.is_initialized
htg_type = 'Electric Resistance or None'
elsif htg_coil.to_CoilHeatingGasMultiStage.is_initialized
htg_type = 'All Other'
end
- end # TODO: Add other unitary systems
+ end
+ # TODO: Add other unitary systems
elsif coil_dx.containingZoneHVACComponent.is_initialized
containing_comp = coil_dx.containingZoneHVACComponent.get
# PTAC
if containing_comp.to_ZoneHVACPackagedTerminalAirConditioner.is_initialized
htg_coil = containing_comp.to_ZoneHVACPackagedTerminalAirConditioner.get.heatingCoil
@@ -109,12 +111,12 @@
htg_type = 'All Other'
end
# PTHP
elsif containing_comp.to_ZoneHVACPackagedTerminalHeatPump.is_initialized
htg_type = 'Electric Resistance or None'
- end # TODO: Add other zone hvac systems
-
+ end
+ # TODO: Add other zone hvac systems
end
end
# If on an AirLoop
if coil_dx.airLoopHVAC.is_initialized
@@ -179,10 +181,11 @@
if coil_dx.airLoopHVAC.empty?
if coil_dx.containingHVACComponent.is_initialized
containing_comp = coil_dx.containingHVACComponent.get
if containing_comp.to_AirLoopHVACUnitaryHeatPumpAirToAir.is_initialized
search_criteria['heating_type'] = nil
- end # TODO: Add other unitary systems
+ end
+ # TODO: Add other unitary systems
end
end
end
end