Sha256: 367dce8be067b58ce4e48e1efe76f14889efd23f65e327529265801b82f6bbdb

Contents?: true

Size: 1.5 KB

Versions: 16

Compression:

Stored size: 1.5 KB

Contents

class Standard
  # @!group CoilHeatingGasMultiStage

  # Applies the standard efficiency ratings and typical performance curves to this object.
  #
  # @return [Bool] true if successful, false if not
  def coil_heating_gas_multi_stage_apply_efficiency_and_curves(coil_heating_gas_multi_stage, standards)
    successfully_set_all_properties = true

    # Get the coil capacity
    capacity_w = nil
    htg_stages = stages
    if htg_stages.last.nominalCapacity.is_initialized
      capacity_w = htg_stages.last.nominalCapacity.get
    elsif coil_heating_gas_multi_stage.autosizedStage4NominalCapacity.is_initialized
      capacity_w = coil_heating_gas_multi_stage.autosizedStage4NominalCapacity.get
    else
      OpenStudio.logFree(OpenStudio::Warn, 'openstudio.standards.CoilCoolingDXMultiSpeed', "For #{coil_heating_gas_multi_stage.name} capacity is not available, cannot apply efficiency standard.")
      successfully_set_all_properties = false
      return successfully_set_all_properties
    end

    # plf vs plr curve for furnace
    furnace_plffplr_curve = model_add_curve(model, furnace_plffplr_curve_name, standards)
    if furnace_plffplr_curve
      coil_heating_gas_multi_stage.setPartLoadFractionCorrelationCurve(furnace_plffplr_curve)
    else
      OpenStudio.logFree(OpenStudio::Warn, 'openstudio.standards.CoilHeatingGasMultiStage', "For #{coil_heating_gas_multi_stage.name}, cannot find plffplr curve, will not be set.")
      successfully_set_all_properties = false
    end
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
openstudio-standards-0.2.10 lib/openstudio-standards/standards/Standards.CoilHeatingGasMultiStage.rb
openstudio-standards-0.2.10.rc3 lib/openstudio-standards/standards/Standards.CoilHeatingGasMultiStage.rb
openstudio-standards-0.2.10.rc2 lib/openstudio-standards/standards/Standards.CoilHeatingGasMultiStage.rb
openstudio-standards-0.2.10.rc1 lib/openstudio-standards/standards/Standards.CoilHeatingGasMultiStage.rb
openstudio-standards-0.2.9 lib/openstudio-standards/standards/Standards.CoilHeatingGasMultiStage.rb
openstudio-standards-0.2.8 lib/openstudio-standards/standards/Standards.CoilHeatingGasMultiStage.rb
openstudio-standards-0.2.7 lib/openstudio-standards/standards/Standards.CoilHeatingGasMultiStage.rb
openstudio-standards-0.2.6 lib/openstudio-standards/standards/Standards.CoilHeatingGasMultiStage.rb
openstudio-standards-0.2.5 lib/openstudio-standards/standards/Standards.CoilHeatingGasMultiStage.rb
openstudio-standards-0.2.4 lib/openstudio-standards/standards/Standards.CoilHeatingGasMultiStage.rb
openstudio-standards-0.2.3 lib/openstudio-standards/standards/Standards.CoilHeatingGasMultiStage.rb
openstudio-standards-0.2.2 lib/openstudio-standards/standards/Standards.CoilHeatingGasMultiStage.rb
openstudio-standards-0.2.1 lib/openstudio-standards/standards/Standards.CoilHeatingGasMultiStage.rb
openstudio-standards-0.2.0 lib/openstudio-standards/standards/Standards.CoilHeatingGasMultiStage.rb
openstudio-standards-0.2.0.rc2 lib/openstudio-standards/standards/Standards.CoilHeatingGasMultiStage.rb
openstudio-standards-0.2.0.rc1 lib/openstudio-standards/standards/Standards.CoilHeatingGasMultiStage.rb