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 print_layers(runner=nil)
        infos = []
        @path_fracs.each do |path_frac|
            infos << "path_frac: #{path_frac.round(5).to_s}"
        end
        infos << "======"
        @layers_materials.each_with_index do |layer_materials, idx|
            if @layers_names[idx].nil?
                infos << "layer name: #{layer_materials[0].name.to_s}"
            else
                infos << "layer name: #{@layers_names[idx]}"
            end
            infos << "layer thick: #{UnitConversions.convert(layer_materials[0].thick_in,"in","ft").round(5).to_s}"
            layer_materials.each do |mat|
                infos << "layer cond:  #{UnitConversions.convert(mat.k_in,"in","ft").round(5).to_s}"
            end
            infos << "------"
        end
        infos.each do |i|
            if !runner.nil?
                runner.registerInfo(i)
            else
                puts i
            end
        end
    end
def print_layers ( runner = nil ) infos = [ ] @path_fracs . each do | path_frac | infos << "path_frac: #{path_frac.round(5).to_s}" end infos << "======" @layers_materials . each_with_index do | layer_materials , idx | if @layers_names [ idx ] . nil? infos << "layer name: #{layer_materials[0].name.to_s}" else infos << "layer name: #{@layers_names[idx]}" end infos << "layer thick: #{UnitConversions.convert(layer_materials[0].thick_in,"in","ft").round(5).to_s}" layer_materials . each do | mat | infos << "layer cond:  #{UnitConversions.convert(mat.k_in,"in","ft").round(5).to_s}" end infos << "------" end infos . each do | i | if ! runner . nil? runner . registerInfo ( i ) else puts i end end 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 .
runner
<not_specific>