Class: OpenStudio::Model::ChillerHeaterPerformanceElectricEIR

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

Overview

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

Instance Method Summary collapse

Instance Method Details

#maxCoolingCapacityObject



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

def maxCoolingCapacity
  if referenceCoolingModeEvaporatorCapacity.is_initialized
    referenceCoolingModeEvaporatorCapacity
  else
    autosizedReferenceCoolingModeEvaporatorCapacity
  end
end

#maxCoolingCapacityAutosizedObject



23
24
25
26
27
28
29
30
# File 'lib/measures/openstudio_results/resources/Siz.ChillerHeaterPerformanceElectricEIR.rb', line 23

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

#maxWaterFlowRateObject



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

def maxWaterFlowRate
  if designChilledWaterFlowRate.is_initialized
    designChilledWaterFlowRate
  else
    autosizedDesignChilledWaterFlowRate
  end
end

#maxWaterFlowRateAutosizedObject



32
33
34
35
36
37
38
39
# File 'lib/measures/openstudio_results/resources/Siz.ChillerHeaterPerformanceElectricEIR.rb', line 32

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

#performanceCharacteristicsObject



41
42
43
44
45
46
47
48
49
50
51
# File 'lib/measures/openstudio_results/resources/Siz.ChillerHeaterPerformanceElectricEIR.rb', line 41

def performanceCharacteristics
  effs = []
  effs << [referenceCoolingModeCOP, 'Reference Cooling Mode COP']
  # check os version
  if Gem::Version.new(OpenStudio.openStudioVersion) > Gem::Version.new('2.9.1')
    effs << [fractionofCompressorElectricConsumptionRejectedbyCondenser, 'Fraction of Compressor Electric Consumption Rejected by Condenser']
  else
    effs << [compressorMotorEfficiency, 'Compressor Motor Fraction of Compressor Electric Consumption Rejected by Condenser']
  end
  return effs
end