Hybrid atomistic–continuum method for the simulation of dense fluid flows