Class: OpenStudio::Model::CoolingTowerVariableSpeed
- Inherits:
-
Object
- Object
- OpenStudio::Model::CoolingTowerVariableSpeed
- Defined in:
- lib/openstudio-standards/hvac_sizing/Siz.CoolingTowerVariableSpeed.rb
Overview
open the class to add methods to return sizing values
Instance Method Summary collapse
-
#applySizingValues ⇒ Object
Takes the values calculated by the EnergyPlus sizing routines and puts them into this object model in place of the autosized fields.
-
#autosize ⇒ Object
Sets all auto-sizeable fields to autosize.
-
#autosizedDesignAirFlowRate ⇒ Object
returns the autosized air flow rate as an optional double.
-
#autosizedDesignFanPower ⇒ Object
returns the autosized design fan power as an optional double.
-
#autosizedDesignWaterFlowRate ⇒ Object
returns the autosized design water flow rate as an optional double.
Instance Method Details
#applySizingValues ⇒ Object
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.
17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 |
# File 'lib/openstudio-standards/hvac_sizing/Siz.CoolingTowerVariableSpeed.rb', line 17 def applySizingValues rated_water_flow_rate = self.autosizedDesignWaterFlowRate if rated_water_flow_rate.is_initialized self.setDesignWaterFlowRate(rated_water_flow_rate.get) end rated_air_flow_rate = self.autosizedDesignAirFlowRate if rated_air_flow_rate.is_initialized self.setDesignAirFlowRate(rated_air_flow_rate.get) end rated_fan_power = self.autosizedDesignFanPower if rated_fan_power.is_initialized self.setDesignFanPower(rated_fan_power.get) end end |
#autosize ⇒ Object
Sets all auto-sizeable fields to autosize
6 7 8 9 10 11 12 |
# File 'lib/openstudio-standards/hvac_sizing/Siz.CoolingTowerVariableSpeed.rb', line 6 def autosize self.autosizeDesignWaterFlowRate self.autosizeDesignAirFlowRate self.autosizeDesignFanPower end |
#autosizedDesignAirFlowRate ⇒ Object
returns the autosized air flow rate as an optional double
44 45 46 47 48 |
# File 'lib/openstudio-standards/hvac_sizing/Siz.CoolingTowerVariableSpeed.rb', line 44 def autosizedDesignAirFlowRate return self.model.getAutosizedValue(self, 'Design Air Flow Rate', 'm3/s') end |
#autosizedDesignFanPower ⇒ Object
returns the autosized design fan power as an optional double
51 52 53 54 55 |
# File 'lib/openstudio-standards/hvac_sizing/Siz.CoolingTowerVariableSpeed.rb', line 51 def autosizedDesignFanPower return self.model.getAutosizedValue(self, 'Fan Power at Design Air Flow Rate', 'W') end |
#autosizedDesignWaterFlowRate ⇒ Object
returns the autosized design water flow rate as an optional double
37 38 39 40 41 |
# File 'lib/openstudio-standards/hvac_sizing/Siz.CoolingTowerVariableSpeed.rb', line 37 def autosizedDesignWaterFlowRate return self.model.getAutosizedValue(self, 'Design Water Flow Rate', 'm3/s') end |