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



53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
# File 'lib/openstudio-standards/standards/ashrae_90_1_prm/ashrae_90_1_prm.CoilDX.rb', line 53

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)
  if subcategory != ''
    search_criteria['subcategory'] = subcategory
  end

  if coil_dx.iddObjectType.valueName.to_s != 'OS_Coil_Heating_DX_SingleSpeed'
    search_criteria['heating_type'] = 'All Other'
  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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# 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 = ''

  # heating coil
  if coil_dx.iddObjectType.valueName.to_s.include? 'OS_Coil_Heating_DX'
    if sys_type == 'PTHP'
      sub_category = 'PTHP'
    elsif capacity < 65000
      sub_category = 'Single Package'
    else
      sub_category = '47F db/43F wb outdoor air'
    end
  end

  # cooling coil
  if coil_dx.iddObjectType.valueName.to_s.include? 'OS_Coil_Cooling_DX'
    if sys_type == 'PTHP'
      sub_category = 'PTHP'
    elsif sys_type == 'PTAC'
      sub_category = 'PTAC'
    elsif sys_type == 'PSZ_HP'
      if capacity < 65000
        sub_category = 'Single Package'
      else
        sub_category = 'Split-system and single package'
      end
    else
      sub_category = 'Split-system and single package'
    end
  end

  return sub_category
end