Existence and uniqueness for a quasistatic frictional bilateral contact problem in thermoviscoelasticity