Sha256: 7e950ca1453a38b2e7dcfff48623b78d734e98a75bc66308cea228b4742f7727

Contents?: true

Size: 1.61 KB

Versions: 10

Compression:

Stored size: 1.61 KB

Contents

class DOERef1980to2004 < ASHRAE901
  # @!group Model

  # Apply the air leakage requirements to the model.
  # "For 'DOE Ref Pre-1980' and 'DOE Ref 1980-2004',
  # infiltration rates are not defined using this method,
  # no changes are actually made to the model.
  #
  # base infiltration rates off of.
  # @return [Bool] true if successful, false if not
  # @todo This infiltration method is not used by the Reference
  # buildings, fix this inconsistency.
  def model_apply_infiltration_standard(model)
    # Set the infiltration rate at each space
    model.getSpaces.sort.each do |space|
      space_apply_infiltration_rate(space)
    end

    return true
  end

  # Determine which climate zone to use.
  # For Pre-1980 and 1980-2004, use the most specific climate zone set.
  # For example, 2A and 2 both contain 2A, so use 2A.
  # The exceptions are climate zones 1, 7, and 8, which
  # combine 1A/1B, 7A/7B, and 8A/8B into 1, 7, and 8.
  def model_get_climate_zone_set_from_list(model, possible_climate_zone_sets)
    climate_zone_set = if possible_climate_zone_sets.include? 'ClimateZone 1'
                         possible_climate_zone_sets.sort.first
                       elsif possible_climate_zone_sets.include? 'ClimateZone 7'
                         possible_climate_zone_sets.sort.first
                       elsif possible_climate_zone_sets.include? 'ClimateZone 8'
                         possible_climate_zone_sets.sort.first
                       else
                         possible_climate_zone_sets.sort.last
                       end
    return climate_zone_set
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
openstudio-standards-0.2.12 lib/openstudio-standards/standards/ashrae_90_1/doe_ref_1980_2004/doe_ref_1980_2004.Model.rb
openstudio-standards-0.2.12.rc7 lib/openstudio-standards/standards/ashrae_90_1/doe_ref_1980_2004/doe_ref_1980_2004.Model.rb
openstudio-standards-0.2.12.rc6 lib/openstudio-standards/standards/ashrae_90_1/doe_ref_1980_2004/doe_ref_1980_2004.Model.rb
openstudio-standards-0.2.12.rc5 lib/openstudio-standards/standards/ashrae_90_1/doe_ref_1980_2004/doe_ref_1980_2004.Model.rb
openstudio-standards-0.2.12.rc4 lib/openstudio-standards/standards/ashrae_90_1/doe_ref_1980_2004/doe_ref_1980_2004.Model.rb
openstudio-standards-0.2.12.rc2 lib/openstudio-standards/standards/ashrae_90_1/doe_ref_1980_2004/doe_ref_1980_2004.Model.rb
openstudio-standards-0.2.12.rc1 lib/openstudio-standards/standards/ashrae_90_1/doe_ref_1980_2004/doe_ref_1980_2004.Model.rb
openstudio-standards-0.2.11 lib/openstudio-standards/standards/ashrae_90_1/doe_ref_1980_2004/doe_ref_1980_2004.Model.rb
openstudio-standards-0.2.11.rc2 lib/openstudio-standards/standards/ashrae_90_1/doe_ref_1980_2004/doe_ref_1980_2004.Model.rb
openstudio-standards-0.2.11.rc1 lib/openstudio-standards/standards/ashrae_90_1/doe_ref_1980_2004/doe_ref_1980_2004.Model.rb