Sha256: 701916615c76cee4ca0ed684b2bf0d0d2af6fb1364274cb99275a1193558111b

Contents?: true

Size: 1.75 KB

Versions: 35

Compression:

Stored size: 1.75 KB

Contents

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

  # Sets all auto-sizeable fields to autosize
  def autosize
    self.autosizeRatedAirFlowRate
    self.autosizeRatedHeatingCapacity
    self.autosizeRatedWaterFlowRate
  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.autosizedRatedHeatingCapacity
    if rated_total_heating_capacity.is_initialized
      self.setRatedTotalHeatingCapacity(rated_total_heating_capacity.get) 
    end
 
    rated_water_flow_rate = self.autosizedRatedWaterFlowRate
    if rated_water_flow_rate.is_initialized
      self.setRatedWaterFlowRate(rated_water_flow_rate.get) 
    end 
      
  end

  # returns the autosized rated air flow rate as an optional double
  def autosizedRatedAirFlowRate

    return self.model.getAutosizedValue(self, 'Design Size Rated Air Flow Rate', 'm3/s')

  end

  # returns the autosized rated total Heating capacity as an optional double
  def autosizedRatedHeatingCapacity

    return self.model.getAutosizedValue(self, 'Design Size Rated Heating Capacity', 'W')
    
  end
  
  # returns the autosized rated water flow rate as an optional double
  def autosizedRatedWaterFlowRate

    return self.model.getAutosizedValue(self, 'Design Size Rated Water Flow Rate', 'm3/s')   
    
  end

  
end

Version data entries

35 entries across 35 versions & 1 rubygems

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