Class: OpenStudio::Model::CoilCoolingDXMultiSpeed

Inherits:
Object
  • Object
show all
Defined in:
lib/openstudio-standards/hvac_sizing/Siz.CoilCoolingDXMultiSpeed.rb

Overview

open the class to add methods to return sizing values

Instance Method Summary collapse

Instance Method Details

#applySizingValuesObject

Takes the values calculated by the EnergyPlus sizing routines and puts them into this object model in place of the autosized fields. Must have previously completed a run with sql output for this to work.



24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
# File 'lib/openstudio-standards/hvac_sizing/Siz.CoilCoolingDXMultiSpeed.rb', line 24

def applySizingValues

  rated_speed1_rated_total_cooling_capacity = self.autosizedSpeed1GrossRatedTotalCoolingCapacity
  if rated_speed1_rated_total_cooling_capacity.is_initialized
    self.setSpeed1GrossRatedTotalCoolingCapacity(rated_speed1_rated_total_cooling_capacity.get) 
  end

  rated_speed2_rated_total_cooling_capacity = self.autosizedSpeed2GrossRatedTotalCoolingCapacity
  if rated_speed2_rated_total_cooling_capacity.is_initialized
    self.setSpeed2GrossRatedTotalCoolingCapacity(rated_speed2_rated_total_cooling_capacity.get) 
  end

  rated_speed3_rated_total_cooling_capacity = self.autosizedSpeed3GrossRatedTotalCoolingCapacity
  if rated_speed3_rated_total_cooling_capacity.is_initialized
    self.setSpeed3GrossRatedTotalCoolingCapacity(rated_speed3_rated_total_cooling_capacity.get) 
  end
  
  rated_speed4_rated_total_cooling_capacity = self.autosizedSpeed4GrossRatedTotalCoolingCapacity
  if rated_speed4_rated_total_cooling_capacity.is_initialized
    self.setSpeed4GrossRatedTotalCoolingCapacity(rated_speed4_rated_total_cooling_capacity.get) 
  end
  
  rated_speed1_rated_sensible_heat_ratio = self.autosizedSpeed1RatedSensibleHeatRatio
  if rated_speed1_rated_sensible_heat_ratio.is_initialized
    self.setSpeed1RatedSensibleHeatRatio(rated_speed1_rated_sensible_heat_ratio.get) 
  end

  rated_speed2_rated_sensible_heat_ratio = self.autosizedSpeed2RatedSensibleHeatRatio
  if rated_speed2_rated_sensible_heat_ratio.is_initialized
    self.setSpeed2RatedSensibleHeatRatio(rated_speed2_rated_sensible_heat_ratio.get) 
  end

  rated_speed3_rated_sensible_heat_ratio = self.autosizedSpeed3RatedSensibleHeatRatio
  if rated_speed3_rated_sensible_heat_ratio.is_initialized
    self.setSpeed3RatedSensibleHeatRatio(rated_speed3_rated_sensible_heat_ratio.get) 
  end

  rated_speed4_rated_sensible_heat_ratio = self.autosizedSpeed4RatedSensibleHeatRatio
  if rated_speed4_rated_sensible_heat_ratio.is_initialized
    self.setSpeed4RatedSensibleHeatRatio(rated_speed4_rated_sensible_heat_ratio.get) 
  end

  rated_speed1_rated_air_flow_rate = self.autosizedSpeed1RatedAirFlowRate
  if rated_speed1_rated_air_flow_rate.is_initialized
    self.setSpeed1RatedAirFlowRate(rated_speed1_rated_air_flow_rate.get) 
  end
 
  rated_speed2_rated_air_flow_rate = self.autosizedSpeed2RatedAirFlowRate
  if rated_speed2_rated_air_flow_rate.is_initialized
    self.setSpeed2RatedAirFlowRate(rated_speed2_rated_air_flow_rate.get) 
  end

  rated_speed3_rated_air_flow_rate = self.autosizedSpeed3RatedAirFlowRate
  if rated_speed3_rated_air_flow_rate.is_initialized
    self.setSpeed3RatedAirFlowRate(rated_speed3_rated_air_flow_rate.get) 
  end
  
  rated_speed4_rated_air_flow_rate = self.autosizedSpeed4RatedAirFlowRate
  if rated_speed4_rated_air_flow_rate.is_initialized
    self.setSpeed4RatedAirFlowRate(rated_speed4_rated_air_flow_rate.get) 
  end
 
end

#autosizeObject

Sets all auto-sizeable fields to autosize



6
7
8
9
10
11
12
13
14
15
16
17
18
19
# File 'lib/openstudio-standards/hvac_sizing/Siz.CoilCoolingDXMultiSpeed.rb', line 6

def autosize
  autosizeSpeed1GrossRatedTotalCoolingCapacity
  autosizeSpeed2GrossRatedTotalCoolingCapacity
  autosizeSpeed3GrossRatedTotalCoolingCapacity
  autosizeSpeed4GrossRatedTotalCoolingCapacity
  autosizeSpeed1GrossRatedSensibleHeatRatio
  autosizeSpeed2GrossRatedSensibleHeatRatio
  autosizeSpeed3GrossRatedSensibleHeatRatio
  autosizeSpeed4GrossRatedSensibleHeatRatio  
  autosizeSpeed1RatedAirFlowRate
  autosizeSpeed2RatedAirFlowRate
  autosizeSpeed3RatedAirFlowRate
  autosizeSpeed4RatedAirFlowRate 
end

#autosizedSpeed1GrossRatedTotalCoolingCapacityObject

returns the autosized rated total cooling capacity for stage 1 as an optional double



89
90
91
92
93
# File 'lib/openstudio-standards/hvac_sizing/Siz.CoilCoolingDXMultiSpeed.rb', line 89

def autosizedSpeed1GrossRatedTotalCoolingCapacity

  return self.model.getAutosizedValue(self,'Speed 1 Design Size Rated Total Cooling Capacity', 'W')
  
end

#autosizedSpeed1RatedAirFlowRateObject

returns the autosized rated air flow rate for stage 1 as an optional double



145
146
147
148
149
# File 'lib/openstudio-standards/hvac_sizing/Siz.CoilCoolingDXMultiSpeed.rb', line 145

def autosizedSpeed1RatedAirFlowRate

  return self.model.getAutosizedValue(self,'Design Size Speed 1 Rated Air Flow Rate', 'm3/s')
  
end

#autosizedSpeed1RatedSensibleHeatRatioObject

returns the autosized rated sensible heat ratio for stage 1 as an optional double



117
118
119
120
121
# File 'lib/openstudio-standards/hvac_sizing/Siz.CoilCoolingDXMultiSpeed.rb', line 117

def autosizedSpeed1RatedSensibleHeatRatio

  return self.model.getAutosizedValue(self,'Speed 1 Design Size Rated Sensible Heat Ratio', '')
  
end

#autosizedSpeed2GrossRatedTotalCoolingCapacityObject

returns the autosized rated total cooling capacity for stage 2 as an optional double



96
97
98
99
100
# File 'lib/openstudio-standards/hvac_sizing/Siz.CoilCoolingDXMultiSpeed.rb', line 96

def autosizedSpeed2GrossRatedTotalCoolingCapacity

  return self.model.getAutosizedValue(self,'Speed 2 Design Size Rated Total Cooling Capacity', 'W')
  
end

#autosizedSpeed2RatedAirFlowRateObject

returns the autosized rated air flow rate for stage 2 as an optional double



152
153
154
155
156
# File 'lib/openstudio-standards/hvac_sizing/Siz.CoilCoolingDXMultiSpeed.rb', line 152

def autosizedSpeed2RatedAirFlowRate

  return self.model.getAutosizedValue(self,'Design Size Speed 2 Rated Air Flow Rate', 'm3/s')
  
end

#autosizedSpeed2RatedSensibleHeatRatioObject

returns the autosized rated sensible heat ratio for stage 2 as an optional double



124
125
126
127
128
# File 'lib/openstudio-standards/hvac_sizing/Siz.CoilCoolingDXMultiSpeed.rb', line 124

def autosizedSpeed2RatedSensibleHeatRatio

  return self.model.getAutosizedValue(self,'Speed 2 Design Size Rated Sensible Heat Ratio', '')
  
end

#autosizedSpeed3GrossRatedTotalCoolingCapacityObject

returns the autosized rated total cooling capacity for stage 3 as an optional double



103
104
105
106
107
# File 'lib/openstudio-standards/hvac_sizing/Siz.CoilCoolingDXMultiSpeed.rb', line 103

def autosizedSpeed3GrossRatedTotalCoolingCapacity

  return self.model.getAutosizedValue(self,'Speed 3 Design Size Rated Total Cooling Capacity', 'W')
  
end

#autosizedSpeed3RatedAirFlowRateObject

returns the autosized rated air flow rate for stage 3 as an optional double



159
160
161
162
163
# File 'lib/openstudio-standards/hvac_sizing/Siz.CoilCoolingDXMultiSpeed.rb', line 159

def autosizedSpeed3RatedAirFlowRate

  return self.model.getAutosizedValue(self,'Design Size Speed 3 Rated Air Flow Rate', 'm3/s')
  
end

#autosizedSpeed3RatedSensibleHeatRatioObject

returns the autosized rated sensible heat ratio for stage 3 as an optional double



131
132
133
134
135
# File 'lib/openstudio-standards/hvac_sizing/Siz.CoilCoolingDXMultiSpeed.rb', line 131

def autosizedSpeed3RatedSensibleHeatRatio

  return self.model.getAutosizedValue(self,'Speed 3 Design Size Rated Sensible Heat Ratio', '')
  
end

#autosizedSpeed4GrossRatedTotalCoolingCapacityObject

returns the autosized rated total cooling capacity for stage 4 as an optional double



110
111
112
113
114
# File 'lib/openstudio-standards/hvac_sizing/Siz.CoilCoolingDXMultiSpeed.rb', line 110

def autosizedSpeed4GrossRatedTotalCoolingCapacity

  return self.model.getAutosizedValue(self,'Speed 4 Design Size Rated Total Cooling Capacity', 'W')
  
end

#autosizedSpeed4RatedAirFlowRateObject

returns the autosized rated air flow rate for stage 4 as an optional double



166
167
168
169
170
# File 'lib/openstudio-standards/hvac_sizing/Siz.CoilCoolingDXMultiSpeed.rb', line 166

def autosizedSpeed4RatedAirFlowRate

  return self.model.getAutosizedValue(self,'Design Size Speed 4 Rated Air Flow Rate', 'm3/s')
  
end

#autosizedSpeed4RatedSensibleHeatRatioObject

returns the autosized rated sensible heat ratio for stage 4 as an optional double



138
139
140
141
142
# File 'lib/openstudio-standards/hvac_sizing/Siz.CoilCoolingDXMultiSpeed.rb', line 138

def autosizedSpeed4RatedSensibleHeatRatio

  return self.model.getAutosizedValue(self,'Speed 4 Design Size Rated Sensible Heat Ratio', '')
  
end