Next Article in Journal
A Study to Identify Long-Term Care Insurance Using Advanced Intelligent RST Hybrid Models with Two-Stage Performance Evaluation
Previous Article in Journal
Prognostics and Health Management of Rotating Machinery of Industrial Robot with Deep Learning Applications—A Review
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Numerical Solution of Thermal Phenomena in Welding Problems

Departamento de Ingenieria Energetica, E.T.S. Ingenieros Industriales, Universidad Politecnica de Madrid, 28006 Madrid, Spain
*
Author to whom correspondence should be addressed.
These authors contributed equally to this work.
Mathematics 2023, 11(13), 3009; https://doi.org/10.3390/math11133009
Submission received: 6 June 2023 / Revised: 29 June 2023 / Accepted: 4 July 2023 / Published: 6 July 2023

Abstract

:
We present a novel finite element method to solve the thermal variables in welding problems. The mathematical model is based on the enthalpy formulation of the energy conservation law, which is simultaneously valid for the solid, liquid, and mushy regions. Both isothermal and non-isothermal melting models are considered to relate the enthalpy with the temperature. Quadratic triangular elements with local anisotropic mesh adaptation are employed for the space discretization of the governing equation, and a second-order backward differentiation formula is employed for the time discretization. The resulting non-linear discretized system is solved with a simple Newton algorithm with two versions: the  θ -Newton algorithm, which considers the temperature as the main unknown variable, as in most works in the literature, and the h-Newton algorithm, which considers the enthalpy, which is the main novelty of the present work. Then, we show via numerical experiments that the h-Newton method is robust and converges well to the solution, both for isothermal and non-isothermal melting. However, the  θ -method can only be applied to the case of non-isothermal melting and converges only for a sufficiently large melting temperature range or sufficiently small time step. Numerical experiments also confirm that the method is able to adequately capture the discontinuities or sharp variations in the solution without the need for any kind of numerical dissipation.

1. Introduction

Welding is one of the most important industrial processes employed to join parts of complex structures due to its versatility, economic cost and technological advantages. Welding involves applying powerful heat sources, which is the principal reason for the appearance of sophisticated phenomena, such as undesirable residual stresses, deformations, porous, internal, and external cracks, and micro-defects that affect the mechanical properties of the welded metals. Due to the complexity of the process, numerical tools for the thermo-mechanical analysis of the physical variables involved are essential in order to develop new welding technologies and techniques [1].
A simplification of the welding process is characterized schematically in Figure 1. A moving heat source is applied to a solid metal plate so as to increase its temperature. When the melting temperature of the material is reached, the solid begins to melt and some areas of the plate become liquid. If the heat source continues its action, the temperature also increases in the liquid zone. In the presence of gravity, this can generate buoyancy forces, which lead to the movement of the fluid. Moreover, in this problem, the presence of a transient zone where the two phases coexist is usual. Atthey [2] was the first who observed this region by numerical calculations, and he called it the ‘mushy region’, a name widely used now. When the heat source goes out, the mushy and liquid zones solidify again.
The thermal welding process with phase change leads to the so-called two-phase Stefan problem [3]. This process is governed in the whole domain by an enthalpy formulation of the energy conservation equation [4,5,6], which relates time changes in enthalpy, h, with space changes in temperature, T. The conservation equation must be complemented with a constitutive relation between h and T, which depends on the considered model. In the case of pure metals, the transition between solid and liquid phases takes place at a constant temperature  T F  (isothermal melting model). However, in alloys, which are composed of metals with different melting temperatures, the transition occurs at a range of  [ T F , T F + Δ T ]  (non-isothermal melting model) [7].
Many methods in the literature, such as [8,9,10,11,12,13,14,15], consider a non-isothermal melting model, express h and other variables as a function of T, and solve the energy conservation equation in terms of the temperature. These are called temperature-based methods or effective specific heat methods. Their main drawback is that they cannot be applied to the isothermal melting model because some variables, such as the enthalpy or the liquid mass fraction, may take different values for the melting temperature  T F . As a remedy, enthalpy-based methods [16,17,18] pose the energy conservation equation in terms of the enthalpy, which always defines univocally the state (temperature and liquid mass fraction are single-valued functions of enthalpy) of the metal irrespective of the melting model.
In both isothermal and non-isothermal cases, the energy conservation equation is highly non-linear and usually has no analytical solution. Thus, some numerical methods are needed. For instance, the element-free Galerkin [19] and Petrov–Galerkin [20] methods, the finite volume method [8], and the finite element method [21] are employed for space–time discretization, whereas Newton-type methods [16,21] and the Bermúdez–Moreno algorithm [17,18] are employed as non-linear solvers.
In this work, we develop a finite element method to solve the energy conservation equation with phase change that governs welding problems. The non-linear discretized equations are solved with two versions of a Newton method. The first one, called the  θ -Newton algorithm, solves the energy equation considering the temperature as the main unknown variable, as conducted in most of the literature; see, e.g., [8,9,13,19,20,21]. The second one, called the h-Newton method, is the main contribution of this work and solves the energy equation considering the enthalpy as the main unknown variable [16,17,18]. The h-Newton algorithm presented here iterates directly in the enthalpy variable, and, hence, it is more simple to implement than other enthalpy-based methods, such as the Bermúdez–Moreno algorithm [17,18] (which requires to fine-tune some parameters and to compute a regularization operator) and the method by Nedjar [16] (which iterates in the temperature variable with a damped Newton iteration). We also prove via numerical experiments that the h-Newton method is much better numerically conditioned than the  θ -Newton method, both for isothermal and non-isothermal melting.
For the space discretization of the energy equation, we consider quadratic polynomials, reaching  O ( h 3 )  convergence rates for regular solutions, with  h  the mesh size. For the time discretization, we employ a BDF2 formula, reaching  O ( Δ t 2 )  convergence rates, with  Δ t  the time step, thus improving the  O ( Δ t )  convergence rates—equivalent to an implicit Euler scheme—of previous works present in the literature. Furthermore, we employ anisotropic mesh adaptation techniques [22] in order to capture the discontinuities or sharp changes in the state variables with better accuracy.
The layout of the paper is as follows. After this introduction, Section 2 presents the mathematical formulation of the problem based on the energy conservation equation. Models valid for isothermal and non-isothermal phase-change processes are derived. This section finishes introducing the dimensionless formulation of the problem as well as the most relevant non-dimensional parameters. Section 3 describes the numerical method to solve the governing equation based on the finite element method as space discretization and the BDF2 scheme as time discretization. This is presented in a local adaptative framework based on anisotropic triangles. To solve the non-linear discretized problem, we present the  X -Newton algorithm, with  X  being h—enthalpy—or  θ —temperature—depending on the main unknown (dimensionless) variable considered. Finally, in Section 4, we present the numerical results to analyze the main features of the isothermal and non-isothermal models for the mushy region, as well as the convergence of the  X -Newton algorithm.

2. Governing Equations

In this section, we present the equations that govern the welding phenomenon described in the introduction and shown schematically in Figure 1. Recall that there are three regions in the metal plate: solid, liquid, and mushy zone (where solid and liquid phases coexist). As basic hypotheses of the model, we assume:
  • Constant density  ρ  at the three regions, as in [13].
  • The intensity of the convective currents in the liquid zone is negligible; i.e., the velocity  v 0  at each material point. That is, we consider problems at low Grashof number limit  Gr 0 , so there is no motion caused by the buoyancy forces. Otherwise, mass and momentum equations for the fluid motion would need to be considered.
  • Radiation and evaporation are not considered in this study.
  • The equations of elasticity—which take into account deformations and stresses in the material—and electromagnetism—which model the effect of the laser-arc heat source—are not considered in this study.
  • The specific heat coefficient and the thermal conductivity depend on the state of the material but not on the temperature. Nevertheless, the present method can be easily extended to the more realistic case of temperature-dependent thermal coefficients; see Remark 3.
Under these assumptions, the metal plate is governed by the the energy conservation equation [16,18], without convective terms:
ρ h t = · ( λ T ) + Q , in Ω ,
where h is the enthalpy per unit mass, T is the temperature,  λ  is the thermal conductivity, Q is a volumetric heat source, and  Ω  is the (fixed) domain occupied by the plate. We assume that the heat source Q is produced by a hybrid laser-arc source, which is able to internally heat the material due to the Joule effect [8,9]. The initial condition corresponds to a fully solid state at ambient temperature  T = T 0 , and Dirichlet and Robin boundary conditions are defined on  Γ D  and  Γ R , respectively (with  Ω = Γ D Γ R ):
T = T 0 on Γ D , and λ T n = α ( T T 0 ) on Γ R ,
where  α  is a convective coefficient and  / n  is the normal derivative.
The enthalpy depends on the temperature and on the liquid mass fraction,  Y L , in such a way that  d h = c d T + H F d Y L , where c is the specific heat capacity and  H F  is the latent heat of fusion. For pure metals, melting takes place in welding processes at a constant temperature  T F . In the case of constant values for the latent heat of fusion,  H F , and for the specific heat coefficients at the solid and liquid regions,  c S  and  c L , respectively, the relation between enthalpy and temperature is given by
h h ( T ) = c S ( T T 0 ) , T < T F , [ h S , h L ] , T = T F , h L + c L ( T T F ) , T > T F ,
with  h S = c S ( T F T 0 )  and  h L = h S + H F  the enthalpies of the solid and liquid regions at the melting temperature  T F , respectively. Note the choice  h ( T 0 ) = 0 . Above, the notation  h [ h S , h L ]  means that h may take any value in this interval. That is, the function  h ( T )  is multi-valued at  T = T F , and, hence, the state of the metal is not univocally defined by the temperature. This makes it impossible to numerically solve (1) and (2) with isothermal model (3) in terms of the temperature. However, the inverse function  T = T ( h )  is single-valued; hence, it is possible to solve these equations in terms of the enthalpy.
On the other hand, many references assume that the material is an alloy, a mixture of metals with different melting temperatures, and therefore the phase change takes place in a range of temperatures  [ T F , T F + Δ T ] . In these non-isothermal melting processes, the enthalpy can be written as a single-valued function in terms of the temperature, i.e.,  d h = [ c + H F d Y L / d T ] d T , or shortly as  d h = c eff d T , where  c eff = c + H F d Y L / d T  is the effective heat capacity, which includes the heat released during the melting process; see, e.g., [8,9,13]. In this paper, we consider:
h = h ( T ) = c S ( T T 0 ) , T T F , h S + H F Δ T ( T T F ) , T F < T < T F + Δ T , h L + c L ( T T F ) , T T F .
Note that  h ( T F + Δ T ) = h ( T F ) + H F , so non-isothermal melting model (4) requires the same energy as isothermal melting model (3) for the change in phase, and both models are equivalent if  Δ T = 0 . Now, the enthalpy is a single-valued function of the temperature, so, in principle, this model makes possible to employ this variable to solve Equations (1) and (2), as conducted in many research papers. Nevertheless, we can see that the temperature variation required for the change in phase may be small, whereas the enthalpy variation is not. This makes Equations (1) and (2) numerically better conditioned when solved by setting the enthalpy as main unknown variable than by setting the temperature, as will be shown in the numerical experiments.
Whenever we employ models (3) or (4), the thermal conductivity takes the form:
λ = λ ( T ) = λ S , T T F , λ S + ( λ L λ S ) T T F Δ T , T F < T < T F + Δ T , λ L , T T F + Δ T ,
making the diffusion term in (1) non-linear. To manipulate this non-linearity, we use Kirchhoff transformation [23], which consists of defining a new variable u such that
d u = λ ( T ) d T , u ( T 0 ) = 0 .
In that case, (1) and (2) read:
ρ h t = Δ u + Q in Ω ,
T | t = 0 = T 0 in Ω ,
T = T 0 on Γ D ,
u n = α ( T T 0 ) on Γ R .
Remark 1. 
For physical reasons, T is continuous in Ω, and, hence, so is Kirchhoff’s variable u. On the other hand, due to the changes in phase, h, λ, and  Y L  may present discontinuities (isothermal melting model) or very sharp variations (non-isothermal melting model).

Non-Dimensional Formulation

To have a better understanding of the physical phenomenon, it is always convenient to formulate the problem in a non-dimensional form. In this way, we can evaluate the order of magnitude of each term in the equations and see which are the relevant (non-dimensional) parameters that characterize the problem. The non-dimensional variables are denoted with the asterisk ( * ) symbol and defined as
x * = x L 0 , t * = U 0 L 0 t , θ = T T 0 T F T 0 , u * = u λ S ( T F T 0 ) , h * = h c S ( T F T 0 ) , Q * = Q L 0 ρ c S ( T F T 0 ) U 0 ,
where  L 0  is a characteristic length (i.e., that of the longest boundary) and  U 0  is a characteristic velocity (i.e., that of the moving source). With the definitions established in (11), (7)–(10) are written in the following dimensionless form:
h * t * = 1 Pe Δ * u * + Q * in Ω ,
θ | t * = 0 = 0 in Ω ,
θ = 0 on Γ D ,
u * n * = Nu θ on Γ R ,
where the Péclet and Nusselt numbers are defined as
Pe = ρ c S L 0 U 0 λ S , Nu = α L 0 λ S .
Two more dimensionless numbers have transcendental importance in thermal processes involving a change in phase: the Stefan number, Ste, defined as the ratio of the sensible heat and latent heat at solid, and the dimensionless temperature width,  Δ T * , at which the phase change takes place; that is:
Ste = c S ( T F T 0 ) H F , Δ T * = Δ T T F T 0 .
With the definitions above and (4) and (5), the (dimensionless) enthalpy,  h * , and Kirchhoff variable,  u * , read in terms of  θ  as
h * ( θ ) , u * ( θ ) = θ , θ , θ 1 , 1 + θ 1 Ste Δ T * , 1 + θ 1 1 + λ L λ S 1 2 Δ T * ( θ 1 ) , 1 < θ < 1 + Δ T * , 1 + 1 Ste + c L c S θ 1 Δ T * , λ L λ S θ 1 + 1 Δ T * 2 λ L λ S 1 , θ 1 + Δ T * .
We note that expressions in (18) are valid for isothermal and non-isothermal phase change processes, but, in the first case (in which  Δ T * = 0 ), the definition of  h * ( θ ) degenerates into a multi-valued function. However, the inverse of the enthalpy function,  θ ( h * ) , can be easily defined, and, therefore, also  u * ( h * ) . The corresponding expressions are given by:
θ ( h * ) , u * ( h * ) = h * , h * , h * 1 , 1 + Ste Δ T * h * 1 , 1 + Ste Δ T * h * 1 1 + λ L λ S 1 2 Ste h * 1 , 1 < h * < 1 + 1 Ste , h * 1 1 Ste c S c L + 1 + Δ T * , 1 + Δ T * 2 λ L λ S + 1 + λ L λ S c S c L h * 1 1 Ste , h * 1 + 1 Ste .
Now, the expressions in (19) do not degenerate; i.e., the functions  θ ( h * )  and  u * ( h * )  are single-valued even if  Δ T * = 0 . This property makes non-linear (12) numerically better conditioned when solved (via, e.g., a Newton method) considering the enthalpy as main unknown variable.
Moreover, the mass fraction of liquid  Y L  can also be defined in terms of the enthalpy and does not depend on  Δ T * . Although it does not appear in this formulation, it can be used to visualize the free surfaces that separate the mushy region from the solid phase ( Y L = 0 ) and the mushy region from the liquid phase ( Y L = 1 ).
Y L ( h * ) = 0 , h * 1 , ( h * 1 ) Ste , 1 < h * < 1 + 1 Ste , 1 , h * 1 + 1 Ste .
The expression above is valid for isothermal and non-isothermal phase-change processes.
From now on, we drop the asterisk ( * ) symbol so as not to overload the notation, and all the variables that appear will be dimensionless unless otherwise stated.
It should be pointed out that the present thermal model also applies when there is a thermal shock. For that purpose, the heat source must be described by means of a hyperbolic tangent or a similar mathematical function in order to force a sudden change in the temperature. However, in order to find the mechanical stresses due to thermal effects and strain, it would be necessary to complement the thermal model with the equations of elasticity.

3. Numerical Discretization of the Problem

Once the mathematical model has been formulated, we design an algorithm based on a second-order time-marching scheme in combination with second-order local adaptative finite element discretization in space. More specifically, we first split the time interval of integration  [ 0 , t f ]  into subintervals  [ t n 1 , t n ]  of constant length  Δ t = t n t n 1 . Then, we discretize (12) with a BDF2 formula:
3 h n 4 h n 1 + h n 2 2 Δ t = 1 Pe Δ u n + Q n , in Ω ,
for  n = 2 , , N t , with  N t Δ t = t f . At each time level  t n , the domain  Ω  is partitioned into a triangular mesh  T h n , to which we associate the conforming finite element space
V h 0 n = { φ h C 0 ( R 2 ) : φ h | K P 2 ( K ) , K T h n and φ h | Γ D = 0 } ,
where  P 2 ( K )  is the space of quadratic polynomials on an element K. That is,  V h 0 n  is the space of continuous and quadratic polynomials (defined piecewise at the mesh elements) that vanish at the Dirichlet boundary  Γ D . Note from (14) and (18) that h θ , and u also vanish at  Γ D . Hence, we can approximate these variables as
h h n ( x ) = i = 1 N n h i n φ i ( x ) , θ h n ( x ) = i = 1 N n θ i n φ i ( x ) , and u h n ( x ) = i = 1 N n u i n φ i ( x ) ,
where  N n  is the number of mesh nodes (excluding those at  Γ D ),  h i n θ i n , and  u i n  are the values of  h n θ n , and  u n  at these nodes, and  φ i ( x )  are the corresponding Lagrangian basis functions.
With the considerations above, (21) reads in weak form as
3 Ω h h n φ h d x + 2 Δ t Pe Ω u h n · φ h d x + 2 Δ t Nu Pe Γ R θ h n φ h d s = = Ω 2 Δ t Q n φ h d x + Ω ( 4 h h n 1 h h n 2 ) φ h d x , φ h V h 0 n .
(24) can be rewritten in matrix form to simplify the notation:
3 M h n + 2 Δ t Pe K u n + 2 Δ t Nu Pe M Γ R θ n = f n ,
where the bold variables are vectors or matrices whose elements are defined by:
M i j = ( φ i , φ j ) Ω , K i j = ( φ i , φ j ) Ω , M Γ R i j = ( φ i , φ j ) Γ R f i n = ( 2 Δ t Q n + 4 h h n 1 h h n 2 , φ i ) Ω ,
and with  ( · , · )  the standard scalar product in the  L 2  norm. Note that, due to the introduction of Kirchhoff’s variable (6), the stiffness matrix is constant (whenever the mesh remains fixed), which greatly simplifies the solution algorithm.

3.1. The  X -Newton Algorithm

System (25) defines a non-linear problem due to the relations between the unknown variables of the problem  h i n θ i n , and  u i n . To approach its resolution, here, we have employed a Newton algorithm. We consider two versions of the latter. In the first one, the  θ -Newton algorithm, we set the (nodal) temperatures  θ i n  as main unknowns and evaluate  h i n  and  u i n  via (18). In the second, the h-Newton algorithm, we set the (nodal) enthalpies  h i n  as main unknowns and evaluate  θ i n  and  u i n  via (19). As both versions are formally identical, we introduce an abstract variable  X , which denotes  θ  or h depending on the case, and we call the method the  X -Newton algorithm.
Let  X k n  denote the vector of unknowns at the kth iteration. The residual and Jacobian of (25) are:
b k n = 3 M h k n + 2 Δ t Pe K u k n + 2 Δ t Nu Pe M Γ R θ k n f n , J k n = 3 M D k h + 2 Δ t Pe K D k u + 2 Δ t Nu Pe M Γ R D k θ .
where  h k , i n = h ( X k , i n ) θ k , i n = θ ( X k , i n ) u k , i n = u ( X k , i n )  are evaluated via (18) or (19);  D k ϕ  (with  ϕ  denoting h θ , or u) is the diagonal matrix
D k , i j ϕ = d ϕ d X X k , i n δ i j ,
δ i j  is the Kronecker delta, and the derivatives  d ϕ / d X  are easily computed from expressions (18) or (19). Then, the value of  X k + 1 n  at the next iteration  k + 1  is given by solving
J k n Δ X k + 1 n = b k n , X k + 1 n = X k n + Δ X k + 1 n .
The iterations are stopped when the norm of  Δ X k + 1 n  is under a tolerance of  10 10 .
Remark 2. 
The Jacobian has to be evaluated at each iteration. However, since the finite element matrices  M K M Γ R  are constant, and only the diagonal matrices  D k ϕ  need to be recomputed, this is not an expensive operation.
Remark 3. 
Relations (19) are built upon the major assumption that the specific heat and thermal conductivity do not depend on the temperature. However, in more realistic cases, this assumption is not true, and there is no analytical expression for the relations  θ ( h )  and  u ( h )  required by the h-Newton method. Instead, one disposes of analytical (non-linear) expressions for  h ( θ )  and  u ( θ ) , e.g., the NASA polynomials [24]. In these cases, it is straightforward to obtain θ from h (and hence also u from h) by solving the equation  h = h ( θ ) , e.g., with the aid of a Newton algorithm. Since the function  h ( θ )  is piecewise monotone and smooth, the cost of this operation should be negligible. On the other hand, the matrices  D k θ  and  D k u  defined by (27) can be readily calculated in the h-Newton algorithm as
D k , i j θ = d θ d h h k , i n δ i j = d h d θ θ k , i n 1 δ i j , and D k , i j u = d u d h h k , i n δ i j = d u d θ θ k , i n d h d θ θ k , i n 1 δ i j .
We note that, although there is no analytical expression, the function  θ ( h )  is single-valued, and, therefore,  d θ / d h h k , i n = d h / d θ θ k , i n 1  is finite.

3.2. Mesh Refinement

To conclude with the section dedicated to the discretization and numerical resolution of the equations, we provide a brief description of the local anisotropic mesh refinement technique employed here; the reader is referred to [22] for more details. With this technique, we define at each time level  t n  a mesh triangulation  T h n  so that the solution is computed within a given accuracy employing the minimum possible number of degrees of freedom (mesh nodes).
As shown in Figure 2, an anisotropic element K can be defined by the semiaxes lengths  λ 1 , K λ 2 , K  of the circumscribed ellipse E, and by the corresponding orthogonal directions  r 1 , K  and  r 2 , K . The element size is  | K | = 3 3 / 4 λ 1 , K λ 2 , K , and the aspect ratio is defined as  s K = λ 1 , K / λ 2 , K . In order to employ an automatic mesh generator, we must define a metric tensor  M K  such that
M K = | K ^ | | K | 2 R K S K 1 R K T ,
with  R K = r 1 , K , r 2 , K S K = diag s K , 1 / s k  and  | K ^ |  the size of the generated element when  M K  is the unity tensor. The latter parameter depends on the specific mesh generator; in this work, we employ BAMG [25], for which  | K ^ | = 3 / 4 .
The optimal orientation  R K *  and shape  S K *  of the element K can be computed from the Hessian matrix  H K  of the solution  h h n . More specifically, if  g i , K  are the eigenvalues (with  | g 1 , K | < | g 2 , K | ) and  l i , K  are the corresponding eigenvectors, we obtain:
s K * = | g 2 , K | / | g 1 , K | 1 / 2 , r i , K * = l i , K , for i = 1 , 2 .
Finally, the optimal size  K *  for each element K is computed so as to minimize the number of mesh elements under a condition of the form  η n = K ( η K n ) 2 1 / 2 Tol , where  η K  is an estimation of the error on K. In particular,
η K n = K h n Π h 1 h n 2 d x 1 / 2 ,
with  Π h 1 h n  being the continuous, piecewise linear interpolation of  h n  at the mesh vertices, and
K * = K Tol 2 K T h n η K n 1 / 2 1 / 3 η K n 1 / 2 .
The variables  | K * | R K * , and  S K *  define a metric tensor  M *  via Equation (28), which is sent to BAMG [25] to generate a new mesh  T h n * .
Hence, at each time level  t n , we have a solution computed on  T h n  with an estimated error  η n  and a new (more optimal) mesh  T h n * . If  η n > Tol , we set  T h n = T h n *  and recompute the solution at  t n . Otherwise, we accept the solution at time  t n  and set  T h n + 1 = T h n * . In practice, if the time step size is moderate, the solution computed at  t n  is seldom rejected, and thus the CPU time does not increase substantially with the present local mesh adaptation algorithm.
Remark 4. 
It is not strictly necessary to adapt the mesh at each iteration. Indeed, some authors prefer to keep the mesh fixed until the time step is rejected because the space error is higher than the tolerance. However, we prefer to update the mesh at each time level in order to have a better tracking of the borders of the phase-change region. Furthermore, the number of rejected time steps is smaller if the mesh is updated at each time level.

4. Results

In this section, we show the results of several numerical experiments to address the performance of the present method. All the tests were carried out on an i7-8700 CPU computer with 16GB DDR3 RAM @1.3 GHz and Ubuntu 20.02.4 LTS operative system using C programming language.

4.1. Test I: Convergence and Computational Cost Analysis

The first test is employed to verify that the numerical solution is correct and to analyze the convergence properties and the computational cost of the method. The test is defined by the domain  [ 1 / 2 , 1 / 2 ] 2 , a heat source of the form
Q ( x , t ) = A t 0 e t / t 0 cos ( π x 1 ) + A π 2 Pe ( 1 e t / t 0 ) cos ( π x 1 ) ,
with  A = 1.5  and  t 0 = 0.5 , initial condition  h = 0 , homogeneous Dirichlet conditions  h = 0  at  x 1 = ± 1 / 2 , homogeneous Neumann conditions  d u / d x 2 = 0  at  x 2 = ± 1 / 2 , and the dimensionless parameters
Ste = 0.5 , Pe = 20 , c S / c L = 0.75 , λ S / λ L = 1.5 .
Here, we employ the h-Newton solver.
We show in Appendix A that, for  t < t m : = t 0 ln ( A / ( A 1 ) ) 0.55 , the whole metal is in solid state and the solution is
h ( x , t ) = A 1 e t / t 0 cos π x 1 .
Furthermore, for  t + , the metal is at a steady state in which there exists (i) a pure solid region, defined by  | x 1 | > x L S : = arccos ( 1 / A ) / π , where the solution is
h ( x , t ) = A cos ( π x 1 ) ,
and (ii) a pure liquid region, defined by  | x 1 | < x L S , where the solution is
h ( x , t ) = A β cos ( π x 1 ) + 1 + 1 Ste 1 β ,
with  β = ( λ L c S ) / ( λ S c L ) .
Figure 3 shows the numerical solution for several instants of time. As can be seen, the agreement with the theoretical solution at the fully solid state is very good. Then, a phase change appears and the solution evolves into a steady state solution. For large t, we see that the numerical solution agrees again very well with the theoretical steady state solution, not only for the values of the solution but also for the position of the phase front.
On the other hand, Figure 4 (left) shows the convergence of the  L 2  error between the theoretical and numerical solution,  e L 2 , with respect to the mesh size, defined as  h : = | Ω | / NE , with  NE  the number of elements. The error is evaluated at  t = 0.5 < t m , when the solution is smooth yet. Here, we use a uniform mesh and a time step  Δ t = 0.001 . As can be seen, we obtain the expected  O ( h 3 )  convergence rate.
Similarly, Figure 4 (right) illustrates the dependence of the  L 2  error on the time step. Here, we set a space tolerance  Tol = 0.1 . We can verify that the expected  O ( Δ t 2 )  convergence rate is achieved.
Finally, Figure 5 shows the evolution of the number of elements and of the accumulated CPU time with respect to the solved instant of time t. Here, we employ different mesh adaptation tolerances and a time step  Δ t = 0.001 . As can be seen, the number of elements increases slowly since  t = 0 . At  t = t m , melting starts to take place and the number of elements starts to increase more quickly. Finally, for  t 1.3 , the evolution of the phase front is more stable and the number of elements remains constant. Since the number of elements increases until  t 1.3 , so does the time needed to solve each instant of time. We can verify this point by observing the slope of the curve of the accumulated CPU time.

4.2. Test II: Gaussian-Type Heat Source

To evaluate the two numerical strategies (the  θ -Newton method or the h-Newton method, depending on the considered unknown) in the resolution of the welding problem, we present an example defined by the rectangular domain  Ω = [ 0 , 2.5 ] × [ 1 , 0 ] , with boundary  Ω Γ 1 Γ 2 Γ 3 Γ 4 , as can be seen in Figure 6. We consider an initial condition  θ = 0 , Dirichlet boundary conditions on  Γ D Γ 1 Γ 2 Γ 4 , where the temperature is set to the ambient one, and a Robin condition on  Γ R Γ 3 , where there is a loss of heat by convection; recall Equations (13)–(15). The numerical integration will take place for  0 t 2.5  with  Δ t = 0.01 .
With the heat source Q, we take a Gaussian-type function moving from left to right at a constant velocity  v 0 . Furthermore, to obtain more valuable information on the physical process under study, we consider that the heat source only acts up to the instant  t = 1.0  so as to analyze the behavior of the system with ( 0 < t 1 ) and without ( 1 < t 2.5 ) a heat source:
Q ( x 1 , x 2 , t ) = Q 0 exp 100 x 1 x 1 0 + v 0 t 2 25 x 2 x 2 0 2 1 e 5 t , 0 t 1 , 0 , 1 < t 2.5 ,
with  Q 0 = 50.0 v 0 = 1.5 x 1 0 = 0.5 , and  x 2 0 = 0.5 .
Finally, the values of dimensionless parameters are computed from the physical magnitudes of [8,9]:
Pe = 20 , Nu = 10 , c S / c L = 0.75 , λ S / λ L = 1.5 .
Figure 7 shows the solution for different values of the Stefan number at three different instants of time. Here, we employ isothermal melting model (3). The upper panels represent the thermodynamic variables (enthalpy h, temperature  θ , and mass fraction of liquid  Y L ) at the line  x 2 = 0.5 , whereas the bottom panels show the border between the pure solid and pure liquid zones ( Y L = 0  and  Y L = 1 , respectively).
As can be seen in the Figure 7, the mushy region is negligible when the Stefan number is large. However, as the latter decreases, the mushy region becomes more relevant and the method must be more accurate to capture it. This is due to the fact that a smaller Stefan number implies a larger  h L h S ; i.e., more energy is needed for the phase change. As a consequence, for the same heat source and the same time level—i.e., same energy transferred to the material—the proportion of the material that is yet in phase change state is larger. In all cases, after the heat source goes out at  t = 1 , the mushy region tends to disappear and the transition between solid and liquid becomes a discontinuity for the enthalpy variable. At the discontinuity, the material is at the melting temperature, so the jump in the enthalpy equals  h L h S = 1 / Ste , as can be verified in the figure.
Furthermore, Figure 8 shows the evolution of the mesh for the case  Ste = 0.25  considered before. We can see that, due to the use of anisotropic mesh adaptation techniques, the elements are refined at the border of the mushy region, which is the region at which the variations in the solution are more noticeable, and also that they are aligned with the latter.
On the other hand, Figure 9 considers a fixed Stefan number  Ste = 0.5  and non-isothermal melting model (4) with different values for the temperature width  Δ T . We can see that, as  Δ T  increases, the solution smooths out (especially in the enthalpy variable h and liquid mass fraction  Y L ) and the mushy region becomes larger. This is to be expected since, for a continuous temperature field, it is impossible to have a discontinuity in the enthalpy with the non-isothermal melting model. Indeed, for the same range of temperatures, the variation in the enthalpy is less abrupt for larger  Δ T , hence the fact that the enthalpy smooths out with this parameter. Moreover, when the heat source is not applied (i.e., from  t = 1  to  t = 2.5 ), the size of the mushy region increases, something that is opposite to the physics of the problem for  Δ T = 0 , shown in Figure 7, where an abrupt transition between the solid and liquid zone tends to appear when time goes on. Apart from the physical insights of the results, we are interested in proving that solving for the enthalpy (i.e., the h-Newton method) is more robust than solving for the temperature (i.e., the  θ -method). For that purpose, Figure 10 shows a convergence study of the  θ -method for different values of  Ste Δ t , and  Δ T . More specifically, it shows for which cases the  θ -method is able to obtain a solution and for which ones it fails. It is interesting to see that, for sufficiently large melting temperature width  Δ T , the method converges irrespective of the time step. This threshold  Δ T  increases with  1 / Ste , i.e., with the enthalpy variation between liquid and solid states. For smaller  Δ T , the time step  Δ t  has to be sufficiently small; otherwise, the method fails to converge. It seems that the maximum  Δ t  is approximately proportional to  Δ T . Hence, for this particular problem and boundary conditions, the convergence criterion for the  θ -method can be summarized as
Δ T min 1 3 Ste , 10 Δ t .
For other problems, we may expect to find a qualitatively similar convergence criterion.
Conversely, the h-Newton converged for all the cases shown in Figure 10. This proves numerically that solving for the enthalpy is more robust than solving for the temperature. This a consequence of the fact that relations (18) are ill-conditioned for temperatures close to the melting range, in the sense that small variations in  θ  may cause large variations in the enthalpy, and, hence, convergence is more difficult. The slope of the curve  h ( θ )  at the melting temperature range is proportional to  1 / ( Δ T Ste ) , and, thus, convergence is more difficult when  Δ T  and/or  Ste  are smaller, as can be verified in the figure. On the contrary, relations (19) are always well conditioned irrespective of  Δ T  and  1 / Ste , making convergence much easier when solving for the enthalpy.
Finally, it must be pointed out that, although there are some spurious oscillations, the discontinuities in the solutions shown in previous figures are well captured without the need of any kind of artificial viscosity.

5. Conclusions

This paper presents a novel finite element method to solve the thermal variables in welding problems. For this purpose, we start from the enthalpy formulation of the energy conservation equation, which is valid at the whole domain and allows to implicitly track the phase interfaces through the enthalpy variable. Both isothermal and non-isothermal melting models are considered as constitutive equations. The energy equation is discretized with quadratic polynomials in space and a BDF2 formula in time, which is more accurate than the first-order schemes employed by previous works in the literature. Local anisotropic mesh adaptation is also considered. The non-linear discretized equations are solved with a Newton method in two ways: (i) considering the temperature as the main unknown ( θ -Newton method), as in most papers, and (ii) considering the enthalpy as the main unknown (h-Newton method).
The above-mentioned h-Newton is the main novelty of this work. It allows to consider both isothermal and non-isothermal melting models, it is more simple to implement than other enthalpy-based methods, such as [16,17,18], and it is more robust than the usual temperature-based methods. Indeed, numerical experiments show that the h-Newton method converges to the solution in all the cases considered in our numerical experiments. However, the temperature-based  θ -Newton method works only for non-isothermal melting and fails unless the time step is sufficiently small or the melting temperature range  Δ T  is sufficiently large. Hence, we prove numerically that considering the enthalpy as the main unknown is a much better choice from the numerical point of view.
Numerical experiments also show that the method converges as expected with the mesh and time step sizes, and that the method is able to adequately capture the discontinuities or sharp variations in the enthalpy and liquid mass fraction without the use of any kind of numerical dissipation.

Author Contributions

Conceptualization, M.F.-T. and J.C.; methodology, J.C.; software, M.C. and J.C.; validation, M.F.-T. and J.C.; formal analysis, M.F.-T., M.C. and J.C.; investigation, M.F.-T., M.C. and J.C.; writing—original draft preparation, M.F.-T.; writing—review and editing, M.C. and J.C.; supervision, J.C.; funding acquisition, M.F.-T. All authors have read and agreed to the published version of the manuscript.

Funding

This research has been funded by a doctoral studies grant to M. Freire from Secretaría de Educación Superior, Ciencia, Tecnología e Innovación of Republic of Ecuador (award resolution 106-2017).

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

Not applicable.

Conflicts of Interest

The authors declare no conflict of interest.

Appendix A. Analytical Solution of Test I

Here, we consider the 1D version of Equation (13), that is,
h t 1 Pe 2 u x 2 = Q ,
in the domain  [ 1 / 2 , 1 / 2 ] . The initial condition is  h ( x , 0 ) = 0 , the boundary conditions are  h ( ± 1 / 2 , t ) = 0 , and the heat source is
Q ( x , t ) = A t 0 e t / t 0 cos ( π x ) + A π 2 Pe ( 1 e t / t 0 ) cos ( π x ) ,
with  A > 1  and  t 0 > 0 . Note that  Q ( x , t ) 0 , so we can expect the temperature to increase and a phase change to appear eventually.
Initially, the whole material is solid. In that case,  d u = d h  according to (19), and, hence, Equation (A1) reads
h t 1 Pe 2 h x 2 = Q
It is easy to verify that
h ( x , t ) = A ( 1 e t / t 0 ) cos ( π x )
satisfies (A3) with the given initial and boundary conditions. This solution is valid for  t t m , where  t m  is the first time level at which there exists a point at which melting occurs. Since the initiation of melting in the material is given by the condition  h = 1  and the enthalpy is maximum at  x = 0 ,
t m = t 0 ln A A 1 .
It is difficult to obtain an analytical solution for  t > t m . However, for  t , the heat source is constant in time,
Q ( x ) : = Q ( x , + ) = A π 2 Pe cos ( π x ) ,
so we can expect a steady state solution,  h ( x ) . Due to the boundary conditions, there must exist a region at which the material is solid. In this region, the enthalpy is governed by the equation
1 Pe 2 h x 2 = Q ,
and, since  h = 0  at the boundaries, the solution is
h ( x ) = A cos ( π x ) .
This is valid only for the points such that  h 1 , i.e., for  | x | > x L S : = arccos ( 1 / A ) / π . At the rest of the domain, due to the action of the source, the material is liquid. In that case, Equation (19) yields  d u = β d h , with  β = ( λ L c S ) / ( λ S c L ) , and Equation (A1) reads
β Pe 2 h x 2 = Q .
Note that, at the interface with the solid region  x = ± x L S h = 1 + 1 / Ste  because the material is at the melting temperature. Hence, the solution of (A6) is
h ( x ) = A β cos ( π x ) + 1 + 1 Ste 1 β .
Summarizing,
  • For  t t m , all the material is solid state and the solution is given by (A4).
  • For  t , the solution is given by (A5) if  | x | > arccos ( 1 / A ) / π  (solid state) and by (A7) otherwise (liquid state).

References

  1. Karkhin, V.A. Engineering Materials Thermal Processes in Welding; Springer: Berlin/Heidelberg, Germany, 2018. [Google Scholar]
  2. Atthey, D.R. A finite difference scheme for melting problems. IMA J. Appl. Math. Inst. Math. Its Appl. 1974, 13, 353–366. [Google Scholar] [CrossRef]
  3. Meirmanov, M.A. The Stefan Problem; Walter de Gruyter Expositions in Mathematics; De Gruyter: Berlin, Germany, 1992. [Google Scholar]
  4. Oleinik, O.A. A method of solution of the general Stefan problem. Sov. Math. Dokl. 1960, 1, 1350–1354. [Google Scholar]
  5. Kamenomostskaya, S.L. On the stefan problem. Mat. Sb. 1961, 53, 489–514. [Google Scholar]
  6. White, E.R. An enthalpy formulation of the Stefan problem. SIAM J. Numer. Anal. 1982, 19, 1129–1157. [Google Scholar] [CrossRef]
  7. Turichin, G.; Mukin, D.; Valdaytseva, E.; Sannikov, M. Influence of Latent Heat of Fusion on the Melt Pool Shape and Size in the Direct Laser Deposition Process. Materials 2022, 15, 8349. [Google Scholar] [CrossRef] [PubMed]
  8. Piekarska, W.; Kubiak, M. Three-dimensional model for numerical analysis of thermal phenomena in laser-arc hybrid welding process. Int. J. Heat Mass Transf. 2011, 54, 4966–4974. [Google Scholar] [CrossRef]
  9. Piekarska, W.; Kubiak, M. Modeling of thermal phenomena in single laser beam and laser-arc hybrid welding processes using projection method. Appl. Math. Model. 2013, 37, 2051–2062. [Google Scholar] [CrossRef]
  10. Danaila, I.; Moglan, R.; Hecht, F.; Masson, S.L. A Newton method with adaptive finite elements for solving phase-change problems with natural convection. J. Comput. Phys. 2014, 274, 826–840. [Google Scholar] [CrossRef]
  11. Kubiak, M.; Piekarska, W. Comprehensive model of thermal phenomena and phase transformations in laser welding process. Comput. Struct. 2016, 172, 29–39. [Google Scholar] [CrossRef]
  12. Wu, J.; Zhang, H.; Feng, Y.; Luo, B. 3D Multiphysical Modelling of Fluid Dynamics and Mass Transfer in Laser Welding of Dissimilar Materials. Metals 2018, 8, 443. [Google Scholar] [CrossRef] [Green Version]
  13. Rakotondrandisa, A.; Sadaka, G.; Danaila, I. A finite-element toolbox for the simulation of solid-liquid phase-change systems with natural convection. Comput. Phys. Commun. 2020, 253, 107188. [Google Scholar] [CrossRef] [Green Version]
  14. Díaz Moreno, J.M.; García Vázquez, C.; González Montesinos, M.T.; Ortegón Gallego, F.; Viglialoro, G. Industrial Steel Heat Treating: Numerical Simulation of Induction Heating and Aquaquenching Cooling with Mechanical Effects. Mathematics 2021, 9, 1203. [Google Scholar] [CrossRef]
  15. Atta, D. Thermal Diffusion Responses in an Infinite Medium with a Spherical Cavity using the Atangana-Baleanu Fractional Operator. J. Appl. Comput. Mech. 2022, 8, 1358–1369. [Google Scholar] [CrossRef]
  16. Nedjar, B. An enthalpy-based finite element method for nonlinear heat problems involving phase change. Comput. Struct. 2002, 80, 9–21. [Google Scholar] [CrossRef]
  17. Barral, P.; Bermúdez, A.; Muñiz, M.C.; Otero, M.V.; Quintela, P.; Salgado, P. Numerical simulation of some problems related to aluminium casting. J. Mater. Process. Technol. 2003, 142, 383–399. [Google Scholar] [CrossRef]
  18. Bermúdez, A.; Otero, M.V. Numerical solution of a three-dimensional solidification problem in aluminium casting. Finite Elem. Anal. Des. 2004, 40, 1885–1906. [Google Scholar] [CrossRef]
  19. Álvarez-Hostos, J.C.; Bencomo, A.D.; Puchi-Cabrera, E.S.; Fachinotti, V.D.; Tourn, B.; Salazar-Bove, J.C. Implementation of a standard stream-upwind stabilization scheme in the element-free Galerkin based solution of advection-dominated heat transfer problems during solidification in direct chill casting processes. Eng. Anal. Bound. Elem. 2019, 106, 170–181. [Google Scholar] [CrossRef]
  20. Shibahara, M.; Atluri, S.N. The meshless local Petrov-Galerkin method for the analysis of heat conduction due to a moving heat source, in welding. Int. J. Therm. Sci. 2011, 50, 984–992. [Google Scholar] [CrossRef]
  21. Anca, A.; Cardona, A.; Risso, J.; Fachinotti, V.D. Finite element modeling of welding processes. Appl. Math. Model. 2011, 35, 688–707. [Google Scholar] [CrossRef]
  22. Carpio, J.; Prieto, J.L. An anisotropic, fully adaptive algorithm for the solution of convection-dominated equations with semi-Lagrangian schemes. Comput. Methods Appl. Mech. Eng. 2014, 273, 77–99. [Google Scholar] [CrossRef]
  23. Özisik, M.N. Boundary Value Problems of Heat Conduction; Dover Publications Inc.: New York, NY, USA, 1989. [Google Scholar]
  24. McBride, B.J.; Zehe, M.J.; Gordon, S. NASA Glenn Coefficients for Calculating Thermodynamic Properties of Individual Species; Technical Report NASA/TP-2002-211556; NASA: Washington, DC, USA, 2002.
  25. Hecht, F. BAMG: Bidimensional Anisotropic Mesh Generator. 2006. Available online: https://www.ljll.math.upmc.fr/~hecht/ftp/bamg/bamg.pdf (accessed on 1 June 2023).
Figure 1. Simplified schematic of a welding problem, where we can see the three characteristic regions of the process.
Figure 1. Simplified schematic of a welding problem, where we can see the three characteristic regions of the process.
Mathematics 11 03009 g001
Figure 2. Fundamental parameters of an anisotropic element K.
Figure 2. Fundamental parameters of an anisotropic element K.
Mathematics 11 03009 g002
Figure 3. Numerical solution of Test I for  t = 0.5 , 1 , 3 , 5 , 10 , 20 , 40  at the line  x 2 = 0 .
Figure 3. Numerical solution of Test I for  t = 0.5 , 1 , 3 , 5 , 10 , 20 , 40  at the line  x 2 = 0 .
Mathematics 11 03009 g003
Figure 4. Convergence of the  L 2  error with respect to the mesh size (left) and the time step (right).
Figure 4. Convergence of the  L 2  error with respect to the mesh size (left) and the time step (right).
Mathematics 11 03009 g004
Figure 5. Evolution of the number of elements (left) and of the accumulated CPU time (right) with respect to the solved instant of time.
Figure 5. Evolution of the number of elements (left) and of the accumulated CPU time (right) with respect to the solved instant of time.
Mathematics 11 03009 g005
Figure 6. Domain and boundaries associated with the welding problem.
Figure 6. Domain and boundaries associated with the welding problem.
Mathematics 11 03009 g006
Figure 7. Solutions obtained for different values of the Stefan number and  Δ T = 0 . The heat source acts for  t 1 .
Figure 7. Solutions obtained for different values of the Stefan number and  Δ T = 0 . The heat source acts for  t 1 .
Mathematics 11 03009 g007
Figure 8. Discretization mesh for  Ste = 0.25  at  t = 1.0  (top) and  t = 2.5  (bottom).
Figure 8. Discretization mesh for  Ste = 0.25  at  t = 1.0  (top) and  t = 2.5  (bottom).
Mathematics 11 03009 g008
Figure 9. Solutions obtained for  Ste = 0.5  and different values of the range of temperatures  Δ T  where the phase change takes place. The heat source acts for  t 1 .
Figure 9. Solutions obtained for  Ste = 0.5  and different values of the range of temperatures  Δ T  where the phase change takes place. The heat source acts for  t 1 .
Mathematics 11 03009 g009
Figure 10. Convergence study of the  θ -method. Legend: (×) method failed; (□) method succeeded.
Figure 10. Convergence study of the  θ -method. Legend: (×) method failed; (□) method succeeded.
Mathematics 11 03009 g010
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Freire-Torres, M.; Colera, M.; Carpio, J. Numerical Solution of Thermal Phenomena in Welding Problems. Mathematics 2023, 11, 3009. https://doi.org/10.3390/math11133009

AMA Style

Freire-Torres M, Colera M, Carpio J. Numerical Solution of Thermal Phenomena in Welding Problems. Mathematics. 2023; 11(13):3009. https://doi.org/10.3390/math11133009

Chicago/Turabian Style

Freire-Torres, Mario, Manuel Colera, and Jaime Carpio. 2023. "Numerical Solution of Thermal Phenomena in Welding Problems" Mathematics 11, no. 13: 3009. https://doi.org/10.3390/math11133009

APA Style

Freire-Torres, M., Colera, M., & Carpio, J. (2023). Numerical Solution of Thermal Phenomena in Welding Problems. Mathematics, 11(13), 3009. https://doi.org/10.3390/math11133009

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop