Modeling the Flowability of Granular Materials