Erosion in extruder flows: Analytical and numerical study