Class: SystemFuels
- Inherits:
-
Object
- Object
- SystemFuels
- Defined in:
- lib/openstudio-standards/standards/necb/NECB2011/system_fuels.rb
Instance Attribute Summary collapse
-
#baseboard_type ⇒ Object
Returns the value of attribute baseboard_type.
-
#boiler_fueltype ⇒ Object
Returns the value of attribute boiler_fueltype.
-
#chiller_type ⇒ Object
Returns the value of attribute chiller_type.
-
#ecm_fueltype ⇒ Object
Returns the value of attribute ecm_fueltype.
-
#fan_type ⇒ Object
Returns the value of attribute fan_type.
-
#heating_coil_type_sys3 ⇒ Object
Returns the value of attribute heating_coil_type_sys3.
-
#heating_coil_type_sys4 ⇒ Object
Returns the value of attribute heating_coil_type_sys4.
-
#heating_coil_type_sys6 ⇒ Object
Returns the value of attribute heating_coil_type_sys6.
-
#mau_cooling_type ⇒ Object
Returns the value of attribute mau_cooling_type.
-
#mau_heating_coil_type ⇒ Object
Returns the value of attribute mau_heating_coil_type.
-
#mau_type ⇒ Object
Returns the value of attribute mau_type.
-
#name ⇒ Object
Returns the value of attribute name.
-
#necb_reference_hp ⇒ Object
Returns the value of attribute necb_reference_hp.
-
#necb_reference_hp_supp_fuel ⇒ Object
Returns the value of attribute necb_reference_hp_supp_fuel.
-
#swh_fuel ⇒ Object
Returns the value of attribute swh_fuel.
-
#swh_fueltype ⇒ Object
Returns the value of attribute swh_fueltype.
Instance Method Summary collapse
Instance Attribute Details
#baseboard_type ⇒ Object
Returns the value of attribute baseboard_type.
4 5 6 |
# File 'lib/openstudio-standards/standards/necb/NECB2011/system_fuels.rb', line 4 def baseboard_type @baseboard_type end |
#boiler_fueltype ⇒ Object
Returns the value of attribute boiler_fueltype.
3 4 5 |
# File 'lib/openstudio-standards/standards/necb/NECB2011/system_fuels.rb', line 3 def boiler_fueltype @boiler_fueltype end |
#chiller_type ⇒ Object
Returns the value of attribute chiller_type.
8 9 10 |
# File 'lib/openstudio-standards/standards/necb/NECB2011/system_fuels.rb', line 8 def chiller_type @chiller_type end |
#ecm_fueltype ⇒ Object
Returns the value of attribute ecm_fueltype.
15 16 17 |
# File 'lib/openstudio-standards/standards/necb/NECB2011/system_fuels.rb', line 15 def ecm_fueltype @ecm_fueltype end |
#fan_type ⇒ Object
Returns the value of attribute fan_type.
14 15 16 |
# File 'lib/openstudio-standards/standards/necb/NECB2011/system_fuels.rb', line 14 def fan_type @fan_type end |
#heating_coil_type_sys3 ⇒ Object
Returns the value of attribute heating_coil_type_sys3.
9 10 11 |
# File 'lib/openstudio-standards/standards/necb/NECB2011/system_fuels.rb', line 9 def heating_coil_type_sys3 @heating_coil_type_sys3 end |
#heating_coil_type_sys4 ⇒ Object
Returns the value of attribute heating_coil_type_sys4.
10 11 12 |
# File 'lib/openstudio-standards/standards/necb/NECB2011/system_fuels.rb', line 10 def heating_coil_type_sys4 @heating_coil_type_sys4 end |
#heating_coil_type_sys6 ⇒ Object
Returns the value of attribute heating_coil_type_sys6.
11 12 13 |
# File 'lib/openstudio-standards/standards/necb/NECB2011/system_fuels.rb', line 11 def heating_coil_type_sys6 @heating_coil_type_sys6 end |
#mau_cooling_type ⇒ Object
Returns the value of attribute mau_cooling_type.
7 8 9 |
# File 'lib/openstudio-standards/standards/necb/NECB2011/system_fuels.rb', line 7 def mau_cooling_type @mau_cooling_type end |
#mau_heating_coil_type ⇒ Object
Returns the value of attribute mau_heating_coil_type.
6 7 8 |
# File 'lib/openstudio-standards/standards/necb/NECB2011/system_fuels.rb', line 6 def mau_heating_coil_type @mau_heating_coil_type end |
#mau_type ⇒ Object
Returns the value of attribute mau_type.
5 6 7 |
# File 'lib/openstudio-standards/standards/necb/NECB2011/system_fuels.rb', line 5 def mau_type @mau_type end |
#name ⇒ Object
Returns the value of attribute name.
2 3 4 |
# File 'lib/openstudio-standards/standards/necb/NECB2011/system_fuels.rb', line 2 def name @name end |
#necb_reference_hp ⇒ Object
Returns the value of attribute necb_reference_hp.
12 13 14 |
# File 'lib/openstudio-standards/standards/necb/NECB2011/system_fuels.rb', line 12 def necb_reference_hp @necb_reference_hp end |
#necb_reference_hp_supp_fuel ⇒ Object
Returns the value of attribute necb_reference_hp_supp_fuel.
13 14 15 |
# File 'lib/openstudio-standards/standards/necb/NECB2011/system_fuels.rb', line 13 def necb_reference_hp_supp_fuel @necb_reference_hp_supp_fuel end |
#swh_fuel ⇒ Object
Returns the value of attribute swh_fuel.
16 17 18 |
# File 'lib/openstudio-standards/standards/necb/NECB2011/system_fuels.rb', line 16 def swh_fuel @swh_fuel end |
#swh_fueltype ⇒ Object
Returns the value of attribute swh_fueltype.
17 18 19 |
# File 'lib/openstudio-standards/standards/necb/NECB2011/system_fuels.rb', line 17 def swh_fueltype @swh_fueltype end |
Instance Method Details
#set_defaults(standards_data:, primary_heating_fuel:, swh_fuel:) ⇒ Object
19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 |
# File 'lib/openstudio-standards/standards/necb/NECB2011/system_fuels.rb', line 19 def set_defaults(standards_data:, primary_heating_fuel:, swh_fuel:) # Get fuelset. system_fuel_defaults = standards_data['fuel_type_sets'].detect { |fuel_type_set| fuel_type_set['name'] == primary_heating_fuel } raise("fuel_type_sets named #{primary_heating_fuel} not found in fuel_type_sets table.") if system_fuel_defaults.nil? # Assign fuel sources. @name = system_fuel_defaults['name'] @boiler_fueltype = system_fuel_defaults['boiler_fueltype'] @baseboard_type = system_fuel_defaults['baseboard_type'] @mau_type = system_fuel_defaults['mau_type'] @mau_cooling_type = system_fuel_defaults['mau_cooling_type'] @chiller_type = system_fuel_defaults['chiller_type'] @mau_heating_coil_type = system_fuel_defaults['mau_heating_coil_type'] @heating_coil_type_sys3 = system_fuel_defaults['heating_coil_type_sys3'] @heating_coil_type_sys4 = system_fuel_defaults['heating_coil_type_sys4'] @heating_coil_type_sys6 = system_fuel_defaults['heating_coil_type_sys6'] @necb_reference_hp = system_fuel_defaults['necb_reference_hp'] @necb_reference_hp_supp_fuel = system_fuel_defaults['necb_reference_hp_supp_fuel'] @fan_type = system_fuel_defaults['fan_type'] @swh_fueltype = system_fuel_defaults['swh_fueltype'] @ecm_fueltype = system_fuel_defaults['ecm_fueltype'] end |