A simulation of erosion using a "virtual pipes" model