Three Dimensional Simulation of Resistance Spot Welding