Modelling of stratified flows in the problem of the morphological behaviour of a sandpit