A shallow constitutive law-based granular flow model for avalanches