Dynamic behaviour of solids and granular materials: a force potential‐based particle method