Module: BTAP::Resources::Envelope::Materials
- Defined in:
- lib/openstudio-standards/btap/envelope.rb
Overview
This module contains Materials, Constructions and ConstructionSets
Defined Under Namespace
Modules: Fenestration, Opaque
Class Method Summary collapse
-
.get_conductance(material, temperature_c = 0.0) ⇒ Float
This method gets conductance.
Class Method Details
.get_conductance(material, temperature_c = 0.0) ⇒ Float
This method gets conductance.
127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 |
# File 'lib/openstudio-standards/btap/envelope.rb', line 127 def self.get_conductance(material,temperature_c = 0.0) conductance = nil #this method is a wrapper around OS functions. No testing is required. #Convert C to K temperature_k = temperature_c + 273.0 conductance = material.to_SimpleGlazing.get.uFactor unless material.to_SimpleGlazing.empty? conductance = material.to_StandardGlazing.get.thermalConductance unless material.to_StandardGlazing.empty? conductance = material.to_OpaqueMaterial.get.thermalConductance unless material.to_OpaqueMaterial.empty? conductance = material.to_Shade.get.thermalConductance unless material.to_Shade.empty? conductance = material.to_Screen.get.thermalConductance unless material.to_Screen.empty? conductance = material.to_MasslessOpaqueMaterial.get.thermalConductance unless material.to_MasslessOpaqueMaterial.empty? conductance = 1.0/material.to_AirGap.get.getThermalResistance.get.value unless material.to_AirGap.empty? conductance = material.to_Gas.get.getThermalConductivity(temperature_k) unless material.to_Gas.empty? conductance = material.to_GasMixture.get.getThermalConductance(temperature_k) unless material.to_GasMixture.empty? conductance = material.to_RoofVegetation.get.thermalConductance unless material.to_RoofVegetation.empty? conductance = material.to_RefractionExtinctionGlazing.get.thermalConductance unless material.to_RefractionExtinctionGlazing.empty? conductance = 9999.9 unless material.to_Blind.empty? raise ("Conductance for Material: #{material.name} could not be set.") if conductance == nil return conductance end |