Finite element analysis of thermomechanical coupling