Text this: A unified approach for static and dynamic fracture failure in solids and granular materials by a particle method