Class: OpenStudio::Model::ZoneHVACPackagedTerminalHeatPump

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



18
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
# File 'lib/openstudio-standards/hvac_sizing/Siz.ZoneHVACPackagedTerminalHeatPump.rb', line 18

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 or Heating is Needed
  supply_air_flow_noload = self.autosizedSupplyAirFlowRateWhenNoCoolingorHeatingisNeeded
  if supply_air_flow_noload.is_initialized
    self.setSupplyAirFlowRateWhenNoCoolingorHeatingisNeeded(supply_air_flow_noload.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



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

def autosize
  self.autosizeSupplyAirFlowRateDuringCoolingOperation
  self.autosizeSupplyAirFlowRateDuringHeatingOperation
  self.autosizeSupplyAirFlowRateWhenNoCoolingorHeatingisNeeded
  self.autosizeOutdoorAirFlowRateDuringCoolingOperation
  self.autosizeOutdoorAirFlowRateDuringHeatingOperation
  self.autosizeOutdoorAirFlowRateWhenNoCoolingorHeatingisNeeded
  self.autosizeMaximumSupplyAirTemperaturefromSupplementalHeater
end

#autosizedOutdoorAirFlowRateDuringCoolingOperationObject

Outdoor Air Flow Rate During Cooling Operation



74
75
76
# File 'lib/openstudio-standards/hvac_sizing/Siz.ZoneHVACPackagedTerminalHeatPump.rb', line 74

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



79
80
81
# File 'lib/openstudio-standards/hvac_sizing/Siz.ZoneHVACPackagedTerminalHeatPump.rb', line 79

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



84
85
86
# File 'lib/openstudio-standards/hvac_sizing/Siz.ZoneHVACPackagedTerminalHeatPump.rb', line 84

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



59
60
61
# File 'lib/openstudio-standards/hvac_sizing/Siz.ZoneHVACPackagedTerminalHeatPump.rb', line 59

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



64
65
66
# File 'lib/openstudio-standards/hvac_sizing/Siz.ZoneHVACPackagedTerminalHeatPump.rb', line 64

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

#autosizedSupplyAirFlowRateWhenNoCoolingorHeatingisNeededObject

Supply Air Flow Rate When No Cooling or Heating is Needed



69
70
71
# File 'lib/openstudio-standards/hvac_sizing/Siz.ZoneHVACPackagedTerminalHeatPump.rb', line 69

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