The finite element method for prediction of crack behavior