Class: OpenStudio::Model::ZoneHVACTerminalUnitVariableRefrigerantFlow

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



19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
# File 'lib/openstudio-standards/hvac_sizing/Siz.ZoneHVACTerminalUnitVariableRefrigerantFlow.rb', line 19

def applySizingValues
  
  # Supply Air Flow Rate During Cooling Operation
  supply_air_flow_cooling = self.autosizedSupplyAirFlowRateDuringCoolingOperation
  if supply_air_flow_cooling.is_initialized
    self.setSupplyAirFlowRateDuringCoolingOperation(supply_air_flow_cooling.get)
  end
  
  # Supply Air Flow Rate During Heating Operation
  supply_air_flow_heating = self.autosizedSupplyAirFlowRateDuringHeatingOperation
  if supply_air_flow_heating.is_initialized
    self.setSupplyAirFlowRateDuringHeatingOperation(supply_air_flow_heating.get)
  end
  
  # Supply Air Flow Rate When No Cooling is Needed
  supply_air_flow_no_cool = self.autosizedSupplyAirFlowRateWhenNoCoolingisNeeded
  if supply_air_flow_noload.is_initialized
    self.setSupplyAirFlowRateWhenNoCoolingisNeeded(supply_air_flow_no_cool.get)
  end
  
  # Supply Air Flow Rate When No Heating is Needed
  supply_air_flow_no_heat  = self.autosizedSupplyAirFlowRateWhenNoHeatingisNeeded
  if supply_air_flow_noload.is_initialized
    self.setSupplyAirFlowRateWhenNoHeatingisNeeded(supply_air_flow_no_heat.get)
  end
  
  # Outdoor Air Flow Rate During Cooling Operation
  oa_air_flow_cooling = self.autosizedOutdoorAirFlowRateDuringCoolingOperation
  if oa_air_flow_cooling.is_initialized
    self.setOutdoorAirFlowRateDuringCoolingOperation(oa_air_flow_cooling.get)
  end
  
  # Outdoor Air Flow Rate During Heating Operation
  oa_air_flow_heating = self.autosizedOutdoorAirFlowRateDuringHeatingOperation
  if oa_air_flow_heating.is_initialized
    self.setOutdoorAirFlowRateDuringHeatingOperation(oa_air_flow_heating.get)
  end
  
  # Outdoor Air Flow Rate When No Cooling or Heating is Needed
  oa_air_flow_noload = self.autosizedOutdoorAirFlowRateWhenNoCoolingorHeatingisNeeded
  if oa_air_flow_noload.is_initialized
    self.setOutdoorAirFlowRateWhenNoCoolingorHeatingisNeeded(oa_air_flow_noload.get)
  end
      
end

#autosizeObject

Sets all auto-sizeable fields to autosize



6
7
8
9
10
11
12
13
14
# File 'lib/openstudio-standards/hvac_sizing/Siz.ZoneHVACTerminalUnitVariableRefrigerantFlow.rb', line 6

def autosize
  self.autosizeSupplyAirFlowRateDuringCoolingOperation
  self.autosizeSupplyAirFlowRateWhenNoCoolingisNeeded
  self.autosizeSupplyAirFlowRateDuringHeatingOperation
  self.autosizeSupplyAirFlowRateWhenNoHeatingisNeeded
  self.autosizeOutdoorAirFlowRateDuringCoolingOperation
  self.autosizeOutdoorAirFlowRateDuringHeatingOperation
  self.autosizeOutdoorAirFlowRateWhenNoCoolingorHeatingisNeeded
end

#autosizedOutdoorAirFlowRateDuringCoolingOperationObject

Outdoor Air Flow Rate During Cooling Operation



89
90
91
# File 'lib/openstudio-standards/hvac_sizing/Siz.ZoneHVACTerminalUnitVariableRefrigerantFlow.rb', line 89

def autosizedOutdoorAirFlowRateDuringCoolingOperation
  return self.model.getAutosizedValue(self, 'Design Size Outdoor Air Flow Rate During Cooling Operation', 'm3/s')
end

#autosizedOutdoorAirFlowRateDuringHeatingOperationObject

Outdoor Air Flow Rate During Heating Operation



94
95
96
# File 'lib/openstudio-standards/hvac_sizing/Siz.ZoneHVACTerminalUnitVariableRefrigerantFlow.rb', line 94

def autosizedOutdoorAirFlowRateDuringHeatingOperation
  return self.model.getAutosizedValue(self, 'Design Size Outdoor Air Flow Rate During Heating Operation', 'm3/s')
end

#autosizedOutdoorAirFlowRateWhenNoCoolingorHeatingisNeededObject

Outdoor Air Flow Rate When No Cooling or Heating is Needed



99
100
101
# File 'lib/openstudio-standards/hvac_sizing/Siz.ZoneHVACTerminalUnitVariableRefrigerantFlow.rb', line 99

def autosizedOutdoorAirFlowRateWhenNoCoolingorHeatingisNeeded
  return self.model.getAutosizedValue(self, 'Design Size Outdoor Air Flow Rate When No Cooling or Heating is Needed', 'm3/s')
end

#autosizedSupplyAirFlowRateDuringCoolingOperationObject

Supply Air Flow Rate During Cooling Operation



66
67
68
# File 'lib/openstudio-standards/hvac_sizing/Siz.ZoneHVACTerminalUnitVariableRefrigerantFlow.rb', line 66

def autosizedSupplyAirFlowRateDuringCoolingOperation
  return self.model.getAutosizedValue(self, 'Design Size Cooling Supply Air Flow Rate', 'm3/s')
end

#autosizedSupplyAirFlowRateDuringHeatingOperationObject

Supply Air Flow Rate During Heating Operation



71
72
73
# File 'lib/openstudio-standards/hvac_sizing/Siz.ZoneHVACTerminalUnitVariableRefrigerantFlow.rb', line 71

def autosizedSupplyAirFlowRateDuringHeatingOperation
  return self.model.getAutosizedValue(self, 'Design Size Heating Supply Air Flow Rate', 'm3/s')
end

#autosizedSupplyAirFlowRateWhenNoCoolingisNeededObject

Supply Air Flow Rate During No Cooling Operation



76
77
78
# File 'lib/openstudio-standards/hvac_sizing/Siz.ZoneHVACTerminalUnitVariableRefrigerantFlow.rb', line 76

def autosizedSupplyAirFlowRateWhenNoCoolingisNeeded
  return self.model.getAutosizedValue(self, 'Design Size No Cooling Supply Air Flow Rate', 'm3/s')
end

#autosizedSupplyAirFlowRateWhenNoHeatingisNeededObject

Supply Air Flow Rate During No Heating Operation



81
82
83
# File 'lib/openstudio-standards/hvac_sizing/Siz.ZoneHVACTerminalUnitVariableRefrigerantFlow.rb', line 81

def autosizedSupplyAirFlowRateWhenNoHeatingisNeeded
  return self.model.getAutosizedValue(self, 'Design Size No Heating Supply Air Flow Rate', 'm3/s')
end