Class: OpenStudio::Model::HeatExchangerAirToAirSensibleAndLatent

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

def applySizingValues

  nominal_supply_air_flow_rate = self.autosizedNominalSupplyAirFlowRate
  if nominal_supply_air_flow_rate.is_initialized
    self.setNominalSupplyAirFlowRate(nominal_supply_air_flow_rate.get) 
  end
  
end

#autosizeObject

Sets all auto-sizeable fields to autosize



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

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

#autosizedNominalSupplyAirFlowRateObject

returns the autosized nominal supply air flow rate as an optional double



23
24
25
26
27
28
29
30
31
32
33
34
35
# File 'lib/openstudio-standards/hvac_sizing/Siz.HeatExchangerAirToAirSensibleAndLatent.rb', line 23

def autosizedNominalSupplyAirFlowRate

  # In E+ 8.4, (OS 1.9.3 onward) the variable name changed
  supply_air_flow_rate_name = nil
  if self.model.version < OpenStudio::VersionString.new('1.9.3')
    supply_air_flow_rate_name = 'Nominal Supply Air Flow Rate'
  else
    supply_air_flow_rate_name = 'Design Size Nominal Supply Air Flow Rate'
  end  

  return self.model.getAutosizedValue(self, supply_air_flow_rate_name, 'm3/s')
  
end