Class: OpenStudio::Model::CoilHeatingDXVariableRefrigerantFlow

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



14
15
16
17
18
19
20
21
22
23
24
25
26
27
# File 'lib/openstudio-standards/hvac_sizing/Siz.CoilHeatingDXVariableRefrigerantFlow.rb', line 14

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


end

#autosizeObject

Sets all auto-sizeable fields to autosize



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

def autosize
  self.autosizeRatedTotalHeatingCapacity
  self.autosizeRatedAirFlowRate
end

#autosizedRatedAirFlowRateObject

Design Size Rated Air Flow Rate as an optional double



30
31
32
# File 'lib/openstudio-standards/hvac_sizing/Siz.CoilHeatingDXVariableRefrigerantFlow.rb', line 30

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

#autosizedRatedTotalHeatingCapacityObject

Design Size Gross Rated Total Heating Capacity as an optional double



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

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