Simulation of a pile of sand, algorithm used in the study of flow and avalanche.