Class: OpenStudio::Model::AirConditionerVariableRefrigerantFlow

Inherits:
Object
  • Object
show all
Defined in:
lib/openstudio-standards/hvac_sizing/Siz.AirConditionerVariableRefrigerantFlow.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
# File 'lib/openstudio-standards/hvac_sizing/Siz.AirConditionerVariableRefrigerantFlow.rb', line 18

def applySizingValues

  # Rated Total Cooling Capacity (gross)
  rated_cool_cap = self.autosizedRatedTotalCoolingCapacity
  if rated_cool_cap.is_initialized
    self.setRatedTotalCoolingCapacity(rated_cool_cap.get)
  end
  
  # Rated Total Heating Capacity
  rated_heat_cap = self.autosizedRatedTotalHeatingCapacity
  if rated_heat_cap.is_initialized
    self.setRatedTotalHeatingCapacity(rated_heat_cap.get)
  end
  
  # Resistive Defrost Heater Capacity
  defrost_heat_cap = self.autosizedResistiveDefrostHeaterCapacity
  if defrost_heat_cap.is_initialized
    self.setResistiveDefrostHeaterCapacity(defrost_heat_cap.get)
  end
  
  # Evaporative Condenser Air Flow Rate
  evap_cnd_airflow_rate = self.autosizedEvaporativeCondenserAirFlowRate
  if evap_cnd_airflow_rate.is_initialized
    self.setEvaporativeCondenserAirFlowRate(evap_cnd_airflow_rate.get)
  end
  
  # Evaporative Condenser Pump Rated Power Consumption
  evap_cnd_pump_power = self.autosizedEvaporativeCondenserPumpRatedPowerConsumption
  if evap_cnd_pump_power.is_initialized
    self.setEvaporativeCondenserPumpRatedPowerConsumption(evap_cnd_pump_power.get)
  end
  
  # todo: autosizeWaterCondenserVolumeFlowRate
    #self.setWaterCondenserVolumeFlowRate

end

#autosizeObject

Sets all auto-sizeable fields to autosize



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

def autosize
  self.autosizeRatedTotalCoolingCapacity
  self.autosizeRatedTotalHeatingCapacity
  self.autosizeResistiveDefrostHeaterCapacity
  self.autosizeWaterCondenserVolumeFlowRate
  self.autosizeEvaporativeCondenserAirFlowRate
  self.autosizeEvaporativeCondenserPumpRatedPowerConsumption
end

#autosizedEvaporativeCondenserAirFlowRateObject

Evaporative Condenser Air Flow Rate



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

def autosizedEvaporativeCondenserAirFlowRate
  return self.model.getAutosizedValue(self, 'Design Size Evaporative Condenser Air Flow Rate', 'm3/s')
end

#autosizedEvaporativeCondenserPumpRatedPowerConsumptionObject

Evaporative Condenser Pump Rated Power Consumption



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

def autosizedEvaporativeCondenserPumpRatedPowerConsumption
  return self.model.getAutosizedValue(self, 'Design Size Evaporative Condenser Pump Rated Power Consumption', 'W')
end

#autosizedRatedTotalCoolingCapacityObject

Rated Total Cooling Capacity (gross)



57
58
59
# File 'lib/openstudio-standards/hvac_sizing/Siz.AirConditionerVariableRefrigerantFlow.rb', line 57

def autosizedRatedTotalCoolingCapacity
  return self.model.getAutosizedValue(self, 'Design Size Rated Total Cooling Capacity (gross)', 'W')
end

#autosizedRatedTotalHeatingCapacityObject

Rated Total Heating Capacity



62
63
64
# File 'lib/openstudio-standards/hvac_sizing/Siz.AirConditionerVariableRefrigerantFlow.rb', line 62

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

#autosizedResistiveDefrostHeaterCapacityObject

Resistive Defrost Heater Capacity (unit is empty as of right now in 8.4…)



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

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