Sha256: a9d76c8d484738c1692c91108c5e90fbca9ddbeb67a5146d29986e80ea7aebd8

Contents?: true

Size: 823 Bytes

Versions: 49

Compression:

Stored size: 823 Bytes

Contents

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

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

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

  end
  
  # returns the autosized maximum flow rate as an optional double
  def autosizedNominalCapacity
    return self.model.getAutosizedValue(self, 'Design Size Nominal Capacity', 'W')
  end
  
end

Version data entries

49 entries across 49 versions & 1 rubygems

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