Class: OpenStudio::Model::CoilHeatingGasMultiStage
- Inherits:
-
Object
- Object
- OpenStudio::Model::CoilHeatingGasMultiStage
- Defined in:
- lib/openstudio-standards/hvac_sizing/Siz.CoilHeatingGasMultiStage.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.
-
#autosizedStage1NominalCapacity ⇒ Object
returns the autosized design stage 1 capacity.
-
#autosizedStage2NominalCapacity ⇒ Object
returns the autosized design stage 2 capacity.
-
#autosizedStage3NominalCapacity ⇒ Object
returns the autosized design stage 3 capacity.
-
#autosizedStage4NominalCapacity ⇒ Object
returns the autosized design stage 4 capacity.
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.
16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 |
# File 'lib/openstudio-standards/hvac_sizing/Siz.CoilHeatingGasMultiStage.rb', line 16 def applySizingValues design_size_stage1_nominal_capacity = self.autosizedStage1NominalCapacity if design_size_stage1_nominal_capacity.is_initialized self.setStage1NominalCapacity(design_size_stage1_nominal_capacity.get) end design_size_stage2_nominal_capacity = self.autosizedStage2NominalCapacity if design_size_stage2_nominal_capacity.is_initialized self.setStage2NominalCapacity(design_size_stage2_nominal_capacity.get) end design_size_stage3_nominal_capacity = self.autosizedStage3NominalCapacity if design_size_stage3_nominal_capacity.is_initialized self.setStage3NominalCapacity(design_size_stage3_nominal_capacity.get) end design_size_stage4_nominal_capacity = self.autosizedStage4NominalCapacity if design_size_stage4_nominal_capacity.is_initialized self.setStage4NominalCapacity(design_size_stage4_nominal_capacity.get) end end |
#autosize ⇒ Object
Sets all auto-sizeable fields to autosize
6 7 8 9 10 11 |
# File 'lib/openstudio-standards/hvac_sizing/Siz.CoilHeatingGasMultiStage.rb', line 6 def autosize autosizeStage1NominalCapacity autosizeStage2NominalCapacity autosizeStage3NominalCapacity autosizeStage4NominalCapacity end |
#autosizedStage1NominalCapacity ⇒ Object
returns the autosized design stage 1 capacity
41 42 43 44 45 |
# File 'lib/openstudio-standards/hvac_sizing/Siz.CoilHeatingGasMultiStage.rb', line 41 def autosizedStage1NominalCapacity return self.model.getAutosizedValue(self,'Design Size Stage 1 Nominal Capacity', 'W') end |
#autosizedStage2NominalCapacity ⇒ Object
returns the autosized design stage 2 capacity
48 49 50 51 52 |
# File 'lib/openstudio-standards/hvac_sizing/Siz.CoilHeatingGasMultiStage.rb', line 48 def autosizedStage2NominalCapacity return self.model.getAutosizedValue(self,'Design Size Stage 2 Nominal Capacity', 'W') end |
#autosizedStage3NominalCapacity ⇒ Object
returns the autosized design stage 3 capacity
55 56 57 58 59 |
# File 'lib/openstudio-standards/hvac_sizing/Siz.CoilHeatingGasMultiStage.rb', line 55 def autosizedStage3NominalCapacity return self.model.getAutosizedValue(self,'Design Size Stage 3 Nominal Capacity', 'W') end |
#autosizedStage4NominalCapacity ⇒ Object
returns the autosized design stage 4 capacity
62 63 64 65 66 |
# File 'lib/openstudio-standards/hvac_sizing/Siz.CoilHeatingGasMultiStage.rb', line 62 def autosizedStage4NominalCapacity return self.model.getAutosizedValue(self,'Design Size Stage 4 Nominal Capacity', 'W') end |