Finite element coupled thermostructural analysis of composite beams