function of ball mill with animation