Sha256: ec3591bd6ad250a2a643d9d2864d0163f6f4fbde93996dc23a1a034fc1347172

Contents?: true

Size: 1.76 KB

Versions: 16

Compression:

Stored size: 1.76 KB

Contents

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

  # Sets all auto-sizeable fields to autosize
  def autosize
    OpenStudio::logFree(OpenStudio::Warn, "openstudio.sizing.CoilHeatingWater", ".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_water_flow_rate = self.autosizedMaximumWaterFlowRate
    if maximum_water_flow_rate.is_initialized
      self.setMaximumWaterFlowRate(maximum_water_flow_rate.get) 
    end
    
    u_factor_times_area_value = self.autosizedUFactorTimesAreaValue
    if u_factor_times_area_value.is_initialized
      self.setUFactorTimesAreaValue(u_factor_times_area_value.get)
    end
    
    rated_capacity = self.autosizedRatedCapacity
    if rated_capacity.is_initialized
      self.setRatedCapacity(rated_capacity.get) 
    end
        
  end

  # returns the autosized maximum water flow rate as an optional double
  def autosizedMaximumWaterFlowRate

    return self.model.getAutosizedValue(self, 'Design Size Maximum Water Flow Rate', 'm3/s')
    
  end

  # returns the autosized u-factor times area value as an optional double
  def autosizedUFactorTimesAreaValue

    return self.model.getAutosizedValue(self, 'Design Size U-Factor Times Area Value', 'W/K')
    
  end  
  
 # returns the autosized rated capacity as an optional double
  def autosizedRatedCapacity

    return self.model.getAutosizedValue(self, 'Design Size Design Coil Load', 'W')
    
  end  
  
  
end

Version data entries

16 entries across 16 versions & 1 rubygems

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