Sha256: 64a4a02912f72033dcb97a2c499942fbf4f9ba033d90692ab5a5d94d3db3d3ee

Contents?: true

Size: 823 Bytes

Versions: 54

Compression:

Stored size: 823 Bytes

Contents

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

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

    maximum_flow_rate = self.autosizedMaximumFlowRate
    if maximum_flow_rate.is_initialized
      self.setMaximumFlowRate(maximum_flow_rate.get)
    end

  end
  
  # returns the autosized maximum flow rate as an optional double
  def autosizedMaximumFlowRate
    return self.model.getAutosizedValue(self, 'Design Size Maximum Flow Rate', 'm3/s')
  end
  
end

Version data entries

54 entries across 54 versions & 1 rubygems

Version Path
openstudio-standards-0.1.13 lib/openstudio-standards/hvac_sizing/Siz.FanOnOff.rb
openstudio-standards-0.1.12 lib/openstudio-standards/hvac_sizing/Siz.FanOnOff.rb
openstudio-standards-0.1.11 lib/openstudio-standards/hvac_sizing/Siz.FanOnOff.rb
openstudio-standards-0.1.10 lib/openstudio-standards/hvac_sizing/Siz.FanOnOff.rb
openstudio-standards-0.1.9 lib/openstudio-standards/hvac_sizing/Siz.FanOnOff.rb
openstudio-standards-0.1.8 lib/openstudio-standards/hvac_sizing/Siz.FanOnOff.rb
openstudio-standards-0.1.7 lib/openstudio-standards/hvac_sizing/Siz.FanOnOff.rb
openstudio-standards-0.1.6 lib/openstudio-standards/hvac_sizing/Siz.FanOnOff.rb
openstudio-standards-0.1.5 lib/openstudio-standards/hvac_sizing/Siz.FanOnOff.rb
openstudio-standards-0.1.4 lib/openstudio-standards/hvac_sizing/Siz.FanOnOff.rb
openstudio-standards-0.1.3 lib/openstudio-standards/hvac_sizing/Siz.FanOnOff.rb
openstudio-standards-0.1.2 lib/openstudio-standards/hvac_sizing/Siz.FanOnOff.rb
openstudio-standards-0.1.1 lib/openstudio-standards/hvac_sizing/HVACSizing.FanOnOff.rb
openstudio-standards-0.1.0 lib/openstudio-standards/hvac_sizing/HVACSizing.FanOnOff.rb