Debris-flow dynamics