Computational Granular Dynamics