An energy-based peridynamic model for fatigue cracking