Abstract

The Allen-Cahn model is discussed mainly in the phase field simulation. The compact difference method will be used to numerically approximate the two-dimensional nonlinear Allen-Cahn equation with initial and boundary value conditions, and then, a fully discrete compact difference scheme with second-order accuracy in time and fourth-order in space is established. And its numerical solution satisfies the discrete maximum principle under the constraints of reasonable space and time steps. On this basis, the energy stability of the scheme is investigated. Finally, numerical examples are given to illustrate the theoretical results.

1. Introduction

The phase field problem is a mathematical model described by partial differential equations. The numerical simulation of the phase field has always been an important field of research at home and abroad because of its important theoretical and practical significance. In 1979, the Allen-Cahn equation is considered to describe the antiphase boundary of the crystal movement by Allen and Cahn, which describes fluid dynamics problems and reaction diffusion problems in materials science, and the same model on the study of many diffusion phenomena is proposed such as the competition and repulsion of biological populations and the migration process of river beds. For describing the motion of the antiphase boundary in the crystal, since this type of phase field model does not have an accurate solution, different numerical methods are used to simulate. At present, numerical approximation methods about these phase field models include the finite difference method [15], finite element method [68], and spectral method [9, 10], etc.

In the paper, the compact difference method is applied to approximate the two-dimensional nonlinear Allen-Cahn equations with initial boundary conditions numerically. where represents the concentration of a metal component in a binary alloy, the positive parameter is the interface width, and the nonlinear term .

The energy function on the space is defined as Here, . One of the intrinsic properties of the Allen-Cahn equation is the energy function that decreases with time:

In 2016, Zhang and Hou [3] considered three discrete schemes of the Allen-Cahn equation that included the stable first-order linear explicit-implicit scheme, stable second-order nonlinear Crank-Nicolson scheme, and stable second-order linear Leap-Frog scheme and proved the discrete maximum principle and energy stability under the condition of these three schemes; a compact difference scheme with second-order accuracy in time and fourth-order accuracy in space for one-dimensional Allen-Cahn equation was established by Tian et al. [2] in 2018, and the energy stability of the scheme was investigated; Wu et al. [11] proposed two ADI schemes for the two-dimensional Allen-Cahn equation: the second-order ADI scheme and fourth-order compact ADI scheme, and the analysis of stability and maximum principle were given, respectively, in 2019; then, Deng et al. [12] adopted the finite difference method in time and barycentric interpolation collocation method in space for the two-dimensional Allen-Cahn equation in 2020, obtained the spatial high precision error, and verified the law of energy decline; the Crank-Nicolson difference scheme with second-order accuracy in time and space for the two-dimensional Allen-Cahn equation was established by Zhang et al. [1] in 2021, which proved the existence and convergence of the solution, and finally verified the discrete maximum principle with a numerical example. Based on the existing finite difference methods and inspired by reference [2], a compact difference scheme with second-order accuracy in time and fourth-order accuracy in space is established for the two-dimensional Allen-Cahn equation. Then, the discrete maximum principle and discrete energy stability are mainly investigated. Compared with the previous work about two-dimensional Allen-Cahn equations, this paper obtains higher accuracy in space than before, and the compact difference method is applied and realized in two-dimensional equations for the first time, which will add an effective and feasible method to this kind of research.

2. Establishment of a Compact Difference Scheme for the Two-Dimensional Allen-Chan Equation

Firstly, several commonly used numerical differential formulas are given:

Let and be two constants.

Lemma 1 (see [2]). If , then

Lemma 2 (see [2]). If , then

Lemma 3 (see [2]). If , then

In this section, a compact difference scheme will be establish for the following two-dimensional Allen-Cahn equation as where .

Let us divide the interval [0, 1] into equal parts and [0, 𝑇] into 𝑁 equal parts, the space step is , and time step is , where , , , , and , . and . Let and be called the node.

Suppose is a grid function on , let

Suppose is a grid function on , the operator is defined by

Then, we get the following equation:

Define the grid functions as

Considering differential Equation (13) at the point ,

Using Taylor expansion,

Substituting the above three equations into (15),

Denoted by

Then,

Acting the operator on both sides of the equation above,

Considering differential Equation (11) at the point ,

Based on Lemma 3,

Acting the two equations superscripted as and and dividing by 2,

Acting the operator on both sides of the equation above,

Similarly, considering differential Equation (12) at the point , then

Substituting (24) and (25) into (20),

Here,

Then,

Omitting the small term and substituting the following equation into (28),

Then, the two-dimensional Allen-Cahn Equation (7) corresponding compact difference scheme is obtained.

Finally, the spatial derivative is discretized by the central finite difference scheme for the two-dimensional Allen-Cahn equation, the is expressed as the corresponding discrete matrix, and Here, Meanwhile, let be the number of nodes inside the interval after spatial dispersion and be the space step.

Then, the discrete matrix satisfies the following properties: (a) is symmetric.(b) is semi-negative definite, such as(c)The elements in satisfy

Let

Matrix satisfies the following properties: (a) is symmetric.(b) is positive definite, such as(c)The elements in satisfy

Substituting the matrix and into (30), we get the compact difference scheme:

Here,

Multiplying to both sides of the above equation,

Matrix satisfies the following properties: (a) is symmetric.(b) is negative definite, such as

3. Discrete Maximum Principle of Compact Difference Scheme for Two-Dimensional Allen-Cahn Equation

Theorem 4. Assuming that the initial value of the Allen-Cahn problem satisfies , when the step ratio satisfies and the time step satisfies , we have , for .

Proof. Obviously, . Assuming that , then needs to be proved. Expanding the established compact difference scheme, Multiplying to both sides of the above equation and letting , Shifting terms on both sides of the equation, For the right side of Equation (45), the -layer terms are processed firstly.
Then, the sum of the -layer terms is . Let . Thus, Since is monotonicity decreasing, When , , therefore, .
Thus, is monotonicity increasing. , , namely, Let Then, Since is monotonicity decreasing, When , , we have .
Thus, is monotonicity increasing. , then , namely, Let Then, Since is monotonicity decreasing, When , , we have .
Thus, is monotonicity increasing. , , that is, According to (50), (55), and (60), when , Then, Next, the eight items in the layer on the right side of equation (45) are dealt.
Let Then, When , the maximum point is obtained, Since is an odd function and monotonicity increasing in the interval of , then .
Let Then, When , the maximum point is obtained, Since is an odd function and monotonicity increasing in the interval of , then .
Substituting (62), (63), and (66) into (45), then Suppose .
On the one hand, for the right eight terms of Equation (69), taking the absolute value of both sides of the equation by definition (63), according to the triangle inequality, Similarly, Taking the absolute value of both sides of the equation by definition (66), according to the triangle inequality, Similarly, Taking for the left side of (69), substituting (70) and (72) into the right side of (69), namely, When , then , .
Let , suppose , then and are monotonicity increasing in the interval of . For then Since , then So, Similarly, for then Since , then That means that In conclusion, according to (65), (68), (79), and (83), we obtain .
On the other hand, taking in (69), thus According to (63) and (66), namely, is obtained.
Consequently, when , , then .

4. Two-Dimensional Discrete Energy Stability

Lemma 5 (see [2]). ,

According to the energy function that is defined by (2), discrete energy function of compact difference scheme (41) is defined by

Theorem 6. Assuming that the initial value of the Allen-Cahn problem satisfies , then the numerical solution obtained by scheme (41) satisfies discrete energy decaying under the condition of 4:

Proof. In view of Theorem 4, and .
Therefore, using Lemma 5, Since the matrix is symmetric, Substituting (91) and (92) into (90), Multiplying (41) by , summing up for from to and same for , Substituting (94) into (93), Then, Since , , the right side of inequality is negative.
Then, is proved.☐

5. Numerical Examples

In this part, some numerical examples are given to verify the theoretical results of the previous sections which are discrete numerical maximum principle and energy stability. Considering a two-dimensional problem with homogeneous Riemann boundary conditions, and selecting the initial condition as

here, is a random sequence in the interval of .

If given , by , using the conditions of Theorem 4, , we can get . Taking different values for time step , the results are shown in the following figures.

It can be observed from Figure 1 that the discrete scheme (30) satisfies the maximum principle when the time step is 0.025 or 0.04, and from Figure 2, the discrete scheme (30) does not satisfy the maximum principle when the time step is 0.3 or 0.5. In addition, it satisfies the stability of discrete energy decaying according to Figures 3 and 4.

Then, if given ; similarly, we can get . The results are shown in the following figures.

It can be observed from Figure 5 that the discrete scheme (30) satisfies the maximum principle when the time step is 0.02 or 0.025, and from Figure 6, the discrete scheme (30) does not satisfy the maximum principle when the time step is 0.3 or 0.5. In addition, it satisfies the stability of discrete energy decaying according to Figures 7 and 8.

6. Conclusions

In this paper, the two-dimensional nonlinear Allen-Cahn equation is discretized by using the central finite difference method in space and using two operators and in time, and then, the fully discrete compact difference scheme with second-order accuracy in time and fourth-order in space is established as below:

Constructing the discrete matrix,

Then, using the matrix instead of the operator, the following compact difference equation (39) can be obtained:

It proved that when , , the discrete scheme satisfies the maximum principle , for .

Secondly, the discrete energy function of the compact difference scheme (88) of the two-dimensional Allen-Cahn equation is

The numerical solution obtained by scheme (39) satisfies the stability of discretization energy decaying under the conditions and conclusions of discretization maximization.

Data Availability

The data used to support the findings of this study are included within the article.

Conflicts of Interest

The authors declare that they have no conflicts of interest.

Acknowledgments

The work is supported by the National Natural Science Foundation of China (11761074), the Natural Science Foundation of Jilin Province (2020122336JC), and the Program for Young and Middle-Aged Leading Talents in Scientific and Technological Innovation of Jilin Province (20200301053RQ).