Sha256: 9d434873d07b27b038518dd9f28d2ae0cf30a128153beed32baca2266ef64bf9

Contents?: true

Size: 1.53 KB

Versions: 3

Compression:

Stored size: 1.53 KB

Contents

class ASHRAE9012004 < ASHRAE901
  # @!group Model
  #
  # Determine the surface range of a baseline model.
  # The method calculates the window to wall ratio (assuming all spaces are conditioned)
  # and select the range based on the calculated window to wall ratio
  # @param model [OpenStudio::Model::Model] OpenStudio model object
  # @param intended_surface_type [String] intended surface type
  def model_get_percent_of_surface_range(model, intended_surface_type)
    wwr_range = {}

    # Do not process surfaces other than exterior windows and glass door for 2004 standard
    if intended_surface_type != 'ExteriorWindow' && intended_surface_type != 'GlassDoor'
      wwr_range['minimum_percent_of_surface'] = nil
      wwr_range['maximum_percent_of_surface'] = nil
    else
      wwr = model_get_window_area_info(model, true)
      if wwr <= 10
        wwr_range['minimum_percent_of_surface'] = 1.0
        wwr_range['maximum_percent_of_surface'] = 10.0
      elsif wwr <= 20
        wwr_range['minimum_percent_of_surface'] = 10.001
        wwr_range['maximum_percent_of_surface'] = 20
      elsif wwr <= 30
        wwr_range['minimum_percent_of_surface'] = 20.001
        wwr_range['maximum_percent_of_surface'] = 30
      elsif wwr <= 40
        wwr_range['minimum_percent_of_surface'] = 30.001
        wwr_range['maximum_percent_of_surface'] = 40
      else
        wwr_range['minimum_percent_of_surface'] = 40.001
        wwr_range['maximum_percent_of_surface'] = 100.0
      end
    end
    return wwr_range
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
openstudio-standards-0.2.16 lib/openstudio-standards/standards/ashrae_90_1/ashrae_90_1_2004/ashrae_90_1_2004.Model.rb
openstudio-standards-0.2.16.rc2 lib/openstudio-standards/standards/ashrae_90_1/ashrae_90_1_2004/ashrae_90_1_2004.Model.rb
openstudio-standards-0.2.16.rc1 lib/openstudio-standards/standards/ashrae_90_1/ashrae_90_1_2004/ashrae_90_1_2004.Model.rb