3D finite element analysis of tool wear in machining