Introduction of the finite element and constitutive modeling in geomechanics