Class: OpenStudio::Model::CoilCoolingDXSingleSpeed

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



15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# File 'lib/openstudio-standards/hvac_sizing/Siz.CoilCoolingDXSingleSpeed.rb', line 15

def applySizingValues

  rated_air_flow_rate = self.autosizedRatedAirFlowRate
  if rated_air_flow_rate.is_initialized
    self.setRatedAirFlowRate(rated_air_flow_rate.get) 
  end

  rated_total_cooling_capacity = self.autosizedRatedTotalCoolingCapacity
  if rated_total_cooling_capacity.is_initialized
    self.setRatedTotalCoolingCapacity(rated_total_cooling_capacity.get) 
  end    

  rated_sensible_heat_ratio = self.autosizedRatedSensibleHeatRatio
  if rated_sensible_heat_ratio.is_initialized
    self.setRatedSensibleHeatRatio(rated_sensible_heat_ratio.get) 
  end     
    
end

#autosizeObject

Sets all auto-sizeable fields to autosize



6
7
8
9
10
# File 'lib/openstudio-standards/hvac_sizing/Siz.CoilCoolingDXSingleSpeed.rb', line 6

def autosize
  self.autosizeRatedTotalCoolingCapacity 
  self.autosizeRatedSensibleHeatRatio
  self.autosizeRatedAirFlowRate
end

#autosizedRatedAirFlowRateObject

returns the autosized rated air flow rate as an optional double



35
36
37
38
39
# File 'lib/openstudio-standards/hvac_sizing/Siz.CoilCoolingDXSingleSpeed.rb', line 35

def autosizedRatedAirFlowRate

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

end

#autosizedRatedSensibleHeatRatioObject

returns the autosized rated sensible heat ratio as an optional double



49
50
51
52
53
# File 'lib/openstudio-standards/hvac_sizing/Siz.CoilCoolingDXSingleSpeed.rb', line 49

def autosizedRatedSensibleHeatRatio

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

#autosizedRatedTotalCoolingCapacityObject

returns the autosized rated total cooling capacity as an optional double



42
43
44
45
46
# File 'lib/openstudio-standards/hvac_sizing/Siz.CoilCoolingDXSingleSpeed.rb', line 42

def autosizedRatedTotalCoolingCapacity

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