Class: OpenStudio::Model::HeaderedPumpsVariableSpeed
- Inherits:
-
Object
- Object
- OpenStudio::Model::HeaderedPumpsVariableSpeed
- Defined in:
- lib/openstudio-standards/hvac_sizing/Siz.HeaderedPumpsVariableSpeed.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.
-
#autosizedRatedPowerConsumption ⇒ Object
returns the autosized rated power consumption as an optional double.
-
#autosizedTotalRatedFlowRate ⇒ Object
returns the autosized rated 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.
14 15 16 17 18 19 20 21 22 23 24 25 26 |
# File 'lib/openstudio-standards/hvac_sizing/Siz.HeaderedPumpsVariableSpeed.rb', line 14 def applySizingValues rated_flow_rate = self.autosizedTotalRatedFlowRate if rated_flow_rate.is_initialized self.setTotalRatedFlowRate(rated_flow_rate.get) end rated_power_consumption = self.autosizedRatedPowerConsumption if rated_power_consumption.is_initialized self.setRatedPowerConsumption(rated_power_consumption.get) end end |
#autosize ⇒ Object
Sets all auto-sizeable fields to autosize
6 7 8 9 |
# File 'lib/openstudio-standards/hvac_sizing/Siz.HeaderedPumpsVariableSpeed.rb', line 6 def autosize self.autosizeTotalRatedFlowRate self.autosizeRatedPowerConsumption end |
#autosizedRatedPowerConsumption ⇒ Object
returns the autosized rated power consumption as an optional double
43 44 45 46 47 48 49 50 51 52 53 54 |
# File 'lib/openstudio-standards/hvac_sizing/Siz.HeaderedPumpsVariableSpeed.rb', line 43 def autosizedRatedPowerConsumption # In E+ 8.5, (OS 1.10.5 onward) the column name changed col_name = nil if self.model.version < OpenStudio::VersionString.new('1.10.5') col_name = 'Rated Power Consumption' else col_name = 'Design Power Consumption' end return self.model.getAutosizedValue(self, col_name, 'W') end |
#autosizedTotalRatedFlowRate ⇒ Object
returns the autosized rated flow rate as an optional double
29 30 31 32 33 34 35 36 37 38 39 40 |
# File 'lib/openstudio-standards/hvac_sizing/Siz.HeaderedPumpsVariableSpeed.rb', line 29 def autosizedTotalRatedFlowRate # In E+ 8.5, (OS 1.10.5 onward) the column name changed col_name = nil if self.model.version < OpenStudio::VersionString.new('1.10.5') col_name = 'Rated Flow Rate' else col_name = 'Design Flow Rate' end return self.model.getAutosizedValue(self, col_name, 'm3/s') end |