lib/openstudio-standards/standards/Standards.CoilHeatingDXSingleSpeed.rb in openstudio-standards-0.3.0 vs lib/openstudio-standards/standards/Standards.CoilHeatingDXSingleSpeed.rb in openstudio-standards-0.3.1.rc1
- old
+ new
@@ -4,12 +4,13 @@
include CoilDX
# Finds capacity in W. This is the cooling capacity of the paired DX cooling coil.
#
# @param coil_heating_dx_single_speed [OpenStudio::Model::CoilHeatingDXSingleSpeed] coil heating dx single speed object
+ # @param necb_ref_hp [Bool] for compatability with NECB ruleset only.
# @return [Double] capacity in W to be used for find object
- def coil_heating_dx_single_speed_find_capacity(coil_heating_dx_single_speed)
+ def coil_heating_dx_single_speed_find_capacity(coil_heating_dx_single_speed, necb_ref_hp = false)
capacity_w = nil
# Get the paired cooling coil
clg_coil = nil
@@ -102,17 +103,18 @@
# Finds lookup object in standards and return efficiency
#
# @param coil_heating_dx_single_speed [OpenStudio::Model::CoilHeatingDXSingleSpeed] coil heating dx single speed object
# @param rename [Bool] if true, object will be renamed to include capacity and efficiency level
+ # @param necb_ref_hp [Bool] for compatability with NECB ruleset only.
# @return [Double] full load efficiency (COP)
- def coil_heating_dx_single_speed_standard_minimum_cop(coil_heating_dx_single_speed, rename = false)
+ def coil_heating_dx_single_speed_standard_minimum_cop(coil_heating_dx_single_speed, rename = false, necb_ref_hp = false)
# find ac properties
- search_criteria = coil_dx_find_search_criteria(coil_heating_dx_single_speed)
+ search_criteria = coil_dx_find_search_criteria(coil_heating_dx_single_speed, necb_ref_hp)
sub_category = search_criteria['subcategory']
suppl_heating_type = search_criteria['heating_type']
- capacity_w = coil_heating_dx_single_speed_find_capacity(coil_heating_dx_single_speed)
+ capacity_w = coil_heating_dx_single_speed_find_capacity(coil_heating_dx_single_speed, necb_ref_hp)
capacity_btu_per_hr = OpenStudio.convert(capacity_w, 'W', 'Btu/hr').get
capacity_kbtu_per_hr = OpenStudio.convert(capacity_w, 'W', 'kBtu/hr').get
# Get the minimum efficiency standards
cop = nil
@@ -177,19 +179,20 @@
# Applies the standard efficiency ratings and typical performance curves to this object.
#
# @param coil_heating_dx_single_speed [OpenStudio::Model::CoilHeatingDXSingleSpeed] coil heating dx single speed object
# @param sql_db_vars_map [Hash] hash map
+ # @param necb_ref_hp [Bool] for compatability with NECB ruleset only.
# @return [Hash] hash of coil objects
- def coil_heating_dx_single_speed_apply_efficiency_and_curves(coil_heating_dx_single_speed, sql_db_vars_map)
+ def coil_heating_dx_single_speed_apply_efficiency_and_curves(coil_heating_dx_single_speed, sql_db_vars_map, necb_ref_hp = false)
successfully_set_all_properties = true
# Get the search criteria
- search_criteria = coil_dx_find_search_criteria(coil_heating_dx_single_speed)
+ search_criteria = coil_dx_find_search_criteria(coil_heating_dx_single_speed, necb_ref_hp)
# Get the capacity
- capacity_w = coil_heating_dx_single_speed_find_capacity(coil_heating_dx_single_speed)
+ capacity_w = coil_heating_dx_single_speed_find_capacity(coil_heating_dx_single_speed, necb_ref_hp)
capacity_btu_per_hr = OpenStudio.convert(capacity_w, 'W', 'Btu/hr').get
capacity_kbtu_per_hr = OpenStudio.convert(capacity_w, 'W', 'kBtu/hr').get
# Lookup efficiencies
ac_props = model_find_object(standards_data['heat_pumps_heating'], search_criteria, capacity_btu_per_hr, Date.today)
@@ -248,10 +251,10 @@
# Preserve the original name
orig_name = coil_heating_dx_single_speed.name.to_s
# Find the minimum COP and rename with efficiency rating
- cop = coil_heating_dx_single_speed_standard_minimum_cop(coil_heating_dx_single_speed, true)
+ cop = coil_heating_dx_single_speed_standard_minimum_cop(coil_heating_dx_single_speed, true, necb_ref_hp)
# Map the original name to the new name
sql_db_vars_map[coil_heating_dx_single_speed.name.to_s] = orig_name
# Set the efficiency values