Sha256: 558d7e625562de7bcc6250e4cf7ee6546bdade5551585b64ee722c428ef3cfe4

Contents?: true

Size: 1.67 KB

Versions: 3

Compression:

Stored size: 1.67 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 wwr_parameter [Hash] parameters to choose min and max percent of surfaces,
  #          could be different set in different standard
  def model_get_percent_of_surface_range(model, wwr_parameter)
    wwr_range = { 'minimum_percent_of_surface' => nil, 'maximum_percent_of_surface' => nil }
    intended_surface_type = wwr_parameter['intended_surface_type']
    # Do not process surfaces other than exterior windows and glass door for 2004 standard
    if intended_surface_type == 'ExteriorWindow' || intended_surface_type == 'GlassDoor'
      wwr = OpenstudioStandards::Geometry.model_get_exterior_window_to_wall_ratio(model)
      if wwr <= 0.1
        wwr_range['minimum_percent_of_surface'] = 0.0
        wwr_range['maximum_percent_of_surface'] = 10.0
      elsif wwr <= 0.2
        wwr_range['minimum_percent_of_surface'] = 10.001
        wwr_range['maximum_percent_of_surface'] = 20
      elsif wwr <= 0.3
        wwr_range['minimum_percent_of_surface'] = 20.001
        wwr_range['maximum_percent_of_surface'] = 30
      elsif wwr <= 0.4
        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'] = 50.0
      end
    end
    return wwr_range
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
openstudio-standards-0.7.1 lib/openstudio-standards/standards/ashrae_90_1/ashrae_90_1_2004/ashrae_90_1_2004.Model.rb
openstudio-standards-0.7.0 lib/openstudio-standards/standards/ashrae_90_1/ashrae_90_1_2004/ashrae_90_1_2004.Model.rb
openstudio-standards-0.7.0.rc1 lib/openstudio-standards/standards/ashrae_90_1/ashrae_90_1_2004/ashrae_90_1_2004.Model.rb