Sha256: 82160000c08f657a581973f0911b1b52ed0924e0b0ba342d5eacd47b4a6f53cf

Contents?: true

Size: 1.66 KB

Versions: 4

Compression:

Stored size: 1.66 KB

Contents

class ASHRAE9012013 < ASHRAE901
  # @!group WaterHeaterMixed

  # Applies the correct fuel type for the water heaters
  # in the baseline model. 90.1-2013 requires a change
  # from the proposed building in some scenarios.
  #
  # @param building_type [String] the building type
  # @return [Boolean] returns true if successful, false if not
  def water_heater_mixed_apply_prm_baseline_fuel_type(water_heater_mixed, building_type)
    # Determine the building-type specific
    # fuel requirements from Table G3.1.1-2
    new_fuel = nil
    case building_type
    when 'SmallOffice', 'MediumOffice', 'LargeOffice', 'SmallOfficeDetailed', 'MediumOfficeDetailed', 'LargeOfficeDetailed', # Office
         'RetailStandalone', 'RetailStripmall', # Retail
         'Warehouse' # Warehouse
      new_fuel = 'Electricity'
    else
      # 'SecondarySchool', 'PrimarySchool', # School/university
      # 'SmallHotel', # Motel
      # 'LargeHotel', # Hotel
      # 'QuickServiceRestaurant', # Dining: Cafeteria/fast food
      # 'FullServiceRestaurant', # Dining: Family
      # 'MidriseApartment', 'HighriseApartment', # Multifamily
      # 'Hospital', # Hospital
      # 'Outpatient' # Health-care clinic
      # Or Unspecified
      new_fuel = 'NaturalGas'
    end

    # Change the fuel type if necessary
    old_fuel = water_heater_mixed.heaterFuelType
    unless new_fuel == old_fuel
      water_heater_mixed.setHeaterFuelType(new_fuel)
      OpenStudio.logFree(OpenStudio::Info, 'openstudio.standards.WaterHeaterMixed', "For #{water_heater_mixed.name}, changed baseline water heater fuel from #{old_fuel} to #{new_fuel}.")
    end

    return true
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
openstudio-standards-0.7.1 lib/openstudio-standards/standards/ashrae_90_1/ashrae_90_1_2013/ashrae_90_1_2013.WaterHeaterMixed.rb
openstudio-standards-0.7.0 lib/openstudio-standards/standards/ashrae_90_1/ashrae_90_1_2013/ashrae_90_1_2013.WaterHeaterMixed.rb
openstudio-standards-0.7.0.rc1 lib/openstudio-standards/standards/ashrae_90_1/ashrae_90_1_2013/ashrae_90_1_2013.WaterHeaterMixed.rb
openstudio-standards-0.6.3 lib/openstudio-standards/standards/ashrae_90_1/ashrae_90_1_2013/ashrae_90_1_2013.WaterHeaterMixed.rb