Why does flowing granular material (e.g., sand or powder) suddenly arrest or clog, and what conditions lead static granular material to begin to flow? These questions are nearly impossible to answer without using large-scale, grain-based computer simulations, which rely on several clever algorithms.