Implementation of 3d nonlinear material model in finite element code