Class: OpenStudio::Model::CoilHeatingWaterToAirHeatPumpEquationFit

Inherits:
Object
  • Object
show all
Defined in:
lib/openstudio-standards/hvac_sizing/Siz.CoilHeatingWaterToAirHeatPumpEquationFit.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.CoilHeatingWaterToAirHeatPumpEquationFit.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.autosizedRatedHeatingCapacity
  if rated_total_heating_capacity.is_initialized
    self.setRatedTotalHeatingCapacity(rated_total_heating_capacity.get) 
  end
 
  rated_water_flow_rate = self.autosizedRatedWaterFlowRate
  if rated_water_flow_rate.is_initialized
    self.setRatedWaterFlowRate(rated_water_flow_rate.get) 
  end 
    
end

#autosizeObject

Sets all auto-sizeable fields to autosize



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

def autosize
  self.autosizeRatedAirFlowRate
  self.autosizeRatedHeatingCapacity
  self.autosizeRatedWaterFlowRate
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.CoilHeatingWaterToAirHeatPumpEquationFit.rb', line 35

def autosizedRatedAirFlowRate

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

end

#autosizedRatedHeatingCapacityObject

returns the autosized rated total Heating capacity as an optional double



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

def autosizedRatedHeatingCapacity

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

#autosizedRatedWaterFlowRateObject

returns the autosized rated water flow rate as an optional double



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

def autosizedRatedWaterFlowRate

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