Measures/m_5_example_5_computed_schedule/resources/util.rb
# Facilitates creating and assigning an OpenStudio construction (with accompanying 
# OpenStudio Materials) from Material objects. Handles parallel paths as well.
Facilitates creating and assigning an OpenStudio construction (with accompanying
OpenStudio Materials) from Material objects. Handles parallel paths as well.
Facilitates creating and assigning an OpenStudio construction ( with accompanying OpenStudio Materials ) from Material objects . Handles parallel paths as well .
def assembly_rvalue(runner)
        if not validated?(runner)
            return nil
        end
        u_overall = 0
        @path_fracs.each_with_index do |path_frac,path_num|
            r_path = 0
            @layers_materials.each do |layer_materials|
                if layer_materials.size == 1
                    r_path += layer_materials[0].rvalue
                else
                    r_path += layer_materials[path_num].rvalue
                end
            end
            u_overall += 1.0 / r_path * path_frac
        end
        r_overall = 1.0 / u_overall
        return r_overall
    end
def assembly_rvalue ( runner ) if not validated? ( runner ) return nil end u_overall = 0 @path_fracs . each_with_index do | path_frac , path_num | r_path = 0 @layers_materials . each do | layer_materials | if layer_materials . size == 1 r_path += layer_materials [ 0 ] . rvalue else r_path += layer_materials [ path_num ] . rvalue end end u_overall += 1.0 / r_path * path_frac end r_overall = 1.0 / u_overall return r_overall end
Facilitates creating and assigning an OpenStudio construction (with accompanying
OpenStudio Materials) from Material objects.
Facilitates creating and assigning an OpenStudio construction ( with accompanying OpenStudio Materials ) from Material objects .
# Calculate overall R-value for assembly # For each parallel path, sum series: # One material for this layer # Multiple parallel materials for this layer, use appropriate one
runner
<not_specific>