Using dynamic triangulations in distinct element simulations of granular media