Class: OpenStudio::Model::ChillerElectricEIR

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



13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# File 'lib/openstudio-standards/hvac_sizing/Siz.ChillerElectricEIR.rb', line 13

def applySizingValues

  reference_chilled_water_flow_rate = self.autosizedReferenceChilledWaterFlowRate
  if reference_chilled_water_flow_rate.is_initialized
    self.setReferenceChilledWaterFlowRate(reference_chilled_water_flow_rate.get) 
  end

  reference_capacity = self.autosizedReferenceCapacity
  if reference_capacity.is_initialized
    self.setReferenceCapacity(reference_capacity.get) 
  end

  # Only try to find the condenser water flow rate if this chiller
  # is a water cooled chiller connected to a condenser loop.
  if self.secondaryPlantLoop.is_initialized
    reference_condenser_fluid_flow_rate = self.autosizedReferenceCondenserFluidFlowRate
    if reference_condenser_fluid_flow_rate.is_initialized
      self.setReferenceCondenserFluidFlowRate(reference_condenser_fluid_flow_rate.get) 
    end
  end
  
end

#autosizeObject

Sets all auto-sizeable fields to autosize



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

def autosize
  OpenStudio::logFree(OpenStudio::Warn, "openstudio.sizing.ChillerElectricEIR", ".autosize not yet implemented for #{self.iddObject.type.valueDescription}.")
end

#autosizedReferenceCapacityObject

returns the autosized reference capacity as an optional double



44
45
46
47
48
# File 'lib/openstudio-standards/hvac_sizing/Siz.ChillerElectricEIR.rb', line 44

def autosizedReferenceCapacity

  return self.model.getAutosizedValue(self, 'Design Size Reference Capacity', 'W')

end

#autosizedReferenceChilledWaterFlowRateObject

returns the autosized chilled water flow rate as an optional double



37
38
39
40
41
# File 'lib/openstudio-standards/hvac_sizing/Siz.ChillerElectricEIR.rb', line 37

def autosizedReferenceChilledWaterFlowRate

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

#autosizedReferenceCondenserFluidFlowRateObject

returns the autosized reference condenser fluid flow rate as an optional double



51
52
53
54
55
# File 'lib/openstudio-standards/hvac_sizing/Siz.ChillerElectricEIR.rb', line 51

def autosizedReferenceCondenserFluidFlowRate

  return self.model.getAutosizedValue(self, 'User-Specified Reference Condenser Water Flow Rate', 'm3/s')
  
end