lib/openstudio-standards/btap/envelope.rb in openstudio-standards-0.2.10 vs lib/openstudio-standards/btap/envelope.rb in openstudio-standards-0.2.11.rc1
- old
+ new
@@ -132,11 +132,11 @@
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 = 1.0/material.to_AirGap.get.thermalResistance 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?
@@ -652,13 +652,13 @@
tsol = 1.0
if construction.isFenestration
construction.layers.each do |layer|
#check to see if it is a simple glazing. If so use the SHGC method.
- tsol = tsol * layer.to_SimpleGlazing.get.getSolarHeatGainCoefficient().value unless layer.to_SimpleGlazing.empty?
+ tsol = tsol * layer.to_SimpleGlazing.get.solarHeatGainCoefficient unless layer.to_SimpleGlazing.empty?
#check to see if it is a standard glazing. If so use the solar transmittance method.
- tsol = tsol * layer.to_StandardGlazing.get.solarTransmittance() unless layer.to_StandardGlazing.empty?
+ tsol = tsol * layer.to_StandardGlazing.get.solarTransmittance unless layer.to_StandardGlazing.empty?
end
end
return tsol
end
@@ -672,12 +672,12 @@
construction = OpenStudio::Model::getConstructionByName(model, construction.name.to_s).get
tvis = 1.0
if construction.isFenestration
construction.layers.each do |layer|
#check to see if it is a simple glazing. If so use the SHGC method.
- tvis = tvis * layer.to_SimpleGlazing.get.getVisibleTransmittance().get.value unless layer.to_SimpleGlazing.empty?
+ tvis = tvis * layer.to_SimpleGlazing.get.visibleTransmittance.get unless layer.to_SimpleGlazing.empty?
#check to see if it is a standard glazing. If so use the solar transmittance method.
- tvis = tvis * layer.to_StandardGlazing.get.visibleTransmittanceatNormalIncidence().get unless layer.to_StandardGlazing.empty?
+ tvis = tvis * layer.to_StandardGlazing.get.visibleTransmittanceatNormalIncidence.get unless layer.to_StandardGlazing.empty?
end
end
return tvis
end
\ No newline at end of file