Adds fracture mechanics to 2D FEM simulation.