Modeling viscoelastic flow with discrete methods