Simulation of thermomechanical contact problems