Class: OpenStudio::Model::AirTerminalSingleDuctParallelPIUReheat

Inherits:
Object
  • Object
show all
Defined in:
lib/openstudio-standards/hvac_sizing/Siz.AirTermSnglDuctParallelPIUReheat.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
26
27
28
29
30
31
32
33
34
35
36
# File 'lib/openstudio-standards/hvac_sizing/Siz.AirTermSnglDuctParallelPIUReheat.rb', line 13

def applySizingValues

  maximum_primary_air_flow_rate = self.autosizedMaximumPrimaryAirFlowRate
  if maximum_primary_air_flow_rate.is_initialized
    self.setMaximumPrimaryAirFlowRate(maximum_primary_air_flow_rate.get) 
  end
  
  maximum_secondary_air_flow_rate = self.autosizedMaximumSecondaryAirFlowRate
  if maximum_secondary_air_flow_rate.is_initialized
    self.setMaximumSecondaryAirFlowRate(maximum_secondary_air_flow_rate.get)
  end
  
  minimum_primary_air_flow_fraction = self.autosizedMinimumPrimaryAirFlowFraction
  if minimum_primary_air_flow_fraction.is_initialized
    self.setMinimumPrimaryAirFlowFraction(minimum_primary_air_flow_fraction.get) 
  end
  
  fan_on_flow_fraction = self.autosizedFanOnFlowFraction
  if fan_on_flow_fraction.is_initialized
    self.setFanOnFlowFraction(fan_on_flow_fraction.get)
  end

  
end

#autosizeObject

Sets all auto-sizeable fields to autosize



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

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

#autosizedFanOnFlowFractionObject

returns the autosized fan on flow fraction as an optional double



60
61
62
63
64
# File 'lib/openstudio-standards/hvac_sizing/Siz.AirTermSnglDuctParallelPIUReheat.rb', line 60

def autosizedFanOnFlowFraction

  return self.model.getAutosizedValue(self, 'Design Size Fan On Flow Fraction', '')
     
end

#autosizedMaximumPrimaryAirFlowRateObject

returns the autosized maximum primary air flow rate as an optional double



39
40
41
42
43
# File 'lib/openstudio-standards/hvac_sizing/Siz.AirTermSnglDuctParallelPIUReheat.rb', line 39

def autosizedMaximumPrimaryAirFlowRate

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

#autosizedMaximumSecondaryAirFlowRateObject

returns the autosized maximum secondary air flow rate as an optional double



46
47
48
49
50
# File 'lib/openstudio-standards/hvac_sizing/Siz.AirTermSnglDuctParallelPIUReheat.rb', line 46

def autosizedMaximumSecondaryAirFlowRate

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

#autosizedMinimumPrimaryAirFlowFractionObject

returns the autosized minimum primary air flow fraction as an optional double



53
54
55
56
57
# File 'lib/openstudio-standards/hvac_sizing/Siz.AirTermSnglDuctParallelPIUReheat.rb', line 53

def autosizedMinimumPrimaryAirFlowFraction

  return self.model.getAutosizedValue(self, 'Design Size Minimum Primary Air Flow Fraction', '')
    
end