1 Introduction

Welding is one of the most practical techniques for assembling structures [1], such as ships, automobiles, and electronic goods [2]. For the effective design and analysis of the welding process, it is of great significance to accurately calculate the transient temperature field because the welding thermal cycles play a pivotal role in the prediction of the microstructure, residual stress, distortion, and their characteristics of welded joints [3,4,5,6].

To analyze the temperature field of a welded joint, most researchers have focused on the heat transfer during the welding process. Rosenthal [7] and Rykalin [8] were the first to use the principles of Fourier’s theory of heat flow to understand the welding heat transfer. However, the theoretical solution of the temperature field is based on the following inaccurate assumptions: the material properties are independent of temperature; there is no heat exchange between welded components and the surroundings; the heat sources are concentrated at a point, line, or plane. To rectify the above shortcomings, researchers modified the heat source models and solutions. Eagar and Tsai [9] modified the theoretical solution and proposed a Gaussian-distributed two-dimensional-surface heat source to predict the temperature of the semi-infinite weldment. Jeong and Cho [10] successfully simulated the temperature field of fillet-welded joints by considering a bivariate Gaussian source. Additionally, Goldak et al. [11] developed a three-dimensional double-ellipsoidal moving heat source model. Based on the Goldak heat source model, Sabapathy et al. [12] considered the oscillation of the burner for a better modification of the weld pool geometry. There are some differences among welding processes in terms of physical characteristics and temperature distribution of the heat input. As a result, various heat source models were established utilizing different formulations [13,14,15,16,17], which showed a good agreement with experimental data in temperature fields of welded joints.

The temperature distribution during welding can be obtained according to the partial differential equation of transient heat conduction, which is usually written as follows:

$$ \rho c\frac{\partial T}{\partial t}=\frac{\partial }{\partial x}\left(\lambda \frac{\partial T}{\partial x}\right)+\frac{\partial }{\partial y}\left(\lambda \frac{\partial T}{\partial y}\right)+\frac{\partial }{\partial z}\left(\lambda \frac{\partial T}{\partial z}\right)+Q $$
(1)

where ρ, c, T, t, λ and Q represent density (g/mm3), specific heat (J/g °C), temperature (°C), time (s), thermal conductivity (J/mm s °C), and internal heat generation rate (W/mm3), respectively. The x, y, and z coordinates represent the longitudinal, transverse, and thickness directions, respectively.

Equation (1) can be solved analytically or numerically. The analytical method can only be applied to infinitely large geometries with simple boundary and initial conditions [18], while the numerical method is suitable for various boundary conditions and can also deal with nonlinear problems. Hence, the numerical method is the most commonly used in both academic and engineering applications. The main numerical method employed for welding simulations is the finite element method. With the development of simulation technology, several methods have been developed to calculate the thermal and mechanical behavior of welded joints, including the finite difference [19], finite volume [20], meshless [21], and boundary element [22] methods.

The transient heat conduction has been determined to be a time-dependent process [23], and considerable computational power is required to solve the ordinary differential equations in the time domain. To improve the computing efficiency of transient heat conduction simulations, a novel NewtonRaphson method (NRM) and its combination with the conventional implicit method (IMP) are proposed in this study to simulate temperature field. The accuracy and efficiency in computing temperature fields of a single-pass butt-welded pipe using the proposed methods are compared to those obtained with the conventional implicit method (IMP) in the commercial software ABAQUS. In addition, the computed temperature fields are compared to those obtained from experimental measurement. Furthermore, the proposed method is applied to predicting the thermal cycles of elongated weld in corner boxing fillet–welded joint.

2 Galerkin finite element method for three-dimensional temperature fields

The finite element formulations of three-dimensional temperature fields can be obtained using the Galerkin’s weighted residual method. The derivation of the finite element formulations has been demonstrated in several studies, so it is only briefly discussed in this paper.

The boundary conditions associated with Eq. (1) are listed as follows

$$ T=\overline{T}, on{S}_1 $$
(2)
$$ -\left(\mathbf{k}\cdot \nabla T\right)\cdot \overline{n}=\overline{q}, on{S}_2 $$
(3)
$$ \left(\mathbf{k}\cdot \nabla T\right)\cdot \overline{n}=h\left({T}_a-T\right), on{S}_3 $$
(4)

where k is tensor matrix of the thermal conductivity; ∇ is the gradient operator, \( \nabla =\frac{\partial }{\partial x}\overline{i}+\frac{\partial }{\partial y}\overline{j}+\frac{\partial }{\partial z}\overline{k} \). \( \overline{n} \) is normal unit vector, \( \overline{n}={n}_x\overline{i}+{n}_y\overline{j}+{n}_z\overline{k} \). S1, S2, and S3 denote as the Dirichlet, Neuman, and Robin boundary conditions, respectively. The computational domain is V = S1 ∪ S2 ∪ S3, \( \overline{T} \), and \( \overline{q} \) represent the given temperature and heat flux density, h is the convection heat transfer coefficient, n denotes the unit normal vector for the surface, and Ta is the environment temperature.

Assuming that there are a total of m elements and n nodes owing to the discretization of the whole solution domain, the set of algebraic equations for Eq. (1) can be expressed as follows:

$$ \left[K\right]\left\{T\right\}+\left[C\right]\left\{\frac{\partial T}{\partial t}\right\}=\left\{P\right\}, $$
(5)
$$ \left[K\right]=\sum {\left[K\right]}^e, $$
(5.1)
$$ \left[C\right]=\sum {\left[C\right]}^e, $$
(5.2)
$$ \left\{P\right\}=\sum {\left\{P\right\}}^e, $$
(5.3)
$$ {\left[K\right]}^e=\underset{V^{\mathrm{e}}}{\iiint }{\left[B\right]}^{\mathrm{T}}\left[D\right]\left[B\right]\mathrm{d}v+\underset{S^{\mathrm{e}}}{\iint }h{\left[N\right]}^{\mathrm{T}}\left[N\right]\mathrm{d}s, $$
(5.1.1)
$$ {\left[C\right]}^e=\underset{V^{\mathrm{e}}}{\iint}\rho \mathrm{c}{\left[N\right]}^{\mathrm{T}}\left[N\right]\mathrm{d}v $$
(5.2.1)
$$ {\left[p\right]}^e=\underset{V^{\mathrm{e}}}{\iiint }Q{\left[N\right]}^{\mathrm{T}}\mathrm{d}v+\underset{S^{\mathrm{e}}}{\iint }{hT}_{\mathrm{a}}{\left[N\right]}^{\mathrm{T}}\mathrm{d}s, $$
(5.3.1)
$$ \left[B\right]=\left[\begin{array}{cccc}\frac{\partial {N}_1}{\partial x}& \frac{\partial {N}_2}{\partial x}& \dots & \frac{\partial {N}_n}{\partial x}\\ {}\frac{\partial {N}_1}{\partial y}& \frac{\partial {N}_2}{\partial y}& \dots & \frac{\partial {N}_n}{\partial y}\\ {}\frac{\partial {N}_1}{\partial z}& \frac{\partial {N}_2}{\partial z}& \dots & \frac{\partial {N}_n}{\partial z}\end{array}\right], $$
(5.1.1a)
$$ \left[D\right]=\left[\begin{array}{ccc}\lambda & 0& 0\\ {}0& \lambda & 0\\ {}0& 0& \lambda \end{array}\right], $$
(5.1.1b)
$$ \left[N\right]=\left[{N}_1{N}_2\dots {N}_n\right], $$
(5.1.1c)

where [K], [C], and {P} are the stiffness, heat capacity, and heat flux matrixes, respectively; and [K]e, [C]e, and {P}e are the corresponding elements; [N] is the shape function; Ve is the element volume; Se is the exterior boundary.

In the three-dimensional temperature field, the variable temperature T(x, y, z, t) is a function of space and time. Accordingly, the spatially discretized formulation with time differential elements ∂T/∂t (Eq. (5)) can be discretized suing the difference method as follows:

$$ \theta {\left\{\partial T/\partial t\right\}}_{t+\Delta t}+\left(1-\theta \right)\left(\partial T/\partial t\right)=\left({T}_{t+\Delta t}-{T}_t\right)/\Delta t $$
(6)

where Δt is the time step, and θ ∈ [0, 1] is the weighting factor; with θ = 0, 0.5, 2/3, and 1, Eq. (6) corresponds to the forward Euler difference, Crank–Nicolson, Galerkin, and backward Euler methods, respectively [24]. In this study, we use the Galerkin difference method.

By substituting Eq. (6) into Eq. (5), we obtain the following equations:

$$ \left[A\right]{\left\{T\right\}}_{t+\Lambda t}=\left\{Q\right\}, $$
(7)
$$ \left[A\right]=\left(\frac{2}{3}\left[K\right]+\frac{1}{\varDelta t}\left[C\right]\right), $$
(7.1)
$$ \left\{Q\right\}=\left(-\frac{1}{3}\left[K\right]+\frac{1}{\varDelta t}\left[C\right]\right){\left\{T\right\}}_t+\frac{2}{3}{\left\{P\right\}}_{t+\Lambda t}+\frac{1}{3}{\left\{P\right\}}_t. $$
(7.2)

Given the time level t + Δt, the temperature {T}t + Λt at all nodes can be computed as follows:

$$ {\left\{T\right\}}_{t+\varDelta t}={\left[A\right]}^{-1}\left\{Q\right\}. $$
(8)

With the above equation, corresponding to the conventional IMP, the three-dimensional temperature field can be easily obtained, but the computation can be time-consuming owing to the computation of the inverse matrix [A]−1. Furthermore, if many degrees of freedom need to be analyzed, e.g., in the order of millions or more, a large amount of memory is also required, making a personal computer insufficient for many simulations.

3 Newton–Raphson method for computing the welding thermal conduction

To efficiently compute the transient temperature field due to the thermal conduction of the welded joint, a novel solving method based on the NewtonRaphson scheme is proposed. The computed temperature \( {\left\{T\right\}}_{t+\Lambda t}^{\mathrm{cal}} \) is an approximate solution, and the residual error can be written as follows:

$$ \left\{\Delta F\right\}=\left\{Q\right\}-\left[A\right]{\left\{T\right\}}_{t+\Delta t}^{\mathrm{cal}}, $$
(9)
$$ {\left\{T\right\}}_{t+\Lambda t}^{\mathrm{cal}}={\left[A\right]}^{-1}\left\{Q\right\}. $$
(9.1)

Therefore, reducing the residual error results in a large difference in the simulation results. Here, a function related to the residual error is proposed as follows:

$$ {B}_i\left(\left\{T\right\}\right)={Q}_i-\sum \limits_{k=1}^{NF}{A}_{i,k}{T}_k,k=1,2,\dots, n, $$
(10)

where Qi is an element of the heat flow matrix {Q}n × 1, Ai, k is an element of the ith row vector of the conductivity matrix [A]n × n, Tk is the nodal temperature, and NF is the number of nodes with unknown temperature.

The purpose of our analysis is to make each residual error term Bi({T}) in Eq. (10) converge to zero, i.e., to solve the nonlinear algebraic equation Bi({T}) = 0. To this end, we differentiate Eq. (10) and obtain

$$ \frac{\partial B\left(\left\{T\right\}\right)}{\partial {T}_i}=-{a}_{ii}\left(i\mathrm{th}\mathrm{diagonal}\ \mathrm{term}\ \mathrm{of}\ \mathrm{matrix}{\left[A\right]}_{n\times n}\right). $$
(11)

Subsequently, the modified NRM is applied to the nonlinear equation to seek the most reliable solution; each nodal temperature can be expressed as follows:

$$ {T}_i^{N+1}={T}_i^N-\mu \frac{B_i\left(\left\{{T}^N\right\}\right)}{a_{ii}}, $$
(12)

where μ is the correction factor.

Only the diagonal components aii of the matrix [A] are employed to compute the temperature field. Therefore, there is no need to save the full components of matrix [A] or to solve the inverse matrix [A]−1, making the proposed method more efficient in terms of computing memory and power consumption.

Figure 1 shows flow charts of the IMP and NRM with the following parameters:

$$ \left\{\varDelta {Q}_N\right\}=\left\{{Q}_1\right\}-\left[A\right]{\left\{T\right\}}^N, $$
(13)
$$ \raisebox{1ex}{$\left\Vert \left\{\varDelta {Q}_N\right\}\right\Vert $}\!\left/ \!\raisebox{-1ex}{$\left\Vert \left\{{Q}_1\right\}\right\Vert $}\right.< tolaa, $$
(14)
Fig. 1
figure 1

Flowchart of the (a) IMP and (b) NRM

where {Q1} is the heat flux vector at first iteration; {T}N is the temperature matrix at the Nth iteration; {ΔQN} is the residual vector at the Nth iteration; ‖{Q1}‖ is the norm of the heat flux vector, whose value is \( \left\Vert \left\{{Q}_1\right\}\right\Vert =\sqrt{\sum_{k=1}^{NJ}{\left({Q}_{1,k}\right)}^2} \); ‖{ΔQN}‖ is the norm of the residual vector at the Nth iteration, whose value is \( \left\Vert \left\{\varDelta {Q}_N\right\}\right\Vert =\sqrt{\sum_{k=1}^{\mathrm{NJ}}{\left(\varDelta {Q}_{N,k}\right)}^2} \); tolaa is the computational tolerance; and NJ is the number of nodes with unknown temperature.

The hybrid method is the combination of the IMP and NRM, as discussed later. Generally, for a higher computing efficiency, the NRM with small time steps is used for the welding heating process, while the IMP with large time steps is used for the cooling process.

4 Verification of the Newton–Raphson method

4.1 Comparison of accuracy and computing time with commercial software

To highlight the advantages of the newly proposed hybrid method, accuracy and computing time between in-house software JWRIAN and commercial software ABAQUS were compared firstly. Here, a pipe-welded joint was modeled by a total of 432,000 solid elements and 577,152 nodes, as shown in Fig. 2. The time step used in both heating process during welding and cooling process after welding was 0.1 s. Both computations were performed in the same computer m-Book K690XN-M2SH2 (Core i7/16GB memory) with 4 cores. Additionally, the arc welding current, voltage, and speed for the butt-welded joint of the pipe were 80 A, 15 V, and 2.5 mm/s, respectively. In the thermal conduction simulation, it was assumed that 80% of welding energy is transferred to the welded joint. Figure 3 shows the temperature-dependent thermal properties of DP590 steel obtained experimentally. The density is assumed to be 7850 kg/m3 independently of the temperature. In addition, the room temperature and heat transfer coefficient are set to 20 °C and 10 W/m2K, respectively.

Fig. 2
figure 2

Schematic of the butt-welded joint of the pipe

Fig. 3
figure 3

Thermal properties of DP590 steel

Figure 4 shows the computing times of the proposed hybrid method in the software JWRIAN and IMP method in ABAQUS. Evidently, there exists a large difference in computing time between these two methods. The total computing time of the ABAQUS is about 4.5 times longer than that of the JWRIAN. Specifically, the main difference between these two software is the computing time needed for heating process. The hybrid method using the NRM method in heating process accelerates the computation to a great extent, fully highlighting the advantage of the newly developed method. Additionally, Fig. 5 shows the thermal cycles of specified nodes computed with JWRIAN and ABAQUS. It can be seen that the welding thermal cycles of the three specified nodes computed with JWRIAN and ABAQUS are the same. Figure 6 a and b show the temperature distribution comparison using JWRIAN and ABAQUS, respectively. The overall distributions are the same. The maximum temperatures are 1835 and 1838 °C, respectively, indicating little difference between the two software and confirming the high accuracy of JWRIAN.

Fig. 4
figure 4

Comparison of computing time using different software

Fig. 5
figure 5

Thermal cycles of specific nodes computed using the different software: (ac) point 1–3, respectively; (d) positions of specified nodes

Fig. 6
figure 6

Comparison of the temperature distribution computed with different software: (a) JWRIAN; (b) ABAQUS

4.2 Comparison of computing time and accuracy of different methods and models

Today, the IMP (Eq. (5)) is the most common method in computing welding thermal conduction. However, the hybrid method as revealed in the above section is superior to the IMP method in terms of computing efficiency. Here, the relationship between unknown freedoms of models (numbers of nodes) and computing time was investigated for quantitative verification of the computing efficiency of the NRM, IMP, and their hybrid methods. The butt-welded joint of the pipe shown in Fig. 2 was used again for computation using the in-house software JWRIAN. In addition, six types of simulation models with different numbers of nodes (type Hexa8 element) are presented in Table 1. The time step used in heating process was 0.1 s and the time step used in the cooling process was 0.5, 0.1, and 0.5 s, respectively for the IMP, NRM, and hybrid methods. The computations were performed in the same computer Dell Precision 5820 (Xeon W-2145/32GB memory) with 4 cores. The welding parameters and material properties for the butt-welded joint of the pipe were set as the same as that defined in the above section.

Table 1 Simulation models

Figure 7 a shows the simulation results. From the figure, it can be seen that the computing time of both methods increases with the number of nodes. In addition, when the number of nodes in the simulation model is lower than 235,000, the results of the two methods are similar. However, as the number of nodes increases further, the computing time of the IMP develops a parabolic trend, unlike the NRM. For the large-scale model with 577,152 nodes, the computing time of the NRM is approximately 18.8% shorter than that of the IMP, and the computing time of the hybrid method is 19.7% and 34.8% shorter than those of the NRM and IMP.

Fig. 7
figure 7

Comparison of computing time among the different methods: (a) total computing time; (b) computing time for heating and cooling processes of solid model-6

Generally, the IMP is suitable for a time-consuming simulation of a physical phenomenon because a large time increment is acceptable [25]. In the NRM, the initial iteration may deviate from the solution with a large time increment. Therefore, small-time increments are often adopted to ensure the robustness of the NRM [26]. Interestingly, as shown in Fig. 7b, the simulation results of model-6 confirm the advantages and disadvantages of the IMP and NRM. Hence, the hybrid method was proposed to combine the advantages of the short-time heating process of the NRM and the long-time cooling process with the IMP to analyze the heat conduction in welded joints. The results of the hybrid method are also shown in Fig. 7, which confirms that the hybrid method can accelerate the computation by a considerable amount.

To verify the accuracy of the proposed methods, the thermal cycles of five specified nodes of model-6 were computed with the different computational methods, and the results were compared. As shown in Fig. 8, the thermal cycles of the three specified nodes computed with the three computational methods during heating process are very similar. It is worth noting that the thermal cycles computed with the hybrid method closely follow the trend of those computed with the IMP and NRM. Figure 9 compares the maximum temperature of the model-6 obtained with the three methods. The maximum temperature obtained using the IMP, NRM, and hybrid method is 1822, 1835, and 1835 °C, respectively, indicating little difference among the three methods and confirming their high accuracy.

Fig. 8
figure 8

Thermal cycles of specific nodes of model-6 computed using the different methods: (ac) point 1–3, respectively; (d) positions of specified nodes

Fig. 9
figure 9

Comparison of the temperature distribution of model-6 computed with the three methods: (a) IMP; (b) NRM; (c) hybrid method

5 Analysis of welding thermal cycles in practical welded joint using hybrid method

5.1 Multipass butt welding

The microstructural evolution, mechanical properties, and residual stress in the welds and heat-affected zones of multipass-welded joint are strongly affected by welding thermal cycle and material properties of base metal. Therefore, it is meaningful and necessary to accurately compute the welding thermal cycles in welded joints. Figure 10 displays a multipass butt weld and its three-dimensional finite element model [27] for welding thermal conduction analysis using the hybrid method. In addition, measurements of the temperature field in the welded joint were experimentally conducted to validate the computed results. The welding parameters for the butt-welded joint were set as follows: a current of 220 A, voltage of 26 V, welding speed of 3.3 mm/s, and thermal efficiency of 0.85. The room temperature in performing this experiment is 12 °C. Figure 11 shows the temperature-dependent thermal properties of the SM490 steel and heat transfer coefficient. The density is assumed to be 7850 kg/m3 at all temperatures, and the melting point of the welded components is set to 1450 °C.

Fig. 10
figure 10

Schematic of the welding model

Fig. 11
figure 11

Thermal properties for welding simulation: (a) thermal conductivity and specific heat; (b) heat transfer coefficient

The thermal cycles during the first pass welding at two positions were measured by a thermocouple, as shown in Fig. 12a. Figure 12b shows the simulated and measured thermal cycles at the two positions during the first pass welding. It can be seen that the computed and measured thermal cycles agree well, demonstrating the high accuracy of the results of the hybrid method.

Fig. 12
figure 12

Measured positions and thermal cycles in the first pass welding

As shown in Fig. 13, the shape of the computed molten zone and the experimental weld cross sections are consistent. This indicates that the hybrid method is efficient and accurate for welding thermal conduction analysis.

Fig. 13
figure 13

Comparison of weld pool shape: (a) measured molten zone; (b) computed molten zone

5.2 Thermal cycles in elongated weld with low transformation temperature welding material

It is well-known that tensile welding residual stress is detrimental to the fatigue strength of welded joint [28, 29]. To minimize the unfavorable tensile stress, the low transformation temperature (LTT) alloys, which take advantage of martensitic transformation, have been developed during the past two decades [30,31,32]. Furthermore, it has been investigated that an elongated weld method overlaying LTT weld metal on the corner boxing fillet–welded joints can greatly enhance fatigue lives to at least 4 times [33]. In practice, both the martensite start (Ms) temperature of LTT alloys and interpass temperature during welding process strongly affect the residual stress development in multipass-welded joints, which has been verified by a number of studies [34,35,36]. Generally speaking, much beneficial compressive residual stress will be left in the weld zone if its temperature during welding can be controlled above the Ms temperature. Since welding processes can greatly affect the temperature distribution and welding thermal cycles in both the molten zone and heat-affected zone, it is necessary to predict the thermal cycles of the LTT bead before practical welding. Figure 14 shows the half model of corner boxing fillet–welded joint, where the mesh size around weld zone is 2 mm. The welding parameters for the LTT welds were set as follows: a current of 200 A, voltage of 32 V, swing speed of 12 mm/s, and thermal efficiency of 0.85. The total welding time is 33 s. The density is assumed to be 7500 kg/m3 at all temperatures, while the other thermal properties like thermal conductivity and specific heat are shows in Fig. 15. The root temperature is set to 25 °C, while the heat transfer coefficient is the same as that shown in Fig. 11b. In addition, the melting point and Ms temperature of LTT weld metal are 1450 °C and 200 °C, respectively.

Fig. 14
figure 14

Schematic of half model of corner boxing fillet–welded joint

Fig. 15
figure 15

Thermal properties of LTT weld metal

Figure 16 shows the temperature distributions of welded joints with different welding directions before cooling process. It can be seen in Fig. 16a that the temperature of the whole LTT weld exceeds the Ms temperature (200 °C) in the downward welding. Conversely, as displayed in Fig. 16b, the temperature at the front LTT weld toe is lower than the Ms temperature in the upward welding. Furthermore, the thermal cycles of LTT passes shown in Fig. 17 also demonstrate that heat dissipation is faster in the welded joint with upward welding compared to that using downward welding. This suggests that downward welding is more suitable for the fabrication of LTT weld using the same welding parameters. On the other hand, large heat input should be used in the upward welding.

Fig. 16
figure 16

Temperature distributions of welded joints before cooling process: (a) downward welding; (b) upward welding

Fig. 17
figure 17

Thermal cycles of LTT passes: (a and b) downward welding; (c and d) upward welding

6 Conclusions

To efficiently analyze welding thermal conduction, a novel NRM and a hybrid method combining the NRM and the conventional IMP were developed. Additionally, the computing time and accuracy obtained with the hybrid method were compared with those computed with the IMP using the commercial software ABAQUS. Furthermore, the newly developed hybrid method was applied to the analysis of welding thermal cycles in practical welded joints. Based on the analyses, the following conclusions can be drawn:

  1. 1.

    The computing speed of the hybrid method was about 4.5 times faster than that computed with the IMP using the commercial software ABAQUS.

  2. 2.

    Compared with the IMP, the NRM can significantly accelerate the computing speed while ensuring high accuracy; this is because the NRM does not require the calculation of the inverse matrix.

  3. 3.

    By combining the advantages of the IMP and NRM, the hybrid method can further shorten the computing time while ensuring high accuracy.

  4. 4.

    The thermal cycles computed by the hybrid method were in good agreement with the experimentally measured ones, indicating the high accuracy of the hybrid method.

  5. 5.

    The thermal cycles of elongated LTT weld computed by the hybrid method indicated that the temperature in all weld zone due to downward welding was higher than the Ms temperature, which was a necessary condition for generation of compressive residual stress.