Class: OpenStudio::Model::CoilHeatingDXSingleSpeed

Inherits:
Object
  • Object
show all
Defined in:
lib/openstudio-standards/hvac_sizing/Siz.CoilHeatingDXSingleSpeed.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.



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

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_heating_capacity = self.autosizedRatedTotalHeatingCapacity
  if rated_total_heating_capacity.is_initialized
    self.setRatedTotalHeatingCapacity(rated_total_heating_capacity.get) 
  end    

  rated_resistive_defrost_heater_capacity = self.autosizedResistiveDefrostHeaterCapacity
  if rated_resistive_defrost_heater_capacity.is_initialized
    self.setResistiveDefrostHeaterCapacity(rated_resistive_defrost_heater_capacity.get) 
  end     
    
end

#autosizeObject

Sets all auto-sizeable fields to autosize



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

def autosize
  self.autosizeRatedTotalHeatingCapacity
  self.autosizeRatedAirFlowRate
  self.autosizeResistiveDefrostHeaterCapacity
end

#autosizedRatedAirFlowRateObject

returns the autosized rated air flow rate as an optional double



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

def autosizedRatedAirFlowRate

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

end

#autosizedRatedTotalHeatingCapacityObject

returns the autosized rated total cooling capacity as an optional double



42
43
44
45
46
# File 'lib/openstudio-standards/hvac_sizing/Siz.CoilHeatingDXSingleSpeed.rb', line 42

def autosizedRatedTotalHeatingCapacity

  return self.model.getAutosizedValue(self, 'Design Size Gross Rated Heating Capacity', 'W')
  
end

#autosizedResistiveDefrostHeaterCapacityObject

returns the autosized rated sensible heat ratio as an optional double



49
50
51
52
53
# File 'lib/openstudio-standards/hvac_sizing/Siz.CoilHeatingDXSingleSpeed.rb', line 49

def autosizedResistiveDefrostHeaterCapacity

  return self.model.getAutosizedValue(self, 'Design Size Resistive Defrost Heater Capacity', 'W')   
  
end