A contact problem for a thermoelastic Timoshenko beam