Development of an Erosion Dynamics Model and its Application to Wells and Facilities