The influence of flow acceleration on the stability of stones