Numerical Simulation of Time-Dependent Contact and Friction Problems in Rigid Body Mechanics | Synapse