Sha256: 944b50b1eb4ee60bd08402eaf85a0e7cce4ce88b02388ad069cedd389738fcd9

Contents?: true

Size: 841 Bytes

Versions: 54

Compression:

Stored size: 841 Bytes

Contents

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

  # 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.autosizedNominalCapacity
    if nominal_capacity.is_initialized
      self.setNominalCapacity(nominal_capacity.get) 
    end
        
  end
 
  # returns the autosized rated capacity as an optional double
  def autosizedNominalCapacity

    return self.model.getAutosizedValue(self, 'Design Size Nominal Capacity', 'W')
    
  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.CoilHeatingGas.rb
openstudio-standards-0.1.12 lib/openstudio-standards/hvac_sizing/Siz.CoilHeatingGas.rb
openstudio-standards-0.1.11 lib/openstudio-standards/hvac_sizing/Siz.CoilHeatingGas.rb
openstudio-standards-0.1.10 lib/openstudio-standards/hvac_sizing/Siz.CoilHeatingGas.rb
openstudio-standards-0.1.9 lib/openstudio-standards/hvac_sizing/Siz.CoilHeatingGas.rb
openstudio-standards-0.1.8 lib/openstudio-standards/hvac_sizing/Siz.CoilHeatingGas.rb
openstudio-standards-0.1.7 lib/openstudio-standards/hvac_sizing/Siz.CoilHeatingGas.rb
openstudio-standards-0.1.6 lib/openstudio-standards/hvac_sizing/Siz.CoilHeatingGas.rb
openstudio-standards-0.1.5 lib/openstudio-standards/hvac_sizing/Siz.CoilHeatingGas.rb
openstudio-standards-0.1.4 lib/openstudio-standards/hvac_sizing/Siz.CoilHeatingGas.rb
openstudio-standards-0.1.3 lib/openstudio-standards/hvac_sizing/Siz.CoilHeatingGas.rb
openstudio-standards-0.1.2 lib/openstudio-standards/hvac_sizing/Siz.CoilHeatingGas.rb
openstudio-standards-0.1.1 lib/openstudio-standards/hvac_sizing/HVACSizing.CoilHeatingGas.rb
openstudio-standards-0.1.0 lib/openstudio-standards/hvac_sizing/HVACSizing.CoilHeatingGas.rb