Sha256: 652e5afd8e3a16a703ac6ca6954dd14d41fc15a5433cdd76a810817a0e40befe

Contents?: true

Size: 1.3 KB

Versions: 54

Compression:

Stored size: 1.3 KB

Contents

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

  # Sets all auto-sizeable fields to autosize
  def autosize
    OpenStudio::logFree(OpenStudio::Warn, "openstudio.sizing.PlantLoop", ".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_loop_flow_rate = self.autosizedMaximumLoopFlowRate
    if maximum_loop_flow_rate.is_initialized
      self.setMaximumLoopFlowRate(maximum_loop_flow_rate.get) 
    end

    plant_loop_volume = self.autosizedPlantLoopVolume
    if plant_loop_volume.is_initialized
      self.setPlantLoopVolume(plant_loop_volume.get) 
    end
    
  end

  # returns the autosized maximum loop flow rate as an optional double
  def autosizedMaximumLoopFlowRate

    return self.model.getAutosizedValue(self, 'Maximum Loop Flow Rate', 'm3/s')
    
  end
  
  # returns the autosized plant loop volume as an optional double
  def autosizedPlantLoopVolume

    return self.model.getAutosizedValue(self, 'Plant Loop Volume', 'm3')
    
  end
  
  
end

Version data entries

54 entries across 54 versions & 1 rubygems

Version Path
openstudio-standards-0.3.0 lib/openstudio-standards/hvac_sizing/Siz.PlantLoop.rb
openstudio-standards-0.2.17.rc2 lib/openstudio-standards/hvac_sizing/Siz.PlantLoop.rb
openstudio-standards-0.2.17.rc1 lib/openstudio-standards/hvac_sizing/Siz.PlantLoop.rb
openstudio-standards-0.2.16 lib/openstudio-standards/hvac_sizing/Siz.PlantLoop.rb
openstudio-standards-0.2.16.rc2 lib/openstudio-standards/hvac_sizing/Siz.PlantLoop.rb
openstudio-standards-0.2.16.rc1 lib/openstudio-standards/hvac_sizing/Siz.PlantLoop.rb
openstudio-standards-0.2.15 lib/openstudio-standards/hvac_sizing/Siz.PlantLoop.rb
openstudio-standards-0.2.15.pre.rc2 lib/openstudio-standards/hvac_sizing/Siz.PlantLoop.rb
openstudio-standards-0.2.15.pre.rc1 lib/openstudio-standards/hvac_sizing/Siz.PlantLoop.rb
openstudio-standards-0.2.14 lib/openstudio-standards/hvac_sizing/Siz.PlantLoop.rb
openstudio-standards-0.2.13 lib/openstudio-standards/hvac_sizing/Siz.PlantLoop.rb
openstudio-standards-0.2.13.rc3 lib/openstudio-standards/hvac_sizing/Siz.PlantLoop.rb
openstudio-standards-0.2.12 lib/openstudio-standards/hvac_sizing/Siz.PlantLoop.rb
openstudio-standards-0.2.12.rc7 lib/openstudio-standards/hvac_sizing/Siz.PlantLoop.rb
openstudio-standards-0.2.12.rc6 lib/openstudio-standards/hvac_sizing/Siz.PlantLoop.rb
openstudio-standards-0.2.12.rc5 lib/openstudio-standards/hvac_sizing/Siz.PlantLoop.rb
openstudio-standards-0.2.12.rc4 lib/openstudio-standards/hvac_sizing/Siz.PlantLoop.rb
openstudio-standards-0.2.12.rc2 lib/openstudio-standards/hvac_sizing/Siz.PlantLoop.rb
openstudio-standards-0.2.12.rc1 lib/openstudio-standards/hvac_sizing/Siz.PlantLoop.rb
openstudio-standards-0.2.11 lib/openstudio-standards/hvac_sizing/Siz.PlantLoop.rb