Sha256: a88e6988fbc00137031b2e719bb809b610aa621ef4bbc8f9418f7d5caa2c8427

Contents?: true

Size: 938 Bytes

Versions: 32

Compression:

Stored size: 938 Bytes

Contents

# Reopen the OpenStudio class to add methods to apply standards to this object
class OpenStudio::Model::AirLoopHVAC

  # Sets all auto-sizeable fields to autosize
  def autosize
    self.autosizeDesignSupplyAirFlowRate
  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

    design_supply_air_flow_rate = self.autosizedDesignSupplyAirFlowRate
    if design_supply_air_flow_rate.is_initialized
      self.setDesignSupplyAirFlowRate(design_supply_air_flow_rate.get) 
    end
        
  end

  # returns the autosized design supply air flow rate as an optional double
  def autosizedDesignSupplyAirFlowRate

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

Version data entries

32 entries across 32 versions & 1 rubygems

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