Class: OpenStudio::Model::CoilCoolingWater

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



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
46
47
48
49
50
# File 'lib/openstudio-standards/hvac_sizing/Siz.CoilCoolingWater.rb', line 13

def applySizingValues

  design_water_flow_rate = self.autosizedDesignWaterFlowRate
  if design_water_flow_rate.is_initialized
    self.setDesignWaterFlowRate(design_water_flow_rate.get) 
  end

  design_air_flow_rate = self.autosizedDesignAirFlowRate
  if design_air_flow_rate.is_initialized
    self.setDesignAirFlowRate(design_air_flow_rate.get) 
  end    

  design_inlet_water_temperature = self.autosizedDesignInletWaterTemperature
  if design_inlet_water_temperature.is_initialized
    self.setDesignInletWaterTemperature(design_inlet_water_temperature.get) 
  end  
  
  design_inlet_air_temperature = self.autosizedDesignInletAirTemperature
  if design_inlet_air_temperature.is_initialized
    self.setDesignInletAirTemperature(design_inlet_air_temperature.get) 
  end  

  design_outlet_air_temperature = self.autosizedDesignOutletAirTemperature
  if design_outlet_air_temperature.is_initialized
    self.setDesignOutletAirTemperature(design_outlet_air_temperature.get) 
  end  
  
  design_inlet_air_humidity_ratio = self.autosizedDesignInletAirHumidityRatio
  if design_inlet_air_humidity_ratio.is_initialized
    self.setDesignInletAirHumidityRatio(design_inlet_air_humidity_ratio.get) 
  end      
  
  design_outlet_air_humidity_ratio = self.autosizedDesignOutletAirHumidityRatio
  if design_outlet_air_humidity_ratio.is_initialized
    self.setDesignOutletAirHumidityRatio(design_outlet_air_humidity_ratio.get) 
  end 
          
end

#autosizeObject

Sets all auto-sizeable fields to autosize



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

def autosize
  OpenStudio::logFree(OpenStudio::Warn, "openstudio.sizing.CoilCoolingWater", ".autosize not yet implemented for #{self.iddObject.type.valueDescription}.")
end

#autosizedDesignAirFlowRateObject

returns the autosized design air flow rate as an optional double



60
61
62
63
64
# File 'lib/openstudio-standards/hvac_sizing/Siz.CoilCoolingWater.rb', line 60

def autosizedDesignAirFlowRate

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

#autosizedDesignCoilLoadObject

returns the autosized design coil load



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

def autosizedDesignCoilLoad

  return self.model.getAutosizedValue(self, 'Design Size Design Coil Load', 'W')
  
end

#autosizedDesignInletAirHumidityRatioObject

returns the autosized inlet air humidity ratio as an optional double



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

def autosizedDesignInletAirHumidityRatio

  return self.model.getAutosizedValue(self, 'Design Size Design Inlet Air Humidity Ratio', '')
  
end

#autosizedDesignInletAirTemperatureObject

returns the autosized design inlet air temperatureas an optional double



74
75
76
77
78
# File 'lib/openstudio-standards/hvac_sizing/Siz.CoilCoolingWater.rb', line 74

def autosizedDesignInletAirTemperature

  return self.model.getAutosizedValue(self, 'Design Size Design Inlet Air Temperature', 'C')

end

#autosizedDesignInletWaterTemperatureObject

returns the autosized design inlet water temperature as an optional double



67
68
69
70
71
# File 'lib/openstudio-standards/hvac_sizing/Siz.CoilCoolingWater.rb', line 67

def autosizedDesignInletWaterTemperature
  
  return self.model.getAutosizedValue(self, 'Design Size Design Inlet Water Temperature', 'C')
  
end

#autosizedDesignOutletAirHumidityRatioObject

returns the autosized outlet air humidity ratio as an optional double



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

def autosizedDesignOutletAirHumidityRatio

  return self.model.getAutosizedValue(self, 'Design Size Design Outlet Air Humidity Ratio', '')
  
end

#autosizedDesignOutletAirTemperatureObject

returns the autosized design outlet air temperature as an optional double



81
82
83
84
85
# File 'lib/openstudio-standards/hvac_sizing/Siz.CoilCoolingWater.rb', line 81

def autosizedDesignOutletAirTemperature

  return self.model.getAutosizedValue(self, 'Design Size Design Outlet Air Temperature', 'C')
  
end

#autosizedDesignWaterFlowRateObject

returns the autosized design water flow rate as an optional double



53
54
55
56
57
# File 'lib/openstudio-standards/hvac_sizing/Siz.CoilCoolingWater.rb', line 53

def autosizedDesignWaterFlowRate

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