A two-phase model for dry density-varying granular flows