EN
In this work we numerically modelled a periodic magnetic flux pattern which qualitatively reproduces the so-called sand avalanches scenario in type-II superconductors. To model these sand-pile patterns we consider a perturbation on the critical current which, as a first approximation, follows a periodic function which depends on the position.