Numerical models in geomechanics