On the numerical simulation of sand transport in liquid and multiphase pipelines