Prediction of Residual Stresses in a Multipass Pipe Weld by a Novel 3D Finite Element Approach