Module: ASHRAEPRMCoilDX

Included in:
ASHRAE901PRM
Defined in:
lib/openstudio-standards/standards/ashrae_90_1_prm/ashrae_90_1_prm.CoilDX.rb

Overview

A variety of DX coil methods that are the same regardless of coil type. These methods are available to: CoilCoolingDXSingleSpeed, CoilCoolingDXTwoSpeed, CoilHeatingDXSingleSpeed

CoilDX collapse

Instance Method Details

#coil_dx_find_search_criteria(coil_dx, capacity, sys_type) ⇒ Hash

Finds the search criteria

Parameters:

  • coil_dx (OpenStudio::Model::StraightComponent)

    coil cooling object

  • capacity (Double)

    capacity in btu/hr

  • sys_type (String)

    HVAC system type

Returns:

  • (Hash)

    has for search criteria to be used for find object



39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
# File 'lib/openstudio-standards/standards/ashrae_90_1_prm/ashrae_90_1_prm.CoilDX.rb', line 39

def coil_dx_find_search_criteria(coil_dx, capacity, sys_type)
  search_criteria = {}
  search_criteria['template'] = template

  search_criteria['cooling_type'] = 'AirCooled'

  # Get the coil_dx_subcategory(coil_dx)

  subcategory = coil_dx_subcategory(coil_dx, capacity, sys_type)
  unless subcategory.nil?
    search_criteria['subcategory'] = subcategory
  end

  if coil_dx.iddObjectType.valueName.to_s != 'OS_Coil_Heating_DX_SingleSpeed'
    search_criteria['heating_type'] = 'Any'
  end

  if sys_type == 'PTAC'
    search_criteria['equipment_type'] = sys_type
  elsif sys_type == 'PTHP'
    search_criteria['equipment_type'] = sys_type
  elsif sys_type == 'PSZ_AC'
    search_criteria['equipment_type'] = 'Air Conditioners'
  elsif sys_type == 'PSZ_HP'
    search_criteria['equipment_type'] = 'Heat Pumps'
  end

  return search_criteria
end

#coil_dx_subcategory(coil_dx, capacity, sys_type) ⇒ String

Finds the subcategory.

Parameters:

  • coil_dx (OpenStudio::Model::StraightComponent)

    coil cooling object

  • capacity (Double)

    capacity in btu/hr

  • sys_type (String)

    HVAC system type

Returns:

  • (String)

    the coil_dx_subcategory(coil_dx)



13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# File 'lib/openstudio-standards/standards/ashrae_90_1_prm/ashrae_90_1_prm.CoilDX.rb', line 13

def coil_dx_subcategory(coil_dx, capacity, sys_type)
  sub_category = nil
  if coil_dx.iddObjectType.valueName.to_s.include? 'OS_Coil_Cooling_DX'
    case sys_type
    when 'PTHP'
      sub_category = nil
    when 'PTAC'
      sub_category = nil
    when 'PSZ_HP'
      if capacity < 65000
        sub_category = 'Single Package'
      end
    else
      sub_category = 'Single Package'
    end
  end

  return sub_category
end