Thermodynamically consistent fluid particle model for viscoelastic flows.