A continuum lagrangian finite deformation computational framework for modeling granular flows