Class: OpenStudio::Model::CoilHeatingWater

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

def applySizingValues

  maximum_water_flow_rate = self.autosizedMaximumWaterFlowRate
  if maximum_water_flow_rate.is_initialized
    self.setMaximumWaterFlowRate(maximum_water_flow_rate.get) 
  end
  
  u_factor_times_area_value = self.autosizedUFactorTimesAreaValue
  if u_factor_times_area_value.is_initialized
    self.setUFactorTimesAreaValue(u_factor_times_area_value.get)
  end
  
  rated_capacity = self.autosizedRatedCapacity
  if rated_capacity.is_initialized
    self.setRatedCapacity(rated_capacity.get) 
  end
      
end

#autosizeObject

Sets all auto-sizeable fields to autosize



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

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

#autosizedMaximumWaterFlowRateObject

returns the autosized maximum water flow rate as an optional double



33
34
35
36
37
# File 'lib/openstudio-standards/hvac_sizing/Siz.CoilHeatingWater.rb', line 33

def autosizedMaximumWaterFlowRate

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

#autosizedRatedCapacityObject

returns the autosized rated capacity as an optional double



47
48
49
50
51
52
53
54
55
56
57
58
# File 'lib/openstudio-standards/hvac_sizing/Siz.CoilHeatingWater.rb', line 47

def autosizedRatedCapacity

  # In E+ 8.8, (OS 2.2.2 onward) the field name changed
  if self.model.version < OpenStudio::VersionString.new('2.2.2')
    field = 'Design Size Design Coil Load'
  else
    field = 'Design Size Rated Capacity'
  end

  return self.model.getAutosizedValue(self, field, 'W')
  
end

#autosizedUFactorTimesAreaValueObject

returns the autosized u-factor times area value as an optional double



40
41
42
43
44
# File 'lib/openstudio-standards/hvac_sizing/Siz.CoilHeatingWater.rb', line 40

def autosizedUFactorTimesAreaValue

  return self.model.getAutosizedValue(self, 'Design Size U-Factor Times Area Value', 'W/K')
  
end