A Finite Element Model to Simulate Defect Formation during Friction Stir Welding