Class: OpenStudio::Model::PlantLoop
- Inherits:
-
Object
- Object
- OpenStudio::Model::PlantLoop
- Defined in:
- lib/openstudio-standards/hvac_sizing/Siz.PlantLoop.rb
Overview
open the class to add methods to return sizing values
Instance Method Summary collapse
-
#applySizingValues ⇒ Object
Takes the values calculated by the EnergyPlus sizing routines and puts them into this object model in place of the autosized fields.
-
#autosize ⇒ Object
Sets all auto-sizeable fields to autosize.
-
#autosizedMaximumLoopFlowRate ⇒ Object
returns the autosized maximum loop flow rate as an optional double.
-
#autosizedPlantLoopVolume ⇒ Object
returns the autosized plant loop volume as an optional double.
Instance Method Details
#applySizingValues ⇒ Object
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 |
# File 'lib/openstudio-standards/hvac_sizing/Siz.PlantLoop.rb', line 13 def applySizingValues maximum_loop_flow_rate = self.autosizedMaximumLoopFlowRate if maximum_loop_flow_rate.is_initialized self.setMaximumLoopFlowRate(maximum_loop_flow_rate.get) end plant_loop_volume = self.autosizedPlantLoopVolume if plant_loop_volume.is_initialized self.setPlantLoopVolume(plant_loop_volume.get) end end |
#autosize ⇒ Object
Sets all auto-sizeable fields to autosize
6 7 8 |
# File 'lib/openstudio-standards/hvac_sizing/Siz.PlantLoop.rb', line 6 def autosize OpenStudio::logFree(OpenStudio::Warn, "openstudio.sizing.PlantLoop", ".autosize not yet implemented for #{self.iddObject.type.valueDescription}.") end |
#autosizedMaximumLoopFlowRate ⇒ Object
returns the autosized maximum loop flow rate as an optional double
28 29 30 31 32 |
# File 'lib/openstudio-standards/hvac_sizing/Siz.PlantLoop.rb', line 28 def autosizedMaximumLoopFlowRate return self.model.getAutosizedValue(self, 'Maximum Loop Flow Rate', 'm3/s') end |
#autosizedPlantLoopVolume ⇒ Object
returns the autosized plant loop volume as an optional double
35 36 37 38 39 |
# File 'lib/openstudio-standards/hvac_sizing/Siz.PlantLoop.rb', line 35 def autosizedPlantLoopVolume return self.model.getAutosizedValue(self, 'Plant Loop Volume', 'm3') end |