Two-dimensional thermoelasticity solution for functionally graded thick beams