Class: OpenStudio::Model::BoilerHotWater

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

def applySizingValues

  nominal_capacity = self.autosizedNominalCapacity
  if nominal_capacity.is_initialized
    self.setNominalCapacity(nominal_capacity.get) 
  end

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

#autosizeObject

Sets all auto-sizeable fields to autosize



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

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

#autosizedDesignWaterFlowRateObject

returns the autosized design water flow rate as an optional double



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

def autosizedDesignWaterFlowRate

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

#autosizedNominalCapacityObject

returns the autosized nominal capacity as an optional double



28
29
30
31
32
# File 'lib/openstudio-standards/hvac_sizing/Siz.BoilerHotWater.rb', line 28

def autosizedNominalCapacity

  return self.model.getAutosizedValue(self, 'Design Size Nominal Capacity', 'W')
  
end