Class: OpenStudio::Model::ControllerWaterCoil

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

def applySizingValues

  # Only attempt to retrieve sizes for water coil controllers
  # that have their sensor nodes set.  Water coils without sensor
  # nodes aren't controlling anything.
  if self.sensorNode.is_initialized

    maximum_actuated_flow = self.autosizedMaximumActuatedFlow
    if maximum_actuated_flow.is_initialized
      self.setMaximumActuatedFlow(maximum_actuated_flow.get) 
    end

    controller_convergence_tolerance = self.autosizedControllerConvergenceTolerance
    if controller_convergence_tolerance.is_initialized
      self.setControllerConvergenceTolerance(controller_convergence_tolerance.get) 
    end
  
  end
  
end

#autosizeObject

Sets all auto-sizeable fields to autosize



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

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

#autosizedControllerConvergenceToleranceObject

returns the autosized controller convergence tolerance as an optional double



42
43
44
45
46
# File 'lib/openstudio-standards/hvac_sizing/Siz.ControllerWaterCoil.rb', line 42

def autosizedControllerConvergenceTolerance

  return self.model.getAutosizedValue(self, 'Controller Convergence Tolerance', '')

end

#autosizedMaximumActuatedFlowObject

returns the autosized maximum actuated flow rate as an optional double



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

def autosizedMaximumActuatedFlow

  return self.model.getAutosizedValue(self, 'Maximum Actuated Flow', 'm3/s')
  
end