Class: OpenStudio::Model::CoilCoolingDXVariableRefrigerantFlow

Inherits:
Object
  • Object
show all
Defined in:
lib/openstudio-standards/hvac_sizing/Siz.CoilCoolingDXVariableRefrigerantFlow.rb

Overview

open the class to add methods to return sizing values

Instance Method Summary collapse

Instance Method Details

#applySizingValuesObject

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.



16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# File 'lib/openstudio-standards/hvac_sizing/Siz.CoilCoolingDXVariableRefrigerantFlow.rb', line 16

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

#autosizeObject

Sets all auto-sizeable fields to autosize



6
7
8
9
10
# File 'lib/openstudio-standards/hvac_sizing/Siz.CoilCoolingDXVariableRefrigerantFlow.rb', line 6

def autosize
  self.autosizedRatedTotalCoolingCapacity
  self.autosizeRatedAirFlowRate
  self.autosizeRatedSensibleHeatRatio
end

#autosizedRatedAirFlowRateObject

Design Size Gross Rated Total Cooling Capacity as an optional double



41
42
43
# File 'lib/openstudio-standards/hvac_sizing/Siz.CoilCoolingDXVariableRefrigerantFlow.rb', line 41

def autosizedRatedAirFlowRate
  return self.model.getAutosizedValue(self, 'Design Size Gross Rated Total Cooling Capacity', 'W')
end

#autosizedRatedSensibleHeatRatioObject

Design Size Gross Rated Sensible Heat Ratio as an optional double



46
47
48
# File 'lib/openstudio-standards/hvac_sizing/Siz.CoilCoolingDXVariableRefrigerantFlow.rb', line 46

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

#autosizedRatedTotalCoolingCapacityObject

Design Size Rated Air Flow Rate as an optional double



36
37
38
# File 'lib/openstudio-standards/hvac_sizing/Siz.CoilCoolingDXVariableRefrigerantFlow.rb', line 36

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