lib/openstudio-standards/standards/Standards.CoilDX.rb in openstudio-standards-0.2.10.rc2 vs lib/openstudio-standards/standards/Standards.CoilDX.rb in openstudio-standards-0.2.10.rc3
- old
+ new
@@ -16,10 +16,12 @@
# Fallback to the name, mainly for library export
if coil_dx.name.get.to_s.include?('Single Package')
sub_category = 'Single Package'
elsif coil_dx.name.get.to_s.include?('Split System')
sub_category = 'Split System'
+ elsif coil_dx.name.get.to_s.include?('Minisplit')
+ sub_category = 'Split System'
elsif coil_dx.name.get.to_s.include?('CRAC')
sub_category = 'CRAC'
end
if coil_dx.airLoopHVAC.empty?
@@ -71,10 +73,14 @@
if coil_dx.airLoopHVAC.empty?
if coil_dx.containingHVACComponent.is_initialized
containing_comp = coil_dx.containingHVACComponent.get
if containing_comp.to_AirLoopHVACUnitaryHeatPumpAirToAir.is_initialized
htg_type = 'Electric Resistance or None'
+ elsif containing_comp.to_AirLoopHVACUnitarySystem.is_initialized
+ if containing_comp.name.to_s.include? 'Minisplit'
+ htg_type = 'All Other'
+ end
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
@@ -98,9 +104,13 @@
htg_type = if !air_loop.supplyComponents('OS:Coil:Heating:Gas'.to_IddObjectType).empty?
'All Other'
elsif !air_loop.supplyComponents('OS:Coil:Heating:Water'.to_IddObjectType).empty?
'All Other'
elsif !air_loop.supplyComponents('OS:Coil:Heating:DX:SingleSpeed'.to_IddObjectType).empty?
+ 'All Other'
+ elsif !air_loop.supplyComponents('OS:Coil:Heating:DX:MultiSpeed'.to_IddObjectType).empty?
+ 'All Other'
+ elsif !air_loop.supplyComponents('OS:Coil:Heating:DX:VariableSpeed'.to_IddObjectType).empty?
'All Other'
elsif !air_loop.supplyComponents('OS:Coil:Heating:Gas:MultiStage'.to_IddObjectType).empty?
'All Other'
elsif !air_loop.supplyComponents('OS:Coil:Heating:Desuperheater'.to_IddObjectType).empty?
'All Other'