Sha256: 368e70ed678a036349cc1d7ab04d3c0a1ce4ae8929f668567b9c442f8e820851

Contents?: true

Size: 1.61 KB

Versions: 2

Compression:

Stored size: 1.61 KB

Contents

# *******************************************************************************
# OpenStudio(R), Copyright (c) Alliance for Sustainable Energy, LLC.
# See also https://openstudio.net/license
# *******************************************************************************

class OpenStudio::Model::CoilCoolingDXTwoSpeed
  def maxCoolingCapacity
    if ratedHighSpeedTotalCoolingCapacity.is_initialized
      ratedHighSpeedTotalCoolingCapacity
    else
      autosizedRatedHighSpeedTotalCoolingCapacity
    end
  end

  def maxAirFlowRate
    if ratedHighSpeedAirFlowRate.is_initialized
      ratedHighSpeedAirFlowRate
    else
      autosizedRatedHighSpeedAirFlowRate
    end
  end

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

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

  def performanceCharacteristics
    effs = []
    effs << [ratedHighSpeedCOP, 'Rated High Speed COP']
    effs << [ratedLowSpeedCOP, 'Rated Low Speed COP']
    if condenserType == 'EvaporativelyCooled'
      effs << [highSpeedEvaporativeCondenserEffectiveness, 'High Speed Evaporative Condenser Effectiveness']
      effs << [lowSpeedEvaporativeCondenserEffectiveness, 'Low Speed Evaporative Condenser Effectiveness']
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
openstudio-common-measures-0.11.1 lib/measures/openstudio_results/resources/Siz.CoilCoolingDXTwoSpeed.rb
openstudio-common-measures-0.11.0 lib/measures/openstudio_results/resources/Siz.CoilCoolingDXTwoSpeed.rb