Sha256: 27cd403335dc80fd59faae57f609ad38b31f11f818d193d0875eb1691c2596aa

Contents?: true

Size: 1.31 KB

Versions: 54

Compression:

Stored size: 1.31 KB

Contents

# open the class to add methods to return sizing values
class OpenStudio::Model::CoilHeatingDXVariableRefrigerantFlow

  # Sets all auto-sizeable fields to autosize
  def autosize
    self.autosizeRatedTotalHeatingCapacity
    self.autosizeRatedAirFlowRate
  end

  # Takes the values calculated by the EnergyPlus sizing routines
  # and puts them into this object model in place of the autosized fields.
  # Must have previously completed a run with sql output for this to work.
  def applySizingValues

    rated_air_flow_rate = self.autosizedRatedAirFlowRate
    if rated_air_flow_rate.is_initialized
      self.setRatedAirFlowRate(rated_air_flow_rate.get)
    end

    rated_total_heating_capacity = self.autosizedRatedTotalHeatingCapacity
    if rated_total_heating_capacity.is_initialized
      self.setRatedTotalHeatingCapacity(rated_total_heating_capacity.get)
    end


  end

  # Design Size Rated Air Flow Rate as an optional double
  def autosizedRatedAirFlowRate
    return self.model.getAutosizedValue(self, 'Design Size Rated Air Flow Rate', 'm3/s')
  end

  # Design Size Gross Rated Total Heating Capacity as an optional double
  def autosizedRatedTotalHeatingCapacity
    return self.model.getAutosizedValue(self, 'Design Size Gross Rated Heating Capacity', 'W')
  end

  
  
end

Version data entries

54 entries across 54 versions & 1 rubygems

Version Path
openstudio-standards-0.2.11.rc2 lib/openstudio-standards/hvac_sizing/Siz.CoilHeatingDXVariableRefrigerantFlow.rb
openstudio-standards-0.2.11.rc1 lib/openstudio-standards/hvac_sizing/Siz.CoilHeatingDXVariableRefrigerantFlow.rb
openstudio-standards-0.2.10 lib/openstudio-standards/hvac_sizing/Siz.CoilHeatingDXVariableRefrigerantFlow.rb
openstudio-standards-0.2.10.rc3 lib/openstudio-standards/hvac_sizing/Siz.CoilHeatingDXVariableRefrigerantFlow.rb
openstudio-standards-0.2.10.rc2 lib/openstudio-standards/hvac_sizing/Siz.CoilHeatingDXVariableRefrigerantFlow.rb
openstudio-standards-0.2.10.rc1 lib/openstudio-standards/hvac_sizing/Siz.CoilHeatingDXVariableRefrigerantFlow.rb
openstudio-standards-0.2.9 lib/openstudio-standards/hvac_sizing/Siz.CoilHeatingDXVariableRefrigerantFlow.rb
openstudio-standards-0.2.8 lib/openstudio-standards/hvac_sizing/Siz.CoilHeatingDXVariableRefrigerantFlow.rb
openstudio-standards-0.2.7 lib/openstudio-standards/hvac_sizing/Siz.CoilHeatingDXVariableRefrigerantFlow.rb
openstudio-standards-0.2.6 lib/openstudio-standards/hvac_sizing/Siz.CoilHeatingDXVariableRefrigerantFlow.rb
openstudio-standards-0.2.5 lib/openstudio-standards/hvac_sizing/Siz.CoilHeatingDXVariableRefrigerantFlow.rb
openstudio-standards-0.2.4 lib/openstudio-standards/hvac_sizing/Siz.CoilHeatingDXVariableRefrigerantFlow.rb
openstudio-standards-0.2.3 lib/openstudio-standards/hvac_sizing/Siz.CoilHeatingDXVariableRefrigerantFlow.rb
openstudio-standards-0.2.2 lib/openstudio-standards/hvac_sizing/Siz.CoilHeatingDXVariableRefrigerantFlow.rb
openstudio-standards-0.2.1 lib/openstudio-standards/hvac_sizing/Siz.CoilHeatingDXVariableRefrigerantFlow.rb
openstudio-standards-0.2.0 lib/openstudio-standards/hvac_sizing/Siz.CoilHeatingDXVariableRefrigerantFlow.rb
openstudio-standards-0.2.0.rc2 lib/openstudio-standards/hvac_sizing/Siz.CoilHeatingDXVariableRefrigerantFlow.rb
openstudio-standards-0.2.0.rc1 lib/openstudio-standards/hvac_sizing/Siz.CoilHeatingDXVariableRefrigerantFlow.rb
openstudio-standards-0.1.15 lib/openstudio-standards/hvac_sizing/Siz.CoilHeatingDXVariableRefrigerantFlow.rb
openstudio-standards-0.1.14 lib/openstudio-standards/hvac_sizing/Siz.CoilHeatingDXVariableRefrigerantFlow.rb