Modeling dam break granular flows