Next Article in Journal
Motor Load Balancing with Roll Force Prediction for a Cold-Rolling Setup with Neural Networks
Previous Article in Journal
Modified Inertial Forward–Backward Algorithm in Banach Spaces and Its Application
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Efficient Computation of Heat Distribution of Processed Materials under Laser Irradiation

Department of Mathematics, Jinan University, Guangzhou 510632, China
*
Author to whom correspondence should be addressed.
Mathematics 2021, 9(12), 1368; https://doi.org/10.3390/math9121368
Submission received: 24 April 2021 / Revised: 2 June 2021 / Accepted: 8 June 2021 / Published: 12 June 2021

Abstract

:
In this paper, a solution is provided to solve the heat conduction equation in the three-dimensional cylinder region, where the laser intensity of the material irradiation surface is expressed as a Gaussian distribution. Based on the symmetry of heat distribution, firstly, the form of the heat equation in the common rectangular coordinate system is changed to another form in the two-dimensional cylindrical coordinate system. Secondly, the ADI with the backward Euler method and with Crank–Nicolson method are established to discretize the model in the cylindrical coordinate system, after which the simulation results are obtained, where the first kind of boundary value condition is used to verify the accuracy of these two algorithms. Then, the above two methods are used to solve the model with the third kind of boundary value condition. Finally, the comparison is performed with the results obtained by the MATLAB’s PDETOOL, which shows that the solution is more feasible and efficient.

1. Introduction

In the fields of advanced equipment manufacturing for example aerospace and new energy, hard and brittle materials such as beryllium, fused silica, and diamond are widely used to manufacture products and devices. Generally, when machining (drilling or cutting) brittle and hard materials, it is pretty easy to cause damage on the processed material. Therefore, at present, laser is commonly used to irradiate the surface of the processed material, after which the processed materials obtain heat through the interaction between light and itself, and the processing quality is significantly improved by heating and modification. In order to find the optimal laser intensity and distribution, it is necessary to calculate the propagation state of light and heat in three-dimensional object. Common numerical methods are the finite element method (FEM) and the finite difference method (FDM) [1,2], but they all require large amounts of computation.
For the purpose, some numerical methods had been proposed [3,4,5,6,7,8,9,10,11,12,13,14], such as the alternating direction implicit (ADI) finite-difference time-domain method (FDTD) and its convolution perfect matching layer (CPML). The implementation of the ADI-FDTD and its CPML is divided into three steps. Firstly, transform the finite difference time domain method in the traditional three-dimensional cylindrical coordinate system into a matrix expression. Secondly, matrix expression of ADI-FDTD method in three-dimensional cylindrical coordinate system is proposed by matrix transformation. Finally, the influence parameters of the marching layer are added to the method in the form of auxiliary variables.
The existing methods directly give a three-dimensional cylindrical coordinate model in the electromagnetic environment, combined with the unconditionally stable ADI algorithm. However, we propose a three-dimensional heat conduction model of laser processing in the rectangular coordinate system, which is then discretely transformed, simplified, and solved in three steps. Firstly, a three-dimensional heat conduction model in a rectangular coordinate system is developed, and it is transformed into a three-dimensional heat conduction model in the cylindrical coordinate system. Secondly, since the heat conduction discussed in this article is irrelevant with the angle in the cylindrical coordinate system, the three-dimensional problem in cylindrical coordinates is simplified to a two-dimensional problem. Finally, we use the backward Euler method and Crank–Nicolson method, combined with the unconditionally stable ADI method for discretization.
In order to solve this problem, we first develop the heat conduction equation and boundary conditions. According to the characteristics of laser beam, the heat conduction equation solving problem in three-dimensional rectangular coordinate system is transformed into the heat conduction equation solving problem in two-dimensional cylindrical coordinate system by using cylindrical coordinate transformation. Finally, an alternate implicit scheme algorithm is constructed. In conclusion, the heat conduction distribution can be solved quickly and stably, which provides an effective calculation method for the optimization of related parameter.

2. Mathematical Model

The problem model discussed in this article is first proposed in a rectangular coordinate system, and then converted to a corresponding cylindrical coordinate system for discretization and solution. The significance of this chapter is to give the origin of the cylindrical coordinate equation model in the article and connect it to the original equation model in the rectangular coordinate system.
Suppose Ω is a cylinder with the origin of the coordinates as the center, then the model of the problem for three-dimensional heat conduction is as follows:
T ^ t = α · T ^ + f , x , y , z Ω , t 0 , T e ,
T ^ x , y , z , 0 = φ x , y , z , 0 x X , y 2 + z 2 R 2 ,
where α 0 .
Boundary value conditions of the first kind are:
T ^ S 1 = k y , z , t , S 1 = x , y , z x = 0 , y 2 + z 2 R 2 , T ^ S 2 = l x , t , S 2 = x , y , z 0 < x < X , y 2 + z 2 = R 2 , T ^ S 3 = g y , z , t , S 3 = x , y , z x = X , y 2 + z 2 R 2 .
Boundary value conditions of the third kind are:
κ T ^ · n Γ = β q y 2 + z 2 , Γ = y , z x = 0 , y 2 + z 2 d , T ^ S 4 = 293   K 20   ° C , S 4 = y , z x = 0 , d < y 2 + z 2 R , κ T ^ · n S = H T ^ T a S , S = x , y , z Ω \ x = 0 , y 2 + z 2 R 2 ,
where Γ is the laser irradiation area, d is the laser radius, β is the material’s absorption rate of laser energy, H is the heat dissipation coefficient, and T a is the initial environmental temperature, as shown in Figure 1.
Consider the problem model under the column coordinates and make the following coordinate transformation:
x = x , y = r · cos θ , z = r · sin θ , 0 θ 2 π .
Then, Equation (1) is transformed into the following form:
T t = α · 2 T r 2 + 1 r 2 · 2 T θ 2 + 1 r · T r + 2 T x 2 + f ,
where T ^ x , y , z , t = T x , r , t .
When the temperature distribution T is independent of the θ , Equation (6) is transformed into the simpler form:
T t = α · 2 T r 2 + 1 r · T r + 2 T x 2 + f .
Transforming Equation (1) into Equation (7) is equivalent to transforming three-dimensional problems into two-dimensional problems. Compared with the direct solution of three-dimensional problems, we have simplified the problem, saved time, and improved the efficiency.
Consider the transformed two-dimensional problem model as follows:
T t = α · 2 T r 2 + 1 r · T r + 2 T x 2 + f , 0 x X , 0 < r R , 0 < t T e ,
T x , r , 0 = φ x , r , 0 x X , 0 < r R .
Boundary value conditions of the first kind are as follows:
T 0 , r , t = ϕ 1 ( r , t ) , T X , r , t = ϕ 2 ( r , t ) , T x , 0 , t = θ 1 x , t , T x , R , t = θ 2 x , t .
Boundary value conditions of the third kind are as follows:
κ T · n x = 0 = β q r , r Γ , κ T · n x = X = H T T a , 0 < r R , κ T · n r = R = H T T a , 0 < x X , κ T r r = 0 = 0 , 0 < x X .
The alternate direction implicit format (abbreviated as ADI format) is an unconditionally stable format which can be solved by the catch-up method. This method is also called the P-R method, which was proposed by Peaceman and Rachford in 1955, and will be used to calculate the matrix form under the column coordinate.

3. Establishment of Differential Approximation

In the case of X = R , the space step is set to be h = X 0 / M , and the time step is set to be τ = T e 0 / N . Where M and N are positive integers, we have x i = 0 + i · h , 0 i M , r j = 0 + j · h , 0 < j M , and t k = 0 + k · τ , 1 k N . So we get a grid subdivision of the interval, and x i , r j , t k is a node.

3.1. Difference Scheme for the Backward Euler Method

At node x i , r j , t k + 1 , Equation (8) is considered as:
T x i , r j , t k + 1 t = α · 2 T x i , r j , t k + 1 r 2 + 1 r j · T x i , r j , t k + 1 r + 2 T x i , r j , t k + 1 x 2 + f x i , r j , t k + 1 ,
1 i , j M 1 , 1 k N 1 .
Using the backward Euler method to discretize Equation (12), we obtain [2]:
T x i , r j , t k + 1 T x i , r j , t k τ α · T x i 1 , r j , t k + 1 2 T x i , r j , t k + 1 + T x i + 1 , r j , t k + 1 h 2 + T x i , r j 1 , t k + 1 2 T x i , r j , t k + 1 + T x i , r j + 1 , t k + 1 h 2 + 1 r j · T x i , r j + 1 , t k + 1 T x i , r j 1 , t k + 1 2 h + R ( 1 ) i , j , k + f x i , r j , t k + 1
where the total truncation error is as follow:
R ( 1 ) i , j , k = 2 T x i , r j , t k + 1 t 2 · τ 2 1 r j · 3 T x i , r j , t k + 1 r 3 · h 2 6 4 T x i , r j , t k + 1 x 4 · h 2 12 4 T x i , r j , t k + 1 r 4 · h 2 12 + = O τ + h 2 .
The difference equation can be obtained by replacing the exact solution T x i , r j , t k + 1 with an approximate numerical solution T i , j k + 1 and discarding the truncation error R ( 1 ) i , j , k :
T i , j k + 1 T i , j k τ = α · T i 1 , j k + 1 2 T i , j k + 1 + T i + 1 , j k + 1 h 2 + T i , j 1 k + 1 2 T i , j k + 1 + T i , j + 1 k + 1 h 2 + 1 r j · T i , j + 1 k + 1 T i , j 1 k + 1 2 h + f i , j k + 1 .

3.2. Difference Scheme for Crank–Nicolson Method

Let f = 0 , and at node x i , r j , t k + 1 / 2 , homogeneous form of Equation (8) is considered as the following form:
T x i , r j , t k + 1 / 2 t = α · 2 T x i , r j , t k + 1 / 2 r 2 + 1 r j · T x i , r j , t k + 1 / 2 r + 2 T x i , r j , t k + 1 / 2 x 2 ,
1 i , j M 1 , 1 k N 1 .
Using Crank–Nicolson method to discretize Equation (16), we obtain [2]:
T x i , r j , t k + 1 T x i , r j , t k τ α 2 · T x i 1 , r j , t k + 1 2 T x i , r j , t k + 1 + T x i + 1 , r j , t k + 1 h 2 + T x i 1 , r j , t k 2 T x i , r j , t k + T x i + 1 , r j , t k h 2 + T x i , r j 1 , t k + 1 2 T x i , r j , t k + 1 + T x i , r j + 1 , t k + 1 h 2 + T x i , r j 1 , t k + 1 2 T x i , r j , t k + 1 + T x i , r j + 1 , t k + 1 h 2 + 1 r j · T x i , r j + 1 , t k + 1 T x i , r j 1 , t k + 1 2 h + 1 r j · T x i , r j + 1 , t k T x i , r j 1 , t k 2 h + R ( 2 ) i , j , k ,
where the total truncation error is:
R ( 2 ) i , j , k = τ 2 24 · 3 T x i , r j , t k + 1 / 2 t 3 α τ 2 8 4 T x i , r j , t k + 1 / 2 x 2 t 2 α h 2 12 · 4 T x i , r j , t k + 1 / 2 x 4 α τ 2 8 · 4 T x i , r j , t k + 1 / 2 r 2 t 2 α h 2 12 · 4 T x i , r j , t k + 1 / 2 r 4 α τ 2 8 · 1 r j · 3 T x i , r j , t k + 1 / 2 r t 2 α h 2 6 · 1 r j · 3 T x i , r j , t k + 1 / 2 r 3 + = O τ 2 + h 2 .
The difference equation is obtained by replacing the exact solution T x i , r j , t k + 1 with a numerical solution T i , j k + 1 and discarding the truncation error R ( 2 ) i , j , k :
T i , j k + 1 T i , j k τ = α 2 · T i 1 , j k + 1 2 T i , j k + 1 + T i + 1 , j k + 1 h 2 + T i 1 , j k 2 T i , j k + T i + 1 , j k h 2 + T i , j 1 k + 1 2 T i , j k + 1 + T i , j + 1 k + 1 h 2 + T i , j 1 k 2 T i , j k + T i , j + 1 k h 2 + 1 r j · T i , j + 1 k + 1 T i , j 1 k + 1 2 h + T i , j + 1 k T i , j 1 k 2 h .

3.3. Difference Scheme for the First Kind of Boundary Value

3.3.1. Difference Scheme for ADI with the Backward Euler Method

The difference scheme can be obtained by synthesizing the initial value condition and the boundary value condition as follows:
T i , j k + 1 T i , j k τ = α · T i 1 , j k + 1 2 T i , j k + 1 + T i + 1 , j k + 1 h 2 + T i , j 1 k + 1 2 T i , j k + 1 + T i , j + 1 k + 1 h 2 + 1 r j · T i , j + 1 k + 1 T i , j 1 k + 1 2 h + f i , j k + 1 ,
1 i , j M 1 , 1 k N 1 ,
T x , r , 0 = φ x , r , 0 x X , 0 < r R , T 0 , r , t = ϕ 1 ( r , t ) , T X , r , t = ϕ 2 ( r , t ) , T x , 0 , t = θ 1 x , t , T x , R , t = θ 2 x , t .
Denote:
δ x 2 T i , j k = T i 1 , j k 2 T i , j k + T i + 1 , j k h 2 , δ r 2 T i , j k = T i , j 1 k 2 T i , j k + T i , j + 1 k h 2 , δ r T i , j k = T i , j + 1 k T i , j 1 k 2 h .
The difference equation is written as:
T i , j k + 1 T i , j k τ = α · δ x 2 T i , j k + 1 + δ r 2 T i , j k + 1 + 1 r j δ r T i , j k + 1 + f i , j k + 1 , 1 i , j M 1 , 1 k N 1 .
There exists a normal number C 1 independent of h and τ that causes the total truncation error:
max R ( 1 ) i , j , k = C 1 τ + h 2 .
In Equation (23), adding the minor term α 2 τ 2 δ x 2 δ r 2 + 1 r j δ r T i , j k + 1 T i , j k leads to:
I α τ δ x 2 I α τ δ r 2 + 1 r j δ r T i , j k + 1 = I + α 2 τ 2 δ x 2 δ r 2 + 1 r j δ r T i , j k + τ · f i , j k + 1 .
To facilitate the calculation, the transition layer variable T i , j k + 1 / 2 is introduced, and the above equation becomes:
I α τ δ x 2 T i , j k + 1 / 2 = I + α 2 τ 2 δ x 2 δ r 2 + 1 r j δ r T i , j k + τ · f i , j k + 1 , I α τ δ r 2 + 1 r j δ r T i , j k + 1 = T i , j k + 1 / 2 .
Denote r ^ = α · τ h 2 and r ^ 2 = α · τ 2 h , then the vector form of the above two equations is:
r ^ T i 1 , j k + 1 / 2 + 1 + 2 r ^ T i , j k + 1 / 2 r ^ T i + 1 , j k + 1 / 2 = r ^ 2 r ^ · r ^ 2 r j T i 1 , j 1 k 2 r ^ 2 T i 1 , j k + r ^ 2 + r ^ · r ^ 2 r j T i 1 , j + 1 k + 2 r ^ 2 + 2 r ^ · r ^ 2 r j T i , j 1 k + 1 + 4 r ^ 2 T i , j k + 2 r ^ 2 2 r ^ · r ^ 2 r j T i , j + 1 k + r ^ 2 r ^ · r ^ 2 r j T i + 1 , j 1 k 2 r ^ 2 T i + 1 , j k + r ^ 2 + r ^ · r ^ 2 r j T i + 1 , j + 1 k + τ · f i , j k + 1 ,
r ^ + r ^ 2 r j T i , j 1 k + 1 + 1 + 2 r ^ T i , j k + 1 + r ^ r ^ 2 r j T i , j + 1 k + 1 = T i , j k + 1 / 2 ,
1 i , j M 1 , 1 k N 1 .
Denote T ¯ i = T i , 1 , T i , 2 , , T i , M 2 , T i , M 1 T , f ¯ i = f i , 1 , f i , 2 , , f i , M 2 , f i , M 1 T , 0 i M , then we have:
C D D C D D C D D C T ¯ 1 T ¯ 2 T ¯ M 2 T ¯ M 1 k + 1 2 = B A A B A A B A A B T ¯ 1 T ¯ 2 T ¯ M 2 T ¯ M 1 k + F ¯ 1 + A T ¯ k 0 D T ¯ 0 k + 1 / 2 F ¯ 2 F ¯ M 2 F ¯ M 1 + A T ¯ k M D T ¯ M k + 1 / 2 ,
Q Q Q Q T ¯ 1 T ¯ 2 T ¯ M 2 T ¯ M 1 k + 1 = T ¯ 1 T ¯ 2 T ¯ M 2 T ¯ M 1 k + 1 / 2 g ¯ 1 g ¯ 2 g ¯ M 2 g ¯ M 1 .
Denote b 1 j = r ^ + r ^ 2 r j = 1 + 1 2 j · r ^ , b 2 j = r ^ r ^ 2 r j = 1 1 2 j · r ^ , then we have:
D = r ^ r ^ r ^ r ^ ( M 1 ) × ( M 1 ) , C = 1 + 2 r ^ 1 + 2 r ^ 1 + 2 r ^ 1 + 2 r ^ ( M 1 ) × ( M 1 ) ,
A = 2 r ^ 2 r ^ b 1 1 r ^ b 2 2 2 r ^ 2 r ^ b 1 2 r ^ b 2 M 2 2 r ^ 2 r ^ b 1 M 2 r ^ b 2 M 1 2 r ^ 2 M 1 × M 1 ,
B = 1 + 4 r ^ 2 2 r ^ b 1 1 2 r ^ b 2 2 1 + 4 r ^ 2 2 r ^ b 1 2 2 r ^ b 2 M 2 1 + 4 r ^ 2 2 r ^ b 1 M 2 2 r ^ b 2 M 1 1 + 4 r ^ 2 M 1 × M 1 ,
Q = 1 + 2 r ^ b 1 1 b 2 2 1 + 2 r ^ b 1 2 b 2 M 2 1 + 2 r ^ b 1 M 2 b 2 M 1 1 + 2 r ^ M 1 × M 1 ,
F ¯ i = r ^ b 2 1 T i 1 , 0 k 2 r ^ b 2 1 T i , 0 k + r ^ b 2 1 T i + 1 , 0 k 0 0 r ^ b 1 M 1 T i 1 , M k 2 r ^ b 1 M 1 T i , M k + r ^ b 1 M 1 T i + 1 , M k M 1 × 1 + τ · f ¯ i k + 1 ,
g ¯ i = b 2 1 T i , 0 k + 1 , 0 , , 0 , b 1 M 1 T i , M k + 1 T M 1 × 1 ,
1 i M 1 , 1 k N 1 .
The transition layer variable T ¯ 0 k + 1 / 2 , T ¯ M k + 1 / 2 should satisfy:
I τ δ y 2 + 1 r j δ y T 0 , j k + 1 = T 0 , j k + 1 / 2 , 1 j M 1 , I τ δ y 2 + 1 r j δ y T M , j k + 1 = T M , j k + 1 / 2 , 1 j M 1 .
There exists a normal number C 2 , independent of h and τ , so that the minor term is:
max α 2 τ 2 δ x 2 δ r 2 + 1 r j δ r T i , j k + 1 T i , j k C 2 τ .
Therefore, Equations (24) and (38), show that a normal number C is independent of h and τ , so the total error R of difference schemes for ADI with the backward Euler method of the first kind of boundary value is:
max R = C τ + h 2 .

3.3.2. Difference Scheme for ADI with Crank–Nicolson Method

The difference scheme is obtained by synthesizing the initial value condition and the boundary value condition:
T i , j k + 1 T i , j k τ = α 2 · T i 1 , j k + 1 2 T i , j k + 1 + T i + 1 , j k + 1 h 2 + T i 1 , j k 2 T i , j k + T i + 1 , j k h 2 + T i , j 1 k + 1 2 T i , j k + 1 + T i , j + 1 k + 1 h 2 + T i , j 1 k 2 T i , j k + T i , j + 1 k h 2 + 1 r j · T i , j + 1 k + 1 T i , j 1 k + 1 2 h + T i , j + 1 k T i , j 1 k 2 h ,
1 i , j M 1 , 1 k N 1 ,
T x , r , 0 = φ x , r , 0 x X , 0 < r R , T 0 , r , t = ϕ 1 ( r , t ) , T X , r , t = ϕ 2 ( r , t ) , T x , 0 , t = θ 1 x , t , T x , R , t = θ 2 x , t .
Denote:
δ x 2 T i , j k = T i 1 , j k 2 T i , j k + T i + 1 , j k h 2 , δ r 2 T i , j k = T i , j 1 k 2 T i , j k + T i , j + 1 k h 2 , δ r T i , j k = T i , j + 1 k T i , j 1 k 2 h .
The difference equation is written as:
There exists a normal number C 1 independent of h and τ that causes the total truncation error:
T i , j k + 1 T i , j k τ = α 2 · δ x 2 T i , j k + 1 + δ x 2 T i , j k + δ r 2 T i , j k + 1 + δ r 2 T i , j k + 1 r j δ r T i , j k + 1 + δ r T i , j k , 1 i , j M 1 , 1 k N 1 .
max R ( 2 ) i , j , k = C 1 τ 2 + h 2 .
In Equation (43), adding the minor term α 2 · τ 2 4 · δ x 2 δ r 2 + 1 r j δ r T i , j k + 1 T i , j k leads to:
I α τ 2 δ x 2 I α τ 2 δ r 2 + 1 r j δ r T i , j k + 1 = I + α τ 2 δ x 2 I + α τ 2 δ r 2 + 1 r j δ r T i , j k .
To facilitate the calculation, the transition layer variable T i , j k + 1 / 2 is introduced, and the above equation becomes:
I α τ 2 δ x 2 T i , j k + 1 / 2 = I + α τ 2 δ r 2 + 1 r j δ r T i , j k , I α τ 2 δ r 2 + 1 r j δ r T i , j k + 1 = I + α τ 2 δ x 2 T i , j k + 1 / 2 .
Denote r ^ = α · τ h 2 , then the vector forms of the above two equations are as follows:
r ^ 2 T i 1 , j k + 1 / 2 + 1 + r ^ T i , j k + 1 / 2 r ^ 2 T i + 1 , j k + 1 / 2 = r ^ 2 r ^ 4 · j T i , j 1 k + 1 r ^ T i , j k + r ^ 2 + r ^ 4 · j T i , j + 1 k , r ^ 2 + r ^ 4 · j T i , j 1 k + 1 + 1 + r ^ T i , j k + 1 + r ^ 2 r ^ 4 · j T i , j + 1 k + 1 = r ^ 2 T i 1 , j k + 1 / 2 + 1 r ^ T i , j k + 1 / 2 + r ^ 2 T i + 1 , j k + 1 / 2 ,
1 i M 1 , 1 k N 1 .
Denote T ¯ i = T i , 1 , T i , 2 , , T i , M 2 , T i , M 1 T , 0 i M , then we derive following forms:
E S S E S S E S S E T ¯ 1 T ¯ 2 T ¯ M 2 T ¯ M 1 k + 1 2 = V V V V T ¯ 1 T ¯ 2 T ¯ M 2 T ¯ M 1 k + S T ¯ 0 k + 1 / 2 + ω ¯ 1 ω ¯ 2 ω ¯ M 2 S T ¯ M k + 1 / 2 + ω ¯ M 1 ,
G G G G T ¯ 1 T ¯ 2 T ¯ M 2 T ¯ M 1 k + 1 = W L L W L L W L L W T ¯ 1 T ¯ 2 T ¯ M 2 T ¯ M 1 k + 1 2 + L T ¯ 0 k + 1 / 2 e ¯ 1 e ¯ 2 e ¯ M 2 L T ¯ M k + 1 / 2 e ¯ M 1 .
Denote b 1 j = r ^ + r ^ 2 r j = 1 + 1 2 j · r ^ , b 2 j = r ^ r ^ 2 r j = 1 1 2 j · r ^ , then we get:
S = r ^ 2 r ^ 2 r ^ 2 r ^ 2 M 1 × M 1 , L = r ^ 2 r ^ 2 r ^ 2 r ^ 2 M 1 × M 1 ,
E = 1 + r ^ 1 + r ^ 1 + r ^ 1 + r ^ M 1 × M 1 , W = 1 r ^ 1 r ^ 1 r ^ 1 r ^ M 1 × M 1 ,
V = 1 r ^ b 1 1 2 b 2 2 2 1 r ^ b 1 2 2 b 2 M 2 2 1 r ^ b 1 M 2 2 b 2 M 1 2 1 r ^ M 1 × M 1 ,
G = 1 + r ^ b 1 1 2 b 2 2 2 1 + r ^ b 1 2 2 b 2 M 2 2 1 + r ^ b 1 M 2 2 b 2 M 1 2 1 + r ^ M 1 × M 1 ,
ω ¯ i = b 2 1 2 T i , 0 k , 0 , , 0 , b 1 M 1 2 T i , M k T M 1 × 1 , e ¯ i = b 2 1 2 T i , 0 k + 1 , 0 , , 0 , b 1 M 1 2 T i , M k + 1 T M 1 × 1 ,
1 i M 1 , 1 k N 1 .
The transition layer variable T ¯ 0 k + 1 / 2 , T ¯ M k + 1 / 2 should satisfy:
T ¯ 0 k + 1 / 2 = 1 2 · I α τ 2 δ r 2 + 1 r j δ r T ¯ 0 k + 1 + 1 2 · I + α τ 2 δ r 2 + 1 r j δ r T ¯ 0 k , 1 j M 1 , T ¯ M k + 1 / 2 = 1 2 · I α τ 2 δ r 2 + 1 r j δ r T ¯ M k + 1 + 1 2 · I + α τ 2 δ r 2 + 1 r j δ r T ¯ M k , 1 j M 1 .
There exists a normal number C 2 , independent of h and τ , so the minor term is:
max α 2 · τ 2 4 · δ x 2 δ r 2 + 1 r j δ r T i , j k + 1 T i , j k C 2 τ 2 .
Therefore, Equations (44) and (56), demonstrate that the normal number C is independent of h and τ , so the total error R ( 1 ) of difference schemes for ADI with Crank–Nicolson method of the first kind of boundary value is:
max R ( 1 ) = C τ 2 + h 2 .

3.4. Difference Scheme for the Third Kind of Boundary Value

3.4.1. Difference Scheme for ADI with the Backward Euler Method

Based on the initial value condition, the boundary value condition and Equation (25), the difference scheme is obtained:
I α τ δ x 2 I α τ δ r 2 + 1 r j δ r T i , j k + 1 = I + α 2 τ 2 δ x 2 δ r 2 + 1 r j δ r T i , j k + τ · f i , j k + 1 ,
1 i , j M 1 , 1 k N 1 ,
T x , r , 0 = φ x , r , 0 x X , 0 < r R ,
κ T · n x = 0 = β q r , r Γ , κ T · n x = X = H T T a , 0 < r R , κ T · n r = R = H T T a , 0 < x X , κ T r r = 0 = 0 , 0 < x X .
It is the same as the difference scheme under the boundary values of the first kind, and finally discretized into the corresponding ADI scheme. Therefore, the rest are consistent, except that boundary value of the third type enjoys a separate center discretization, and that the approaches to process discrete ADI scheme for i = 1 and i = M 1 in the inner point vary widely. Therefore, only the discretization of the third type of boundary value and the processing mode of the discrete ADI format when i = 1 and i = M 1 are discussed.
According to Equation (39), the total error R of the internal point is:
max R = C τ + h 2 .
For κ T x x = 0 = β q r , r Γ , it is discretized as the center at x = 0 ,
κ T ^ 1 , j k T 1 , j k 2 h = β q r j , 0 j M ,
where T ^ 1 , j k is the virtual symmetric point of T 1 , j k about x = 0 , and is estimated to be [3]:
T 0 , j k T ^ 1 , j k + T 1 , j k 2 , 0 j M .
According to Equations (62) and (63), we obtain:
T 0 , j k = T 1 , j k + β h q r j κ , 0 j M .
For κ T x x = X = H T T a , 0 < r R , it is discretized as the center at x = X ,
κ T ^ M 1 , j k T M 1 , j k 2 h = H T T a x = X , 0 j M ,
where T ^ M 1 , j k is the virtual symmetric point of T ^ M 1 , j k about x = X , and is estimated to be [3]:
T M , j k T ^ M 1 , j k + T M 1 , j k 2 , 0 j M ,
T x = X T ^ M 1 , j k + T M 1 , j k 2 , 0 j M .
According to Equations (64)–(66), we have:
T M , j k = κ κ h H T M 1 , j k h H κ h H T a , 0 j M .
For κ T r r = R = H T T a , 0 < x X , it is discretized as the center at r = R ,
κ T i , M 1 k T ^ i , M 1 k 2 h = H T T a r = R , 0 i M ,
where T ^ i , M 1 k is the virtual symmetric point of T i , M 1 k about r = R , and is estimated to be [3]:
T i , M k T i , M 1 k + T ^ i , M 1 k 2 , 0 i M ,
T r = R T i , M 1 k + T ^ i , M 1 k 2 , 0 i M .
According to Equations (67)–(69), we have:
T i , M k = κ κ + h H T i , M 1 k + h H κ + h H T a , 0 i M .
For κ T r r = 0 = 0 , 0 < x X , it is discretized as the center at r = 0 ,
κ T i , 1 k T ^ i , 1 k 2 h = 0 , 0 i M ,
where T ^ i , 1 k is the virtual symmetric point of T i , 1 k about r = 0 , and is estimated to be [3]:
T i , 0 k T i , 1 k + T ^ i , 1 k 2 , 0 i M .
According to Equations (70) and (71), we have:
T i , 0 k = T i , 1 k , 0 i M .
If i = 1 , the vector form of ADI with the backward Euler format is:
r ^ T 0 , j k + 1 / 2 + 1 + 2 r ^ T 1 , j k + 1 / 2 r ^ T 2 , j k + 1 / 2 = r ^ 2 r ^ · r ^ 2 r j T 0 , j 1 k 2 r ^ 2 T 0 , j k + r ^ 2 + r ^ · r ^ 2 r j T 0 , j + 1 k + 2 r ^ 2 + 2 r ^ · r ^ 2 r j T 1 , j 1 k + 1 + 4 r ^ 2 T 1 , j k + 2 r ^ 2 2 r ^ · r ^ 2 r j T 1 , j + 1 k + r ^ 2 r ^ · r ^ 2 r j T 2 , j 1 k 2 r ^ 2 T 2 , j k + r ^ 2 + r ^ · r ^ 2 r j T 2 , j + 1 k + τ · f 1 , j k + 1 ,
r ^ + r ^ 2 r j T 1 , j 1 k + 1 + 1 + 2 r ^ T 1 , j k + 1 + r ^ r ^ 2 r j T 1 , j + 1 k + 1 = T 1 , j k + 1 / 2 .
The third kind of boundary discrete T 0 , j k , T M , j k , T i , M k , T i , 0 k , 0 i , j M are substituted into the above two equations to obtain the final discrete format for i = 1 . The processing method for i = M 1 performs the same as the one when i = 1 . Therefore, the final matrix form of the difference scheme for the third kind of boundary value is:
C D D C D D C D D C T ¯ 1 T ¯ 2 T ¯ M 2 T ¯ M 1 k + 1 2 + D 0 0 κ κ h H · D T ¯ 1 T ¯ 2 T ¯ M 2 T ¯ M 1 k + 1 2 = B A A B A A B A A B T ¯ 1 T ¯ 2 T ¯ M 2 T ¯ M 1 k + F ¯ 1 + A T ¯ k 1 + W ¯ D W ¯ F ¯ 2 F ¯ M 2 F ¯ M 1 + A κ κ h H · T ¯ M 1 k h H κ h H T a · I D · h H κ h H T a · I ,
Q Q Q Q T ¯ 1 T ¯ 2 T ¯ M 2 T ¯ M 1 k + 1 + Q Q Q Q Q Q Q Q T ¯ 1 T ¯ 2 T ¯ M 2 T ¯ M 1 k + 1 = T ¯ 1 T ¯ 2 T ¯ M 2 T ¯ M 1 k + 1 / 2 g ¯ g g ¯ g g ¯ g g ¯ g ,
where,
W ¯ = β h q r 1 κ , β h q r 2 κ , , β h q r M 1 κ T ,
g ¯ g ¯ = 0 , 0 , , 0 , b 1 M 1 · h H κ + h H T a T M 1 × 1 , I = 1 , 1 , , 1 , 1 T ( m 1 ) × 1 ,
Q Q = b 2 1 0 0 b 1 M 1 · κ κ + h H ( m 1 ) × ( m 1 ) .
The other matrices, A , B , C , D , T ¯ , F ¯ , and Q are the same as the case of the first kind of boundary value.
The discretization of the third kind of boundary value is all the central difference quotient discretization, so there exists a normal number C 3 independent of h and τ , so that the total error R b z of boundary value discretization be:
max R b z = C 3 h 2 .
Therefore, Equations (61) and (78) represent that the normal number C 4 is independent of h and τ , so the total error R 1 of difference schemes for ADI with the backward Euler method of the third kind of boundary value is:
max R 1 = C 4 τ + h 2 .

3.4.2. Difference Scheme for ADI with Crank–Nicolson Method

Based on the initial value condition, the boundary value condition and Equation (45), the difference scheme is obtained:
I α τ 2 δ x 2 I α τ 2 δ r 2 + 1 r j δ r T i , j k + 1 = I + α τ 2 δ x 2 I + α τ 2 δ r 2 + 1 r j δ r T i , j k . 1 i , j M 1 , 1 k N 1 ,
T x , r , 0 = φ x , r , 0 x X , 0 < r R ,
κ T · n x = 0 = β q r , r Γ , κ T · n x = X = H T T a , 0 < r R , κ T · n r = R = H T T a , 0 < x X , κ T r r = 0 = 0 , 0 < x X .
The discrete processing of interior points and boundary values is the same as that of ADI with the backward Euler method for the third kind of boundary value. Therefore, the final matrix form of the difference scheme for the third kind of boundary value is:
E S S E S S E S S E T ¯ 1 T ¯ 2 T ¯ M 2 T ¯ M 1 k + 1 2 + S 0 0 κ κ h H · S T ¯ 1 T ¯ 2 T ¯ M 2 T ¯ M 1 k + 1 2 = V V V V T ¯ 1 T ¯ 2 T ¯ M 2 T ¯ M 1 k + S W ¯ + ω ¯ 1 ω ¯ 2 ω ¯ M 2 S h H κ h H T a · I + ω ¯ M 1 ,
G G G G T ¯ 1 T ¯ 2 T ¯ M 2 T ¯ M 1 k + 1 + G G G G G G G G T ¯ 1 T ¯ 2 T ¯ M 2 T ¯ M 1 k + 1 = W L L W L L W L L W T ¯ 1 T ¯ 2 T ¯ M 2 T ¯ M 1 k + 1 2 + L 0 0 κ κ h H · L T ¯ 1 T ¯ 2 T ¯ M 2 T ¯ M 1 k + 1 2 + L W ¯ θ ¯ θ ¯ θ ¯ L h H κ h H T a · I θ ¯ ,
where,
G G = b 2 1 2 0 0 κ κ + h H · b 1 M 1 2 M 1 × M 1 ,
W ¯ = β h q r 1 κ , β h q r 2 κ , , β h q r M 1 κ T , θ ¯ = 0 , 0 , , 0 , b 1 M 1 2 · h H κ + h H T a T M 1 × 1 .
The other matrices, S , E , V , G , W , L , T ¯ , and ω ¯ are the same as the case of the first kind of boundary value.
Therefore, Equations (57) and (78) show that the normal number C 4 is independent of h and τ , so the total error R 1 ( 1 ) of difference schemes for ADI with Crank–Nicolson method of the third kind of boundary value is:
max R 1 ( 1 ) = C 4 τ 2 + h 2 .

4. Stability and Convergence of Difference Scheme Solutions

4.1. Stability of Difference Scheme Solutions

The following will prove that ADI format with the backward Euler method and ADI format with Crank–Nicolson method are unconditionally L 2 stable whether for the first kind of boundary value or the third kind of boundary value.
Definition 1.
A function v x is defined on , + . If + v x 2 d x < , then there exists:
v x = 1 2 π + + v ε e i λ ε x d ε d λ ,
where  i = 1 is an imaginary unit and the above transformation is called the Fourier transform.
Definition 2.
The L 2 module refers to the Euclidean module, and the L 2 stable refers to the stability under the second norm [2].
Theorem 1.
The difference Equation (25) under the first kind of the boundary value and the boundary value of the third kind is unconditionally L 2 stable.
Proof. 
From the total error R of the differential format for the first kind of boundary value and the total error R 1 of the differential format for the third kind of boundary value, the total error is O τ + h 2 . □
Let λ = α · τ h 2 be the grid ratio and use the Fourier method to analyze the stability of Equation (25):
I α τ δ x 2 I α τ δ r 2 + 1 r j δ r T i , j k + 1 = I + α 2 τ 2 δ x 2 δ r 2 + 1 r j δ r T i , j k + τ · f i , j k + 1 .
Since the stability of homogeneous equations and non-homogeneous equations are consistent, the stability of homogeneous equations can be discussed. The difference equation of ADI with the backward Euler method corresponding to the homogeneous equation is:
I α τ δ x 2 I α τ δ r 2 + 1 r j δ r T i , j k + 1 = I + α 2 τ 2 δ x 2 δ r 2 + 1 r j δ r T i , j k .
Substituting T j , l k = v k e i k 1 j h e i k 2 l h and e i θ = cos θ + i sin θ into the Equation (90), we get v k + 1 = G ^ ( τ , k ) v k , where the growth factor G ^ τ , k is represented as:
G ^ τ , k = 1 + 4 α τ h 2 sin 2 k 1 h 2 · 4 α τ h 2 sin 2 k 2 h 2 + i 4 α τ h 2 sin 2 k 1 h 2 · α τ h · r j sin k 2 h 1 + 4 α τ h 2 sin 2 k 1 h 2 1 + 4 α τ h 2 sin 2 k 2 h 2 + i 1 + 4 α τ h 2 sin 2 k 1 h 2 · α τ h · r j sin k 2 h ,
then,
G ^ τ , k = 1 + 4 α τ h 2 sin 2 k 1 h 2 · 4 α τ h 2 sin 2 k 2 h 2 2 + 4 α τ h 2 sin 2 k 1 h 2 · α τ h · r j sin k 2 h 2 1 + 4 α τ h 2 sin 2 k 1 h 2 2 · 1 + 4 α τ h 2 sin 2 k 2 h 2 2 + 1 + 4 α τ h 2 sin 2 k 1 h 2 · α τ h · r j sin k 2 h 2 ,
where k = k 1 , k 2 . Obviously, G ^ τ , k 1 means that the difference scheme Equation (90) is unconditionally L 2 stable. Therefore, the difference Equation (25) is unconditionally L 2 stable.
Theorem 2.
The difference Equation (45) for the first kind of the boundary value and the third kind of boundary value is unconditionally L 2 stable.
Proof. 
From the total error R ( 1 ) of the differential format for the first kind of the boundary value and the total error R 1 ( 1 ) of the differential format for the third kind of the boundary value, the total error is O τ 2 + h 2 . □
Let λ = α · τ h 2 be the grid ratio and use the Fourier method to analyze the stability of Equation (45):
I α τ 2 δ x 2 I α τ 2 δ r 2 + 1 r j δ r T i , j k + 1 = I + α τ 2 δ x 2 I + α τ 2 δ r 2 + 1 r j δ r T i , j k .
Substituting T j , l k = v k e i k 1 j h e i k 2 l h and e i θ = cos θ + i sin θ into Equation (45), we get v k + 1 = G ^ τ , k v k , where the growth factor G ^ τ , k of Equation (45) is as the following form:
G ^ τ , k = 1 2 α τ h 2 sin 2 k 1 h 2 1 2 α τ h 2 sin 2 k 2 h 2 + i 1 2 α τ h 2 sin 2 k 1 h 2 · α τ 2 h · r j sin k 2 h 1 + 2 α τ h 2 sin 2 k 1 h 2 1 + 2 α τ h 2 sin 2 k 2 h 2 + i 1 + 2 α τ h 2 sin 2 k 1 h 2 · α τ 2 h · r j sin k 2 h ,
then,
G ^ τ , k = 1 2 α τ h 2 sin 2 k 1 h 2 2 · 1 2 α τ h 2 sin 2 k 2 h 2 2 + 1 2 α τ h 2 sin 2 k 1 h 2 · α τ 2 h · r j sin k 2 h 2 1 + 2 α τ h 2 sin 2 k 1 h 2 2 · 1 + 2 α τ h 2 sin 2 k 2 h 2 2 + 1 + 2 α τ h 2 sin 2 k 1 h 2 · α τ 2 h · r j sin k 2 h 2 ,
where k = k 1 , k 2 . Obviously, G ^ τ , k 1 means that the difference scheme Equation (45) is unconditionally L 2 stable.

4.2. Convergence of Difference Scheme Solutions

The following will prove that ADI format with the backward Euler method and ADI format with Crank–Nicolson method are convergent whether for the first kind of boundary value or the third kind of boundary value.
Definition 3.
For a sufficiently smooth function u , if the time step and the space step both approach 0, the truncation error of the difference equation approaches 0 for each node, it is said that the difference equation approximates the differential equation, that is, the difference equation is consistent with differential equations [2].
Theorem 3.
If the difference equation satisfies the consistency condition and is stable according to the initial value, the difference solution converges to the solution of the original equation [2].
Theorem 4.
The difference Equation (25) in the case of boundary value of the first kind and boundary value of the third kind is consistent.
Proof. 
The consistency of the difference equation can be proved by the Taylor expansion method. □
For the difference scheme Equation (25):
I α τ δ x 2 I α τ δ r 2 + 1 r j δ r T i , j k + 1 = I + α 2 τ 2 δ x 2 δ r 2 + 1 r j δ r T i , j k + τ · f i , j k + 1 ,
T i , j k is expanded at node x i , r j , t k + 1 for t , T i 1 , j k + 1 , T i + 1 , j k + 1 and T i 1 , j k , T i + 1 , j k are expanded at node x i , r j , t k + 1 and x i , r j , t k for x , respectively, T i , j 1 k + 1 , T i , j + 1 k + 1 and T i , j 1 k , T i , j + 1 k are expanded at node x i , r j , t k + 1 and x i , r j , t k for r , respectively. We have obtained:
T t α · 2 T r 2 + 1 r · T r + 2 T x 2 f i , j k + 1 = τ 2 · 2 T t 2 + α · h 2 12 · 4 T x 4 + h 2 12 · 4 T r 4 + 1 r · h 2 6 · 3 T r 3 + o τ + h 2 i , j k + 1 α 2 τ 2 2 T x 2 + h 2 12 · 4 T x 4 2 T r 2 + h 2 12 · 4 T r 4 + 1 r · T r + 1 r · h 2 6 · 3 T r 3 i , j k + 1 + α 2 τ 2 2 T x 2 + h 2 12 · 4 T x 4 2 T r 2 + h 2 12 · 4 T r 4 + 1 r · T r + 1 r · h 2 6 · 3 T r 3 i , j k .
In the above equation, when h , τ 0 , all the terms at the right-hand side of the above equation are close to 0, and the difference equation approaches to the original differential equation. Therefore, the difference Equation (25) is consistent with the original equation.
Theorem 5.
The difference Equation (25) in the case of boundary value of the first kind and the third kind of boundary value is convergent.
Proof. 
Order error is O τ + h 2 , and according to Theorems 3, 4, and 1, the difference scheme Equation (25) in the case of boundary value of the first kind and the third kind of boundary value is convergent. □
Theorem 6.
The difference scheme Equation (45) in the case of the first kind of boundary value and the third kind of boundary value is consistent.
Proof. 
The consistency of the difference equation can be proved by the Taylor expansion method. □
For the difference Equation (45):
I α τ 2 δ x 2 I α τ 2 δ r 2 + 1 r j δ r T i , j k + 1 = I + α τ 2 δ x 2 I + α τ 2 δ r 2 + 1 r j δ r T i , j k ,
T i , j k and T i , j k + 1 is expanded at node x i , r j , t k + 1 for t , T i 1 , j k + 1 , T i + 1 , j k + 1 and T i 1 , j k , T i + 1 , j k are expanded at node x i , r j , t k + 1 and x i , r j , t k for x , respectively, T i , j 1 k + 1 , T i , j + 1 k + 1 and T i , j 1 k , T i , j + 1 k are expanded at node x i , r j , t k + 1 and x i , r j , t k for r , respectively. We have obtained:
T t α · 2 T r 2 + 1 r · T r + 2 T x 2 i , j k + 1 / 2 = τ 2 24 · 3 T t 3 + α · τ 2 8 · 4 T x 2 t 2 + h 2 12 · 4 T x 4 + τ 2 8 · 4 T r 2 t 2 + h 2 12 · 4 T r 4 + 1 r · τ 2 8 · 3 T r t 2 + h 2 6 · 3 T r 3 + o τ 2 + h 2 i , j k + 1 / 2 α 2 τ 2 4 · 2 T x 2 + h 2 12 · 4 T x 4 2 T r 2 + h 2 12 · 4 T r 4 + 1 r · T r + 1 r · h 2 6 · 3 T r 3 i , j k + 1 + α 2 τ 2 4 · 2 T x 2 + h 2 12 · 4 T x 4 2 T r 2 + h 2 12 · 4 T r 4 + 1 r · T r + 1 r · h 2 6 · 3 T r 3 i , j k .
In the above equation, when h , τ 0 , all the terms at the right-hand side of the above equation are close to 0, and the difference equation approaches to the original differential equation. Therefore, the difference Equation (45) is consistent with the original equation.
Theorem 7.
The difference Equation (45) in the case of the first kind of boundary value and the third kind of boundary value is convergent.
Proof. 
Order error is O τ 2 + h 2 , and according to theorems 3, 6, and 2, the difference scheme Equation (45) in the case of the first kind of boundary value and the third kind of boundary value is convergent. □

5. Examples

5.1. Verification of Convergence of Algorithm

5.1.1. Example of ADI with the Backward Euler Method

Using the difference scheme for ADI with the backward Euler method of the first kind of boundary value to solve the following definite solution problems, we can verify the convergence of the algorithm.
Example 1.
T t = 2 T r 2 + 1 r · T r + 2 T x 2 1 + 1 r · e x + r + t , 0 x 1 , 0 < r 1 ,
T x , r , 0 = e x + r ,
T 0 , r , t = e r + t , T 1 , r , t = e 1 + r + t , T x , 0 , t = e x + t , T x , 1 , t = e x + 1 + t ,
the exact solution of the above fixed solution problem is  T x , r , t = e x + r + t .
Space interval 0 , 1 is uniformly divided into M blocks. Denote h = h 1 = h 2 = 1 / M , x i = 0 + i h , r j = 0 + j h , 0 i M , 0 < j M . Time interval 0 , 1 is uniformly divided into N blocks. Denote τ = 1 / N , t k = 0 + k τ , 1 k N , and call x i , r j , t k as a network node.
The calculation formula of the maximum error E h , τ of the numerical solution is given by:
E h , τ = max 0 i , j M 0 k N T x i , r j , t k T i , j k .
The absolute error is the absolute value of the distinction between the exact solution and numerical solution.
Table 1 shows the numerical solution, the exact solution, and the absolute error at some nodes when h = 1 / 32 and τ = 1 / 512 .
Table 2 shows the maximum error of the numerical solution when the asynchronous step length is taken. It performs that when the space step is reduced to 1/2 and the time step is reduced to 1/4, the maximum error is approximately reduced by about 3/4.
Figure 2 shows the three-dimensional image of the approximate solution of the difference equation when h = 1 / 64 and τ = 1 / 2048 .
Figure 3 shows the numerical solutions obtained by PDETOOL of MATLAB.
Compare the longitudinal section and the cross section of Figure 2 and Figure 3. If the similarity is high, it means that the numerical solution obtained by the algorithm is basically consistent with the numerical solution given by PDETOOL of MATLAB. It shows that the algorithm is more accurate.
Figure 4 shows the longitudinal section contrast between Figure 2 and Figure 3.
Figure 5 shows the cross-sectional contrast between Figure 2 and Figure 3.
It shows from Figure 2, Figure 3, Figure 4 and Figure 5 that the numerical solution obtained by the ADI with the backward Euler method for the first kind of boundary value is in good agreement with the numerical solution given by the PDETOOL of MATLAB in the same environment.
From the comparison of the Table 1 and Table 2 and Figure 2, Figure 3, Figure 4 and Figure 5 of this example, it shows that the ADI with the backward Euler method enjoys a better convergence.

5.1.2. Example of ADI with Crank–Nicolson Method

Using the difference scheme for ADI with Crank–Nicolson method of the first kind of boundary value to solve the following definite solution problems, we verify the convergence of the algorithm.
Example 2.
T t = 2 T r 2 + 1 r · T r + 2 T x 2 , 1 x 2 , 1 r 2 ,
T x , r , 0 = e x + ln r ,
T 1 , r , t = e 1 + t + ln r , T 2 , r , t = e 2 + t + ln r , T x , 1 , t = e x + t , T x , 2 , t = e x + t + ln 2 ,
the exact solution of the above fixed solution problem is  T x , r , t = e x + t + ln r .
Space interval 1 , 2 is uniformly divided into M blocks. Denote h = h 1 = h 2 = 1 / M , x i = 1 + i h , r j = 1 + j h , 0 i , j M . Time interval 0 , 1 is uniformly divided into N blocks. Denote τ = 1 / N , t k = 0 + k τ , 1 k N , and call x i , r j , t k as a network node.
The calculation formula of the maximum error E h , τ of the numerical solution is given by:
E h , τ = max 0 i , j M 0 k N T x i , r j , t k T i , j k .
Table 3 shows the numerical solution, the exact solution, and the absolute error at some nodes when h = 1 / 32 and τ = 1 / 64 .
Table 4 shows the maximum error of the numerical solution when the asynchronous step length is taken. It represents that when the space step is reduced to 1/2 and the time step is decreased to 1/2, the maximum error is approximately dropped to about 3/4.
Figure 6 shows the three-dimensional image of the approximate solution of the difference equation when h = 1 / 64 and τ = 1 / 128 .
Figure 7 shows the numerical solutions obtained by PDETOOL of MATLAB.
Compare the longitudinal section and the cross section of Figure 6 and Figure 7. If the comparison is highly similar, the numerical solution obtained by the algorithm is basically consistent with the numerical solution given by PDETOOL of MATLAB, which shows that the algorithm is much accurate.
Figure 8 shows the longitudinal section contrast between Figure 6 and Figure 7.
Figure 9 shows the cross-sectional contrast between Figure 6 and Figure 7.
From Figure 6, Figure 7, Figure 8 and Figure 9, the numerical solution obtained by the ADI with Crank–Nicolson method for the first kind of boundary value is in good agreement with the numerical solution given by the PDETOOL of MATLAB in the same environment.
Corresponding to the comparison in the Table 3 and Table 4 and Figure 6, Figure 7, Figure 8 and Figure 9 that the ADI with Crank–Nicolson method has better convergence.

5.2. Laser Machining Simulation

We now use the difference scheme of the third kind of boundary value to solve the laser machining problem.
Example 3.
Let a laser beam irradiate the surface of the material vertically under the ambient temperature of 293   K 20   ° C . For simplicity, we consider that the input of laser energy acts on the material surface in the form of Gaussian heat flux. In this way, the center of the laser can reach the heat peak, and the temperature of the material boundary tends to the initial temperature. Therefore, the laser radius is equal to the material radius.
Table 5 shows the thermal property parameters of 316 stainless steel.
  • The input of laser energy acts on the material surface in the form of Gaussian heat flux, specifically:
    β q r = β · 8 P π · R 2 e 8 r 2 R 2 .
  • In the laser irradiation area Γ , the moving laser beam is loaded through the boundary conditions of the surface heat source:
    κ T · n S = β q r , S Γ , x = 0 .
  • The boundary outside the laser irradiation area Γ is in contact with air, and the boundary conditions are as following:
    κ T · n S = H T T a S , S = x , r Ω \ x = 0 , r R .
  • The initial temperature of the substrate is the ambient temperature, that is, the initial conditions of the substrate are:
    T x , r , 0 = T a .
Cylindrical coordinates should be adopted to this three-dimensional problem. Since the temperature distribution along the depth is symmetric after the laser beam irradiates the surface of the material, it can be converted into a two-dimensional problem with coordinates r , x . The heat conduction format in cylindrical coordinates is rewritten as:
T t = α · 2 T r 2 + 1 r · T r + 2 T x 2 + f , 0 x X , 0 < r R , 0 < t ,
T x , r t = 0 = T a ,
κ T · n x = 0 = β q r , r Γ , κ T · n x = X = H T T a , 0 < r R , κ T · n r = R = H T T a , 0 < x X , κ T r r = 0 = 0 , 0 < x X .
where α = κ ρ c is the thermal diffusivity.
Using ADI with the backward Euler method and ADI with Crank–Nicolson method to solve the problem on MATLAB, we can obtain Figure 10 and Figure 11.
Figure 10 shows the numerical solutions of difference equations by ADI with the backward Euler method when h = 0.001 / 100 , τ = 0.01 / 1000 and H = 1.5 .
Figure 11 shows the numerical solutions of difference equations by ADI with Crank-Nicolson method when h = 0.001 / 100 , τ = 0.01 / 500 and H = 1.5 .
The laser source is a function of r , and the temperature is symmetrically distributed along the radius of the material. Therefore, the temperature becomes lower in the x direction, distributed along the laser source function in the r direction.
Table 6 is the maximum error and the maximum relative error between the numerical solutions of the ADI with the backward Euler method and the exact solutions of ADI with Crank–Nicolson method when the asynchronous step length is taken.
The maximum relative error is the maximum error divided by the corresponding exact solution.
From Table 6, when τ / h gets smaller, the maximum error and the maximum relative error of the two algorithms gets smaller. The smaller τ / h 2 , the less the maximum error and the maximum relative error of the two algorithms when τ / h comes the same.
Use the PDETOOL of MATLAB to simulate Example 3. The results are shown in Figure 12.
The approximate solution in Figure 10 and Figure 11 is compared with the cross and the longitudinal sections of the numerical solution in Figure 12, as shown in Figure 13 and Figure 14.
Figure 13 shows the longitudinal section contrast among Figure 10, Figure 11 and Figure 12.
Figure 14 shows the cross-sectional contrast among Figure 10, Figure 11 and Figure 12.
From Figure 10, Figure 11, Figure 12, Figure 13 and Figure 14, both numerical solutions obtained by the ADI with the backward Euler method and with Crank–Nicolson method for the third kind of boundary value are in good agreement with the numerical solutions given by the PDETOOL of MATLAB in the same environment within a certain small error, which shows that these methods are feasible and effective in laser processing.
Example 4.
To be compared with Example 3, we take the laser radius as 0.0008   m so that the laser radius is smaller than the material radius under the same environmental conditions.
(1)
In the laser irradiation surface, we have:
κ T · n S = β q ^ r , S Γ , x = 0 , T S = 293 K , S = x , r x = 0 , 0.0008 < r R .
(2)
The input of laser energy acts on the material surface in the form of Gaussian heat flux, specifically:
β q ^ r = β · 8 P π · R 2 e 40 r 2 R 2 .
Other parameters and environmental conditions behavior the same as Example 3.
Using the ADI with Crank–Nicolson method to solve the problem on MATLAB, we can obtain Figure 15.
Figure 15 shows the numerical solutions of difference equations by ADI with Crank-Nicolson method when h = 0.001 / 100 , τ = 0.01 / 500 and H = 1.5 .
Use the PDETOOL of MATLAB to simulate Example 4. The results are shown in Figure 16.
From the results of Figure 15 and Figure 16, it shows the correctness of the algorithm.
We consider combining the β q ^ r of Example 4 and the rest of the environmental conditions of Example 3 to form a new problem. This new problem and Example 4 vary from the laser irradiation area. Using ADI with Crank–Nicolson method to solve this new problem on MATLAB, we can attain Figure 17.
Figure 17 shows the numerical solutions of difference equations by ADI with Crank-Nicolson method when h = 0.001 / 100 , τ = 0.01 / 500 and H = 1.5 .
From Figure 15 and Figure 17, the maximum error and the maximum relative error obviously appear on the boundary. Since the maximum error and the maximum relative error respectively is 8.5667 K and 0.0284, and the melting point of the material is relatively high, the temperature distinction in the interior point is negligible in Figure 15 and Figure 17.

6. Conclusions

In this article, the effective computation of the heat distribution of the material is studied when the laser beam is irradiated on the section of the cylinder material, where the laser beam is expressed as a Gaussian distribution. The mathematical model—three-dimensional heat conduction equation, is converted into a two-dimensional parabolic equation. Based on the symmetry of the heat distribution, the three-dimensional equation in the rectangular coordinate system can be changed to the simplified two-dimensional equation in the cylindrical coordinate system, which raises the work efficiency, but also saves the storage space.
Subsequently, to solve the simplified equation, the unconditionally stable ADI scheme is developed with the classic backward Euler method or Crank–Nicolson method in the cylindrical coordinate system, and then the simulation results are obtained, where the first kind of boundary value condition or the third kind of boundary value condition is considered. Further, these two methods have been proved to be unconditionally L 2 stable and convergent, and their accuracies are verified by Examples 1 and 2. Examples 3 and 4 demonstrate that these two methods are feasible, stable, and efficient to solve the laser processing problem model. Example 4 also verifies that under certain conditions and errors, the entire laser irradiation can be used to replace the partial laser irradiation, thereby simplifying the boundary heat dissipation problem.
Comparison between the results obtained by these two methods and the results obtained by PDETOOL of MATLAB in each example, shows that our results are more convincing, and our treatment has two advantages. Firstly, self-programming can use different methods to discretize distinct problems, which improves the flexibility of the algorithm, saves running space and time and raises efficiency. Secondly, in the absence of an exact solution, our approach can check whether the algorithm is correct or not by comparing with the numerical solution of PDETOOL.
The three-dimensional heat conduction problem model of the article is also universal. The material irradiated by the laser is not necessarily cylindrical. As long as a circle is set at the center of the laser spot, the problem model in this article is still applicable. The only difference is the processing of the boundary, that is, the expression and discretization of the boundary conditions may need to be processed separately.

Author Contributions

Conceptualization, J.Z.; formal analysis, J.Z. and W.L.; methodology, J.Z. and W.L.; writing—original draft, J.Z. and W.L.; writing—review and editing, J.Z.; software, J.Z. and W.L. All authors have read and agreed to the published version of the manuscript.

Funding

This research was funded by the Ministry of Science and Technology of the People’s Republic of China under Grant 2018YFB1107600.

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

Not applicable.

Acknowledgments

We are greatly indebted to four anonymous referees for many helpful comments.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Taflove, A.; Hagness, S.C. Computational Electrodynamics: The Finite-Difference Time-Domain Method; Artech House: Boston, MA, USA, 2000. [Google Scholar]
  2. Li, R.H. Numerical Solution of Partial Differential Equations; Higher Education Press: Beijing, China, 2010. (In Chinese) [Google Scholar]
  3. Zhu, J.X.; Sun, L.X. Mathematical model and computation of heat distribution for LED heat sink. Eur. Phys. J. Plus 2016, 131. [Google Scholar] [CrossRef]
  4. Zhu, D.W.; Chen, H.L.; Yang, J.; Chen, B. An ADI-FDTD method and its CPML implementation in three-dimensional cylindrical coordinate system. J. Microw. 2019, 10, 8–13. (In Chinese) [Google Scholar]
  5. Chen, H.-L.; Chen, B.; Yi, Y.; Fang, D.-G. Unconditionally Stable ADI–BOR–FDTD Algorithm for the Analysis of Rotationally Symmetric Geometries. IEEE Microw. Wirel. Compon. Lett. 2007, 17, 304–306. [Google Scholar] [CrossRef]
  6. Chen, Y.; Mittra, R.; Harms, P. Finite-difference time-domain algorithm for solving Maxwell’s equations in rotationally symmetric geometries. IEEE Trans. Microw. Theory Tech. 1996, 44, 832–839. [Google Scholar] [CrossRef]
  7. Zhao, A.P. Two special notes on the implementation of the unconditionally stable ADI-FDTD method. Microw. Opt. Technol. Lett. 2002, 33, 273–277. [Google Scholar] [CrossRef]
  8. Prather, D.W.; Shi, S. Formulation and application of the finite-difference time-domain method for the analysis of axially symmetric diffractive optical elements. J. Opt. Soc. Am. A 1999, 16, 1131–1142. [Google Scholar] [CrossRef]
  9. Yu, W.; Arakaki, D.; Mittra, R. On the solution of a class of large body problems with full or partial circular symmetry by using the finite-difference time-domain (FDTD) method. IEEE Trans. Antennas Propag. 2000, 48, 1810–1817. [Google Scholar] [CrossRef] [Green Version]
  10. Namiki, T. A new FDTD algorithm based on alternating-direction implicit method. IEEE Trans. Microw. Theory Tech. 1999, 47, 2003–2007. [Google Scholar] [CrossRef]
  11. Yuan, C.; Chen, Z. A three-dimensional unconditionally stable ADI-FDTD method in the cylindrical coordinate system. IEEE Trans. Microw. Theory Tech. 2002, 50, 2401–2405. [Google Scholar] [CrossRef]
  12. Zhen, F.; Chen, Z.; Zhang, J. Toward the development of a three-dimensional unconditionally stable finite-difference time-domain method. IEEE Trans. Microw. Theory Tech. 2000, 48, 1550–1558. [Google Scholar] [CrossRef] [Green Version]
  13. Marin, M. The Lagrange identity method in thermoelasticity of bodies with microstructure. Int. J. Eng. Sci. 1994, 32, 1229–1240. [Google Scholar] [CrossRef]
  14. Marin, M.; Vlase, S.; Paun, M. Considerations on double porosity structure for micropolar bodies. AIP Adv. 2015, 5, 037113. [Google Scholar] [CrossRef] [Green Version]
Figure 1. Sketch of the domain of heat equation.
Figure 1. Sketch of the domain of heat equation.
Mathematics 09 01368 g001
Figure 2. Numerical solutions of difference equations h = 1 / 64 , τ = 1 / 2048 .
Figure 2. Numerical solutions of difference equations h = 1 / 64 , τ = 1 / 2048 .
Mathematics 09 01368 g002
Figure 3. Numerical solutions obtained by PDETOOL of MATLAB.
Figure 3. Numerical solutions obtained by PDETOOL of MATLAB.
Mathematics 09 01368 g003
Figure 4. Longitudinal section contrast.
Figure 4. Longitudinal section contrast.
Mathematics 09 01368 g004
Figure 5. Cross-sectional contrast.
Figure 5. Cross-sectional contrast.
Mathematics 09 01368 g005
Figure 6. Numerical solutions of difference equations h = 1 / 64 ,   τ = 1 / 128 .
Figure 6. Numerical solutions of difference equations h = 1 / 64 ,   τ = 1 / 128 .
Mathematics 09 01368 g006
Figure 7. Numerical solutions obtained by PDETOOL of MATLAB.
Figure 7. Numerical solutions obtained by PDETOOL of MATLAB.
Mathematics 09 01368 g007
Figure 8. Longitudinal section contrast.
Figure 8. Longitudinal section contrast.
Mathematics 09 01368 g008
Figure 9. Cross-sectional contrast.
Figure 9. Cross-sectional contrast.
Mathematics 09 01368 g009
Figure 10. Numerical solutions of difference equations h = 0.001 / 100 ,   τ = 0.01 / 1000 ,   H = 1.5 .
Figure 10. Numerical solutions of difference equations h = 0.001 / 100 ,   τ = 0.01 / 1000 ,   H = 1.5 .
Mathematics 09 01368 g010
Figure 11. Numerical solutions of difference equations h = 0.001 / 100 ,   τ = 0.01 / 500 ,   H = 1.5 .
Figure 11. Numerical solutions of difference equations h = 0.001 / 100 ,   τ = 0.01 / 500 ,   H = 1.5 .
Mathematics 09 01368 g011
Figure 12. Numerical solutions obtained by PDETOOL of MATLAB.
Figure 12. Numerical solutions obtained by PDETOOL of MATLAB.
Mathematics 09 01368 g012
Figure 13. Longitudinal sectional contrast.
Figure 13. Longitudinal sectional contrast.
Mathematics 09 01368 g013
Figure 14. Cross section contrast.
Figure 14. Cross section contrast.
Mathematics 09 01368 g014
Figure 15. Numerical solutions of difference equations h = 0.001 / 100 ,   τ = 0.01 / 500 ,   H = 1.5 .
Figure 15. Numerical solutions of difference equations h = 0.001 / 100 ,   τ = 0.01 / 500 ,   H = 1.5 .
Mathematics 09 01368 g015
Figure 16. Numerical solutions obtained by PDETOOL of MATLAB.
Figure 16. Numerical solutions obtained by PDETOOL of MATLAB.
Mathematics 09 01368 g016
Figure 17. Numerical solutions of difference equations h = 0.001 / 100 ,   τ = 0.01 / 500 ,   H = 1.5 .
Figure 17. Numerical solutions of difference equations h = 0.001 / 100 ,   τ = 0.01 / 500 ,   H = 1.5 .
Mathematics 09 01368 g017
Table 1. Numerical solution, exact solution, and absolute error at some nodes h   =   1 / 32 ,   τ   =   1 / 512 .
Table 1. Numerical solution, exact solution, and absolute error at some nodes h   =   1 / 32 ,   τ   =   1 / 512 .
( x , r , t ) Numerical SolutionExact
Solution
Absolute
Error
(0.25,0.25,0.25)2.11728812.11700002.881 × 10−4
(0.25,0.75,0.25)3.49055273.49034302.097 × 10−4
(0.75,0.75,0.25)5.75488145.75460272.787 × 10−4
(0.25,0.25,0.50)2.71865702.71828183.752 × 10−4
(0.25,0.75,0.50)4.48196084.48168912.717 × 10−4
(0.75,0.75,0.50)7.38941657.38905613.604 × 10−4
(0.25,0.25,0.75)3.49082483.49034304.818 × 10−4
(0.25,0.75,0.75)5.75495165.75460273.489 × 10−4
(0.75,0.75,0.75)9.48819869.48773584.628 × 10−4
(0.25,0.25,1.00)4.48230774.48168916.186 × 10−4
(0.25,0.75,1.00)7.38950417.38905614.480 × 10−4
(0.75,0.75,1.00)12.183088112.18249405.941 × 10−4
Table 2. The maximum error E h , τ corresponding to the asynchronous step length, where * means null.
Table 2. The maximum error E h , τ corresponding to the asynchronous step length, where * means null.
h τ E h , τ E 2 h , 4 τ / E h , τ
1/161/328.7000E-03*
1/321/1282.6000E-033.35
1/641/5126.7742E-043.84
1/1281/20481.7223E-043.93
Table 3. Numerical solution, exact solution, and absolute error at some nodes h = 1 / 32 ,   τ = 1 / 64 .
Table 3. Numerical solution, exact solution, and absolute error at some nodes h = 1 / 32 ,   τ = 1 / 64 .
( x , r , t ) Numerical SolutionExact
Solution
Absolute
Error
(0.25,0.25,0.25)4.70485364.70483262.100 × 10−5
(0.25,0.75,0.25)5.04132535.04130492.040 × 10−5
(0.75,0.75,0.25)7.94869937.94867192.740 × 10−5
(0.25,0.25,0.50)5.97777405.97774622.780 × 10−5
(0.25,0.75,0.50)6.31424526.31421852.670 × 10−5
(0.75,0.75,0.50)10.047387310.04735163.570 × 10−5
(0.25,0.25,0.75)7.61223607.61219973.630 × 10−5
(0.25,0.75,0.75)7.94870667.94867193.470 × 10−5
(0.75,0.75,0.75)12.742155912.74210974.620 × 10−5
(0.25,0.25,1.00)9.71092699.71087944.750 × 10−5
(0.25,0.75,1.00)10.047396510.04735164.490 × 10−5
(0.75,0.75,1.00)16.202307316.20224775.960 × 10−5
Table 4. The maximum error E h , τ corresponding to the asynchronous step length, where * means null.
Table 4. The maximum error E h , τ corresponding to the asynchronous step length, where * means null.
h τ E h , τ E 2 h , 2 τ / E h , τ
1/81/161.4000E-03*
1/161/323.4836E-044.02
1/321/648.7437E-053.98
1/641/1282.1908E-053.99
Table 5. The thermal property parameters of 316 stainless steel.
Table 5. The thermal property parameters of 316 stainless steel.
Density ρ 8000   kg / m 3
Specific heat capacity c 500   J / kg · K
Coefficient of thermal conductivity κ 21.5   W / m · K
Melting point 1673   K
The parameters are set to the initial temperature T 0 293   K 20   ° C
The initial ambient temperature T a 293   K
The laser radius R 0.001   m
The material thickness X 0.001   m
The material surface radius R 0.001   m
The material’s absorption rate of laser energy β 1
The laser power P 200   W
Table 6. The maximum error, E h , τ , and the maximum relative error corresponding to the asynchronous step length.
Table 6. The maximum error, E h , τ , and the maximum relative error corresponding to the asynchronous step length.
h τ E h , τ Maximum Relative Error
1/501/10008.61340.0188
1/501/20004.00320.0081
1/501/30002.61430.0052
1/501/40001.94120.0038
1/1001/100027.87240.0702
1/1001/200010.00510.0284
1/1001/30005.86130.0157
1/1001/40004.11850.0107
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Share and Cite

MDPI and ACS Style

Zhu, J.; Lin, W. Efficient Computation of Heat Distribution of Processed Materials under Laser Irradiation. Mathematics 2021, 9, 1368. https://doi.org/10.3390/math9121368

AMA Style

Zhu J, Lin W. Efficient Computation of Heat Distribution of Processed Materials under Laser Irradiation. Mathematics. 2021; 9(12):1368. https://doi.org/10.3390/math9121368

Chicago/Turabian Style

Zhu, Jianxin, and Wencheng Lin. 2021. "Efficient Computation of Heat Distribution of Processed Materials under Laser Irradiation" Mathematics 9, no. 12: 1368. https://doi.org/10.3390/math9121368

APA Style

Zhu, J., & Lin, W. (2021). Efficient Computation of Heat Distribution of Processed Materials under Laser Irradiation. Mathematics, 9(12), 1368. https://doi.org/10.3390/math9121368

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