Sha256: 57383ee6b59f603f052203f05f6eca80e6c3fd17c60d41969fdead86cf1e48bd

Contents?: true

Size: 1.5 KB

Versions: 6

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.CoilHeatingGasMultiStage', "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

6 entries across 6 versions & 1 rubygems

Version Path
openstudio-standards-0.2.12.rc4 lib/openstudio-standards/standards/Standards.CoilHeatingGasMultiStage.rb
openstudio-standards-0.2.12.rc2 lib/openstudio-standards/standards/Standards.CoilHeatingGasMultiStage.rb
openstudio-standards-0.2.12.rc1 lib/openstudio-standards/standards/Standards.CoilHeatingGasMultiStage.rb
openstudio-standards-0.2.11 lib/openstudio-standards/standards/Standards.CoilHeatingGasMultiStage.rb
openstudio-standards-0.2.11.rc2 lib/openstudio-standards/standards/Standards.CoilHeatingGasMultiStage.rb
openstudio-standards-0.2.11.rc1 lib/openstudio-standards/standards/Standards.CoilHeatingGasMultiStage.rb