The heat for electric resistance spot welding is obtained by
passing a large electric current through workpieces which have
electric resistance in the domain and contact surfaces. The
amount of heat generation per unit volume can be calculated by
the electric potential in the domain and then it can be applied to
the heat transfer equation to calculate the temperature
distribution in the electrode and workpieces.