Numerical simulation and finite element method