lib/openstudio-standards/btap/envelope.rb in openstudio-standards-0.2.14 vs lib/openstudio-standards/btap/envelope.rb in openstudio-standards-0.2.15.pre.rc1

- old
+ new

@@ -832,12 +832,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.visibleTransmittance.get unless layer.to_SimpleGlazing.empty? + tvis = tvis * layer.to_SimpleGlazing.get.visibleTransmittance.get unless layer.to_SimpleGlazing.empty? || layer.to_SimpleGlazing.get.visibleTransmittance.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? || layer.to_StandardGlazing.get.visibleTransmittanceatNormalIncidence.empty? end end return tvis end \ No newline at end of file