Simulation of damage and crack propagation in structural materials by means of a static version of peridynamics