求解极坐标系下Allen-Cahn方程的有限差分方法
A Finite Difference Method for the Allen-Cahn Equation in Polar Coordinate System
DOI: 10.12677/AAM.2021.101013, PDF, HTML, XML, 下载: 581  浏览: 2,220  科研立项经费支持
作者: 霍俊蓉, 张荣培, 刘 昊:沈阳师范大学,数学与系统科学学院,辽宁 沈阳
关键词: Allen-Cahn方程极坐标有限差分积分因子Allen-Cahn Equation Polar Coordinates Finite Difference Integration Factor
摘要: 非线性Allen-Cahn方程是材料学中相场模拟模型的一类重要方程,用于描述二元合金在一定温度下进行相位分离的过程,在许多科学领域中有广泛的应用。以往的工作主要在矩形区域上考虑求解,本文研究有效的数值方法在圆形区域上求解该方程。首先将Allen-Cahn方程中拉普拉斯算子写为极坐标的形式,然后采用中心差分方法在空间r方向和θ方向分别进行空间离散,得到非线性常微分方程组,并将网格上的数值解以矩阵形式表示。在时间离散过程中,采用积分因子法结合Krylov子空间的方法进行求解。最后给出数值试验。
Abstract: The nonlinear Allen-Cahn equation is an important phase field simulation model in materials science. It is used to describe the phase separation process of binary alloys at a certain temperature and has been widely used in many scientific fields. The previous work mainly considers the solution on the rectangular region. In this paper, the effective numerical method is used to solve the equation on a circular region. First, the Laplacian operator in Allen-Cahn equation is written as the form of polar coordinates. Then, the central difference method is used to carry out spatial discretization in the space direction r and θ respectively, and the numerical solution on the grid is expressed in matrix form by using large sparse linear system. In the implementation of time discretization, the integral factor method combined with Krylov subspace method was used to solve the problem. Finally, numerical experiments are given.
文章引用:霍俊蓉, 张荣培, 刘昊. 求解极坐标系下Allen-Cahn方程的有限差分方法[J]. 应用数学进展, 2021, 10(1): 109-114. https://doi.org/10.12677/AAM.2021.101013

1. 引言

Allen-Cahn方程最初是作为研究结晶固体反相位边界运动的模型而被提出的 [1],该方程及其变形在图像处理 [2]、平均曲率运动 [3]、晶体的生长 [4]、和材料科学等实际问题中都发挥着极为重要的作用。

由于此类相场模型没有真解,因此选取有效的数值方法进行模拟尤为重要。Allen-Cahn方程的数值逼近方法有多种,包括半解析傅里叶谱法 [5],谱方法 [6],间断有限元方法 [7],算子分裂方法 [8] 以及求解高维Allen-Cahn方程的紧致差分交替方向隐式方法 [9] 等。近年来,也有学者采用自适应有限元方法 [10],无网格方法 [11] 对Allen-Cahn方程进行数值求解,上述工作均在直角坐标系下完成。但是,在许多实际问题中,需要考虑圆形区域,这方面的研究工作还不是很多 [12]。本文考虑在圆盘区域上求解Allen-Cahn方程,首先将拉普拉斯算子表示为极坐标中的形式,沿r方向和 θ 方向进行网格剖分,然后采用中心差分方法在网格点上对Allen-Cahn方程进行空间离散,并将网格点上的数值解以矩阵形式表示。接下来发展积分因子方法进行时间离散,在时间离散过程中,利用梯形求积公式进行近似,使其精度为二阶精度。在实现过程中求解指数矩阵与向量的乘积时,采用Krylov子空间的方法来近似,而不单独求解指数矩阵。

2. 数值方法

考虑计算区域为 Ω = { ( x , y ) : x 2 + y 2 < 1 } 的二维非线性Allen-Cahn方程:

d u d t = γ Δ u + f ( u ) , ( x , y , t ) Ω × ( 0 , T ] , (1)

其中, γ 为扩散系数; Δ u = 2 u x 2 + 2 u y 2 为拉普拉斯算子; f ( u ) = 1 ε 2 ( u 3 u ) ε 是一个给定的正参数且 ε 1

设该方程在r方向边界条件为齐次Neumann边界,在 θ 方向的边界条件为周期边界:

u ( 0 , θ ) r = u ( 1 , θ ) r = 0 ; u ( r , 0 ) = u ( r , 2 π ) . (2)

下面将方程(1)写成极坐标系下的形式:

d u d t = γ ( 2 u r 2 + 1 r 2 2 u θ 2 + 1 r u r ) + f ( u ) , ( r , θ ) Ω . (3)

将计算区域 [ 0 , 1 ] × [ 0 , 2 π ] 分别沿r和 θ 方向划分成 N r × N θ 个网格,网格节点表示为

( r i , θ j ) = ( ( i 1 2 ) h r , j h θ ) i = 1 , 2 , , N r ; j = 0 , 1 , 2 , , N θ 。在r方向的网格步长为 h r = 1 / N r ,在 θ 方向的网

格步长为 h θ = 2 π / N θ 。时间方向剖分为 t n = n Δ t , n = 1 , 2 , 。其中 Δ t 为时间步长。设u在网格节点 ( r i , θ j ) 处的数值解为 u i , j ,结合泰勒展开式,在在网格点处对(3)式中的项进行离散,略去余项后,得到(3)式的二阶中心差分格式:

d u i , j d t = γ ( u i + 1 , j 2 u i , j + u i 1 , j h r 2 + u i + 1 , j u i 1 , j 2 r i h r + u i , j + 1 2 u i , j + u i , j 1 r i 2 h θ 2 ) + f ( u i , j ) . (4)

下面对边界上的差分格式进行修正使其达到二阶局部截断误差。考虑到方程(1)在r方向具有齐次

Neumann边界条件,当 i = 1 r 1 = Δ r 2 ,且 ( u r ) 1 , j = 0 ,当 i = N r 时, ( u r ) N r , j = 0 ,将(4)式在r方向边

界的差分格式写为

{ d u 1 , j d t = γ ( u 2 , j 2 u 1 , j h r 2 + u 2 , j 2 r 1 h r + u 1 , j + 1 2 u 1 , j + u 1 , j 1 r 1 2 h θ 2 ) + f 1 , j , i = 1 , d u N r , j d t = γ ( u N r 1 , j u N r , j h r 2 + u N r , j u N r 1 , j 2 r N r h r + u N r , j + 1 2 u N r , j + u N r , j 1 r N r 2 h θ 2 ) + f N r , j , i = N r . (5)

考虑到u在 θ 方向是以 2 π 为周期的,因此边界值为 u i , 0 = u i , N θ , u i , 1 = u i , N θ + 1 ,进而将(4)式在 θ 方向边界的差分格式写为

{ d u i , 1 d t = γ ( u i + 1 , j 2 u i , j + u i 1 , j h r 2 + u i + 1 , j u i 1 , j 2 r i h r + u i , N θ 2 u i , 1 + u i , 2 r i 2 h θ 2 ) + f i , 1 , j = 1 , d u i , N θ d t = γ ( u i + 1 , j 2 u i , j + u i 1 , j h r 2 + u i + 1 , j u i 1 , j 2 r i h r + u i , N θ 1 2 u i , N θ + u i , 1 r i 2 h θ 2 ) + f i , N θ , j = N θ . (6)

定义离散解 u i , j , 1 i N r , 1 j N θ N r × N θ 阶的矩阵U,将非线性项记为F。将矩阵U和矩阵F按列重新排列成向量的形式,记 U = vec ( U ) F ( U ) = vec ( F ) ,结合(5)式与(6)式,定义矩阵A为

A = ( T 2 D D D D T 2 D D D T 2 D D D D T 2 D ) , (7)

其中矩阵 D = diag ( β 1 , β 2 , , β N r ) , β i = 1 ( i 1 / 2 ) 2 h θ 2 h r 2 , 1 i N r

矩阵 T = 1 h r 2 ( 2 1 + λ 1 1 λ 2 2 1 + λ 2 1 λ N r 1 2 1 + λ N r 1 1 λ N r 1 + λ N r ) λ i = 1 2 ( i 1 / 2 ) , 1 i N r

由上述矩阵的定义,将(1)式经过空间离散后,得到一组非线性常微分方程组:

d u d t = γ A U + F ( U ) , ( r , θ ) Ω . (8)

下面采用积分因子方法求解方程(8)。两边同乘积分因子 e A t ,然后在一个时间步长内做积分得到:

U n + 1 = e A Δ t U n + e A Δ t 0 Δ t e A τ F ( U ) d τ . (9)

对(9)式应用梯形积分公式近似得到:

U n + 1 = e A Δ t ( U n + Δ t 2 F ( U n ) ) + Δ t 2 F ( U n + 1 ) . (10)

令上式中的 U n + Δ t 2 F ( U n ) = v ,则(11)式可写为

U n + 1 = e A Δ t v + Δ t 2 F ( U n + 1 ) . (11)

虽然A为大型稀疏矩阵,而 e A Δ t 为稠密矩阵,因此直接求解指数矩阵困难较大,本文利用Krylov子空间 [13] K m ( Δ t , v ) = s p a n { v , ( A Δ t ) v , , ( A Δ t ) m 1 v } 的元素来近似指数矩阵与向量的乘积,即 e A Δ t v ,而不是单独求解指数矩阵。采用不动点迭代法在每个单元上求解非线性方程组(11),其中迭代初值选取为 U n + 1 0 = U n

3. 数值实验

应用本文提出的有限差分法和积分因子法求解下面的数值算例。考虑二维计算区域 Ω = { ( x , y ) : x 2 + y 2 1 .5 } ,针对具有 ε 1 方向具有齐次Neumann边界, θ 方向具有周期边界条件的方程(1)进行求解。初值选取形状像哑铃的函数,见图1(a)。

u 0 ( x , y ) = { tanh ( 3 ε ( ( x 0.5 ) 2 + y 2 ( 0.39 ) 2 ) ) , x > 0.14 , tanh ( 3 ε ( y 2 ( 0.15 ) 2 ) ) , 0.3 x 0.14 , tanh ( 3 ε ( ( x + 0.5 ) 2 + y 2 ( 0.25 ) 2 ) ) , x < 0.3 ,

选取参数 ε = 0.05 ,并在每个空间方向上取128个等分点,时间步长 Δ t = 5 × 10 5 。选取 t 1 = 3.53 × 10 2 , t 2 = 1.18 × 10 1 , t 3 = 2 × 10 1 这3个时间点,其数值结果如图1所示。

(a) (b) (c) (d)

Figure 1. Numerical solution of the case t 1 = 3.53 × 10 2 , t 2 = 1.18 × 10 1 , t 3 = 2 × 10 1

图1. 算例在 t 1 = 3.53 × 10 2 , t 2 = 1.18 × 10 1 , t 3 = 2 × 10 1 时的数值解

上图显示了在不同时间点上Allen-Cahn方程解的数值结果。结果表明,随着时间增大,其形状由初始时间 t 0 的哑铃状不断向圆形聚拢,最终消失。数值结果与文献 [7] 中的结果吻合。

基金项目

辽宁省自然科学基金(20180550996)资助的课题。

参考文献

[1] Allen, S.M. and Cahn, J.W. (1979) A Microscopic Theory for Antiphase Boundary Motion and Its Application to Antiphase Domain Coarsening. Acta Metallurgica, 27, 1085-1095.
https://doi.org/10.1016/0001-6160(79)90196-2
[2] Benes, M., Chalupecký, V., Mikula, K., et al. (2004) Geometrical Image Segmentation by the Allen-Cahn Equation. Applied Numerical Mathematics, 51, 187-205.
https://doi.org/10.1016/j.apnum.2004.05.001
[3] Beneš, M. (2003) Diffuse-Interface Treatment of the Anisotropic Mean-Curvature Flow. Applications of Mathematics, 48, 437-453.
https://doi.org/10.1023/B:APOM.0000024485.24886.b9
[4] Krill Iii, C.E. and Chen, L.Q. (2002) Computer Simulation of 3-D Grain Growth Using a Phase-Field Model. Acta Materialia, 50, 3059-3075.
https://doi.org/10.1016/S1359-6454(02)00084-8
[5] Lee, H.G. and Lee, J.Y. (2014) A Semi-Analytical Fourier Spectral Method for the Allen-Cahn Equation. Computers & Mathematics with Applications, 68, 174-184.
https://doi.org/10.1016/j.camwa.2014.05.015
[6] 张荣培, 刘佳, 王语. Chebyshev谱配置方法求解Allen-Cahn方程[J]. 沈阳师范大学学报(自然科学版), 2017, 35(4): 435-440.
[7] Stoll, M. and Yücel, H. (2018) Symmetric Interior Penalty Galerkin Method for Fractional-in-Space Phase-Field Equations. AIMS Mathematics, 3, 66-95.
https://doi.org/10.3934/Math.2018.1.66
[8] Lee, H.G. and Lee, J.Y. (2015) A Second Order Operator Splitting Method for Allen-Cahn Type Equations with Nonlinear Source Terms. Physica A: Statistical Mechanics and Its Applications, 432, 24-34.
https://doi.org/10.1016/j.physa.2015.03.012
[9] Zhai, S., Feng, X. and He, Y. (2014) Numerical Simulation of the Three Dimensional Allen-Cahn Equation by the High-Order Compact ADI Method. Computer Physics Communications, 185, 2449-2455.
https://doi.org/10.1016/j.cpc.2014.05.017
[10] Chen, Y.Y., Huang, Y.Q. and Yi, N.Y. (2019) A SCR-Based Error Estimation and Adaptive Finite Element Method for the Allen-Cahn Equation. Computers and Mathematics with Applications, 78, 204-223.
https://doi.org/10.1016/j.camwa.2019.02.022
[11] 翁志峰, 姚泽丰, 赖淑琴. 重心插值配点法直接求解Allen-Cahn方程[J]. 华侨大学学报(自然科学版), 2019, 40(1): 133-140.
[12] Lai, M.C. (2001) A Note on Finite Difference Discretizations for Poisson Equation on a Disk. Numerical Methods for Partial Differential Equations: An International Journal, 17, 199-203.
https://doi.org/10.1002/num.1
[13] Chen, S. and Zhang, Y. (2011) Krylov Implicit Integration Factor Methods for Spatial Discretization on High Dimensional Unstructured Meshes: Application to Discontinuous Galerkin Methods. Journal of Computational Physics, 230, 4336-4352.
https://doi.org/10.1016/j.jcp.2011.01.010