Simulation of the direct shear test.