Class: OpenStudio::Model::AirLoopHVACUnitarySystem

Inherits:
Object
  • Object
show all
Defined in:
lib/measures/openstudio_results/resources/Siz.AirLoopHVACUnitarySystem.rb

Overview

******************************************************************************* OpenStudio®, Copyright © Alliance for Sustainable Energy, LLC. See also openstudio.net/license *******************************************************************************

Instance Method Summary collapse

Instance Method Details

#maxAirFlowRateObject



23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# File 'lib/measures/openstudio_results/resources/Siz.AirLoopHVACUnitarySystem.rb', line 23

def maxAirFlowRate
  vals = []
  if supplyAirFlowRateDuringCoolingOperation.is_initialized
    vals << supplyAirFlowRateDuringCoolingOperation.get
  elsif autosizedSupplyAirFlowRateDuringCoolingOperation.is_initialized
    vals << autosizedSupplyAirFlowRateDuringCoolingOperation.get
  end
  if supplyAirFlowRateDuringHeatingOperation.is_initialized
    vals << supplyAirFlowRateDuringHeatingOperation.get
  elsif autosizedSupplyAirFlowRateDuringHeatingOperation.is_initialized
    vals << autosizedSupplyAirFlowRateDuringHeatingOperation.get
  end
  if supplyAirFlowRateWhenNoCoolingorHeatingisRequired.is_initialized
    vals << supplyAirFlowRateWhenNoCoolingorHeatingisRequired.get
  elsif autosizedSupplyAirFlowRateWhenNoCoolingorHeatingisRequired.is_initialized
    vals << autosizedSupplyAirFlowRateWhenNoCoolingorHeatingisRequired.get
  end
  if vals.size.zero?
    OpenStudio::OptionalDouble.new
  else
    OpenStudio::OptionalDouble.new(vals.max)
  end
end

#maxAirFlowRateAutosizedObject



65
66
67
68
69
70
71
72
73
74
75
# File 'lib/measures/openstudio_results/resources/Siz.AirLoopHVACUnitarySystem.rb', line 65

def maxAirFlowRateAutosized
  if supplyAirFlowRateDuringCoolingOperation.is_initialized
    return OpenStudio::OptionalBool.new(false)
  elsif supplyAirFlowRateDuringHeatingOperation.is_initialized
    return OpenStudio::OptionalBool.new(false)
  elsif supplyAirFlowRateWhenNoCoolingorHeatingisRequired.is_initialized
    return OpenStudio::OptionalBool.new(false)
  else
    return OpenStudio::OptionalBool.new(true)
  end
end

#maxCoolingCapacityObject



15
16
17
18
19
20
21
# File 'lib/measures/openstudio_results/resources/Siz.AirLoopHVACUnitarySystem.rb', line 15

def maxCoolingCapacity
  if coolingCoil.is_initialized
    coolingCoil.get.maxCoolingCapacity
  else
    OpenStudio::OptionalDouble.new
  end
end

#maxCoolingCapacityAutosizedObject



56
57
58
59
60
61
62
63
# File 'lib/measures/openstudio_results/resources/Siz.AirLoopHVACUnitarySystem.rb', line 56

def maxCoolingCapacityAutosized
  if coolingCoil.is_initialized
    # Not autosized if hard size field value present
    return OpenStudio::OptionalBool.new(false)
  else
    return OpenStudio::OptionalBool.new(true)
  end
end

#maxHeatingCapacityObject



7
8
9
10
11
12
13
# File 'lib/measures/openstudio_results/resources/Siz.AirLoopHVACUnitarySystem.rb', line 7

def maxHeatingCapacity
  if heatingCoil.is_initialized
    heatingCoil.get.maxHeatingCapacity
  else
    OpenStudio::OptionalDouble.new
  end
end

#maxHeatingCapacityAutosizedObject



47
48
49
50
51
52
53
54
# File 'lib/measures/openstudio_results/resources/Siz.AirLoopHVACUnitarySystem.rb', line 47

def maxHeatingCapacityAutosized
  if heatingCoil.is_initialized
    # Not autosized if hard size field value present
    return OpenStudio::OptionalBool.new(false)
  else
    return OpenStudio::OptionalBool.new(true)
  end
end

#performanceCharacteristicsObject



77
78
79
80
81
82
83
# File 'lib/measures/openstudio_results/resources/Siz.AirLoopHVACUnitarySystem.rb', line 77

def performanceCharacteristics
  effs = []
  effs += supplyFan.get.performanceCharacteristics if supplyFan.is_initialized
  effs += heatingCoil.get.performanceCharacteristics if heatingCoil.is_initialized
  effs += coolingCoil.get.performanceCharacteristics if coolingCoil.is_initialized
  return effs
end