校园网页 · 学校官网
Efficient energy stable numerical schemes for Cahn–Hilliard equations with dynamical boundary conditions
Journal of Computational Physics 509 (2024) 113037 Available online 24 April 2024 0021-9991/© 2024 Elsevier Inc. All rights reserved. Contentslistsavailableat ScienceDirect Journal of Computational Physics journal homepage: www.elsevier.com/locate/jcp Efficient energy stable numerical schemes for Cahn–Hilliard equations with dynamical boundary conditions XinyuLiu a, JieShen b, NanZheng c,∗ a Department of Mathematics, Purdue University, West Lafayette, IN 47907, USA b School of Mathematical Science, Eastern Institute of Technology, Ningbo, China c Department of Applied Mathematics, The Hong Kong Polytechnic University, Hung Hom, Kowloon, Hong Kong A R T I C L E I N F O A B S T R A C T Keywords: Cahn-Hilliard equation Dynamic boundary conditions Scalar auxiliary variable Gradient flow Spectral methods Energy stability In this paper, we propose a unified framework for studying the Cahn–Hilliard equation with two distinct types of dynamic boundary conditions, namely, the Allen–Cahn and Cahn–Hilliard types. Using this unified framework, we develop a linear, second-order, and energy-stable scheme based on the multiple scalar auxiliary variables (MSAV) approach. We design efficient and decoupling algorithms for solving the corresponding linear system in which the unknown variables are intricately coupled both in the bulk and at the boundary. Several numerical experiments are shown to validate the proposed scheme, and to investigate the effect of different dynamical boundary conditions on the dynamics of phase evolution under different scenarios. 1. Introduction The Cahn–Hilliard equation was originally introduced in [1]to model phase separation processes of binary mixtures, which can be written as follows 𝜙𝑡=∇ ⋅(𝕄(𝜙)∇𝜇),𝑡 > 0, 𝒙∈Ω, (1.1a) 𝜇=−𝜖Δ𝜙+ 1 𝜖𝐹′(𝜙),𝑡 > 0, 𝒙∈Ω. (1.1b) In the equations, 𝜙 is a phase function with a thin, smooth transitional layer, whose thickness is proportional to the parameter 𝜖, 𝕄(𝜙) ≥ 0is the mobility function; 𝜇is the so called chemical potential, which can be expressed as the variational derivative of the energy functional 𝐸bulk(𝜙)= ∫ Ω 𝜖 2 |∇𝜙|2 + 1 𝜖𝐹(𝜙)𝑑𝒙, (1.2) where 𝜖is an interface thickness parameter, and 𝐹 is usually either the thermodynamically relevant logarithmic potential function [1] 𝐹(𝑦)=−1 2𝑘𝑇𝑐𝑦2 + 1 2𝑘𝑇[(1−𝑦)log(1− 𝑦)+(1+ 𝑦)log(1+ 𝑦)],𝑦 ∈ℝ, (1.3) * Corresponding author. E-mail addresses:liu1957@purdue.edu(X.Liu), jshen@eitech.edu.cn(J.Shen), znan2017@163.com(N.Zheng). https://doi.org/10.1016/j.jcp.2024.113037 Received 3 March 2023; Received in revised form 22 March 2024; Accepted 18 April 2024 Journal of Computational Physics 509 (2024) 113037 2 X.Liu,J.ShenandN.Zheng with 𝑘being the Boltzmann’s constant and 0 <𝑇 <𝑇 𝑐, or its approximation in the double-well form (cf.[2–5]) 𝐹(𝑦)= 1 4(𝑦2 −1)2,𝑦 ∈ℝ. (1.4) When the interfaces do not touch the boundary, we can prescribe the homogeneous Neumann boundary conditions 𝜕𝒏𝜇|𝜕Ω=0 ,𝜕 𝒏𝜙|𝜕Ω=0 , (1.5) where 𝒏is the outward normal of 𝜕Ω. Then, we derive from (1.1)-(1.5)the conservation of mass in the bulk: ∫ Ω 𝜙(𝑡)𝑑𝒙= ∫ Ω 𝜙(0)𝑑𝒙, (1.6) and the energy dissipation law: 𝑑 𝑑𝑡𝐸bulk(𝜙)=− ∫ Ω |𝕄(𝜙)∇𝜇|2𝑑𝒙. (1.7) However, when the interface touches the boundary, it becomes a moving contact line problem (cf. [6,7]and the references therein), so 𝜕𝒏𝜇|𝜕Ω=0 in (1.5)is no longer valid. Various dynamic boundary conditions have been proposed (see [8–11]and the references therein). In particular, the authors in [10,8]proposed to use 𝜙𝑡=−𝜇Γ,𝑡 > 0, 𝒙∈Γ, (1.8a) 𝜇Γ=−𝛿ΔΓ𝜙+ 𝜆𝜙+ 1 𝛿𝐺′(𝜙)+ 𝜖𝜕𝒏𝜙, 𝑡 > 0, 𝒙∈Γ, (1.8b) where 𝜇Γis the boundary chemical potential which is independent of the trace of 𝜇on Γ, 𝛿is related to surface diffusion on Γ, 𝜆is a non-negative constant, 𝐺(𝜙)is a surface potential function which usually takes the double well form, ΔΓis the Laplace-Beltrami operator on the boundary Γand 𝜕𝒏 is the normal derivative at the boundary. In particular, the dynamic boundary conditions (1.8) can be regarded as an 𝐿2-gradient flow on Γof the surface energy 𝐸surf(𝜙)= ∫ Γ ( 𝛿 2 |∇Γ𝜙|2 + 𝜆 2 |𝜙|2 + 1 𝛿𝐺(𝜙) ) 𝑑𝜎, (1.9) where ∇Γrepresents the tangential or surface gradient operator defined on Γ. The Cahn–Hilliard equation (1.1)w i t h the dynamic boundary conditions (1.8)is a gradient flow with the total free energy: 𝐸(𝜙)= 𝐸bulk(𝜙)+ 𝐸surf(𝜙). (1.10) More precisely, it satisfies the following energy dissipation law: 𝑑 𝑑𝑡𝐸(𝜙)=− ∫ Ω 𝕄(𝜙)|∇𝜇|2𝑑𝒙−∫ Γ |𝜇Γ|2𝑑𝜎. (1.11) On the other hand, the authors in [11](see also [9]) proposed to use 𝜙𝑡=ΔΓ𝜇Γ,𝑡 > 0, 𝒙∈Γ, (1.12a) 𝜇Γ=−𝛿ΔΓ𝜙+ 𝜆𝜙+ 1 𝛿𝐺′(𝜙)+ 𝜖𝜕𝒏𝜙, 𝑡 > 0, 𝒙∈Γ, (1.12b) which can be regarded as an 𝐻 −1-gradient flow on Γof the surface energy (1.9), and the Cahn–Hilliard equation (1.1)w i t h the dynamic boundary conditions (1.12)i s again a gradient flow with the total free energy (1.10) satisfying the following energy dissipation law: 𝑑 𝑑𝑡𝐸(𝜙)=− ∫ Ω 𝕄(𝜙)|∇𝜇|2𝑑𝒙−∫ Γ |∇Γ𝜇Γ|2𝑑𝜎. (1.13) For the mathematical theory of the Cahn–Hilliard equation, coupled with the dynamic boundary conditions, as expressed in equation (1.8), the existence and uniqueness of solutions are first proved, then the convergence and the existence of exponential attractors are also studied under the assumptions on the nonlinearities in [12–16]. Numerous efforts have been made to develop efficient numerical schemes for the Cahn–Hilliard equation with dynamic boundary conditions. These include, but are not limited to, the finite difference scheme [17,18,10], the finite element method [19,8], and the finite-volume scheme [20]. The well-posedness of the Cahn–Hilliard equation with the dynamic boundary conditions as defined in equation (1.12)has been previously established in [11]. On the numerical side, a fully implicit, coupled second-order scheme was developed in [21]. In a separate study, Metzger et al. [22] constructed a fully discrete scheme, which is based on finite elements in space and first-order convex-splitting in time, demonstrated both energy stability and convergence. It should be noted that all schemes mentioned above require solving a non- linear coupled system at each time step. In a more recent study, the authors of [23] considered a uniform Lipschitz potential. By Journal of Computational Physics 509 (2024) 113037 3 X.Liu,J.ShenandN.Zheng introducing a stabilizing term as in [24], they constructed a linear, first-order, and energy-stable scheme and derived a corresponding error analysis. However, this approach cannot be readily extended to second-order schemes or to non-uniformly Lipschitz nonlinear potentials. In all previous studies, the issue on how to efficiently solve the coupled system (with unknowns both in the bulk and at the boundary) at each time step, whether nonlinear or linear, is not quite resolved. The main purpose of this paper is to develop a unified framework for constructing efficient and energy-stable numerical schemes for the Cahn–Hilliard system, addressing either equation (1.8)or (1.12). More precisely, our schemes employ MSAV approach [25,26] by introducing two SAVs: one for the unknowns in the bulk and the other for the unknowns at the boundary. Through this approach, we successfully develop a linear, second-order, and energy-stable scheme. The inherent coupling between the unknowns in the bulk and at the boundary in this linear system makes it challenging to find an efficient solution. To tackle this, we initially consider a generic spatial discretization, and then use the Shermann–Morrison–Woodbury formula to decouple the boundary unknowns from the bulk unknowns, essentially reducing the coupled system to a sequence of systems for the bulk unknowns that can be solved by the usual methods. In particular, we consider two specific situations: (i) If the domain is rectangular with one-periodic direction and one non-periodic direction, we use a Fourier approximation for the periodic direction and Legendre approximation for the non-periodic direction. Then, we can reduce the two dimensional coupled problem into a sequence of one-dimensional problems in the non- periodic direction that can be efficiently solved by using the Legendre-Galerkin method [27]; (ii) If the domain is rectangular with two non-periodic directions, we use the Legendre approximation for both directions, then the coupled problems for the bulk unknowns can be efficiently solved by the diagonalization method for coupled systems developed in [28]. To the best of our knowledge, the second-order schemes developed in this paper are the first linear, energy-stable, and essentially decoupled schemes for the Cahn– Hilliard system with both Allen–Cahn and Cahn–Hilliard types dynamic boundary conditions. The rest of this paper is organized as follows. In the next section, a unified framework is introduced for the Cahn–Hilliard equation with both the Allen–Cahn and Cahn–Hilliard types of boundary conditions. In Section3, we develop an unconditionally energy-stable scheme by using the MSAV approach. In Section4, we propose an efficient algorithm to solve the linear but coupled system at each time step. Several numerical results are provided in Section5to validate our scheme, and to investigate the effect of different type dynamic boundary conditions on the phase evolution dynamics. Some concluding remarks are presented in Section6. 2. A unified formulation A unified form of the Cahn–Hillard system with dynamical boundary conditions can be written as 𝜕𝑡𝜙=∇ ⋅(𝕄(𝜙)∇𝜇), inΩ×(0,𝑇), (2.1a) 𝜇=−𝜖Δ𝜙+ ′(𝜙), inΩ×(0,𝑇), (2.1b) 𝜙|Γ= 𝜓; 𝜕𝒏𝜇|Γ=0 , onΓ×(0,𝑇), (2.1c) 𝜕𝑡𝜓 =−𝜇Γ, onΓ×(0,𝑇), (2.1d) 𝜇Γ=−𝛿ΔΓ𝜓 + 𝜆𝜓+ ′ Γ(𝜓)+ 𝜖𝜕𝒏𝜙, onΓ×(0,𝑇), (2.1e) where (𝜙) = 1 𝜖𝐹(𝜙), Γ(𝜓) = 1 𝛿𝐺(𝜓), 𝕄(𝜙)is the mobility function, and is a positive definite operator, e.g., = 𝐼corresponds to (1.8)and =−ΔΓcorresponds to (1.12). In the above, the independent unknown functions are 𝜙, 𝜇, and 𝜇Γwhile 𝜓 = 𝜙|Γ. Taking the inner products of (2.1a)w i t h 𝜇, (2.1b)w i t h −𝜕𝑡𝜙, (2.1d)w i t h 𝜇Γ, and (2.1e)w i t h −𝜕𝑡𝜓, integrating by parts and summing up the results, we obtain the following energy dissipation law 𝑑 𝑑𝑡𝐸(𝜙)=− ∫ Ω 𝕄(𝜙)|∇𝜇|2𝑑𝒙−∫ Γ 𝜇Γ⋅𝜇Γ𝑑𝜎, (2.2) where 𝐸(𝜙)is the total free energy (1.10). 3. Numerical schemes 3.1. The MSAV approach The scalar auxiliary variable (SAV) approach [25]i s an effective strategy to construct efficient energy stable schemes by intro- ducing one SAV, which is usually set as the square root of the nonlinear part of the free energy. However, if the nonlinear part of the free energy contains multiple disparate terms, such as the case here with the nonlinear bulk and surface energies, the one SAV approach may have severe time step constraints for accuracy [26]. In these cases, it is proposed in [26]to introduce multipleSAVs to treat these disparate nonlinear terms separately, leading to the so called MSAV approach. For our system (2.1), we introduce two SAVs for the bulk and surface free energies separately: 𝑟(𝑡)= √ 𝐸1(𝜙) and 𝑞(𝑡)= √ 𝐸Γ(𝜓), (3.1) where Journal of Computational Physics 509 (2024) 113037 4 X.Liu,J.ShenandN.Zheng 𝐸1(𝜙)= ∫ Ω (𝜙)𝑑𝒙+ 𝐶1 and 𝐸Γ(𝜓)= ∫ Γ Γ(𝜓)𝑑𝜎+ 𝐶Γ, (3.2) and the constants 𝐶1 and 𝐶Γare chosen such that 𝐸1(𝜙), 𝐸Γ(𝜓) >0. Then, we expand the system (2.1)as: 𝜕𝑡𝜙=∇ ⋅(𝕄(𝜙)∇𝜇), (3.3a) 𝜇=−𝜖Δ𝜙+ 𝑟√ 𝐸1(𝜙) ′(𝜙), (3.3b) 𝜙|Γ= 𝜓; 𝜕𝒏𝜇|Γ=0 , (3.3c) 𝑟𝑡= 1 2 √ 𝐸1(𝜙) ∫ Ω ′(𝜙)𝜕𝑡𝜙𝑑 𝒙, (3.3d) 𝜕𝑡𝜓 =−𝜇Γ, (3.3e) 𝜇Γ=−𝛿ΔΓ𝜓 + 𝜆𝜓+ 𝑞√ 𝐸Γ(𝜓) ′ Γ(𝜓)+ 𝜖𝜕𝒏𝜙, (3.3f) 𝑞𝑡= 1 2 √ 𝐸Γ(𝜓) ∫ Γ ′ Γ(𝜓)𝜕𝑡𝜓𝑑𝜎. (3.3g) It is clear that with 𝑟(0) = √ 𝐸1(𝜙)|𝑡=0 and 𝑞(0) = √ 𝐸Γ(𝜓)|𝑡=0, the solution of (2.1)is also a solution of the above system. 3.2. Time discretization Rather than directly discretizing the original system (2.1), we propose to work with the extended system (3.3), which provides enhanced flexibility and facilitates the development of efficient, linear, and unconditionally energy-stable numerical schemes. A second-order version of this system is formulated as follows 3𝜙𝑛+1 −4𝜙𝑛+ 𝜙𝑛−1 2𝛿𝑡 =∇ ⋅(𝕄( ̄𝜙𝑛+1)∇𝜇𝑛+1), (3.4a) 𝜇𝑛+1 =−𝜖Δ𝜙𝑛+1 + 𝑟𝑛+1 √ 𝐸1( ̄𝜙𝑛+1) ′( ̄𝜙𝑛+1), (3.4b) 𝜙𝑛+1|Γ= 𝜓𝑛+1; 𝜕𝒏𝜇𝑛+1|Γ=0 , (3.4c) 3𝑟𝑛+1 −4𝑟𝑛+ 𝑟𝑛−1 2𝛿𝑡 = 1 2 √ 𝐸1( ̄𝜙𝑛+1) ∫ Ω ′( ̄𝜙𝑛+1)3𝜙𝑛+1 −4𝜙𝑛+ 𝜙𝑛−1 2𝛿𝑡 𝑑𝒙, (3.4d) 3𝜓𝑛+1 −4𝜓𝑛+ 𝜓𝑛−1 2𝛿𝑡 =−𝜇𝑛+1 Γ , (3.4e) 𝜇𝑛+1 Γ =−𝛿ΔΓ𝜓𝑛+1 + 𝜆𝜓𝑛+1 + 𝑞𝑛+1 √ 𝐸Γ( ̄𝜓𝑛+1) ′ Γ( ̄𝜓𝑛+1)+ 𝜖𝜕𝒏𝜙𝑛+1, (3.4f) 3𝑞𝑛+1 −4𝑞𝑛+ 𝑞𝑛−1 2𝛿𝑡 = 1 2 √ 𝐸Γ( ̄𝜓𝑛+1) ∫ Γ ′ Γ( ̄𝜓𝑛+1)3𝜓𝑛+1 −4𝜓𝑛+ 𝜓𝑛−1 2𝛿𝑡 𝑑𝜎. (3.4g) In the above and hereafter, for any function 𝑓, we denote ̄𝑓𝑛+1 =2 𝑓𝑛−𝑓𝑛−1which is an explicit 𝑂(𝛿𝑡2)approximation for 𝑓(𝑡𝑛+1). Theorem 1. The scheme (3.4)conserves the mass in the bulk, i.e., ∫ Ω 𝜙𝑛+1(𝒙)𝑑𝒙= ∫ Ω 𝜙0(𝒙)𝑑𝒙. If =−ΔΓ, it also conserves the mass on the surface, i.e., ∫ Γ 𝜓𝑛+1(𝒙)𝑑𝜎= ∫ Γ 𝜓0(𝒙)𝑑𝜎. Furthermore, it is unconditionally energy stable in the sense that ̃𝐸total(𝑡𝑛+1)− ̃𝐸total(𝑡𝑛) ≤−𝛿𝑡[(𝕄( ̄𝜙𝑛+1)∇𝜇𝑛+1,∇𝜇𝑛+1)Ω+( 𝜇𝑛+1 Γ ,𝜇𝑛+1 Γ )Γ ], (3.5) where the modified energy is defined as Journal of Computational Physics 509 (2024) 113037 5 X.Liu,J.ShenandN.Zheng ̃𝐸total(𝑡𝑛+1)= 𝜖 4 (‖∇𝜙𝑛+1‖2 + ‖∇(2𝜙𝑛+1 −𝜙𝑛)‖2)+ 1 2 ((𝑟𝑛+1)2 +(2 𝑟𝑛+1 −𝑟𝑛)2) + 𝛿 4 (‖∇Γ𝜓𝑛+1‖2 + ‖∇Γ(2𝜓𝑛+1 −𝜓𝑛)‖2)+ 𝜆 4 (‖𝜓𝑛+1‖2 + ‖(2𝜓𝑛+1 −𝜓𝑛)‖2) + 1 2 ((𝑞𝑛+1)2 +(2 𝑞𝑛+1 −𝑞𝑛)2). Proof. The mass conservation in the bulk can be proved by integrating (3.4a)o v e r Ω, while the mass conservation on the surface when =−ΔΓcan be proved by integrating (3.4e)over Γ. By taking the inner products of (3.4a)w i t h 𝜇𝑛+1 and (3.4b)w i t h 3𝜙𝑛+1−4𝜙𝑛+𝜙𝑛−1 2𝛿𝑡 , and combining them with (3.4e)-(3.4f), we obtain (3𝜙𝑛+1 −4𝜙𝑛+ 𝜙𝑛−1 2𝛿𝑡 ,𝜇𝑛+1)Ω+( 𝕄( ̄𝜙𝑛+1)∇𝜇𝑛+1,∇𝜇𝑛+1)Ω=0 , (3.6a) (𝜇𝑛+1, 3𝜙𝑛+1 −4𝜙𝑛+ 𝜙𝑛−1 2𝛿𝑡 )Ω= 𝜖(∇𝜙𝑛+1,∇3𝜙𝑛+1 −4𝜙𝑛+ 𝜙𝑛−1 2𝛿𝑡 )Ω +( 𝑟𝑛+1 √ 𝐸1( ̄𝜙𝑛+1) ′( ̄𝜙𝑛+1), 3𝜙𝑛+1 −4𝜙𝑛+ 𝜙𝑛−1 2𝛿𝑡 )Ω + 𝛿(∇Γ𝜓𝑛+1,∇Γ 3𝜙𝑛+1 −4𝜙𝑛+ 𝜙𝑛−1 2𝛿𝑡 )Γ + 𝜆(𝜙𝑛+1, 3𝜙𝑛+1 −4𝜙𝑛+ 𝜙𝑛−1 2𝛿𝑡 )Γ +( 𝑞𝑛+1 √ 𝐸Γ( ̄𝜓𝑛+1) ′ Γ( ̄𝜓𝑛+1), 3𝜙𝑛+1 −4𝜙𝑛+ 𝜙𝑛−1 2𝛿𝑡 )Γ +( 𝜇𝑛+1 Γ ,𝜇𝑛+1 Γ )Γ. (3.6b) Multiplying (3.4d)with 2𝑟𝑛+1, and (3.4g)with 2𝑞𝑛+1 lead to: 2𝑟𝑛+1 3𝑟𝑛+1 −4𝑟𝑛+ 𝑟𝑛−1 2𝛿𝑡 = 𝑟𝑛+1 √ 𝐸1( ̄𝜙𝑛+1) ∫ Ω ′( ̄𝜙𝑛+1)3𝜙𝑛+1 −4𝜙𝑛+ 𝜙𝑛−1 2𝛿𝑡 𝑑𝒙, (3.7a) 2𝑞𝑛+1 3𝑞𝑛+1 −4𝑞𝑛+ 𝑞𝑛−1 2𝛿𝑡 = 𝑞𝑛+1 √ 𝐸Γ( ̄𝜓𝑛+1) ∫ Γ ′ Γ( ̄𝜓𝑛+1)3𝜓𝑛+1 −4𝜓𝑛+ 𝜓𝑛−1 2𝛿𝑡 𝑑𝜎. (3.7b) By employing the technique of integration by parts, followed by summation of the resulting terms, and utilizing the identity 2𝑎(3𝑎−4𝑏+ 𝑐)= 𝑎2 +(2 𝑎−𝑏)2 −𝑏2 −(2𝑏−𝑐)2 +( 𝑎−2𝑏+ 𝑐)2, (3.8) we obtain the desired result given in equation (3.5). □ 4. Efficient implementation Since the scheme (3.4)i s a coupled linear system for (𝜙𝑛+1, 𝜇𝑛+1, 𝜇𝑛+1 Γ , 𝑟𝑛+1, 𝑞𝑛+1), one can of course use a standard iterative or direct solver to solve the coupled linear system, but this is often inefficient, particularly when dealing with regular structures, such as a separable domain with a rectangular mesh, that one can explore. We shall first decouple the computation of the two SAVs (𝑟𝑛+1, 𝑞𝑛+1)from other unknowns. To this end, we write (𝜙𝑛+1,𝜇𝑛+1,𝜇𝑛+1 Γ )= (𝜙𝑛+1 1 ,𝜇𝑛+1 1 ,𝜇𝑛+1 Γ,1 )+ 𝑟𝑛+1(𝜙𝑛+1 2 ,𝜇𝑛+1 2 ,𝜇𝑛+1 Γ,2 )+ 𝑞𝑛+1(𝜙𝑛+1 3 ,𝜇𝑛+1 3 ,𝜇𝑛+1 Γ,3 ). (4.1) Substituting equation (4.1)to the above equations (3.4a)-(3.4b)and (3.4e)-(3.4f), and grouping the terms without (𝑟𝑛+1, 𝑞𝑛+1), with 𝑟𝑛+1 only, and with 𝑞𝑛+1 only, we find that (𝜙𝑛+1 𝑖 , 𝜇𝑛+1 𝑖 , 𝜇𝑛+1 Γ,𝑖 ), 𝑖 =1 , 2, 3can be determined from the following decoupled systems: 3𝜙𝑛+1 1 −4𝜙𝑛+ 𝜙𝑛−1 2𝛿𝑡 =∇ ⋅(𝕄( ̄𝜙𝑛+1)∇𝜇𝑛+1 1 ), (4.2a) 𝜇𝑛+1 1 =−𝜖Δ𝜙𝑛+1 1 , (4.2b) 𝜙𝑛+1 1 |Γ= 𝜓𝑛+1 1 ; 𝜕𝒏𝜇𝑛+1 1 |Γ=0 , (4.2c) 3𝜓𝑛+1 1 −4𝜓𝑛+ 𝜓𝑛−1 2𝛿𝑡 =−𝜇𝑛+1 Γ,1 , (4.2d) 𝜇𝑛+1 Γ,1 =−𝛿ΔΓ𝜓𝑛+1 1 + 𝜆𝜓𝑛+1 1 + 𝜖𝜕𝒏𝜙𝑛+1 1 ; (4.2e) Journal of Computational Physics 509 (2024) 113037 6 X.Liu,J.ShenandN.Zheng 3𝜙𝑛+1 2 2𝛿𝑡 =∇ ⋅(𝕄( ̄𝜙𝑛+1)∇𝜇𝑛+1 2 ), (4.3a) 𝜇𝑛+1 2 =−𝜖Δ𝜙𝑛+1 2 + 1√ 𝐸1( ̄𝜙𝑛+1) ′( ̄𝜙𝑛+1), (4.3b) 𝜙𝑛+1 2 |Γ= 𝜓𝑛+1 2 ; 𝜕𝒏𝜇𝑛+1 2 |Γ=0 , (4.3c) 3𝜓𝑛+1 2 2𝛿𝑡 =−𝜇𝑛+1 Γ,2 , (4.3d) 𝜇𝑛+1 Γ,2 =−𝛿ΔΓ𝜓𝑛+1 2 + 𝜆𝜓𝑛+1 2 + 𝜖𝜕𝒏𝜙𝑛+1 2 ; (4.3e) and 3𝜙𝑛+1 3 2𝛿𝑡 =∇ ⋅(𝕄( ̄𝜙𝑛+1)∇𝜇𝑛+1 3 ), (4.4a) 𝜇𝑛+1 3 =−𝜖Δ𝜙𝑛+1 3 , (4.4b) 𝜙𝑛+1 3 |Γ= 𝜓𝑛+1 3 ; 𝜕𝒏𝜇𝑛+1 3 |Γ=0 , (4.4c) 3𝜓𝑛+1 3 2𝛿𝑡 =−𝜇𝑛+1 Γ,3 , (4.4d) 𝜇𝑛+1 Γ,3 =−𝛿ΔΓ𝜓𝑛+1 3 + 𝜆𝜓𝑛+1 3 + 1√ 𝐸Γ( ̄𝜓𝑛+1) ′ Γ( ̄𝜓𝑛+1)+ 𝜖𝜕𝒏𝜙𝑛+1 3 . (4.4e) Notice that each of the three systems mentioned above can be written in the following generic coupled linear system 𝛼𝜙=∇⋅(𝕄(𝒙)∇𝜇+ 𝑓(𝒙),𝜕 𝒏𝜇|Γ=0 , (4.5a) 𝜇=−𝜖Δ𝜙+ 𝑔(𝒙), (4.5b) 𝛼𝜓 =−𝜇+ 𝑓Γ(𝒙),𝜙 |Γ= 𝜓, (4.5c) 𝜇Γ=−𝛿ΔΓ𝜓 + 𝜆𝜓+ 𝑔Γ(𝒙)+ 𝜖𝜕𝒏𝜙. (4.5d) Hence, we shall only focus on developing an efficient solver for this generic coupled linear system. 4.1. A generic solution algorithm Let 𝑋 ℎ ⊂𝐻 1(Ω)and 𝑋Γ ℎ = 𝑋 ℎ|Γbe a pair of finite dimensional spaces. We consider a generic Galerkin spatial discretization for (4.5)as follows: find 𝜙𝑛+1 ℎ , 𝜇𝑛+1 ℎ ∈𝑋 ℎ, 𝜇𝑛+1 Γ,ℎ ∈𝑋Γ ℎ such that 𝛼(𝜙ℎ,𝑣ℎ)Ω=−(𝕄(𝒙)∇𝜇ℎ,∇𝑣ℎ)Ω+( 𝑓(𝒙),𝑣ℎ)Ω, ∀𝑣ℎ ∈𝑋 ℎ, (4.6a) (𝜇ℎ,𝑣ℎ)Ω+( 𝜇Γ,ℎ,𝑣Γ,ℎ)Γ= 𝜖(∇𝜙ℎ,∇𝑣ℎ)Ω+( 𝑔(𝒙),𝑣ℎ)Ω+ 𝛿(∇Γ𝜓ℎ,∇Γ𝑣Γ,ℎ)Γ + 𝜆(𝜓ℎ,𝑣Γ,ℎ)Γ+( 𝑔Γ(𝒙),𝑣Γ,ℎ)Γ, ∀𝑣ℎ ∈𝑋 ℎ,𝑣Γ,ℎ ∈𝑋Γ ℎ, (4.6b) 𝛼(𝜓ℎ,𝑣Γ,ℎ)Γ=−(𝜇Γ,ℎ,𝑣Γ,ℎ)Γ+( 𝑓Γ(𝒙),𝑣Γ,ℎ)Γ, ∀𝑣Γ,ℎ ∈𝑋Γ ℎ. (4.6c) Let 𝑋 ℎ =span{𝜉𝑖}𝑖=1,… ,𝑁 , then 𝑋Γ ℎ = 𝑋 ℎ|Γ=span{𝜉𝑖|Γ}𝑖=1,… ,𝑁 =span{𝜁𝑖}𝑖=1,… ,𝑘where 𝑘is the number of nonzero basis function 𝜉𝑖on boundary. In this way, we can write the approximations as linear combinations of 𝜉𝑖and 𝜁𝑖that 𝜙ℎ = 𝑁∑ 𝑖=1 𝝓𝑖𝜉𝑖,𝜇 ℎ = 𝑁∑ 𝑖=1 𝝁𝑖𝜉𝑖, and 𝜇Γ,ℎ = 𝑘∑ 𝑖=1 𝝁Γ𝑖𝜁𝑖. Denote the mass matrices and the stiff matrices with respect to 𝑋 ℎ by 𝑀 𝑖𝑗=( 𝜉𝑖,𝜉𝑗)Ω,𝑆 𝑖𝑗=(∇𝜉𝑖,∇𝜉𝑗)Ω,𝑆 𝕄𝑖𝑗=( 𝕄(𝒙)∇𝜉𝑖,∇𝜉𝑗)Ω, 1 ≤ 𝑖,𝑗≤ 𝑁 ; and the mass matrices and the stiff matrices with respect to 𝑋Γ ℎ by 𝑀 Γ𝑖𝑗=( 𝜁𝑖,𝜁𝑗)Γ,𝑆 Γ𝑖𝑗=(∇Γ𝜁𝑖,∇Γ𝜁𝑗)Γ,𝑆 𝑖𝑗=( 𝜁𝑖,𝜁𝑗)Γ, 1 ≤ 𝑖,𝑗≤ 𝑘. We also denote 𝒇𝑖=( 𝑓(𝒙),𝜉𝑖)Ω, 𝒈𝑖=( 𝑔(𝒙),𝜉𝑖)Ω, 1 ≤ 𝑖≤ 𝑁 ; and Journal of Computational Physics 509 (2024) 113037 7 X.Liu,J.ShenandN.Zheng 𝒇Γ𝑖=( 𝑓Γ(𝒙),𝜁𝑖)Γ, 𝒈Γ𝑖=( 𝑔Γ(𝒙),𝜁𝑖)Γ, 1 ≤ 𝑖≤ 𝑘. For better representation, we also introduce following matrices and vectors that ̃𝑀 Γ= [ 𝑀 Γ 0(𝑁 −𝑘)×𝑘 ] , ̂𝑀 Γ= [ 𝑀 Γ 0𝑘×(𝑁 −𝑘) 0(𝑁 −𝑘)×𝑘 0(𝑁 −𝑘)×(𝑁 −𝑘) ] , ̂𝑆Γ= [ 𝑆Γ 0𝑘×(𝑁 −𝑘) 0(𝑁 −𝑘)×𝑘 0(𝑁 −𝑘)×(𝑁 −𝑘) ] , and ̂𝒈Γ= [ 𝒈Γ 𝟎𝑁 −𝑘 ] . With these notations, the full discretization scheme (4.6)reduces to the following matrix form: ⎡ ⎢ ⎢⎣ 𝛼𝑀 𝑆 𝕄 0 −(𝜖𝑆+ 𝛿 ̂𝑆Γ+ 𝜆 ̂𝑀 Γ) 𝑀 ̃𝑀 Γ 𝛼 ̃𝑀 𝑇 Γ 0 𝑆 ⎤ ⎥ ⎥⎦ ⎡ ⎢ ⎢⎣ 𝝓 𝝁 𝝁Γ ⎤ ⎥ ⎥⎦ = ⎡ ⎢ ⎢⎣ 𝒇 𝒈+ ̂𝒈Γ 𝒇Γ ⎤ ⎥ ⎥⎦ , (4.7) which can be rewritten as [ 𝐵 𝒃 𝒄𝑇 𝑆 ][ 𝝋 𝝁Γ ] = [ 𝒉 𝒇Γ ] , (4.8) where 𝝋 =( 𝝓, 𝝁)𝑇 and 𝐵 = [ 𝛼𝑀 𝑆 𝕄 −(𝜖𝑆+ 𝛿 ̂𝑆Γ+ 𝜆 ̂𝑀 Γ) 𝑀 ] . (4.9) Note that, with proper basis selection, the dimension of 𝑋Γ ℎ or the rank of 𝑆, 𝑘, can be much less than 𝑁, the dimension of 𝑋 ℎ, i.e., 𝑘 ≪𝑁 . Since the rank of 𝐵 is 2𝑁≫𝑘 , we can obtain 𝝁Γby solving a 𝑘 × 𝑘Schur-compliment system (𝑆 −𝒄𝑇 𝐵−1𝒃)𝝁Γ= 𝒍Γ−𝒄𝑇 𝐵−1𝒉. (4.10) The main cost of solving the above system is to evaluate 𝐵−1𝒃and 𝐵−1𝒉. We describe below how this can be done efficiently. Note that the ranks of ̂𝑆Γand ̂𝑀 Γare at most 𝑘, which indicates that we can write 𝛿 ̂𝑆Γ+ 𝜆 ̂𝑀 Γ= 𝑋2𝑁 ×𝑘𝑌𝑘×2𝑁 so that we can split 𝐵 as 𝐵 = [ 𝛼𝑀 𝑆 𝕄 −(𝜖𝑆+ 𝛿 ̂𝑆Γ+ 𝜆 ̂𝑀 Γ) 𝑀 ] = [ 𝛼𝑀 𝑆 𝕄 −𝜖𝑆 𝑀 ] + [ 00 −𝑋𝑌 0 ] ∶=𝐴 − [0 𝑋 ][𝑌 0 ] = 𝐴 −𝑈𝑉. (4.11) Then, applying this Sherman–Morrison–Woodbury formula [29], we find [ 𝛼𝑀 𝑆 𝕄 −(𝜖𝑆+ 𝛿 ̂𝑆Γ+ 𝜆 ̂𝑀 Γ) 𝑀 ]−1 =( 𝐴 −𝑈𝑉 )−1= 𝐴−1+ 𝐴−1𝑈(𝐼𝑘 −𝑉𝐴 −1𝑈)−1𝑉𝐴 −1. (4.12) Hence, evaluating 𝐵−1𝒃can be accomplished by evaluating 𝐴−1𝒃with about 𝑘different 𝒃. We observe that the matrix 𝐴 = [ 𝛼𝑀 𝑆 𝕄 −𝜖𝑆 𝑀 ] , (4.13) which is a perturbation of matrix 𝐵, is the system matrix related to the discretization of the system (4.5a)-(4.5b)with the additional boundary condition 𝜕𝑛𝜙|Γ=0. In many situations, e.g., if the domain is separable and 𝕄(𝒙)is a constant, fast evaluation of 𝐴−1𝒃is available by using the fast Fourier transforms (FFT) or the matrix diagonalization method [30,31], see some examples given below. 4.2. The case with one non-periodic direction In many applications, the problem only has one non-periodic direction. In this case, we can first take (discrete) Fourier trans- form in the periodic direction(s). Then, in the case of constant mobility, the corresponding linear system (4.5) reduces to an one-dimensional problem for each of the Fourier modes, and Γreduces to two points so 𝑘 =2. On the other hand, for each of the Fourier modes, 𝐴 in (4.13)corresponds to an approximation of a coupled 1-D second-order system with homogeneous Neumann boundary conditions, that can be efficiently solved. Consider for example a 3-D domain with two periodic boundary conditions, and we use a combined Fourier-Legendre spectral method with 𝑁 × 𝑁 × 𝑀 unknowns where 𝑁 is the number of unknowns in the periodic direction, and 𝑀 is the unknown in the non-periodic direction. Then, for each of the Fourier modes, the coupled 1-D second-order system with homogeneous Neumann boundary conditions can be solved by the Legendre-Galerkin method [27]i n 𝑂(𝑀 ) operations, considering the cost of transform Journal of Computational Physics 509 (2024) 113037 8 X.Liu,J.ShenandN.Zheng Table1 Parameter values for accuracy test. Parameter Value Parameter Value 𝜖,𝛿 0.5 𝜆 1 𝑚 1 𝑙0,𝑚Γ 1 𝐶1 10 𝐶Γ 10 𝑡0 0 𝑡𝑓 1 Fig.1. Accuracytestfordifferenttypeboundaryconditions:Allen–Cahntype(left),Cahn–Hilliardtype(right). between the physical and frequency spaces using a Chebyshev-Legendre approach [32], the total cost of solving the linear system (4.7)will be 𝑂(𝑁 2𝑀 log𝑁 log𝑀 )which is quasi-optimal in terms of number of unknowns. 4.3. The case with two non-periodic directions For problems in a separable domain having two non-periodic directions, fast evaluation of 𝐴−1𝒃can be achieved by using the matrix diagonalization method [30,31]. Consider for instance a two-dimensional rectangular domain, then 𝐴 in (4.13)corresponds to an approximation of a coupled 2-D second-order system with homogeneous Neumann boundary conditions which can be solved efficiently by using the matrix diagonalization method for coupled systems developed in [28]i n 𝑂(𝑁 3) operations with 𝑁 being the number of unknowns in each direction. This operation count can be further reduced to 𝑂(𝑁 2 log𝑁 )if one uses the Chebyshev- Legendre approach [32]. Similarly, fast evaluation of 𝐴−1𝒃can also be achieved for cylindrical domains [33]. 5. Numerical results In this section, we conduct several numerical experiments in two dimensions to validate our schemes, and to investigate the effect of different dynamical boundary conditions with = 𝑙0𝐼(Allen–Cahn type) or = 𝑚Γ(−ΔΓ) (Cahn–Hilliard type). To fix the idea, we consider (2.1a)-(2.1e)with the classical double well energy functional (𝜙)= 1 4𝜖(𝜙2 −1)2, Γ(𝜙)= 1 4𝛿(𝜓2 −1)2. (5.1) We perform two sets of numerical experiments in 2D, one with two non-periodic directions, and the other with only one periodic direction. In all numerical tests, the second-order SAV scheme (3.4)is used. 5.1. Rectangular domains with one periodic direction We consider Ω = 𝐿𝑥 × 𝐿𝑦 with periodic boundary conditions in the 𝑥-direction. Unless otherwise specified, the mobility is set to be a constant, i.e., 𝕄(𝜙) = 𝑚. 5.1.1. Accuracy test We first perform numerical simulations to test the convergence rates of the scheme. The computational domain is set as Ω = [0, 2) ×[0 , 2), and we use 50 ×50 Fourier-Legendre modes to discretize the space variables and take the mesh refinement test with the following function 𝜙(𝑥,𝑦,𝑡)=cos( 𝜋𝑥)cos(𝜋𝑦)𝑒−𝑡. The parameters are defined as shown in Table1. In Fig.1, we list the errors of the phase variable 𝜙between the numerically simulated solution and the exact solution at 𝑡𝑓 =1, measured in the 𝐿∞ norm. We observe that our scheme almost perfect matches the second-order accuracy in time. Journal of Computational Physics 509 (2024) 113037 9 X.Liu,J.ShenandN.Zheng Table2 Simulation parameter values for coarsening process. Parameter Value Parameter Value 𝜖,𝛿 1 𝜆 0.5 𝑚 1 𝑙0 1 𝐶 1 𝐶Γ 1 (𝜙) 1 8𝜖(𝜙2 −1)2 Γ(𝜓) 1 2𝜖𝜓2 Fig.2. SnapshotsofsolutionforcoarseningprocesswithAllen–Cahntypedynamicalboundaryconditionattime 10, 70, 170, 250. 5.1.2. Coarsening process To further validate our numerical scheme, we simulate the spinodal decomposition of the systems with the Allen–Cahn type dynamic boundary conditions. We set Ω =[0 , 80) ×(0 , 10), and use the initial condition 𝜙(𝑥,𝑦,0)=0 .01×(2 Rand(𝑥,𝑦)−1), (5.2) where Rand(𝑥, 𝑦)is the uniformly distributed random function in Ω. We set the time step 𝛿𝑡 =0 .1and use 128 ×30 Fourier-Legendre modes. We use the parameters listed in Table2, which are similar to those employed in [10]. Snapshots of the phase variable 𝜙are shown in Fig.2. We observe that neither component is preferentially attracted by the wall, which is comparable to those in [10]. 5.1.3. Droplet evolution Rewrite 𝐸bulk(𝜙)and 𝐸surf(𝜙)as [25] 𝐸bulk(𝜙)= ∫ Ω 𝜖 2 |∇𝜙|2 + 𝑠1 2𝜖𝜙2 + 1 4𝜖(𝜙2 −1−𝑠1)2 − 𝑠2 1 +2 𝑠1 4𝜖 𝑑𝒙, 𝐸surf(𝜓)= ∫ Γ ( 𝛿 2 |∇Γ𝜓 |2 + 𝜆 2 |𝜓 |2 + 𝑠2 2𝜖𝜓2 + 1 4𝛿(𝜓2 −1−𝑠2)2 − 𝑠2 2 +2 𝑠2 4𝜖 ) 𝑑𝜎, (5.3) and drop the constant in the free energy and let (𝜙) = 1 4𝜖(𝜙2 −1 −𝑠1)2 and Γ(𝜓) = 1 4𝜖(𝜓2 −1 −𝑠2)2, and modify (3.4b)and (3.4f) into 𝜇𝑛+1 =−𝜖Δ𝜙𝑛+1 + 𝑠1 𝜖 𝜙𝑛+1 + 𝑟𝑛+1 √ 𝐸1( ̄𝜙𝑛+1) ′( ̄𝜙𝑛+1), 𝜇𝑛+1 Γ =−𝛿ΔΓ𝜓𝑛+1 + 𝜆𝜓𝑛+1 + 𝑠2 𝜖 𝜓𝑛+1 + 𝑞𝑛+1 √ 𝐸Γ( ̄𝜓𝑛+1) ′ Γ( ̄𝜓𝑛+1)+ 𝜖𝜕𝒏𝜙𝑛+1. (5.4) We set Ω =(0 , 2) ×(0 , 1)with initially a square shaped droplet centered at (1, 0.25)(see Fig.3). We employ a grid resolution of 100 ×50 Fourier-Legendre modes with a time step of 𝛿𝑡 =5 ×10−4and set the simulation parameters as specified in Table 3. The phase value inside the droplet is set to be 1and outside the droplet to be −1. Journal of Computational Physics 509 (2024) 113037 10 X.Liu,J.ShenandN.Zheng Fig.3. Theinitialsquareshapeddroplet. Table3 Simulation parameter values for droplet evolution. Parameter Value Parameter Value 𝜖,𝛿 0.02 𝜆 0 𝑚 1 𝑙0, 𝑚Γ 1 𝐶,𝐶 Γ 1 𝑠1,𝑠2 2 (𝜙) 1 4𝜖(𝜙2 −1)2 Γ(𝜓) 1 4𝛿(𝜓2 −1)2 Fig.4. SnapshotsofsolutionfordropletevolutionwithAllen–Cahntypedynamicalboundaryconditionsattime 0.01, 0.1, 0.5, 10. We simulate the dynamics of the droplet from 𝑡 =0 to 𝑡𝑓 =1 0. The evolution of the droplet with the Allen–Cahn (resp. Cahn– Hilliard) type boundary conditions is presented in Fig.4(resp. Fig.5). We observe that with the Allen–Cahn type boundary conditions, the contact area with the boundary increases as the droplets bulk decreases, while with Cahn-Hilliard type boundary conditions, the area of contact with the boundary is preserved during the evolution. These numerical results are all in good agreement with the results shown in [34,35]. Journal of Computational Physics 509 (2024) 113037 11 X.Liu,J.ShenandN.Zheng Fig.5. SnapshotsofsolutionfordropletevolutionwithCahn–Hilliardtypedynamicalboundaryconditionsattime 0.01, 0.1, 0.5, 10. Fig.6. Masscurvesforbulkandsurfaceofthedropletevolution:Allen–Cahntype(left),Cahn–Hilliardtype(right). The evolution of mass curves ∫Ω𝜙𝑑𝒙and ∫Γ𝜓𝑑𝜎with Allen–Cahn and Cahn–Hilliard type dynamic boundary conditions is shown in Fig.6. We observe that for both type of boundary conditions, ∫Ω𝜙𝑑𝒙is preserved, but ∫Γ𝜓𝑑𝜎decreases with the Allen–Cahn type dynamical boundary conditions while it remains the same with the Cahn–Hilliard type dynamical boundary conditions. 5.1.4. Cases with different potential functions In the numerical experiments mentioned above, the surface potential Γ(𝜓)is chosen as the classical double-well potential, here we consider the typical moving contact line problems, namely, Γ(𝜓)= 𝛾 2𝛿𝑐𝑜𝑠(𝜃𝑠)𝑠𝑖𝑛(𝜋 2 𝜓), (5.5) where 𝜃𝑠stands for the static contact angle. We choose the same parameters as those in the previous subsection with 𝛾= 2 √ 2 3 and 𝑐𝑜𝑠(𝜃𝑠) =± 1 2. We employ 100 ×50 Fourier-Legendre modes with a time step of 𝛿𝑡 =1 ×10−5in this simulation. The square-shaped Journal of Computational Physics 509 (2024) 113037 12 X.Liu,J.ShenandN.Zheng Fig. 7.Snapshots of solution depicting droplet evolution under Cahn–Hilliard type dynamic boundary conditions characterized by the surface potential Γ(𝜓) (𝑐𝑜𝑠(𝜃𝑠) = 1 2) at time 0.01, 0.1, 0.5, 10. Fig. 8.Snapshots of solution depicting droplet evolution under Cahn–Hilliard type dynamic boundary conditions characterized by the surface potential Γ(𝜓) (𝑐𝑜𝑠(𝜃𝑠) =−1 2). droplet also tends to attain the circle with time in Figs.7-8. The values of 𝜙and 𝜓 are not confined in [−1, +1], since the conservation of mass both in the bulk and on the boundary as shown in Fig.9. All of these numerical results are in good agreement with the results shown in [35,36]. Journal of Computational Physics 509 (2024) 113037 13 X.Liu,J.ShenandN.Zheng Fig.9. Masscurvesforbulkandsurfaceofthedropletevolution: 𝑐𝑜𝑠(𝜃𝑠)= 1 2 (left), 𝑐𝑜𝑠(𝜃𝑠)=− 1 2 (right). Table4 Parameter values for accuracy test. Parameter Value Parameter Value 𝜖,𝛿 0.2 𝜆 1 𝑚 0.01 𝑙0,𝑚Γ 0.01 𝐶1 10 𝐶Γ 10 𝑡0 0 𝑡𝑓 1 Fig.10. Accuracytestfordifferenttypeboundaryconditions:Cahn–Hilliardtype(left),Allen–Cahntype(right). 5.2. Rectangular domains with two non-periodic directions 5.2.1. Accuracy test We first validate the scheme (3.4)with a manufactured analytical solution in Ω =[−1, 1]2 that 𝜙(𝑥,𝑦,𝑡)=sin( 𝜋𝑥)sin(𝜋𝑦)𝑒𝑡, (5.6) 𝜇(𝑥,𝑦,𝑡)=cos( 𝜋𝑥)cos(𝜋𝑦)𝑒𝑡, (5.7) 𝜇Γ(𝑥,𝑦,𝑡)=cos( 𝜋𝑥)cos(𝜋𝑦)𝑒𝑡. (5.8) We set the mobility to be a constant, i.e., 𝕄(𝜙) = 𝑚. We choose 𝑁 =20 so that the spatial discretization error is negligible compared with the time discretization error and set the simulation parameters as Table4. The 𝐿∞ errors vs. time step are plotted in Fig.10. We observe second-order convergence for both the Cahn–Hilliard and Allen–Cahn type dynamic boundary conditions. 5.2.2. Phase separation We consider an initial configuration in domain Ω =[0 , 1]2 that 𝜙0(𝑥,𝑦)=0 .1max{sin(𝜋𝑥),sin(𝜋𝑦)}. (5.9) We simulate the phase separation process with two different dynamic boundary conditions (1.8)a n d (1.12)w i t h parameters in Table5. The results are plotted in Figs.12and 13. We observe that with different type of dynamic boundary conditions, the dynamic Journal of Computational Physics 509 (2024) 113037 14 X.Liu,J.ShenandN.Zheng Table5 Simulation parameter values for phase separation. Parameter Value Parameter Value 𝜖,𝛿 0.02 𝜆 0 𝑚 0.02 𝑙0, 𝑚Γ 0.02 𝐶 0 𝐶Γ 0 𝛿𝑡 4×10 −5 𝑡𝑓 4 Fig.11. Energycurvesofphaseseparation:Cahn–Hilliardtype(up),Allen–Cahntype(down). Fig.12. Snapshots of solution for phase separation with Cahn–Hilliard type dynamical boundary conditions. The selected times are marked on energy curve in Fig.11, and we normalized 𝜙∕𝑚𝑎𝑥(𝜙)at the time instants as indicated. processes of the phase separation are different, particularly at the boundary. For the Cahn-Hilliard type of boundary conditions (1.12), the area of each phase at the boundary is conserved, while for the Allen-Cahn type boundary conditions (1.8), the area of each phase is not conserved, and the black phase at the boundary eventually reduces to almost zero (Fig. 14). These results are in good agreements with those in [22,37]. Journal of Computational Physics 509 (2024) 113037 15 X.Liu,J.ShenandN.Zheng Fig.13. Snapshots of solution for phase separation with Allen–Cahn type dynamical boundary conditions. The selected times are the same as in Fig.12for the sake of comparison, and we normalized 𝜙∕𝑚𝑎𝑥(𝜙)at the time instants as indicated. Fig.14. Masscurvesforbulkandsurfaceofthephaseseparation:Allen–Cahntype(left),Cahn–Hilliardtype(right). Table6 Simulation parameter values for spinodaldecomposition. Parameter Value Parameter Value 𝜖,𝛿 0.02 𝜆 1 𝑚 0.01 𝑙0, 𝑚Γ 0.01 𝐶 0 𝐶Γ 0 𝛿𝑡 1×10 −4 𝑡𝑓 20 5.2.3. Spinodaldecomposition Next, we conduct a simulation of spinodal decomposition with the parameters in Table6, and a random initial configuration in domain Ω =[0 , 1]2 that 𝜙0(𝑥,𝑦)=0 .1Rand(𝑥,𝑦). (5.10) The numerical results are plotted in Figs.16and 17. We observe once again that during the spinodal decomposition process, the area of each phase at the boundary is conserved with Cahn-Hilliard type boundary conditions, while the blue phase evolves into a circle and is completely separated from the boundary. 6. Concluding remarks In this paper, we introduced a unified framework to deal with the Cahn-Hilliard equation with two different types of dynamic boundary conditions, and developed a second-order, linear and energy stable scheme based on the MSAV approach. At each time step, the scheme leads to a linear system which couples the unknowns in the bulk and at the boundary. We designed efficient algorithms for Journal of Computational Physics 509 (2024) 113037 16 X.Liu,J.ShenandN.Zheng Fig.15. Energycurvesofthespinodaldecompositionprocess:Cahn–Hilliardtype(up),Allen–Cahntype(down). Fig.16. Snapshots of solution for spinodaldecomposition with Cahn–Hilliard type boundary conditions. The selected times are marked on the energy curve in Fig.15, and we normalized 𝜙∕𝑚𝑎𝑥(𝜙) at the time instants as indicated. (For interpretation of the colors in the figure(s), the reader is referred to the web version of this article.) solving this coupled linear system. In particular, in the case of separable domains with one or two non-periodic boundary conditions, we presented efficient spectral methods which can solve the coupled linear system with quasi-optimal computational complexity. Furthermore, we conducted several numerical experiments to validate the proposed scheme, and to investigate the effect of different dynamical boundary conditions on the dynamics of phase evolution under different scenarios. CRediT authorship contribution statement Xinyu Liu:Conceptualization, Formal analysis, Validation, Writing – original draft, Writing – review & editing.Jie Shen:Con- ceptualization, Formal analysis, Investigation, Project administration, Writing – review & editing. Nan Zheng: Formal analysis, Investigation, Methodology, Validation, Writing – original draft, Writing – review & editing. 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. Journal of Computational Physics 509 (2024) 113037 17 X.Liu,J.ShenandN.Zheng Fig. 17.Snapshots of solution for spinodal decomposition with Allen–Cahn type boundary conditions. The selected times are the same as in Fig.16for the sake of comparison, and we normalized 𝜙∕𝑚𝑎𝑥(𝜙)at the time instants as indicated. Data availability No data was used for the research described in the article. Acknowledgements This work is supported in part by NSFC grant 12371409, and by The Hong Kong Polytechnic University Postdoctoral Research Fund 1-W22P. References [1] J.W. Cahn, J.E. Hilliard, Free energy of a nonuniform system. I. Interfacial free energy, J. Chem. Phys. 28 (1958) 258–267. [2] C.M. Elliott, S. Zheng, On the Cahn-Hilliard equation, Arch. Ration. Mech. Anal. 96 (1986) 339–357. [3] S. Zheng, Asymptotic behavior of solution to the Cahn-Hillard equation, Appl. Anal. 23 (1986) 165–184. [4] R.L. Pego, Front migration in the nonlinear Cahn-Hilliard equation, Proc. R. Soc. Lond. Ser. A, Math. Phys. Sci. 422 (1989) 261–278. [5] P.W. Bates, P.C. Fife, The dynamics of nucleation for the Cahn-Hilliard equation, SIAM J. Appl. Math. 53 (1993) 990–1008. [6] T. Qian, X.-P. Wang, P. Sheng, Molecular scale contact line hydrodynamics of immiscible flows, Phys. Rev. E 68 (2003) 016306. [7] W. Ren, W. E, Derivation of continuum models for the moving contact line problem based on thermodynamic principles, Commun. Math. Sci. 9 (2011) 597–606. [8] L. Cherfils, M. Petcu, M. Pierre, A numerical analysis of the Cahn-Hilliard equation with dynamic boundary conditions, Discrete Contin. Dyn. Syst. 27 (2010) 1511–1533. [9] G.R. Goldstein, A. Miranville, G. Schimperna, A Cahn-Hilliard model in a domain with non-permeable walls, Phys. D, Nonlinear Phenom. 240 (2011) 754–766. [10] R. Kenzler, F. Eurich, P. Maass, B. Rinn, J. Schropp, E. Bohl, W. Dieterich, Phase separation in confined geometries: solving the Cahn-Hilliard equation with generic boundary conditions, Comput. Phys. Commun. 133 (2001) 139–157. [11] C. Liu, H. Wu, An energetic variational approach for the Cahn–Hilliard equation with dynamic boundary condition: model derivation and mathematical analysis, Arch. Ration. Mech. Anal. 233 (2019) 167–247. [12] R. Chill, E. Fašangová, J. Prüss, Convergence to steady states of solutions of the Cahn-Hilliard and Caginalp equations with dynamic boundary conditions, Math. Nachr. 279 (2006) 1448–1462. [13] C.G. Gal, A Cahn–Hilliard model in bounded domains with permeable walls, Math. Methods Appl. Sci. 29 (2006) 2009–2036. [14] C.G. Gal, Exponential attractors for a Cahn-Hilliard model in bounded domains with permeable walls, Electron. J. Differ. Equ. 143 (2006) 1–23. [15] G. Gilardi, A. Miranville, G. Schimperna, On the Cahn-Hilliard equation with irregular potentials and dynamic boundary conditions, Commun. Pure Appl. Anal. 8 (2009) 881. [16] H. Israel, Long time behavior of an Allen-Cahn type equation with a singular potential and dynamic boundary conditions, J. Appl. Anal. Comput. 2 (2012) 29–56. [17] H.P. Fischer, P. Maass, W. Dieterich, Novel surface modes in spinodal decomposition, Phys. Rev. Lett. 79 (1997) 893. [18] H.P. Fischer, P. Maass, W. Dieterich, Diverging time and length scales of spinodal decomposition modes in thin films, Europhys. Lett. 42 (1998) 49. [19] H. Israel, A. Miranville, M. Petcu, Numerical analysis of a Cahn–Hilliard type equation with dynamic boundary conditions, Ric. Mat. 64 (2015) 25–50. [20] F. Nabet, Finite-volume analysis for the Cahn-Hilliard equation with dynamic boundary conditions, in: Finite Volumes for Complex Applications VII-Methods and Theoretical Aspects, Springer, 2014, pp.401–409. [21] N. Li, P. Lin, F. Gao, Energy law preserving finite element scheme for the Cahn-Hilliard equations with dynamic boundary conditions, Commun. Comput. Phys. 26 (2019) 1490–1509. [22] S. Metzger, An efficient and convergent finite element scheme for Cahn-Hilliard equations with dynamic boundary conditions, SIAM J. Numer. Anal. 59 (2021) 219–248. [23] X. Bao, H. Zhang, Numerical approximations and error analysis of the Cahn-Hilliard equation with dynamic boundary conditions, Commun. Math. Sci. 19 (2021) 663–685. [24] J. Shen, X. Yang, Numerical approximations of Allen-Cahn and Cahn-Hilliard equations, Discrete Contin. Dyn. Syst. 28 (2010) 1669. [25] J. Shen, J. Xu, J. Yang, The scalar auxiliary variable (SAV) approach for gradient flows, J. Comput. Phys. 353 (2018) 407–416. [26] Q. Cheng, J. Shen, Multiple scalar auxiliary variable (MSAV) approach and its application to the phase-field vesicle membrane model, SIAM J. Sci. Comput. 40 (2018) A3982–A4006. [27] J. Shen, Efficient spectral-Galerkin method I. Direct solvers for second- and fourth-order equations by using Legendre polynomials, SIAM J. Sci. Comput. 15 (1994) 1489–1505. Journal of Computational Physics 509 (2024) 113037 18 X.Liu,J.ShenandN.Zheng [28] F. Chen, J. Shen, Efficient spectral-Galerkin methods for systems of coupled second-order equations and their applications, J. Comput. Phys. 231 (2012) 5016–5028. [29] M.A. Woodbury, Inverting modified matrices, in: Statistical Research Group, in: Memo. Rep., vol.42, Princeton University, Princeton, NJ, 1950. [30] R.E. Lynch, J. Rice, D.H. Thomas, Direct solution of partial difference equations by tensor product methods, Numer. Math. 6 (1964) 185–199. [31] D.B. Haidvogel, T. Zang, The accurate solution of Poisson’s equation by expansion in Chebyshev polynomials, J. Comput. Phys. 30 (1979) 167–180. [32] J. Shen, Efficient Chebyshev-Legendre Galerkin methods for elliptic problems, in: Proceedings of ICOSAHOM, vol.95, Citeseer, 1996, pp.233–239. [33] J. Lopez, F. Marques, J. Shen, An efficient spectral-projection method for the Navier–Stokes equations in cylindrical geometries: II. Three-dimensional cases, J. Comput. Phys. 176 (2002) 384–401. [34] P. Knopf, K.F. Lam, C. Liu, S. Metzger, Phase-field dynamics with transfer of materials: the Cahn-Hilliard equation with reaction rate dependent dynamic boundary conditions, ESAIM: Math. Model. Numer. Anal. 55 (2021) 229–282. [35] X. Bao, H. Zhang, Numerical approximations and error analysis of the Cahn-Hilliard equation with reaction rate dependent dynamic boundary conditions, J. Sci. Comput. 87 (2021) 1–32. [36] X. Meng, X. Bao, Z. Zhang, Second order stabilized semi-implicit scheme for the Cahn-Hilliard model with dynamic boundary conditions, arXiv preprint, arXiv :2206 .07325, 2022. [37] S. Metzger, A convergent sav scheme for Cahn-Hilliard equations with dynamic boundary conditions, arXiv preprint, arXiv :2203 .12326, 2022.
采集于
查看校方原文 ↗