Sha256: 6cd28a5a99515a1d7b278c3014ca16cd0aca845313c406a2a83bf2b8cb505bb2

Contents?: true

Size: 1.8 KB

Versions: 28

Compression:

Stored size: 1.8 KB

Contents

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

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

    rated_air_flow_rate = self.autosizedRatedAirFlowRate
    if rated_air_flow_rate.is_initialized
      self.setRatedAirFlowRate(rated_air_flow_rate.get) 
    end

    rated_total_cooling_capacity = self.autosizedRatedTotalCoolingCapacity
    if rated_total_cooling_capacity.is_initialized
      self.setRatedTotalCoolingCapacity(rated_total_cooling_capacity.get) 
    end    

    rated_sensible_heat_ratio = self.autosizedRatedSensibleHeatRatio
    if rated_sensible_heat_ratio.is_initialized
      self.setRatedSensibleHeatRatio(rated_sensible_heat_ratio.get) 
    end     
      
  end

  # returns the autosized rated air flow rate as an optional double
  def autosizedRatedAirFlowRate

    return self.model.getAutosizedValue(self, 'Design Size Rated Air Flow Rate', 'm3/s')

  end

  # returns the autosized rated total cooling capacity as an optional double
  def autosizedRatedTotalCoolingCapacity

    return self.model.getAutosizedValue(self, 'Design Size Gross Rated Total Cooling Capacity', 'W')
    
  end
  
  # returns the autosized rated sensible heat ratio as an optional double
  def autosizedRatedSensibleHeatRatio

    return self.model.getAutosizedValue(self, 'Design Size Rated Sensible Heat Ratio', '')   
    
  end

  
end

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
openstudio-standards-0.2.9 lib/openstudio-standards/hvac_sizing/Siz.CoilCoolingDXSingleSpeed.rb
openstudio-standards-0.2.8 lib/openstudio-standards/hvac_sizing/Siz.CoilCoolingDXSingleSpeed.rb
openstudio-standards-0.2.7 lib/openstudio-standards/hvac_sizing/Siz.CoilCoolingDXSingleSpeed.rb
openstudio-standards-0.2.6 lib/openstudio-standards/hvac_sizing/Siz.CoilCoolingDXSingleSpeed.rb
openstudio-standards-0.2.5 lib/openstudio-standards/hvac_sizing/Siz.CoilCoolingDXSingleSpeed.rb
openstudio-standards-0.2.4 lib/openstudio-standards/hvac_sizing/Siz.CoilCoolingDXSingleSpeed.rb
openstudio-standards-0.2.3 lib/openstudio-standards/hvac_sizing/Siz.CoilCoolingDXSingleSpeed.rb
openstudio-standards-0.2.2 lib/openstudio-standards/hvac_sizing/Siz.CoilCoolingDXSingleSpeed.rb
openstudio-standards-0.2.1 lib/openstudio-standards/hvac_sizing/Siz.CoilCoolingDXSingleSpeed.rb
openstudio-standards-0.2.0 lib/openstudio-standards/hvac_sizing/Siz.CoilCoolingDXSingleSpeed.rb
openstudio-standards-0.2.0.rc2 lib/openstudio-standards/hvac_sizing/Siz.CoilCoolingDXSingleSpeed.rb
openstudio-standards-0.2.0.rc1 lib/openstudio-standards/hvac_sizing/Siz.CoilCoolingDXSingleSpeed.rb
openstudio-standards-0.1.15 lib/openstudio-standards/hvac_sizing/Siz.CoilCoolingDXSingleSpeed.rb
openstudio-standards-0.1.14 lib/openstudio-standards/hvac_sizing/Siz.CoilCoolingDXSingleSpeed.rb
openstudio-standards-0.1.13 lib/openstudio-standards/hvac_sizing/Siz.CoilCoolingDXSingleSpeed.rb
openstudio-standards-0.1.12 lib/openstudio-standards/hvac_sizing/Siz.CoilCoolingDXSingleSpeed.rb
openstudio-standards-0.1.11 lib/openstudio-standards/hvac_sizing/Siz.CoilCoolingDXSingleSpeed.rb
openstudio-standards-0.1.10 lib/openstudio-standards/hvac_sizing/Siz.CoilCoolingDXSingleSpeed.rb
openstudio-standards-0.1.9 lib/openstudio-standards/hvac_sizing/Siz.CoilCoolingDXSingleSpeed.rb
openstudio-standards-0.1.8 lib/openstudio-standards/hvac_sizing/Siz.CoilCoolingDXSingleSpeed.rb