Class: OpenStudio::Model::AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed

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

Overview

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

Instance Method Summary collapse

Instance Method Details

#maxAirFlowRateObject



15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
# File 'lib/measures/openstudio_results/resources/Siz.AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed.rb', line 15

def maxAirFlowRate
  vals = []
  if supplyAirFlowRateWhenNoCoolingorHeatingisNeeded.is_initialized
    vals << supplyAirFlowRateWhenNoCoolingorHeatingisNeeded.get
  elsif autosizedSupplyAirFlowRateWhenNoCoolingorHeatingisNeeded.is_initialized
    vals << autosizedSupplyAirFlowRateWhenNoCoolingorHeatingisNeeded.get
  end
  if speed1SupplyAirFlowRateDuringHeatingOperation.is_initialized
    vals << speed1SupplyAirFlowRateDuringHeatingOperation.get
  elsif autosizedSpeed1SupplyAirFlowRateDuringHeatingOperation.is_initialized
    vals << autosizedSpeed1SupplyAirFlowRateDuringHeatingOperation.get
  end
  if speed2SupplyAirFlowRateDuringHeatingOperation.is_initialized
    vals << speed2SupplyAirFlowRateDuringHeatingOperation.get
  elsif autosizedSpeed2SupplyAirFlowRateDuringHeatingOperation.is_initialized
    vals << autosizedSpeed2SupplyAirFlowRateDuringHeatingOperation.get
  end
  if speed3SupplyAirFlowRateDuringHeatingOperation.is_initialized
    vals << speed3SupplyAirFlowRateDuringHeatingOperation.get
  elsif autosizedSpeed3SupplyAirFlowRateDuringHeatingOperation.is_initialized
    vals << autosizedSpeed3SupplyAirFlowRateDuringHeatingOperation.get
  end
  if speed4SupplyAirFlowRateDuringHeatingOperation.is_initialized
    vals << speed4SupplyAirFlowRateDuringHeatingOperation.get
  elsif autosizedSpeed4SupplyAirFlowRateDuringHeatingOperation.is_initialized
    vals << autosizedSpeed4SupplyAirFlowRateDuringHeatingOperation.get
  end
  if speed1SupplyAirFlowRateDuringCoolingOperation.is_initialized
    vals << speed1SupplyAirFlowRateDuringCoolingOperation.get
  elsif autosizedSpeed1SupplyAirFlowRateDuringCoolingOperation.is_initialized
    vals << autosizedSpeed1SupplyAirFlowRateDuringCoolingOperation.get
  end
  if speed2SupplyAirFlowRateDuringCoolingOperation.is_initialized
    vals << speed2SupplyAirFlowRateDuringCoolingOperation.get
  elsif autosizedSpeed2SupplyAirFlowRateDuringCoolingOperation.is_initialized
    vals << autosizedSpeed2SupplyAirFlowRateDuringCoolingOperation.get
  end
  if speed3SupplyAirFlowRateDuringCoolingOperation.is_initialized
    vals << speed3SupplyAirFlowRateDuringCoolingOperation.get
  elsif autosizedSpeed3SupplyAirFlowRateDuringCoolingOperation.is_initialized
    vals << autosizedSpeed3SupplyAirFlowRateDuringCoolingOperation.get
  end
  if speed4SupplyAirFlowRateDuringCoolingOperation.is_initialized
    vals << speed4SupplyAirFlowRateDuringCoolingOperation.get
  elsif autosizedSpeed4SupplyAirFlowRateDuringCoolingOperation.is_initialized
    vals << autosizedSpeed4SupplyAirFlowRateDuringCoolingOperation.get
  end
  if vals.size.zero?
    OpenStudio::OptionalDouble.new
  else
    OpenStudio::OptionalDouble.new(vals.max)
  end
end

#maxAirFlowRateAutosizedObject



77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
# File 'lib/measures/openstudio_results/resources/Siz.AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed.rb', line 77

def maxAirFlowRateAutosized
  if supplyAirFlowRateWhenNoCoolingorHeatingisNeeded.is_initialized
    return OpenStudio::OptionalBool.new(false)
  elsif speed1SupplyAirFlowRateDuringHeatingOperation.is_initialized
    return OpenStudio::OptionalBool.new(false)
  elsif speed2SupplyAirFlowRateDuringHeatingOperation.is_initialized
    return OpenStudio::OptionalBool.new(false)
  elsif speed3SupplyAirFlowRateDuringHeatingOperation.is_initialized
    return OpenStudio::OptionalBool.new(false)
  elsif speed4SupplyAirFlowRateDuringHeatingOperation.is_initialized
    return OpenStudio::OptionalBool.new(false)
  elsif speed1SupplyAirFlowRateDuringCoolingOperation.is_initialized
    return OpenStudio::OptionalBool.new(false)
  elsif speed2SupplyAirFlowRateDuringCoolingOperation.is_initialized
    return OpenStudio::OptionalBool.new(false)
  elsif speed3SupplyAirFlowRateDuringCoolingOperation.is_initialized
    return OpenStudio::OptionalBool.new(false)
  elsif speed4SupplyAirFlowRateDuringCoolingOperation.is_initialized
    return OpenStudio::OptionalBool.new(false)
  else
    return OpenStudio::OptionalBool.new(true)
  end
end

#maxCoolingCapacityObject



11
12
13
# File 'lib/measures/openstudio_results/resources/Siz.AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed.rb', line 11

def maxCoolingCapacity
  coolingCoil.maxCoolingCapacity
end

#maxCoolingCapacityAutosizedObject



73
74
75
# File 'lib/measures/openstudio_results/resources/Siz.AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed.rb', line 73

def maxCoolingCapacityAutosized
  coolingCoil.maxCoolingCapacityAutosized
end

#maxHeatingCapacityObject



7
8
9
# File 'lib/measures/openstudio_results/resources/Siz.AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed.rb', line 7

def maxHeatingCapacity
  heatingCoil.maxHeatingCapacity
end

#maxHeatingCapacityAutosizedObject



69
70
71
# File 'lib/measures/openstudio_results/resources/Siz.AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed.rb', line 69

def maxHeatingCapacityAutosized
  heatingCoil.maxHeatingCapacityAutosized
end

#performanceCharacteristicsObject



101
102
103
104
105
106
107
# File 'lib/measures/openstudio_results/resources/Siz.AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed.rb', line 101

def performanceCharacteristics
  effs = []
  effs += supplyAirFan.performanceCharacteristics
  effs += heatingCoil.performanceCharacteristics
  effs += coolingCoil.performanceCharacteristics
  return effs
end