
In this paper, we present an efficient and energy-stable scheme based on the Crank–Nicolson formula for the modified phase-field crystal equation with a strong nonlinear vacancy potential. In the scheme, the nonlinear terms (the first derivatives of the double-well and vacancy potentials) are treated explicitly, which makes the scheme efficient, and the energy stability is guaranteed by assuming that the second derivatives of the double-well and vacancy potentials are each bounded and by adding two second-order stabilization terms. In particular, by bounding the second derivatives of the double-well and vacancy potentials, respectively, we can choose the stabilization parameters independently of the vacancy parameter. As a result, the convergence constant and energy decay trend are not affected by the vacancy parameter.
Citation: Hyun Geun Lee. An efficient and energy-stable scheme for the modified phase-field crystal equation with a strong nonlinear vacancy potential[J]. AIMS Mathematics, 2025, 10(3): 5568-5582. doi: 10.3934/math.2025257
[1] | Saulo Orizaga, Ogochukwu Ifeacho, Sampson Owusu . On an efficient numerical procedure for the Functionalized Cahn-Hilliard equation. AIMS Mathematics, 2024, 9(8): 20773-20792. doi: 10.3934/math.20241010 |
[2] | Hyun Geun Lee . A mass conservative and energy stable scheme for the conservative Allen–Cahn type Ohta–Kawasaki model for diblock copolymers. AIMS Mathematics, 2025, 10(3): 6719-6731. doi: 10.3934/math.2025307 |
[3] | Wei Li, Guangying Lv . A fully-decoupled energy stable scheme for the phase-field model of non-Newtonian two-phase flows. AIMS Mathematics, 2024, 9(7): 19385-19396. doi: 10.3934/math.2024944 |
[4] | Mingliang Liao, Danxia Wang, Chenhui Zhang, Hongen Jia . The error analysis for the Cahn-Hilliard phase field model of two-phase incompressible flows with variable density. AIMS Mathematics, 2023, 8(12): 31158-31185. doi: 10.3934/math.20231595 |
[5] | Keltoum Bouhali, Sulima Ahmed Zubair, Wiem Abedelmonem Salah Ben Khalifa, Najla ELzein AbuKaswi Osman, Khaled Zennir . A new strict decay rate for systems of longitudinal $ m $-nonlinear viscoelastic wave equations. AIMS Mathematics, 2023, 8(1): 962-976. doi: 10.3934/math.2023046 |
[6] | M. Ali Akbar, Norhashidah Hj. Mohd. Ali, M. Tarikul Islam . Multiple closed form solutions to some fractional order nonlinear evolution equations in physics and plasma physics. AIMS Mathematics, 2019, 4(3): 397-411. doi: 10.3934/math.2019.3.397 |
[7] | Tingting Ma, Yuehua He . An efficient linearly-implicit energy-preserving scheme with fast solver for the fractional nonlinear wave equation. AIMS Mathematics, 2023, 8(11): 26574-26589. doi: 10.3934/math.20231358 |
[8] | Abdulhamed Alsisi . The powerful closed form technique for the modified equal width equation with numerical simulation. AIMS Mathematics, 2025, 10(5): 11071-11085. doi: 10.3934/math.2025502 |
[9] | Mohammad Alqudah, Manoj Singh . Applications of soliton solutions of the two-dimensional nonlinear complex coupled Maccari equations. AIMS Mathematics, 2024, 9(11): 31636-31657. doi: 10.3934/math.20241521 |
[10] | Ahmed E. Abouelregal, Faisal Alsharif, Hashem Althagafi, Yazeed Alhassan . Fractional heat transfer DPL model incorporating an exponential Rabotnov kernel to study an infinite solid with a spherical cavity. AIMS Mathematics, 2024, 9(7): 18374-18402. doi: 10.3934/math.2024896 |
In this paper, we present an efficient and energy-stable scheme based on the Crank–Nicolson formula for the modified phase-field crystal equation with a strong nonlinear vacancy potential. In the scheme, the nonlinear terms (the first derivatives of the double-well and vacancy potentials) are treated explicitly, which makes the scheme efficient, and the energy stability is guaranteed by assuming that the second derivatives of the double-well and vacancy potentials are each bounded and by adding two second-order stabilization terms. In particular, by bounding the second derivatives of the double-well and vacancy potentials, respectively, we can choose the stabilization parameters independently of the vacancy parameter. As a result, the convergence constant and energy decay trend are not affected by the vacancy parameter.
Phase-field models have emerged as a powerful computational approach to modeling and predicting mesoscale morphological and microstructure evolution in materials [1], such as crystals [2,3], data assimilation [4], and nucleation [5]. As one example, the modified phase-field crystal (MPFC) equation was adopted to describe diffusive dynamics and elastic interactions [6,7,8,9,10,11] and extended to the MPFC equation with a strong nonlinear vacancy potential (VMPFC) to include vacancies that exist in real materials when the local density is low [12]. We consider the following energy functional [12]:
E(ϕ):=∫Ω(Fdou(ϕ)+Fvac(ϕ)+12ϕ(1+Δ)2ϕ)dx, | (1.1) |
where Ω is a domain in Rd(d=2,3), ϕ is the local atomic density field, Fdou(ϕ)=14ϕ4−ϵ2ϕ2 is the double-well potential, ϵ>0 is the undercooling parameter, Fvac(ϕ)=hvac3(|ϕ|3−ϕ3) is the vacancy potential, and hvac≫1 is the penalization parameter. For simplicity, we take the periodic boundary condition for the system. Then, the VMPFC equation can be regarded as a pseudo-gradient flow of (1.1) in H−1(Ω):
α∂ψ∂t+βψ=MΔ(fdou(ϕ)+fvac(ϕ)+(1+Δ)2ϕ), | (1.2) |
∂ϕ∂t=ψ, | (1.3) |
where α,β>0 are constants, M>0 is a mobility, fdou(ϕ)=F′dou(ϕ), and fvac(ϕ)=F′vac(ϕ). When α=hvac=0, the VMPFC equation degenerates back to the classical PFC equation. The initial condition of the VMPFC equation is
ψ(x,0)=ψ0(x),ϕ(x,0)=ϕ0(x). |
The VMPFC equation becomes a mass-conservative equation if (ψ0(x),1)L2=0 is used and the solution of the VMPFC equation decays the following energy functional:
F(ϕ):=E(ϕ)+α2M‖ψ‖2H−1, | (1.4) |
where (⋅,⋅)L2 and (⋅,⋅)H−1 denote the inner products in L2(Ω) and H−1(Ω), respectively. The H−1 inner product is defined as follows: for given f,g∈H0 (H0 is a zero average subspace of a Hilbert space), (f,g)H−1:=(∇vf,∇vg)L2, where vf,vg∈H0 are the solutions of the periodic boundary value problems −Δvf=f,−Δvg=g in Ω, respectively. And ‖⋅‖H−1:=√(⋅,⋅)H−1 denotes the H−1 norm.
Various numerical schemes have been proposed to solve the VMPFC equation [13,14,15,16,17,18]. The scalar auxiliary variable, u(t)=√∫Ω(Fdou(ϕ)+Fvac(ϕ))dx+Cu, the multiple scalar auxiliary variables, u1(t)=√∫ΩFdou(ϕ)dx+Cu1 and u2(t)=√∫ΩFvac(ϕ)dx+Cu2, the auxiliary variable, v(x,t)=√Fdou(ϕ)+Fvac(ϕ)+Cv, and the exponential scalar auxiliary variable, w(t)=exp(F(ϕ)Cw), were introduced in [13], [14,15], [16], and [17], respectively, to redefine the energy functional and reformulate the VMPFC equation, where Cu, Cu1, Cu2, and Cv are constants that make each radicand positive and Cw is a constant that suppresses the exponential growth. And the second-order backward differentiation formula was used to discretize the reformulated system, and the second-order stabilization term, S(ϕn+1−2ϕn+ϕn−1), was added to improve energy stability. In [18], the linear convex splitting was introduced by truncating 14ϕ4+Fvac(ϕ) by the specific function and the second-order Douglas–Dupont regularization, −SΔtΔ(ϕn+1−ϕn), was added to improve energy stability. For the balance between accuracy and energy stability, S was chosen to be hvacO(|minx∈Ω(ϕ(x,t),0)|) in [13] and proportional to hvac in [14,15,16,17,18]. Thus, it was observed that the convergence constant and energy decay trend are affected by hvac.
In this paper, we present an efficient and energy-stable scheme based on the Crank–Nicolson (CN) formula for the VMPFC equation. In the scheme, fdou(ϕ) and fvac(ϕ) are treated explicitly, which makes the scheme efficient, and the energy stability is guaranteed by assuming that f′dou(ϕ) and f′vac(ϕ) are each bounded and by adding two second-order stabilization terms. In particular, by bounding f′dou(ϕ) and f′vac(ϕ) respectively, we can choose the stabilization parameters independently of hvac. As a result, the convergence constant and energy decay trend are not affected by hvac. And the scheme can be easily implemented within a few lines of MATLAB code.
The remainder of this paper is organized as follows. We design the numerical approximation and show its mass conservation and energy stability analytically in Section 2 and numerically in Section 3. Conclusions are given in Section 4. The MATLAB code for the numerical approximation is given in the Appendix.
We design the numerical approximation for the VMPFC equation based on the CN formula:
αΔtδtψn+1=MΔ(fdou(ϕ∗,n+12)+fvac(ϕ∗,n+12)+(1+Δ)2ϕn+12−AΔtΔδtϕn+1+B(δtϕn+1−δtϕn))−βψn+12, | (2.1) |
1Δtδtϕn+1=ψn+12, | (2.2) |
where δtϕn+1=ϕn+1−ϕn, ϕn+12=ϕn+1+ϕn2, ϕ∗,n+12=3ϕn−ϕn−12, δtψn+1=ψn+1−ψn, ψn+12=ψn+1+ψn2, A,B>0 are stabilization parameters, and ϕ−1≡ϕ0.
Theorem 1. The scheme (2.1)-(2.2) with (ψ0,1)L2=0 is mass conserving.
Proof. Suppose that the scheme (2.1)-(2.2) has a solution. From Eq (2.1), we have
αΔt(δtψn+1,1)L2=−β(ψn+12,1)L2, |
by the periodic boundary condition. This gives the relation
(2αΔt+β)(ψn+12,1)L2=2αΔt(ψn,1)L2. |
With (ψ0,1)L2=0, the relation ensures that
(ψn+12,1)L2=0,i.e., (δtϕn+1,1)L2=(ϕn+1−ϕn,1)L2=0 |
for all n≥0.
Before proving the unique solvability of the scheme (2.1)-(2.2), we simplify the scheme as follows:
ϕn+1−ϕnΔt=MΔt2α+βΔtΔ(12(1+Δ)2ϕn+1−AΔtΔϕn+1+Bϕn+1)+MΔt2α+βΔtR+2α2α+βΔtψn,ψn+1=2ϕn+1−ϕnΔt−ψn, | (2.3) |
where R=Δ(fdou(ϕ∗,n+12)+fvac(ϕ∗,n+12)+12(1+Δ)2ϕn+AΔtΔϕn+B(−2ϕn+ϕn−1)).
Theorem 2. The scheme (2.1)-(2.2) with (ψ0,1)L2=0 is uniquely solvable for any Δt>0.
Proof. We consider the following functional for ϕ defined in the constraint space (ϕ,1)L2=(ϕn,1)L2 given by Theorem 1:
G(ϕ)=12Δt‖ϕ−ϕn‖2H−1+MΔt2α+βΔt(14‖(1+Δ)ϕ‖2L2+AΔt2‖∇ϕ‖2L2+B2‖ϕ‖2L2)−(MΔt2α+βΔtR+2α2α+βΔtψn,ϕ)H−1. |
It may be shown that ϕn+1 is the unique minimizer of G(ϕ) if and only if it solves, for any φ with (φ,1)L2=0,
dG(ϕ+ηφ)dη|η=0=(ϕ−ϕnΔt,φ)H−1+MΔt2α+βΔt(12(1+Δ)2ϕ−AΔtΔϕ+Bϕ,φ)L2−(MΔt2α+βΔtR+2α2α+βΔtψn,φ)H−1=(ϕ−ϕnΔt−MΔt2α+βΔtΔ(12(1+Δ)2ϕ−AΔtΔϕ+Bϕ),φ)H−1−(MΔt2α+βΔtR+2α2α+βΔtψn,φ)H−1=0, | (2.4) |
because G(ϕ) is strictly convex by
d2G(ϕ+ηφ)dη2|η=0=1Δt‖φ‖2H−1+MΔt2α+βΔt(12‖(1+Δ)φ‖2L2+AΔt‖∇φ‖2L2+B‖φ‖2L2)≥0. |
And, Eq (2.4) is true for any φ if and only if the given equation holds:
ϕn+1−ϕnΔt=MΔt2α+βΔtΔ(12(1+Δ)2ϕn+1−AΔtΔϕn+1+Bϕn+1)+MΔt2α+βΔtR+2α2α+βΔtψn. |
Hence, minimizing the strictly convex functional G(ϕ) is equivalent to solving Eq (2.3).
To prove the energy stability of the scheme (2.1)-(2.2), we assume that there exist constants L1,L2>0 such that
maxϕ∈R|f′dou(ϕ)|≤L1andmaxϕ∈R|f′vac(ϕ)|≤L2. | (2.5) |
Theorem 3. Assume that (2.5) is satisfied. The scheme (2.1)-(2.2) with A≥M(L1+L2)216β and B≥L1+L22 fulfills the following energy inequality:
˜Fn+1≤˜Fn, |
where
˜Fn+1:=F(ϕn+1)+(B2+L1+L24)‖δtϕn+1‖2L2. | (2.6) |
Proof. By simple calculations,
(δtϕn+1,(1+Δ)2ϕn+12)L2=12(‖(1+Δ)ϕn+1‖2L2−‖(1+Δ)ϕn‖2L2) | (2.7) |
and
(δtϕn+1,−AΔtΔδtϕn+1+B(δtϕn+1−δtϕn))L2=AΔt‖∇δtϕn+1‖2L2+B2(‖δtϕn+1‖2L2−‖δtϕn‖2L2+‖δtϕn+1−δtϕn‖2L2). | (2.8) |
And, for i=dou and vac, to handle fi(ϕ∗,n+12), we expand Fi(ϕn+1) and Fi(ϕn) at ϕ∗,n+12 as
Fi(ϕn+1)=Fi(ϕ∗,n+12)+fi(ϕ∗,n+12)(ϕn+1−ϕ∗,n+12)+12f′i(ξn+1)(ϕn+1−ϕ∗,n+12)2,Fi(ϕn)=Fi(ϕ∗,n+12)+fi(ϕ∗,n+12)(ϕn−ϕ∗,n+12)+12f′i(ξn)(ϕn−ϕ∗,n+12)2, |
where ξn+1 is a function that is pointwise bounded between ϕn+1 and ϕ∗,n+12 and ξn is a function that is pointwise bounded between ϕn and ϕ∗,n+12. Then, we obtain
(δtϕn+1,fi(ϕ∗,n+12))L2=(Fi(ϕn+1)−Fi(ϕn),1)L2−12(f′i(ξn+1),(ϕn+1−ϕ∗,n+12)2)L2+12(f′i(ξn),(ϕn−ϕ∗,n+12)2)L2=(Fi(ϕn+1)−Fi(ϕn),1)L2−12(f′i(ξn+1),δtϕn+1(δtϕn+1−δtϕn))L2−18(f′i(ξn+1)−f′i(ξn),(δtϕn)2)L2. | (2.9) |
Using the identities (2.7)–(2.9),
E(ϕn+1)+B2‖δtϕn+1‖2L2−E(ϕn)−B2‖δtϕn‖2L2≤1M(δtϕn+1,Δ−1(αΔtδtψn+1+βψn+12))L2−AΔt‖∇δtϕn+1‖2L2−B2‖δtϕn+1−δtϕn‖2L2+L1+L24(‖δtϕn+1‖2L2+‖δtϕn+1−δtϕn‖2L2+‖δtϕn‖2L2), |
where we have used the assumption (2.5). And
1M(δtϕn+1,Δ−1(αΔtδtψn+1+βψn+12))L2=−α2M(‖ψn+1‖2H−1−‖ψn‖2H−1)−βMΔt‖δtϕn+1‖2H−1. |
By the definition of ˜F,
˜Fn+1−˜Fn≤−βMΔt‖δtϕn+1‖2H−1−AΔt‖∇δtϕn+1‖2L2+L1+L22‖δtϕn+1‖2L2−(B2−L1+L24)‖δtϕn+1−δtϕn‖2L2≤−(βMΔt−L1+L24cΔt)‖δtϕn+1‖2H−1−(AΔt−(L1+L2)cΔt4)‖∇δtϕn+1‖2L2−(B2−L1+L24)‖δtϕn+1−δtϕn‖2L2, |
where we have used ‖δtϕn+1‖2L2=‖δtϕn+1‖H−1‖∇δtϕn+1‖L2≤12cΔt‖δtϕn+1‖2H−1+cΔt2‖∇δtϕn+1‖2L2 for any c>0 [19]. With c=M(L1+L2)4β, A≥M(L1+L2)216β, and B≥L1+L22, we have ˜Fn+1−˜Fn≤0.
The scheme (2.1)-(2.2) can be expressed as follows:
(1Δt−MΔt2α+βΔtΔ(12(1+Δ)2−AΔtΔ+B))ϕn+1=ϕnΔt+MΔt2α+βΔtΔ(fdou(ϕ∗,n+12)+fvac(ϕ∗,n+12)+12(1+Δ)2ϕn+AΔtΔϕn+B(−2ϕn+ϕn−1))+2α2α+βΔtψn,ψn+1=2ϕn+1−ϕnΔt−ψn. |
For the first equation with the periodic boundary condition, we can use the Fourier spectral method [20,21,22] for achieving efficient computations.
For the energy stability, we replace Fdou(ϕ) and Fvac(ϕ), respectively, by
˜Fdou(ϕ)={3p2−ϵ2ϕ2−2p3ϕ+3p44,ϕ>p14ϕ4−ϵ2ϕ2,ϕ∈[−p,p]3p2−ϵ2ϕ2+2p3ϕ+3p44,ϕ<−p |
and
˜Fvac(ϕ)={0,ϕ>0−2hvac3ϕ3,ϕ∈[−q,0]2hvac3(3qϕ2+3q2ϕ+q3),ϕ<−q, |
where p,q>0 are constants. It is then obvious that there exist L1 and L2 such that (2.5) is satisfied with fi replaced by ˜fi=˜F′i for i=dou and vac. Unless otherwise stated, we set p=1, r=5, q=rhvac, L1=3p2−ϵ, L2=4hvacq=4r, A=M(L1+L2)216β, and B=L1+L22. We note that the stabilization parameters A and B are independent of hvac.
First, we verify the convergence of the scheme using
ϕ(x,y,0)=0.02cos2(π(x+10)32)sin2(π(y+3)32)−0.01sin2(πx8)sin2(π(y−6)8)−0.02cos(π(x−12)16)sin(π(y−1)16)+0.07,ψ(x,y,0)=0 |
and take Ω=[0,32]2, Δx=Δy=13, α=1, β=1, M=1, and ϵ=0.025. Figure 1 shows the relative l2-errors of ϕ(x,y,40) with hvac=10, 100, and 1000 for Δt=2−9,2−8,…,1, where the error is calculated compared to the reference solution using Δt=2−11. It is observed that the convergence order is 2 regardless of hvac and the convergence constant is not affected by hvac.
Next, we verify Theorems 1 and 3 using
ϕ(x,y,0)=0.06+rand(x,y),ψ(x,y,0)=0 |
and set Ω=[0,128]2, Δx=Δy=1, α=0.01, β=1, M=1, and ϵ=0.9, where rand(x,y) is a random number between −0.01 and 0.01 at the grid points. Figure 2(a, b) show the evolution of ∫Ωϕ(x,y,t)dxdy and ˜F(t), respectively, with hvac=5000 and 500000 for Δt=2−2,2−1,…,26. As proved by Theorems 1 and 3, the masses are conserved, and the energies decrease monotonically regardless of hvac. Moreover, the energy decay trend is not affected by hvac. Figure 3(a, b) show the evolution of ϕ(x,y,t) with Δt=2−2 for hvac=5000 and 500000, respectively.
And, to investigate the effect of A and B on the energy stability, we perform simulations with small A and B. Figure 4 shows the evolution of ˜F(t) with small A and B for hvac=5000. In Figure 4(a, b), A=1100M(L1+L2)216β and B=1100L1+L22 lead to the increase of the energy because they do not satisfy the stability condition (A≥M(L1+L2)216β and B≥L1+L22, Theorem 3).
To explore the influence of the vacancy potential on the evolution, we employ
ϕ(x,y,z,0)=ˉϕ+rand(x,y,z),ψ(x,y,z,0)=0 |
and take Ω=[0,32]3, Δx=Δy=Δz=12, Δt=14, α=1, β=0.8, M=1, and ϵ=0.9, where rand(x,y,z) is a random number between −0.01 and 0.01 at the grid points. Figures 5 and 6 show ϕ(x,y,z,320) without the vacancy potential (hvac=0) and with the vacancy potential (hvac=3000), respectively, for ˉϕ=0.06, 0.11, and 0.16. The evolution of ˜F(t) is shown in Figure 7. For hvac=0, no vacancies appear even when ˉϕ=0.06. In contrast, for hvac=3000, there are many vacancies. At the same time, the number of atoms increases with ˉϕ. The simulation results are in good agreement with those of [12].
We presented the efficient and energy-stable scheme based on the CN formula for the VMPFC equation. In the scheme, fdou(ϕ) and fvac(ϕ) were treated explicitly, which made the scheme efficient, and the energy stability was guaranteed by assuming that maxϕ∈R|f′dou(ϕ)|≤L1=3p3−ϵ and maxϕ∈R|f′vac(ϕ)|≤L2=4r and by adding −AΔtΔδtϕn+1 and B(δtϕn+1−δtϕn). We proved that the scheme is energy-stable under A≥M(L1+L2)216β and B≥L1+L22 which are independent of hvac. Through numerical experiments, it was observed that (ⅰ) our scheme is second-order accurate in time, mass-conservative, energy-stable, and suitable for simulating vacancies; and (ⅱ) the convergence constant and energy decay trend are not affected by hvac.
In future work, we have a plan to carry out a rigorous error analysis for the scheme and to analyze the stability of the scheme.
The author declares they have not used Artificial Intelligence (AI) tools in the creation of this article.
The corresponding author (H.G. Lee) thanks the reviewers for the constructive and helpful comments on the revision of this article and was supported by the National Research Foundation of Korea (NRF) grant funded by the Korea government (MSIT) (No. RS-2022-NR069708).
The author declares no conflict of interest in this paper.
The MATLAB code for the numerical scheme in 2D (Figure 3(a)) is given as follows.
1 | alpha = 0.01; beta = 1; M = 1; epsilon = 0.9; hvac = 5000; |
2 | p = 1; r = 5; q = r/hvac; L1 = 3*p^2-epsilon; L2 = 4*r; A = M*(L1+L2)^2/(16*beta); B = (L1+L2)/2; |
3 | |
4 | xl = 0; xr = 128; yl = 0; yr = 128; T = 1600; |
5 | nx = 128; ny = 128; dx = (xr-xl)/nx; dy = (yr-yl)/ny; dt = 2^-2; nt = round(T/dt); |
6 | |
7 | x = xl:dx:xr-dx; y = yl:dy:yr-dy; [X, Y] = ndgrid(x, y); |
8 | xix = 1i*2*pi*fftshift(-nx/2:nx/2-1)/(xr-xl); |
9 | xiy = 1i*2*pi*fftshift(-ny/2:ny/2-1)/(yr-yl); [xiX, xiY] = ndgrid(xix, xiy); |
10 | |
11 | ophi = 0.06+0.01*(2*rand(nx, ny)-1); oophi = ophi; opsi = zeros(nx, ny); |
12 | xi_lap = xiX.^2+xiY.^2; L = 1/dt-M*dt/(2*alpha+beta*dt)*xi_lap.*(1/2*(1+xi_lap).^2-A*dt*xi_lap+B); |
13 | |
14 | for it = 1:nt |
15 | hat = (3*ophi-oophi)/2; |
16 | rhs = ophi/dt+M*dt/(2*alpha+beta*dt)*Lap(fdou(hat, epsilon, p)+fvac(hat, hvac, q)+1/2*Lap2(ophi, xi_lap)+... |
17 | A*dt*Lap(ophi, xi_lap)+B*(-2*ophi+oophi), xi_lap)+2*alpha/(2*alpha+beta*dt)*opsi; |
18 | nphi = real(ifft2(fft2(rhs)./L)); npsi = 2*(nphi-ophi)/dt-opsi; |
19 | oophi = ophi; ophi = nphi; opsi = npsi; |
20 | end |
21 | |
22 | function val = fdou(phi, epsilon, p) |
23 | ind1 = phi > p; ind2 = phi < -p; |
24 | val = ((3*p^2-epsilon)*phi-2*p^3).*ind1+(phi.^3-epsilon*phi).*(1-ind1).*(1-ind2)+... |
25 | ((3*p^2-epsilon)*phi+2*p^3).*ind2; |
26 | end |
27 | |
28 | function val = fvac(phi, hvac, q) |
29 | ind1 = phi > 0; ind2 = phi < -q; |
30 | val = 0.*ind1+(-2*hvac*phi.^2).*(1-ind1).*(1-ind2)+(2*hvac/3*(6*q*phi+3*q^2)).*ind2; |
31 | end |
32 | |
33 | function val = Lap(phi, xi_lap) |
34 | val = real(ifft2(fft2(phi).*xi_lap)); |
35 | end |
36 | |
37 | function val = Lap2(phi, xi_lap) |
38 | val = real(ifft2(fft2(phi).*(1+xi_lap).^2)); |
39 | end |
The MATLAB code for the numerical scheme in 3D (Figure 6) is given as follows.
1 | alpha = 1; beta = 0.8; M = 1; epsilon = 0.9; hvac = 3000; |
2 | p = 1; r = 5; q = r/hvac; L1 = 3*p^2-epsilon; L2 = 4*r; A = M*(L1+L2)^2/(16*beta); B = (L1+L2)/2; |
3 | |
4 | xl = 0; xr = 32; yl = 0; yr = 32; zl = 0; zr = 32; T = 320; |
5 | nx = 64; ny = 64; nz = 64; dx = (xr-xl)/nx; dy = (yr-yl)/ny; dz = (zr-zl)/nz; dt = 2^-2; nt = round(T/dt); |
6 | |
7 | x = xl:dx:xr-dx; y = yl:dy:yr-dy; z = zl:dz:zr-dz; [X, Y, Z] = ndgrid(x, y, z); |
8 | xix = 1i*2*pi*fftshift(-nx/2:nx/2-1)/(xr-xl); |
9 | xiy = 1i*2*pi*fftshift(-ny/2:ny/2-1)/(yr-yl); |
10 | xiz = 1i*2*pi*fftshift(-nz/2:nz/2-1)/(zr-zl); [xiX, xiY, xiZ] = ndgrid(xix, xiy, xiz); |
11 | |
12 | ophi = 0.06+0.01*(2*rand(nx, ny, nz)-1); oophi = ophi; opsi = zeros(nx, ny, nz); |
13 | xi_lap = xiX.^2+xiY.^2+xiZ.^2; L = 1/dt-M*dt/(2*alpha+beta*dt)*xi_lap.*(1/2*(1+xi_lap).^2-A*dt*xi_lap+B); |
14 | |
15 | for it = 1:nt |
16 | hat = (3*ophi-oophi)/2; |
17 | rhs = ophi/dt+M*dt/(2*alpha+beta*dt)*Lap(fdou(hat, epsilon, p)+fvac(hat, hvac, q)+1/2*Lap2(ophi, xi_lap)+... |
18 | A*dt*Lap(ophi, xi_lap)+B*(-2*ophi+oophi), xi_lap)+2*alpha/(2*alpha+beta*dt)*opsi; |
19 | nphi = real(ifftn(fftn(rhs)./L)); npsi = 2*(nphi-ophi)/dt-opsi; |
20 | oophi = ophi; ophi = nphi; opsi = npsi; |
21 | end |
22 | |
23 | function val = fdou(phi, epsilon, p) |
24 | ind1 = phi>p; ind2 = phi < -p; |
25 | val = ((3*p^2-epsilon)*phi-2*p^3).*ind1+(phi.^3-epsilon*phi).*(1-ind1).*(1-ind2)+... |
26 | ((3*p^2-epsilon)*phi+2*p^3).*ind2; |
27 | end |
28 | |
29 | function val = fvac(phi, hvac, q) |
30 | ind1 = phi > 0; ind2 = phi < -q; |
31 | val = 0.*ind1+(-2*hvac*phi.^2).*(1-ind1).*(1-ind2)+(2*hvac/3*(6*q*phi+3*q^2)).*ind2; |
32 | end |
33 | |
34 | function val = Lap(phi, xi_lap) |
35 | val = real(ifftn(fftn(phi).*xi_lap)); |
36 | end |
37 | |
38 | function val = Lap2(phi, xi_lap) |
39 | val = real(ifftn(fftn(phi).*(1+xi_lap).^2)); |
40 | end |
[1] |
L. Q. Chen, Phase-field models for microstructure evolution, Annu. Rev. Mater. Res., 32 (2002), 113–140. https://doi.org/10.1146/annurev.matsci.32.112001.132041 doi: 10.1146/annurev.matsci.32.112001.132041
![]() |
[2] |
B. Xia, X. Xi, R. Yu, P. Zhang, Unconditional energy-stable method for the Swift–Hohenberg equation over arbitrarily curved surfaces with second-order accuracy, Appl. Numer. Math., 198 (2024), 192–201. https://doi.org/10.1016/j.apnum.2024.01.005 doi: 10.1016/j.apnum.2024.01.005
![]() |
[3] |
X. Hu, Q. Xia, B. Xia, Y. Li, A second-order accurate numerical method with unconditional energy stability for the Lifshitz–Petrich equation on curved surfaces, Appl. Math. Lett., 163 (2025), 109439. https://doi.org/10.1016/j.aml.2024.109439 doi: 10.1016/j.aml.2024.109439
![]() |
[4] |
W. Xie, Z. Wang, J. Kim, X. Sun, Y. Li, A novel ensemble Kalman filter based data assimilation method with an adaptive strategy for dendritic crystal growth, J. Comput. Phys., 524 (2025), 113711. https://doi.org/10.1016/j.jcp.2024.113711 doi: 10.1016/j.jcp.2024.113711
![]() |
[5] |
Q. Xia, J. Yang, J. Kim, Y. Li, On the phase field based model for the crystalline transition and nucleation within the Lagrange multiplier framework, J. Comput. Phys., 513 (2024), 113158. https://doi.org/10.1016/j.jcp.2024.113158 doi: 10.1016/j.jcp.2024.113158
![]() |
[6] |
P. Stefanovic, M. Haataja, N. Provatas, Phase-field crystals with elastic interactions, Phys. Rev. Lett., 96 (2006), 225504. https://doi.org/10.1103/PhysRevLett.96.225504 doi: 10.1103/PhysRevLett.96.225504
![]() |
[7] |
P. Stefanovic, M. Haataja, N. Provatas, Phase field crystal study of deformation and plasticity in nanocrystalline materials, Phys. Rev. E, 80 (2009), 046107. https://doi.org/10.1103/PhysRevE.80.046107 doi: 10.1103/PhysRevE.80.046107
![]() |
[8] |
A. Baskaran, Z. Hu, J. S. Lowengrub, C. Wang, S. M. Wise, P. Zhou, Energy stable and efficient finite-difference nonlinear multigrid schemes for the modified phase field crystal equation, J. Comput. Phys., 250 (2013), 270–292. https://doi.org/10.1016/j.jcp.2013.04.024 doi: 10.1016/j.jcp.2013.04.024
![]() |
[9] |
H. G. Lee, J. Shin, J. Y. Lee, First- and second-order energy stable methods for the modified phase field crystal equation, Comput. Methods Appl. Mech. Engrg., 321 (2017), 1–17. https://doi.org/10.1016/j.cma.2017.03.033 doi: 10.1016/j.cma.2017.03.033
![]() |
[10] |
Q. Li, L. Mei, X. Yang, Y. Li, Efficient numerical schemes with unconditional energy stabilities for the modified phase field crystal equation, Adv. Comput. Math., 45 (2019), 1551–1580. https://doi.org/10.1007/s10444-019-09678-w doi: 10.1007/s10444-019-09678-w
![]() |
[11] |
X. Li, J. Shen, Efficient linear and unconditionally energy stable schemes for the modified phase field crystal equation, Sci. China Math., 65 (2022), 2201–2218. https://doi.org/10.1007/s11425-020-1867-8 doi: 10.1007/s11425-020-1867-8
![]() |
[12] |
P. Y. Chan, N. Goldenfeld, J. Dantzig, Molecular dynamics on diffusive time scales from the phase-field-crystal equation, Phys. Rev. E, 79 (2009), 035701. https://doi.org/10.1103/PhysRevE.79.035701 doi: 10.1103/PhysRevE.79.035701
![]() |
[13] |
J. Zhang, X. Yang, Efficient second order unconditionally stable time marching numerical scheme for a modified phase-field crystal model with a strong nonlinear vacancy potential, Comput. Phys. Commun., 245 (2019), 106860. https://doi.org/10.1016/j.cpc.2019.106860 doi: 10.1016/j.cpc.2019.106860
![]() |
[14] |
Q. Li, X. Yang, L. Mei, Efficient numerical scheme for the anisotropic modified phase-field crystal model with a strong nonlinear vacancy potential, Commun. Math. Sci., 19 (2021), 355–381. https://dx.doi.org/10.4310/CMS.2021.v19.n2.a3 doi: 10.4310/CMS.2021.v19.n2.a3
![]() |
[15] |
N. Cui, P. Wang, Q. Li, A second-order BDF scheme for the Swift–Hohenberg gradient flows with quadratic–cubic nonlinearity and vacancy potential, Comp. Appl. Math., 41 (2022), 85. https://doi.org/10.1007/s40314-022-01801-w doi: 10.1007/s40314-022-01801-w
![]() |
[16] |
S. Pei, Y. Hou, W. Yan, Efficient unconditionally stable numerical schemes for a modified phase field crystal model with a strong nonlinear vacancy potential, Numer. Meth. Part Differ. Equ., 38 (2022), 65–101. https://doi.org/10.1002/num.22828 doi: 10.1002/num.22828
![]() |
[17] |
X. Zhang, J. Wu, Z. Tan, Highly efficient, decoupled and unconditionally stable numerical schemes for a modified phase-field crystal model with a strong nonlinear vacancy potential, Comput. Math. Appl., 132 (2023), 119–134. https://doi.org/10.1016/j.camwa.2022.12.011 doi: 10.1016/j.camwa.2022.12.011
![]() |
[18] |
H. G. Lee, A linear second-order convex splitting scheme for the modified phase-field crystal equation with a strong nonlinear vacancy potential, Appl. Math. Lett., 156 (2024), 109145. https://doi.org/10.1016/j.aml.2024.109145 doi: 10.1016/j.aml.2024.109145
![]() |
[19] |
Q. Li, L. Mei, B. You, A second-order, uniquely solvable, energy stable BDF numerical scheme for the phase field crystal model, Appl. Numer. Math., 134 (2018), 46–65. https://doi.org/10.1016/j.apnum.2018.07.003 doi: 10.1016/j.apnum.2018.07.003
![]() |
[20] |
D. D. Dai, W. Zhang, Y. L. Wang, Numerical simulation of the space fractional (3+1)-dimensional Gray–Scott models with the Riesz fractional derivative, AIMS Math., 7 (2022), 10234–10244. https://doi.org/10.3934/math.2022569 doi: 10.3934/math.2022569
![]() |
[21] |
X. Y. Li, Y. L. Wang, Z. Y. Li, Numerical simulation for the fractional-in-space Ginzburg–Landau equation using Fourier spectral method, AIMS Math., 8 (2023), 2407–2418. https://doi.org/10.3934/math.2023124 doi: 10.3934/math.2023124
![]() |
[22] |
S. F. Alrzqi, F. A. Alrawajeh, H. N. Hassan, An efficient numerical technique for investigating the generalized Rosenau–KDV–RLW equation by using the Fourier spectral method, AIMS Math., 9 (2024), 8661–8688. https://doi.org/10.3934/math.2024420 doi: 10.3934/math.2024420
![]() |