Class: OpenStudio::Model::CoilHeatingDXMultiSpeed

Inherits:
Object
  • Object
show all
Defined in:
lib/openstudio-standards/hvac_sizing/Siz.CoilHeatingDXMultiSpeed.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.



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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
# File 'lib/openstudio-standards/hvac_sizing/Siz.CoilHeatingDXMultiSpeed.rb', line 20

def applySizingValues

  speed1_rated_heating_capacity = self.autosizedSpeed1GrossRatedHeatingCapacity
  if speed1_rated_heating_capacity.is_initialized
    self.setSpeed1GrossRatedHeatingCapacity(speed1_rated_heating_capacity.get) 
  end
 
  speed2_rated_total_cooling_capacity = self.autosizedSpeed2GrossRatedHeatingCapacity
  if speed2_rated_total_cooling_capacity.is_initialized
    self.setSpeed2GrossRatedTotalCoolingCapacity(speed2_rated_total_cooling_capacity.get) 
  end

  speed3_rated_total_heating_capacity = self.autosizedSpeed3GrossRatedHeatingCapacity
  if speed3_rated_total_heating_capacity.is_initialized
    self.setSpeed3GrossRatedTotalCoolingCapacity(speed3_rated_total_heating_capacity.get) 
  end
  
  speed4_rated_total_heating_capacity = self.autosizedSpeed4GrossRatedHeatingCapacity
  if speed4_rated_total_heating_capacity.is_initialized
    self.setSpeed4GrossRatedTotalCoolingCapacity(speed4_rated_total_heating_capacity.get) 
  end
 
  speed1_rated_air_flow_rate = self.autosizedSpeed1RatedAirFlowRate
  if speed1_rated_air_flow_rate.is_initialized
    self.setSpeed1RatedAirFlowRate(speed1_rated_air_flow_rate.get) 
  end
 
  speed2_rated_air_flow_rate = self.autosizedSpeed2RatedAirFlowRate
  if speed2_rated_air_flow_rate.is_initialized
    self.setSpeed2RatedAirFlowRate(speed2_rated_air_flow_rate.get) 
  end

  speed3_rated_air_flow_rate = self.autosizedSpeed3RatedAirFlowRate
  if speed3_rated_air_flow_rate.is_initialized
    self.setSpeed3RatedAirFlowRate(speed3_rated_air_flow_rate.get) 
  end
  
  speed4_rated_air_flow_rate = self.autosizedSpeed4RatedAirFlowRate
  if speed4_rated_air_flow_rate.is_initialized
    self.setSpeed4RatedAirFlowRate(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
# File 'lib/openstudio-standards/hvac_sizing/Siz.CoilHeatingDXMultiSpeed.rb', line 6

def autosize
  autosizeSpeed1GrossRatedHeatingCapacity
  autosizeSpeed2GrossRatedHeatingCapacity
  autosizeSpeed3GrossRatedHeatingCapacity
  autosizeSpeed4GrossRatedHeatingCapacity
  autosizeSpeed1RatedAirFlowRate
  autosizeSpeed2RatedAirFlowRate
  autosizeSpeed3RatedAirFlowRate
  autosizeSpeed4RatedAirFlowRate 
end

#autosizedSpeed1GrossRatedHeatingCapacityObject

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



65
66
67
68
69
# File 'lib/openstudio-standards/hvac_sizing/Siz.CoilHeatingDXMultiSpeed.rb', line 65

def autosizedSpeed1GrossRatedHeatingCapacity

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

#autosizedSpeed1RatedAirFlowRateObject

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



93
94
95
96
97
# File 'lib/openstudio-standards/hvac_sizing/Siz.CoilHeatingDXMultiSpeed.rb', line 93

def autosizedSpeed1RatedAirFlowRate

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

#autosizedSpeed2GrossRatedHeatingCapacityObject

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



72
73
74
75
76
# File 'lib/openstudio-standards/hvac_sizing/Siz.CoilHeatingDXMultiSpeed.rb', line 72

def autosizedSpeed2GrossRatedHeatingCapacity

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

#autosizedSpeed2RatedAirFlowRateObject

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



100
101
102
103
104
# File 'lib/openstudio-standards/hvac_sizing/Siz.CoilHeatingDXMultiSpeed.rb', line 100

def autosizedSpeed2RatedAirFlowRate

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

#autosizedSpeed3GrossRatedHeatingCapacityObject

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



79
80
81
82
83
# File 'lib/openstudio-standards/hvac_sizing/Siz.CoilHeatingDXMultiSpeed.rb', line 79

def autosizedSpeed3GrossRatedHeatingCapacity

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

#autosizedSpeed3RatedAirFlowRateObject

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



107
108
109
110
111
# File 'lib/openstudio-standards/hvac_sizing/Siz.CoilHeatingDXMultiSpeed.rb', line 107

def autosizedSpeed3RatedAirFlowRate

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

#autosizedSpeed4GrossRatedHeatingCapacityObject

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



86
87
88
89
90
# File 'lib/openstudio-standards/hvac_sizing/Siz.CoilHeatingDXMultiSpeed.rb', line 86

def autosizedSpeed4GrossRatedHeatingCapacity

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

#autosizedSpeed4RatedAirFlowRateObject

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



114
115
116
117
118
# File 'lib/openstudio-standards/hvac_sizing/Siz.CoilHeatingDXMultiSpeed.rb', line 114

def autosizedSpeed4RatedAirFlowRate

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