Class: OpenStudio::Model::CoolingTowerSingleSpeed

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

  fan_power_at_design_air_flow_rate = self.autosizedFanPoweratDesignAirFlowRate
  if fan_power_at_design_air_flow_rate.is_initialized
    self.setFanPoweratDesignAirFlowRate(fan_power_at_design_air_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

  u_factor_times_area_value_at_design_air_flow_rate = self.autosizedUFactorTimesAreaValueatDesignAirFlowRate
  if u_factor_times_area_value_at_design_air_flow_rate.is_initialized
    self.setUFactorTimesAreaValueatDesignAirFlowRate(u_factor_times_area_value_at_design_air_flow_rate.get) 
  end

  air_flow_rate_in_free_convection_regime = self.autosizedAirFlowRateinFreeConvectionRegime
  if air_flow_rate_in_free_convection_regime.is_initialized
    self.setAirFlowRateinFreeConvectionRegime(air_flow_rate_in_free_convection_regime.get) 
  end

  u_factor_times_area_value_at_free_convection_air_flow_rate = self.autosizedUFactorTimesAreaValueatFreeConvectionAirFlowRate
  if u_factor_times_area_value_at_free_convection_air_flow_rate.is_initialized
    self.setUFactorTimesAreaValueatFreeConvectionAirFlowRate(u_factor_times_area_value_at_free_convection_air_flow_rate.get) 
  end
  
end

#autosizeObject

Sets all auto-sizeable fields to autosize



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

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

#autosizedAirFlowRateinFreeConvectionRegimeObject

returns the autosized air flow rate in free convection regime as an optional double



76
77
78
79
80
# File 'lib/openstudio-standards/hvac_sizing/Siz.CoolingTowerSingleSpeed.rb', line 76

def autosizedAirFlowRateinFreeConvectionRegime

  return self.model.getAutosizedValue(self, 'Free Convection Regime Air Flow Rate', 'm3/s')

end

#autosizedDesignAirFlowRateObject

returns the autosized reference design air flow rate as an optional double



62
63
64
65
66
# File 'lib/openstudio-standards/hvac_sizing/Siz.CoolingTowerSingleSpeed.rb', line 62

def autosizedDesignAirFlowRate

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

#autosizedDesignWaterFlowRateObject

returns the autosized design water flow rate as an optional double



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

def autosizedDesignWaterFlowRate

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

end

#autosizedFanPoweratDesignAirFlowRateObject

returns the autosized fan power at design air flow rate as an optional double



55
56
57
58
59
# File 'lib/openstudio-standards/hvac_sizing/Siz.CoolingTowerSingleSpeed.rb', line 55

def autosizedFanPoweratDesignAirFlowRate

  return self.model.getAutosizedValue(self, 'Fan Power at Design Air Flow Rate', 'W')
  
end

#autosizedUFactorTimesAreaValueatDesignAirFlowRateObject

returns the autosized u-factor times area value at design air flow rate as an optional double



69
70
71
72
73
# File 'lib/openstudio-standards/hvac_sizing/Siz.CoolingTowerSingleSpeed.rb', line 69

def autosizedUFactorTimesAreaValueatDesignAirFlowRate

  return self.model.getAutosizedValue(self, 'U-Factor Times Area Value at Design Air Flow Rate', 'W/C')

end

#autosizedUFactorTimesAreaValueatFreeConvectionAirFlowRateObject

returns the autosized u-factor times area value in free convection as an optional double



83
84
85
86
87
# File 'lib/openstudio-standards/hvac_sizing/Siz.CoolingTowerSingleSpeed.rb', line 83

def autosizedUFactorTimesAreaValueatFreeConvectionAirFlowRate

  return self.model.getAutosizedValue(self, 'Free Convection U-Factor Times Area Value', 'W/K')
  
end