lib/openstudio-standards/standards/Standards.CoilDX.rb in openstudio-standards-0.3.0 vs lib/openstudio-standards/standards/Standards.CoilDX.rb in openstudio-standards-0.3.1.rc1
- old
+ new
@@ -82,12 +82,13 @@
# Determine the heating type.
# Possible choices are: Electric Resistance or None, All Other
#
# @param coil_dx [OpenStudio::Model::StraightComponent] coil cooling object, allowable types:
# CoilCoolingDXSingleSpeed, CoilCoolingDXTwoSpeed, CoilCoolingDXMultiSpeed
+ # @param necb_ref_hp [Bool] for compatability with NECB ruleset only.
# @return [String] the heating type
- def coil_dx_heating_type(coil_dx)
+ def coil_dx_heating_type(coil_dx, necb_ref_hp = false)
htg_type = nil
# If Unitary or Zone HVAC
if coil_dx.airLoopHVAC.empty?
if coil_dx.containingHVACComponent.is_initialized
@@ -157,12 +158,13 @@
# Finds the search criteria
#
# @param coil_dx [OpenStudio::Model::StraightComponent] coil cooling object, allowable types:
# CoilCoolingDXSingleSpeed, CoilCoolingDXTwoSpeed, CoilCoolingDXMultiSpeed
+ # @param necb_ref_hp [Bool] for compatability with NECB ruleset only.
# @return [hash] has for search criteria to be used for find object
- def coil_dx_find_search_criteria(coil_dx)
+ def coil_dx_find_search_criteria(coil_dx, necb_ref_hp = false)
search_criteria = {}
search_criteria['template'] = template
search_criteria['cooling_type'] = case coil_dx.iddObjectType.valueName.to_s
when 'OS_Coil_Cooling_DX_SingleSpeed',
@@ -177,10 +179,10 @@
# Get the coil_dx_subcategory(coil_dx)
search_criteria['subcategory'] = coil_dx_subcategory(coil_dx)
# Add the heating type to the search criteria
- htg_type = coil_dx_heating_type(coil_dx)
+ htg_type = coil_dx_heating_type(coil_dx, necb_ref_hp)
unless htg_type.nil?
search_criteria['heating_type'] = htg_type
end
# The heating side of unitary heat pumps don't have a heating type