Class: SystemFuels

Inherits:
Object
  • Object
show all
Defined in:
lib/openstudio-standards/standards/necb/NECB2011/system_fuels.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#baseboard_typeObject

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_fueltypeObject

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_typeObject

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_fueltypeObject

Returns the value of attribute ecm_fueltype.



16
17
18
# File 'lib/openstudio-standards/standards/necb/NECB2011/system_fuels.rb', line 16

def ecm_fueltype
  @ecm_fueltype
end

#fan_typeObject

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_sys3Object

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_sys4Object

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_sys6Object

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_typeObject

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_typeObject

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_typeObject

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

#nameObject

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_hpObject

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_fuelObject

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_fueltypeObject

Returns the value of attribute swh_fueltype.



15
16
17
# File 'lib/openstudio-standards/standards/necb/NECB2011/system_fuels.rb', line 15

def swh_fueltype
  @swh_fueltype
end

Instance Method Details

#set_defaults(standards_data:, primary_heating_fuel:) ⇒ Object



17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# File 'lib/openstudio-standards/standards/necb/NECB2011/system_fuels.rb', line 17

def set_defaults(standards_data:, primary_heating_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