Sha256: b62b0b214308b54b6c863845f19a291854d68117d432e5061f92d910d148d4b1

Contents?: true

Size: 972 Bytes

Versions: 54

Compression:

Stored size: 972 Bytes

Contents

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

  # Sets all auto-sizeable fields to autosize
  def autosize
    OpenStudio::logFree(OpenStudio::Warn, "openstudio.sizing.FanVariableVolume", ".autosize not yet implemented for #{self.iddObject.type.valueDescription}.")
  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.2.11.rc2 lib/openstudio-standards/hvac_sizing/Siz.FanVariableVolume.rb
openstudio-standards-0.2.11.rc1 lib/openstudio-standards/hvac_sizing/Siz.FanVariableVolume.rb
openstudio-standards-0.2.10 lib/openstudio-standards/hvac_sizing/Siz.FanVariableVolume.rb
openstudio-standards-0.2.10.rc3 lib/openstudio-standards/hvac_sizing/Siz.FanVariableVolume.rb
openstudio-standards-0.2.10.rc2 lib/openstudio-standards/hvac_sizing/Siz.FanVariableVolume.rb
openstudio-standards-0.2.10.rc1 lib/openstudio-standards/hvac_sizing/Siz.FanVariableVolume.rb
openstudio-standards-0.2.9 lib/openstudio-standards/hvac_sizing/Siz.FanVariableVolume.rb
openstudio-standards-0.2.8 lib/openstudio-standards/hvac_sizing/Siz.FanVariableVolume.rb
openstudio-standards-0.2.7 lib/openstudio-standards/hvac_sizing/Siz.FanVariableVolume.rb
openstudio-standards-0.2.6 lib/openstudio-standards/hvac_sizing/Siz.FanVariableVolume.rb
openstudio-standards-0.2.5 lib/openstudio-standards/hvac_sizing/Siz.FanVariableVolume.rb
openstudio-standards-0.2.4 lib/openstudio-standards/hvac_sizing/Siz.FanVariableVolume.rb
openstudio-standards-0.2.3 lib/openstudio-standards/hvac_sizing/Siz.FanVariableVolume.rb
openstudio-standards-0.2.2 lib/openstudio-standards/hvac_sizing/Siz.FanVariableVolume.rb
openstudio-standards-0.2.1 lib/openstudio-standards/hvac_sizing/Siz.FanVariableVolume.rb
openstudio-standards-0.2.0 lib/openstudio-standards/hvac_sizing/Siz.FanVariableVolume.rb
openstudio-standards-0.2.0.rc2 lib/openstudio-standards/hvac_sizing/Siz.FanVariableVolume.rb
openstudio-standards-0.2.0.rc1 lib/openstudio-standards/hvac_sizing/Siz.FanVariableVolume.rb
openstudio-standards-0.1.15 lib/openstudio-standards/hvac_sizing/Siz.FanVariableVolume.rb
openstudio-standards-0.1.14 lib/openstudio-standards/hvac_sizing/Siz.FanVariableVolume.rb