Numerical methods and constitutive modelling in geomechanics