EIT Agent
登录
← 校园网页目录

校园网页 · 学校官网

Bound/positivity preserving and unconditionally stable schemes for a class of fourth order nonlinear equations

Journal of Computational Physics 460 (2022) 111177 Contents lists available at ScienceDirect Journal of Computational Physics www.elsevier.com/locate/jcp Bound/positivity preserving and unconditionally stable schemes for a class of fourth order nonlinear equations ✩ Fukeng Huanga, Jie Shenb, Ke Wub,∗ a Department of Mathematics, National University of Singapore, Singapore, 119076, Singapore b Department of Mathematics, Purdue University, West Lafayette, IN 47906, USA a r t i c l e i n f o a b s t r a c t Article history: Received 31 December 2021 Received in revised form 23 March 2022 Accepted 26 March 2022 Available online 31 March 2022 Keywords: Bound/positivity preserving SAV approach Energy stability Fourth order equations Dissipative systems We construct two classes of time discretization schemes for fourth order nonlinear equations by combining a function transform approach with the scalar auxiliary variable (SAV)approach. A suitable function transform ensures that the schemes are bound/positivity preserving, while the SAV approach enables us to construct unconditionally stable schemes. The first class of schemes requires solving a coupled second-order linear systems with variable coefficients at each time step, while the second class of schemes only requires solving a fourth-order linear equation with constant coeffcients. We apply this approach to the Cahn-Hilliard equations with logarithmic potential and the more challenging Lubrication-type equations, and present ample numerical examples to validate the accuracy and efficiency of the proposed schemes. Published by Elsevier Inc. 1. Introduction Solutions of many problems in science and engineering are required to be positive or within a prescribed interval. It is important, and oftentimes necessary, for a numerical method to preserve its bound/positivity. There exist a large literature on constructing positivity and/or bound preserving schemes for various problems, most of them are for first-order or second- order partial differential equations. In particular, for first-order hyperbolic systems, sophisticated post-processing (limiter) procedures for explicit schemes are developed in [27,26]. While the post-processing procedures can in principle be applied to explicit schemes for higher-order equations, there are not particularly efficient due to the severe time step constraints for explicit schemes to higher-order equations; For second-order parabolic systems, various numerical methods based on finite differences and finite elements have been developed by exploring the discrete maximum principle (see, for instance, [10–12,20,21] and the references therein). On the other hand, less attention has been made to fourth- or higher-order systems with positivity and/or bound pre- serving properties. Two main difficulties for this class of problems are (i) the lack of maximum principle, and (ii) high-order spatial derivatives. Some existing approaches include: • Cut-off and Lagrange multiplier approach: an ad-hoc approach is to simply cut off the values outside of the desired range. This approach is very simple and can achieve high order, under some specific situations, in L2-norm [23,19]. But ✩ This work is supported in part by AFOSR grant FA9550-20-1-0309 and NSF grant DMS-2012585. * Corresponding author. E-mail addresses:hfkeng@nus.edu.sg (F. Huang), shen7@purdue.edu (J. Shen), wu1589@purdue.edu (K. Wu). https://doi.org/10.1016/j.jcp.2022.111177 0021-9991/Published by Elsevier Inc. F. Huang, J. Shen and K. Wu Journal of Computational Physics 460 (2022) 111177 drawbacks of this approach include: (i) difficult to conserve mass, and (ii) the solution obtained by the cut-off approach is usually not smooth so it is difficult to derive error estimates in energy norm. • Convex splitting approach [3,7–9,15,22]: treat the convex part of the free energy implicitly to preserve bound/positivity, for examples, see [3]f o r Cahn-Hilliard equations with logarithmic potential. The drawback of this approach is that a nonlinear system has to be solved at each time step. • Recently, a new Lagrange multiplier approach for constructing positivity preserving schemes was proposed in [5,6]. This approach includes the cut-off approach as a special case and provides a new interpretation for the cut-off approach. Furthermore, it can also preserve mass. But it is difficult to prove energy stability. In [16], we combined the function transform with the SAV approach to construct unconditionally stable bound/positivity preserving schemes for second-order parabolic systems. The main idea was to use a suitable function transform so that the transformed function is always positive or within the specified bound, and then use the SAV approach to construct efficient unconditionally stable schemes for the transformed equation. This method was shown to be effective for a class of second- order equations in [16]. However, for fourth- or higher-order nonlinear systems, it appears that the transform systems can become very complicated and difficult to solve. The main purpose of this paper is to extend this approach to deal with fourth-order nonlinear systems. To fix the idea, we consider the following fourth order nonlinear equations in a bounded domain /Omega1 ⊂ Rd (d =1, 2, 3): φt =∇· ( f (φ)∇μ), (1.1a) μ := δE δφ=− 1 α/Delta1φ+ H′(φ), (1.1b) with either periodic or homogeneous Neumann boundary condition, where f (φ) is a positive mobility function, H(φ) is a nonlinear potential, and E(φ) is the free energy E(φ) = ∫ /Omega1 1 2α|∇φ|2d/Omega1+ ∫ /Omega1 H(φ)d/Omega1:= E0(φ)+ E1(φ). (1.2) An important feature of the above system is that the following energy dissipation law holds dE dt =− ∫ /Omega1 f (φ)|∇μ|2d/Omega1≤ 0. (1.3) Examples of such equations include the Cahn-Hilliard equation [2], Lubrication-type equations [24]. In particular, with m >0, we focus on the following two types of equations: • Case 1. The Lubrication-type equations [24]: with f (φ) = mφn, n >0a n d H(φ) =0i n (1.1). • Case 2. The Cahn-Hilliard equation with logarithmic potential [2,13]: with constant mobility f (φ) = m or variable mo- bility f (φ) = mφ(1 − φ) in (1.1), and H(φ) = φlogφ+ (1 − φ) log(1 − φ) +3φ(1 − φ) in (1.2). We observe that for Lubrication-type equations, the values of solution φ have to be positive, while for the Cahn-Hilliard equation with logarithmic potential, the values of solution φ have to be within (0, 1). The above two problems are chal- lenging due to (i) the singular nonlinear mobility function, (ii) solutions need to be bound or positivity preserving, and (iii) fourth-order spatial derivatives. We shall construct two classes of bound/positivity preserving and unconditionally stable schemes by combining the function transform approach and the SAV approach in [18,17]. For the first class, we rewrite the transformed equation as a system of two second-order equations, and then construct a class of linear and unconditionally stable schemes using the SAV approach. At each time step, it requires solving a linear system of two second-order equations with variable coefficients. This approach is most suitable for finite elements. It can also be used with a spectral discretization although it leads to coupled linear systems with non-sparse matrices. For the second class, we divide the transformed equation by T′(u), where φ = T(u) is a suitable function transform to guarantee positivity/bound preserving, and employ a suitable splitting of the nonlinear mobility function f (φ), so that after time discretization by the SAV approach with all nonlinear terms and terms with variable coefficients treated explicitly, one only needs to solve a system of two second-order linear equations with constant coefficients. This approach is particularly suitable for spectral discretizations (as well as for finite difference methods). The main contributions of this paper can be summarized as follows: • We construct two classes of bound/positivity preserving schemes for two typical types of fourth order equations. These schemes are unconditionally stable and can achieve high-order accuracy in time. • For both classes of schemes, we provide rigorous proofs for bound/positivity preserving and establish unconditional bounds for the numerical solutions. 2 F. Huang, J. Shen and K. Wu Journal of Computational Physics 460 (2022) 111177 • We combine these schemes with a time adaptive strategy, and carry out simulations of challenging problems to show their effectiveness and rubustness. The rest of the paper is organized as follows. In the next section, we construct two classes of bound/positivity preserving schemes, and prove that they are unconditionally stable. In the third section, we present ample numerical examples to demonstrate the advantages of our numerical schemes. Some concluding remarks are given in the last section. 2. Bound/positivity preserving and unconditionally stable schemes We present two methods to construct our bound/positivity preserving SAV for fourth-order equation: in the first method, we need to solve two coupled second-order equations with variable coefficients, which is most suitable for finite element method and can also be efficiently implemented with a preconditioned spectral discretization; in the second method, we only need to solve two coupled second-order equations with constant coefficients, which can be highly efficient by using a spectral or finite difference discretization. Let I = (0, ∞ ) or I = (0, 1) and assume that the values of solution φ are in I. Following the ideas in [16], which deals with the second order equations, we first make a suitable mapping φ = T(u) with the range of T in I, then the equation (1.1) on φ is transformed to an equation on u. Let uh be an approximation to u, the range of the approximate solution φh = T(uh) will always be in I. In particular, for two typical cases mentioned above, we can use the following transformations: • I = (0, ∞ ): a suitable choice is T(v) =exp(v), so that u = T(v) is always positive. • I = (0, 1): suitable choices include T(v) = 1 2 tanh(v) + 1 2 or T(v) = 1 1+exp(− v), so that the range of u = T(v) is still in I. Note that we have T′(v) ̸=0f o r v ∈ I. We assume that there exists constant C >0s u c h that E1(φ) ≥− C +1, (2.1) and we introduce a SAV r(t) = E(φ) + C0 with C0 =2C +∥ E(φ0)∥L∞ . Below, we shall describe two methods to solve the transformed equation for u. 2.1. Method 1 Setting φ = T(u) in (1.1), we can expand (1.1)b y adding an equation for the SAV as follows: T′(u)ut =∇· ( f (φ)∇μ ) , (2.2a) μ =− 1 α ( T′(u)/Delta1u + T′′(u)|∇ u|2) + H′(φ), (2.2b) dr dt =− r E(φ)+ C0 ( f (φ)∇μ,∇μ ) . (2.2c) Then given rn and (u j, φj) for j = n, ··· , n − k +1, we find (φn+1, un+1, rn+1, ξn+1) by the following scheme: { T′(Bk(un))αk ¯un+1− Ak(un) δt =∇· ( f (Bk(φn))∇ ¯μn+1) , ¯μn+1 =− 1 α ( T′(Bk(un)))/Delta1¯un+1 + T′′(Bk(un)))|∇ Bk(un)|2) + H′(Bk(φn)); (2.3a) If I = (0,∞ ) : λn+1 = ∫ /Omega1φ0dx∫ /Omega1T(¯un+1)dx , ¯φn+1 = λn+1 T(¯un+1), (2.3b) If I = (0,1) : ∫ /Omega1 T(λn+1 ¯un+1)dx = ∫ /Omega1 φ0dx, ¯φn+1 = T(λn+1 ¯un+1), (2.3c) rn+1 − rn δt =− rn+1 E( ¯φn+1) + C0 ( f ( ¯φn+1)∇ ¯μn+1,∇ ¯μn+1) , (2.3d) ξn+1 = rn+1 E( ¯φn+1) + C0 , ηn+1 k =1 − (1 − ξn+1)Ik , Ik = { k +1, k odd k +2, k even , (2.3e) un+1 = ηn+1 k ¯un+1,φ n+1 = ηn+1 k ¯φn+1, (2.3f) where the constant αk, operators Ak, Bk are defined by 3 F. Huang, J. Shen and K. Wu Journal of Computational Physics 460 (2022) 111177 BDF1 scheme: α1 =1, A1(vn) = vn, B1(hn) = hn; (2.4) BDF2 scheme: α2 = 3 2, A2(vn) =2vn − 1 2 vn−1, B2(hn) =2hn − hn−1; (2.5) BDF3 scheme: α3 = 11 6 , A3(vn) =3vn − 3 2 vn−1 + 1 3 vn−2, B3(hn) =3hn − 3hn−1 + hn−2; (2.6) BDF4 scheme: α4 = 25 12, A4(vn) =4vn − 3vn−1 + 4 3 vn−2 − 1 4 vn−3, B4(hn) =4hn − 6hn−1 +4hn−2 − hn−3. (2.7) The formulae for k =5 and k =6c a n be derived similarly. Several remarks are in order: • The mass conservation for ¯φn+1 is guaranteed by (2.3b)o r (2.3c), and the mass error for φn+1 is O(δt Ik ). We can determine λn+1 in (2.3b) explicitly for the positivity preserving case while we need to solve a nonlinear equation (2.3c) by iteration method to obtain λn+1 for the bound preserving case. • We choose Ik to be even and it satisfies Ik ≥ k +1t o guarantee the whole scheme is k-th order accurate and 0 < ηn+1 k < 1. As a result, the ranges of both ¯φn+1 and φn+1 are in I. • (2.3d)i s a first-order approximation to (2.2c). Hence, rn+1 is a first order approximation to E(φ(·, tn+1)) + C0 which implies that ξn+1 is a first order approximation to 1. Hence, ηn+1 k =1 + O(δtk+1), which implies that both ¯φn+1 and φn+1 are k-th order approximation of φ(tn+1) = T(u(tn+1)). • The above scheme can be efficiently implemented as follows: – determine (¯un+1, ¯μn+1) by solving the coupled second-order system (2.3a); – compute ¯φn+1 from (2.3b)o r (2.3c); – with ¯φn+1 known, determine rn+1 explicitly from (2.3d), and compute ξn+1 and ηn+1 k using (2.3e); – update φn+1 and un+1 using (2.3f), go to the next step. Hence, the main computational cost is to solve the coupled second-order equations (2.3a) which amounts to solve the following coupled system: a(x)u −∇· b(x)∇ v = f (x), (2.8a) v + c(x)/Delta1u = g(x), (2.8b) where u and v satisfy either periodic or homogeneous Neumann boundary conditions, and a, b, c, f , g are given functions with a, b, c being positive. Let Xh be a finite dimensional approximation space such that Xh ∈ H1(/Omega1) if u and v satisfy the homogeneous Neumann boundary conditions, or Xh ∈ H1 p(/Omega1) := {v ∈ H1(/Omega1) : v periodic} if u and v satisfy the periodic boundary conditions. And let (·, ·)h be a discrete inner product on Xh × Xh, a Galerkin approximation to (2.8)i s : Find uh, vh ∈ Xh such that (a(x)uh,φh)h + (b(x)∇ vh,∇φh)h = ( f (x),φh)h, ∀φh ∈ Xh, (2.9a) (vh,ψ h)h − (∇ uh,∇(c(x)ψh))h = (g(x),ψ h)h, ∀ψh ∈ Xh. (2.9b) Depending on the choice of Xh, the above coupled linear system can be solved directly or iteratively using a BiCGStab or GMRES with a suitable preconditioner. Note that for this method, we need to solve a coupled second-order system with variable coefficients so it is mostly suitable if Xh consists of local basis functions such as finite-elements which would lead to a sparse system that can be efficiently solved. However, if Xh consists of global basis functions such as in a spectral method, it may lead to a non-sparse system that might be costly to form and solve. Hence, we shall present below a second method which is more suitable for a spectral discretization. 2.2. Method 2 Setting φ = T(u) in (1.1), introducing ν= μ T′(u) and dividing T′(u) on both sides, we can rewrite (1.1)a s follows: ut − f (φ)/Delta1ν= g(u,φ, ν) T′(u) , (2.10a) ν+ 1 α/Delta1u =− T′′(u) T′(u) |∇ u|2 + H′(φ) T′(u) , (2.10b) 4 F. Huang, J. Shen and K. Wu Journal of Computational Physics 460 (2022) 111177 where g(u, φ, ν) is given by g(u,φ, ν) = f (φ) ( ν/Delta1T′(u) +2∇ν·∇ T′(u) ) +∇ f (φ)·∇ μ. (2.11) The transformed equation (2.10)i s complicated. However, if f (φ) is a constant, the left hand side of (2.10) has only con- stant coefficients while the right hand side only has terms with lower-order derivatives. Thus, if we treat the left hand side implicitly and the right hand side explicitly, we only need to solve a system of linear equations with constant coefficients at each time step. Furthermore, in certain situations such as Cahn-Hilliard equations with logarithmic potentials, the nonlinear terms can be greatly simplified by choosing a suitable transform function. To deal with the variable mobility, similar to the method presented in [30,1], we rewrite (2.10a)a s ut − S1/Delta1ν+ S2u = ˜g(u,φ, ν) := g(u,φ, ν) T′(u) + ( f (φ)− S1)/Delta1ν+ S2u, (2.12) where S1, S2 are suitable positive constants. We introduce a SAV r(t) = E(φ) + C0 with C0 =2C +∥ E(φ0)∥L∞ and rewrite (2.10) and (1.3)a s ut − S1/Delta1ν+ S2u = ˜g(u,φ, ν), (2.13a) ν+ 1 α/Delta1u =− T′′(u) T′(u) |∇ u|2 + H′(φ) T′(u) , (2.13b) φ = T(u), μ = T′(u)ν, (2.13c) dr dt =− r E(φ)+ C0 ( f (φ)∇μ,∇μ ) . (2.13d) With r(0) = E(φ)|t=0 + C0, it is clear that the above system is equivalent to (1.1)w i t h energy dissipative law (1.3). Instead of discretizing (1.1), we shall discretize the expanded system (2.13)b y using the general strategy introduced in [16]a s follows: Given rn and (u j, φj) for j = n, ··· , n − k +1, find (φn+1, un+1, rn+1, ξn+1) such that {αk ¯un+1− Ak(un) δt − S1/Delta1¯νn+1 + S2 ¯un+1 = ˜g ( Bk(un), Bk(φn), Bk(¯νn) ) , ¯νn+1 + 1 α/Delta1¯un+1 =− T′′(Bk(un)) T′(Bk(un)) |∇ Bk(un)|2 + H′(Bk(φn)) T′(Bk(un)) , (2.14a) If I = (0,∞ ) : λn+1 = ∫ /Omega1φ0dx∫ /Omega1T(¯un+1)dx , ¯φn+1 = λn+1 T(¯un+1), (2.14b) If I = (0,1) : ∫ /Omega1 T(λn+1 ¯un+1)dx = ∫ /Omega1 φ0dx, ¯φn+1 = T(λn+1 ¯un+1), (2.14c) ¯μn+1 = ¯νn+1 T′(¯un+1), (2.14d) rn+1 − rn δt =− rn+1 E( ¯φn+1) + C0 ( f ( ¯φn+1)∇ ¯μn+1,∇ ¯μn+1) , (2.14e) ξn+1 = rn+1 E( ¯φn+1) + C0 , ηn+1 k =1 − (1 − ξn+1)Ik , Ik = { k +1, k odd k +2, k even , (2.14f) un+1 = ηn+1 k ¯un+1,φ n+1 = ηn+1 k ¯φn+1, (2.14g) where the constant αk, operators Ak, Bk are as before. We observe that the main difference with Method 1 is that (2.3a)i s replaced by (2.14a) which is now a coupled second- order equation with constant coefficients and can be solved more efficiently, particularly with a spectral method or finite difference method. 2.3. A stability result It is obvious that the schemes (2.3) and (2.14)a r e bound/positivity preserving. Moreover, we have also the following stability results. Theorem 1. Given φi with range in I = (0, 1) or I = (0, ∞ ), ui = T−1(φi) for i =0, 1, ..., k − 1 and rn . The schemes (2.3) and (2.14) admit a unique solution satisfying the following properties unconditionally: 1. Mass conservation for ¯φn+1: ∫ /Omega1¯φn+1dx = ∫ /Omega1φ0dx. 2. Bound preserving: i.e., the range of ¯φn+1 and φn+1 are in I. 5 F. Huang, J. Shen and K. Wu Journal of Computational Physics 460 (2022) 111177 3. Energy dissipation: Given rn ≥ 0 we have rn+1 ≥ 0, ξn+1 ≥ 0 and rn+1 − rn =− δtξn+1( f ( ¯φn+1)∇ ¯μn+1,∇ ¯μn+1) ≤ 0. (2.15) 4. Furthermore, for the k-th order schemes, there exists Mk >0 such that ∥∇φn∥≤ Mk, ∀n. (2.16) Proof. Eliminating ¯νn+1 from (2.14a), we find that ¯un+1 is the solution of (αk δt + S2)u + S1 α /Delta12u = g, (2.17) subjected to the periodic boundary condition or ∂u ∂n |∂/Omega1= ∂/Delta1u ∂n |∂/Omega1= 0, and with g being a given function. It is clear that (2.17) admits a unique solution. On the other hand, (2.3a)l e a d s to (2.8). It can be shown, using the standard theory for linear elliptic equations, that (2.8)w i t h the periodic boundary condition or homogeneous Neumann boundary condition admits a unique solution. The rest of the proof for the two schemes are exactly the same so we shall only do it for the scheme (2.14). It is obviously that the range of ¯φn+1 is in I and ∫ /Omega1¯φn+1dx = ∫ /Omega1φ0dx from (2.14c). We derive from (2.14e) that rn+1 = rn/ ( 1 + δt E( ¯φn+1) + C0 ( f ( ¯φn+1)∇ ¯μn+1,∇ ¯μn+1)) . Hence, if rn ≥ 0, we have rn+1 ≥ 0, and (2.15) follows directly from (2.14e). It follows from (2.14f), (2.15) and the definition of C0 that 0 <ξn+1 ≤ r0 E( ¯φn+1) + C0 < 2|E(φ0)|+ 2C 1 +| E(φ0)|+ C <2 (2.18) As a result, (2.14f) and (2.18)t o g e t h e r imply 0 <(1 − ξn+1)Ik <1, 0 < ηn+1 k <1. (2.19) Hence, the range of φn+1 is also in I as φn+1 = ηn+1 k ¯φn+1. Now, it follows from (2.14f) and the assumption on E1(u) that |ξn+1|= rn+1 E( ¯φn+1) + C0 ≤ 2r0 ∥∇ ¯φn+1∥2 +2 . (2.20) Since ηn+1 k =1 − (1 − ξn+1)Ik , there exists a polynomial Pk of degree Ik − 1 and a constant Mk >0s u c h that |ηn+1 k |=| ξn+1 Pk(ξn+1)|≤ Mk ∥∇ ¯φn+1∥2 +2 . (2.21) Therefore, by the fact √ A ≤ A +2f o r all A ≥ 0, we have ∥∇φn+1∥= ηn+1 k ∥∇ ¯φn+1∥≤ Mk. /Box (2.22) 2.4. Adaptive time stepping strategy To fully take advantage of the unconditional stability of our schemes, one should use an adaptive time stepping [28,13,4]. It is clear that ξn+1 should be close to 1 otherwise the numerical solution likely deviates from the exact solution. However, ξn+1 close to 1 can not ensure a good approximation is achieved. Hence we modify the adaptive time-stepping algorithm in [28]a s follows. Given a default safety coefficient ρ, a reference tolerance tol, the minimum time steps τmin and the maximum time steps τmax, a tunable constant r1, r2 and define Adp(e,τ) = ρ ( tol e )r1 τ. (2.23) We update the time step size by the following algorithm: 6 F. Huang, J. Shen and K. Wu Journal of Computational Physics 460 (2022) 111177 Fig. 1. (Example 1.) Accuracy test for the 1-D Lubrication-type equation using the SAV/BDFk schemes (k =1,2,3,4). Algorithm 1: Time step adaptive procedure. Given: the previous time step τn and the previous solutions un. step 1. compute un+1 with time step τn; step 2. calculate en+1 =max{∥un+1 − un∥, r2|1 − ξn+1|}; step 3. if en+1 > tol, then recalculate time step τn ← max{τmin, min{Adp(en+1, τn), τmax}}; goto step 1 step 4. else update time step τn+1 ← max{τmin, min{Adp(en+1, τn), τmax}}; step 5. endif The above algorithm is only first-order, and is particularly efficient if one is interested only in the steady state solutions. For first-order adaptive schemes, the usual choice of r1 is 0.5. The choice of r2 depends on specific problems, and needs to be determined with some trial-and-error process. Higher-order BDF versions can be constructed as in [4,18]. 3. Numerical results In this section, we present ample numerical examples to verify our numerical schemes. For all the examples in this section, periodic boundary conditions are imposed in all directions, and for space discretization, we employ the Fourier- Spectral method [14,25]. We use Nx, Ny and Nz to denote the number of modes in x, y, z directions, respectively. 3.1. Convergence test We first test accuracy of the two proposed methods. Example 1 (Accuracy test of the scheme (2.3)). We consider the one-dimensional Lubrication-type equation (cf. Case 1 in the introduction) with f (φ) = mφ. The computational domain is [−1, 1] and the initial condition is φ(x,0) =exp(sin(πx)). (3.1) To preserve positivity, we use the function transform φ = T(u) =exp(u). (3.2) The parameters are chosen as α = 1, m = 0.0001 and Nx = 64. The reference solution is generated by the fourth-order scheme with δt =0.0002. We plot in Fig. 1 (a) the L2-error of the first- and second-order schemes at tn =1, and in Fig. 1 (b), the L2-error of the third- and fourth-order schemes at tn =1. Expected convergence rates are observed for all cases. Note that the mass is exactly conserved only for ¯φn+1, and with an error of order O(δt Ik ) (Ik defined in (2.3e)) for φn+1. We report in Table 1 the mass error of different schemes at tn = 1f o r ¯φn+1, which verifies that En mass := | ∫ /Omega1φn+1dx −∫ /Omega1φ0dx| is of order O(δt Ik ) for the first-, second- and third-order schemes, and the magnitude of mass error for the fourth order scheme is already very small at large δt. Example 2 (Accuracy test of the scheme (2.14)). We consider the two dimensional Cahn-Hilliard equation with logarithmic potential and constant mobility, i.e. Case 2 in the introduction with f (φ) = m. The computational domain is [0, 2] ×[0, 2] with the initial condition 7 F. Huang, J. Shen and K. Wu Journal of Computational Physics 460 (2022) 111177 Table 1 Mass error test for the 1-D Lubrication-type equation using the SAV/BDFk schemes (k =1, 2, 3, 4). BDF1 BDF2 BDF3 BDF4 δtE n mass En mass En mass En mass 1.00e-1 2.2291e-5 5.5041e-8 3.9037e-8 3.9164e-12 5.00e-2 6.2430e-6 4.2971e-9 3.3633e-9 1.0436e-13 2.50e-2 1.6521e-6 3.0567e-10 2.6184e-10 2.2204e-15 1.25e-2 4.2495e-7 2.0511e-11 1.8758e-11 4.4409e-16 1.00e-2 2.7352e-7 8.5270e-12 7.9203e-12 0 5.00e-3 6.9165e-8 5.4934e-13 5.2847e-13 4.4409e-16 2.50e-3 1.7390e-8 3.5083e-14 3.4195e-15 0 1.25e-3 4.3599e-9 2.6645e-15 2.2204e-15 4.4409e-16 Fig. 2. (Example 2.) Accuracy test for the 2-D Cahn-Hilliard equation using the SAV/BDFk schemes (k =1,2,3,4). Table 2 Mass error test for the 2-D Cahn-Hilliard equation using the SAV/BDFk schemes (k =1, 2, 3, 4). BDF1 BDF2 BDF3 BDF4 δtE n mass En mass En mass En mass 1.00e-1 3.0766e-5 6.1988e-11 5.3766e-11 5.6233e-14 5.00e-2 7.9521e-6 4.5424e-12 2.9375e-12 7.2164e-16 2.50e-2 2.0509e-6 3.1247e-13 1.7120e-13 0 1.25e-2 5.0940e-7 2.0539e-14 1.0325e-14 0 1.00e-2 3.2655e-7 8.4377e-15 4.2744e-15 0 5.00e-3 8.1903e-8 4.9960e-16 2.2204e-16 0 2.50e-3 2.0509e-8 1.6653e-16 1.1102e-16 0 1.25e-3 5.1314e-9 0 1.1102e-16 5.5511e-17 φ(x, y,0) =0.2exp(− sin2(πx) − cos2(π y)). (3.3) We use the function transform φ = T(u) = 1 1 +exp(− u). (3.4) The parameters are chosen as α=100, m =0.0001 and Nx = Ny =64. The reference solution is generated by the fourth- order scheme with δt =0.0002. We plot in Fig. 2 (a) the L2-error of the first- and second-order schemes at tn =1, and in Fig. 2 (b), the L2-error of the third- and fourth-order schemes at tn =1. Expected convergence rates are observed for all cases. Next, we report in Table 2 the mass error of different schemes at tn =1, which verifies that En mass = O(δt Ik ) for large δt and low order schemes, and the magnitude of mass error for high order schemes is very small even for large δt. 3.2. Lubrication-type equation Example 3. We consider the following one dimensional Lubrication-type equation φt + ∂x( f (φ)∂3 x φ) =0, with f (φ) = φ1/2 (3.5) 8 F. Huang, J. Shen and K. Wu Journal of Computational Physics 460 (2022) 111177 Fig. 3. (Example 3.) Failure in solving (3.7) by using Scheme I and Scheme II. in /Omega1 =[ −1, 1] with the initial condition φ0(x) =0.8 − cos(πx) +0.25cos(2πx). (3.6) It was shown in [29] that the solution of this problem develops a finite time singularity at t = ts. It was proposed to consider the regularized equation [29] ∂tφε+ ∂x( f (φε)∂3 x φε) =0with f (φε) = φ4 ε f (φε) εf (φε) + φ4 ε (3.7) with ε≪1. It was shown in [29] that solution of the regularized problem with any ε>0i s strictly positive. In the following, we fix ε= 10−14 and use different time discretization schemes to solve (3.7). Since the problem is nearly singular, we only compare the results using first-order schemes. • Scheme I. The usual semi-implicit scheme without function transformation: i.e. given φn, we solve φn+1 from φn+1 − φn δt = ∂x( f (φn)∂xμn+1), (3.8a) μn+1 =− ∂2 x φn+1. (3.8b) We set Nx =160 and δt =5 ×10−9, and plot the maximum value of the imaginary part of the solution in Fig. 3 (a). We observe the imaginary part becomes non zero around the singular time ts, which means the numerical solution is no longer positive. The situation remains the same even as we use smaller time steps and more spatial modes. • Scheme II. The semi-implicit scheme with function transformation φ = T(u) = exp(u) but without SAV, i.e. we fix ξn+1 =1i n the Scheme 2.3. We set Nx =160 and δt =5 ×10−9, and plot the energy evolution in Fig. 3 (b). We observe that while the numerical solution remains positive, the scheme becomes unstable at around the singular time ts. Again, the situation remains the same even we decrease the time step and increase the spatial resolution. • Scheme III. The semi-implicit scheme with function transformation φ = T(u) = exp(u) and with SAV, i.e. the scheme (2.3). We set Nx =160, δt =5 ×10−9, and plot the minimum value of the numerical solution in Fig. 4 (a) and the SAV factor ηin Fig. 4 (b). We observe that the numerical solution approaches zero at around ts while the SAV factor dips slightly below 1t o allow the scheme to pass the singular time. The small time step is dictated by the rapid change of energy initially and at around ts. To overcome this difficulty, we implemented the scheme (2.3)w i t h a time adaptive strategy. We set Nx = 160 and the minimum time step as δtmin =5 ×10−9, which is the maximum allowable time step without time step adaptivity. Other parameters for time adaptivity are chosen as ρ=0.5, r1 =0.5, r2 =1e − 3, tol =10−5, δtmax =5 ×10−5. We plot the solutions at different times in Fig. 5 (a), the energy evolution in Fig. 5 (b), and the time step evolution in Fig. 5 (c). We observe that small time steps were used initially and at around ts, and the time step gradually increased several magnitudes at later times. Example 4. We consider the two dimensional Lubrication type equation φt =∇· ( f (φ)∇μ) with f (φ) = φ, (3.9a) μ =− /Delta1φ, (3.9b) 9 F. Huang, J. Shen and K. Wu Journal of Computational Physics 460 (2022) 111177 Fig. 4. (Example 3.) Successful computation of (3.7) by using Scheme III: function transformation with SAV. Fig. 5. (Example 3.) Successful computation of (3.7) by using Scheme III with adaptive time stepping. in /Omega1 =[ −0.5, 0.5] ×[ −1, 1] with the initial condition φ0(x) = ε+ σ 40 exp−σ(x2+y2), (3.10) with σ =80 and ε=0.01. This example was considered in Section 4.1o f [1]. We set Nx =96, Ny =192, and use first-order version of the scheme (2.14)w i t h the function transform φ = T(u) =exp(u) and parameters S1 =2.2, S2 =1 combined with a time adaptive strategy. The parameters for time adaptivity are chosen as δtmin =2.5 ×10−9, δtmax =10−5, ρ=0.9, r1 = 0.5, r2 =1, tol =2 ×10−5. Fig. 6(a) shows the time evolution of the minimum value of φ which are above zero at all times, Fig. 6(b) shows the time evolution of the maximum value of φ, and Fig. 6(c) is the time evolution of the total free energy E. We observe that initially, the free energy E decreases very fast, but after around t =10−4, the free energy E decreases at a much slower rate. On the other hand, Fig. 6(d) illustrates the time evolution of the adaptive time step δt. We also present in Fig. 7 the instantaneous normalized solution φ/max(φ) at the time instants t1, t2, t3, t4 labeled by the vertical red lines in Fig. 6. 3.3. Cahn-Hilliard equation with logarithmic potential In this subsection, we consider the two- and three-dimensional Cahn-Hilliard equation with logarithmic potential, i.e. Case 2i n the introduction. We use the same settings as those in [13], namely, f (φ) = mφ(1 − φ) in (1.1), and the associated potential is H(φ) = φlogφ+ (1 − φ) log(1 − φ) +3φ(1 − φ) in (1.2), and the initial condition is φ0 = c + r, (3.11) where c is the mean initial condition and r is a random perturbation variable with uniform distribution in [−0.05, 0.05]. All the examples presented in this subsection are computed using the scheme (2.14)w i t h the function transformation φ = T(u) = 1 1+exp(− u), which not only preserves φ ∈ (0, 1), but also lead to simplified nonlinear terms in (2.14), for example: log(φ)− log(1 − φ) = u, (3.12a) 10 F. Huang, J. Shen and K. Wu Journal of Computational Physics 460 (2022) 111177 Fig. 6. Example 4. (a) Temporal evolution of the minimum value of φ over the entire computational domain; (b) Temporal evolution of the maximum value of φ over the entire computational domain; (c) Temporal evolution of free energy E; (d) Temporal evolution of the adaptive time step dt. (For interpretation of the colors in the figure(s), the reader is referred to the web version of this article.) Fig. 7. Example 4. Snapshots of instantaneous normalized φ/max(φ) at the time instants as indicated. All the contour levels are equally spaced between 0 to 1, and the colormap is consistent with the contour levels. h(φ) = h(φ, u) = u + λ− 2λφ, (3.12b) T′(u) = (1 − T(u))T(u) = (1 − φ)φ, (3.12c) T′′(u) T′(u) =1 − 2T(u) =1 − 2φ. (3.12d) Example 5. In this example, we consider the two dimensional Cahn-Hillard equation in a unit square at two different α values, α =3000 and α =6000 with the mean initial condition c =0.63. For both cases, we use the scheme (2.14)w i t h S1 =0.2m and S2 =2. The spatial resolutions used are Nx = N y =128, time step dt =10−8 for α=3000 and Nx = N y = 256, time step dt =2 ×10−9 for α=6000. We conduct the simulations using the first order version of (2.14)i n order to compare the results obtained using a first order scheme in [13]. Fig. 8(a) and Fig. 8(b) show the time evolution of free energy E at α=3000 and α=6000, respectively. These energy plots are consistent with the corresponding results in Figure 5 and Figure 15 of [13]. In addition, we present in Fig. 9 and Fig. 10 snapshots of the solution at exactly the same time instants as the Figure 6 and Figure 11 in [13], respectively. The dynamical process and the steady states obtained by our scheme are visually comparable with the results presented in [13]. 11 F. Huang, J. Shen and K. Wu Journal of Computational Physics 460 (2022) 111177 Fig. 8. Example 5. Temporal evolution of free energy at (a)α=3000 and (b)α=6000. In both cases, the mean initial conditions are¯c =0.63. Fig. 9. Example 5. Snapshots of φ at different time instants as indicated. The solutions are simulated at α = 3000, f (φ) = 3000φ(1 − φ), mean initial condition ¯c =0.63, constant time step dt =1e − 8a n d spatial resolution Nx = N y =128. Example 6. We consider the three dimensional Chan-Hillaird equation with logarithmic potential in a unit cube with the mobility function f (φ) = mφ(1 − φ) and f (φ) = m. We set S1 =0.2m, S2 =2f o r the variable mobility case and S1 = m, S2 = 1f o r the constant mobility case in the scheme (2.14). We fix α = m = 200, the mean initial condition c = 0.63, and use Nx = Ny = Nz = 96 for both cases. We use the first-order version of (2.14)w i t h adaptive time steps. In both cases, the same parameters are used for time adaptivity: δtmin =2 ×10−9, δtmax =10−5, ρ=0.2, r1 =0.5, r2 =1, tol =2 ×10−4. Fig. 11 shows the energy evolutions for the variable mobility case (a) f (φ) =200φ(1 − φ) and the constant mobility case (b) f (φ) =200, and the time steps evolutions for the variable case (c) f (φ) =200φ(1 − φ) and the constant mobility case (d) f (φ) =200. We observe that in both cases the energy decreases monotonically and we can use quite large time steps at a significant part of times. Fig. 12 illustrates the instantaneous isosurfaces of the numerical solution with variable mobility f (φ) = 200φ(1 − φ). The isosurfaces plotted in each single figure are φ =0.45 (blue), φ =0.5 (green) and φ =0.55 (red). We observe that the isosurface φ = 0.5f o r m s a circular cylinder shape in the steady state. Similarly, we present in Fig. 13 isosurfaces with constant mobility f (φ) = 200. The isosurface φ = 0.5i n steady state is also a circular cylinder. Moreover, since we use 12 F. Huang, J. Shen and K. Wu Journal of Computational Physics 460 (2022) 111177 Fig. 10. Example 5. Snapshots of φ at different time instants as indicated. The solutions are simulated at α=6000, mobility f (φ) =6000φ(1 − φ), mean initial condition ¯c =0.63, constant time step dt =2 ×10−9 and spatial resolution Nx = N y =256. Fig. 11. Example 6. Temporal evolution of free energy E at (a) f (φ) =200φ(1 − φ) and (b) f (φ) =200; Temporal evolution of the adaptive time steps at (c) f (φ) =200φ(1 − φ) and (d) f (φ) =1. In both cases, the initial conditions are ¯c =0.63, α=200 and spatial resolutions Nx = N y = Nz =96. 13 F. Huang, J. Shen and K. Wu Journal of Computational Physics 460 (2022) 111177 Fig. 12. Example 6. Snapshots of iso-surfaces of φ at different time instants as indicated at α=200, mobility f (φ) =200φ(1 − φ) and mean initial condition ¯c =0.63. The iso-surfaces are plotted at φ=0.45 (blue), φ=0.5 (green) and φ=0.55 (red). Fig. 13. Example 6. Snapshots of iso-surfaces of φ at different time instants as indicated at α=200, mobility f (φ) =200 and mean initial condition ¯c =0.63. The iso-surfaces are plotted at φ=0.45 (blue), φ =0.5 (green) and φ =0.55 (red). exactly the same initial condition, we observe that the solution with the constant mobility case reaches essentially the same steady state but within a shorter time compared with the variable mobility case. 14 F. Huang, J. Shen and K. Wu Journal of Computational Physics 460 (2022) 111177 4. Concluding remarks We constructed two classes of bound/positivity preserving and unconditionally stable schemes by combining the func- tion transform approach and the SAV approach. The bound/positivity preserving property is ensured by a suitable function transform, while the unconditionally stability is provided with the SAV approach. Both properties are independent of spatial discretizations as long as proper integration by parts is respected, so our time discretization schemes can be combined with any consistent Galerkin type spatial discretiztion. The first class of schemes requires solving a coupled second-order linear system with variable coefficients at each time step so it is most suitable for a finite element discretization but can also be used with a finite difference or spectral discretization, while the second class of schemes only requires solving a coupled second-order linear system with constant coefficients so it is particular suitable for a spectral or finite difference discretization in space for which fast solvers may be developed. Although the transformed equations can be complicated, the second class of schemes is relatively easy to implement as one only needs to solve a coupled second-order linear system with constant coefficients at each time step. On the other hand, the first class of schemes is based on a natural variational approach so it will be relatively easier to carry out a convergence analysis. We implemented both class of schemes with Fourier-spectral methods for the Lubrication-type equations and the Cahn-Hilliard equations with logarithmic potential, and presented ample numerical examples to validate the accuracy and efficiency of the proposed schemes. It is found that the proposed schemes are able to capture correctly the complex dy- namics of the Cahn-Hilliard equations with singular mobility and singular behaviors of the Lubrication-type equations. A drawback of the proposed schemes is that one may need to use smaller time steps compared with a usual approach with- out function transform. But this is more than offset by their other nice properties, and this situation can be improved by using an adaptive time stepping strategy. CRediT authorship contribution statement Fukeng Huang, Jie Shen and Ke Wu all contributed to the conceptualization, methodology and writing. Fukeng Huang and Ke Wu carried out all the numerical simulations. Declaration of competing interest The authors declare that they have no known competing financial interests or personal relationships that could have appeared to influence the work reported in this paper. References [1] Andrea L. Bertozzi, Ning Ju, Hsiang-Wei Lu, A biharmonic-modified forward time stepping method for fourth order nonlinear diffusion equations, Discrete Contin. Dyn. Syst. 29 (4) (2011) 1367–1391. [2] John W. Cahn, John E. Hilliard, Free energy of a nonuniform system. I. Interfacial free energy, J. Chem. Phys. 28 (2) (1958) 258–267. [3] Wenbin Chen, Cheng Wang, Xiaoming Wang, Steven M. Wise, Positivity-preserving, energy stable numerical schemes for the Cahn-Hilliard equation with logarithmic potential, J. Comput. Phys.: X 3 (2019) 100031. [4] Wenbin Chen, Xiaoming Wang, Yue Yan, Zhuying Zhang, A second order BDF numerical scheme with variable steps for the Cahn–Hilliard equation, SIAM J. Numer. Anal. 57 (1) (2019) 495–525. [5] Qing Cheng, Jie Shen, A new Lagrange multiplier approach for constructing structure preserving schemes, I. Positivity preserving, 2021. [6] Qing Cheng, Jie Shen, A new Lagrange multiplier approach for constructing structure-preserving schemes, II. Bound preserving, 2021. [7] Lixiu Dong, Cheng Wang, Steven M. Wise, Zhengru Zhang, A positivity-preserving, energy stable scheme for a ternary Cahn-Hilliard system with the singular interfacial parameters, J. Comput. Phys. (2021) 110451. [8] Lixiu Dong, Cheng Wang, Hui Zhang, Zhengru Zhang, A positivity-preserving, energy stable and convergent numerical scheme for the Cahn–Hilliard equation with a Flory–Huggins–deGennes energy, Commun. Math. Sci. 17 (4) (2019) 921–939. [9] Lixiu Dong, Cheng Wang, Hui Zhang, Zhengru Zhang, A positivity-preserving second-order BDF scheme for the Cahn-Hilliard equation with variable interfacial parameters, Commun. Comput. Phys. 28 (3) (2020) 967–998. [10] Jérôme Droniou, Christophe Le Potier, Construction and convergence study of schemes preserving the elliptic local maximum principle, SIAM J. Numer. Anal. 49 (2) (2011) 459–490. [11] Qiang Du, Lili Ju, Xiao Li, Zhonghua Qiao, Maximum principle preserving exponential time differencing schemes for the nonlocal Allen–Cahn equation, SIAM J. Numer. Anal. 57 (2) (2019) 875–898. [12] Qiang Du, Lili Ju, Xiao Li, Zhonghua Qiao, Maximum bound principles for a class of semilinear parabolic equations and exponential time-differencing schemes, SIAM Rev. 63 (2) (2021) 317–359. [13] Héctor Gómez, Victor M. Calo, Yuri Bazilevs, Thomas J.R. Hughes, Isogeometric analysis of the Cahn–Hilliard phase-field model, Comput. Methods Appl. Mech. Eng. 197 (49–50) (2008) 4333–4352. [14] D. Gottlieb, S.A. Orszag, Numerical Analysis of Spectral Methods: Theory and Applications, SIAM-CBMS, Philadelphia, 1977. [15] Jingwei Hu, Xiaodong Huang, A fully discrete positivity-preserving and energy-dissipative finite difference scheme for Poisson–Nernst–Planck equations, Numer. Math. (2020) 1–39. [16] Fukeng Huang, Jie Shen, Bound/positivity preserving and energy stable sav schemes for dissipative systems: applications to Keller-Segel and Poisson- Nernst-Planck equations, SIAM J. Sci. Comput. 43 (3) (2021) A1832–A1857. [17] Fukeng Huang, Jie Shen, Implicit-explicit BDF k SAV schemes for general dissipative systems and their error analysis, Comput. Methods Appl. Mech. Eng. 392 (2022) 114718. 15 F. Huang, J. Shen and K. Wu Journal of Computational Physics 460 (2022) 111177 [18] Fukeng Huang, Jie Shen, Zhiguo Yang, A highly efficient and accurate new scalar auxiliary variable approach for gradient flows, SIAM J. Sci. Comput. 42 (4) (2020) A2514–A2536. [19] Buyang Li, Jiang Yang, Zhi Zhou, Arbitrarily high-order exponential cut-off methods for preserving maximum principle of parabolic equations, SIAM J. Sci. Comput. 42 (6) (2020) A3957–A3978. [20] Hong-lin Liao, Tao Tang, Tao Zhou, A second-order and nonuniform time-stepping maximum-principle preserving scheme for time-fractional Allen- Cahn equations, J. Comput. Phys. 414 (2020) 109473. [21] Hailiang Liu, Hui Yu, Maximum-principle-satisfying third order discontinuous Galerkin schemes for Fokker–Planck equations, SIAM J. Sci. Comput. 36 (5) (2014) A2296–A2325. [22] Jian-Guo Liu, Li Wang, Zhennan Zhou, Positivity-preserving and asymptotic preserving method for 2D Keller-Segal equations, Math. Comput. 87 (311) (2018) 1165–1189. [23] Changna Lu, Weizhang Huang, Erik S. Van Vleck, The cutoff method for the numerical computation of nonnegative solutions of parabolic PDEs with application to anisotropic diffusion and lubrication-type equations, J. Comput. Phys. 242 (2013) 24–36. [24] Partho Neogi, C.A. Miller, Spreading kinetics of a drop on a smooth solid surface, J. Colloid Interface Sci. 86 (2) (1982) 525–538. [25] Jie Shen, Tao Tang, Li-Lian Wang, Spectral Methods: Algorithms, Analysis and Applications, vol. 41, Springer Science & Business Media, 2011. [26] Xiangxiong Zhang, Chi-Wang Shu, On positivity-preserving high order discontinuous Galerkin schemes for compressible Euler equations on rectangular meshes, J. Comput. Phys. 229 (23) (2010) 8918–8934. [27] Xiangxiong Zhang, Chi-Wang Shu, Maximum-principle-satisfying and positivity-preserving high-order schemes for conservation laws: survey and new developments, Proc. R. Soc. A, Math. Phys. Eng. Sci. 467 (2134) (2011) 2752–2776. [28] Zhengru Zhang, Zhonghua Qiao, An adaptive time-stepping strategy for the Cahn-Hilliard equation, Commun. Comput. Phys. 11 (4) (2012) 1261–1278. [29] Liya Zhornitskaya, Andrea L. Bertozzi, Positivity-preserving numerical schemes for lubrication-type equations, SIAM J. Numer. Anal. 37 (2) (2000) 523–555. [30] J. Zhu, L.Q. Chen, Jie Shen, V. Tikare, Microstructure dependence of diffusional transport, Comput. Mater. Sci. 20 (2001) 37–47. 16

采集于

查看校方原文 ↗