Class: OpenStudio::Model::CoilHeatingGas

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

def applySizingValues

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

#autosizeObject

Sets all auto-sizeable fields to autosize



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

def autosize
  self.autosizeNominalCapacity
end

#autosizedNominalCapacityObject

returns the autosized rated capacity as an optional double



23
24
25
26
27
# File 'lib/openstudio-standards/hvac_sizing/Siz.CoilHeatingGas.rb', line 23

def autosizedNominalCapacity

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