校园网页 · 学校官网
An efficient, energy stable scheme for the Cahn-Hilliard-Brinkman system.pdf
Commun. Comput. Phys. doi: 10.4208/cicp.171211.130412a V ol.13, No. 4, pp. 929-957 April 2013 An Efficient, Energy Stable Scheme for the Cahn-Hilliard-Brinkman System Craig Collins1, Jie Shen 2 and Steven M. Wise 1, ∗ 1 Department of Mathematics, University of T ennessee, Knoxville, TN 37912, USA. 2 Department of Mathematics, Purdue University, West Lafaye tte, IN 47907, USA. Received 17 December 2011; Accepted (in revised version) 13 April 2012 Communicated by Bo Li Available online 21 September 2012 Abstract. W e present an unconditionally energy stable and uniquely so lvable finite difference scheme for the Cahn-Hilliard-Brinkman (CHB) sy stem, which is comprised of a Cahn-Hilliard-type diffusion equation and a generalized Brinkman equation mod- eling fluid flow . The CHB system is a generalization of the Cahn-Hilliard-Stokes model and describes two phase very viscous flows in porous media. Th e scheme is based on a convex splitting of the discrete CH energy and is semi-impl icit. The equations at the implicit time level are nonlinear, but we prove that they rep resent the gradient of a strictly convex functional and are therefore uniquely solv able, regardless of time step size. Owing to energy stability , we show that the scheme is stable in the time and space discrete ℓ∞(0,T; H1 h) and ℓ2(0,T; H2 h) norms. W e also present an efficient, practical non- linear multigrid method – comprised of a standard FAS method for the Cahn-Hilliard part, and a method based on the V anka smoothing strategy for the Brinkman part – for solving these equations. In particular, we provide evidenc e that the solver has nearly optimal complexity in typical situations. The solver is app lied to simulate spinodal decomposition of a viscous fluid in a porous medium, as well as to the more general problems of buoyancy- and boundary-driven flows. AMS subject classifications : 65M06, 65M12, 65M55, 76T99 Key words: Cahn-Hilliard equation, Stokes equations, Brinkman equa tion, finite difference meth- ods, nonlinear multigrid, convex splitting, energy stabil ity . 1 Introduction 1.1 Problem definition and background Consider the Ginzburg-Landau energy of a binary fluid with co nstant, uniform mass density [5] ∗Corresponding author. Email addresses: craig.collins@math.utk.edu (C. Collins), shen@math.purdue.edu (J. Shen), swise@math.utk.edu (S. M. Wise) http://www .global-sci.com/ 929 c⃝2013 Global-Science Press https:/www.cambridge.org/core/terms. https://doi.org/10.4208/cicp.171211.130412a Downloaded from https:/www.cambridge.org/core. Cornell University Library, on 11 May 2017 at 05:18:45, subject to the Cambridge Core terms of use, available at 930 C. Collins, J. Shen and S. M. Wise / Commun. Comput. Phys., 13 (2013), pp. 929-957 E(φ ) = ∫ Ω { 1 4ǫ ( φ 2 − 1 ) 2 + ǫ 2 |∇ φ |2 } dx , (1.1) where Ω⊂ RD, D =2 or 3, φ : Ω→ R is the concentration field, and ǫ is a positive constant. The phase equilibria are represented by the pure fluids φ = ± 1. The dynamical Cahn- Hilliard-Brinkman equations we consider are ∂ tφ = ǫ ∇· (M(φ )∇ µ )−∇· (φ u) , (1.2) −∇· [ν (φ )D(u)]+η (φ )u = −∇ p− γφ ∇ µ , (1.3) ∇· u = 0 , (1.4) where M(φ ) is a mobility that incorporates the Peclet number; µ is the chemical potential µ := δ φ E = 1 ǫ (φ 3 − φ )− ǫ ∆φ ; (1.5) γ > 0 is a surface tension parameter; u is the fluid velocity; p is a pressure; ν (·) > 0 is the fluid viscosity; η (·) > 0 is the fluid permeability; and D(u) =∇ u+( ∇ u)T. We assume that M, ν , η ∈ C∞, and M(x) ≥ M0 > 0, η (x) ≥ η 0 > 0, and ν (x) ≥ ν 0 > 0, for all x ∈ R. For example, we shall frequently use a regularized degener ate mobility of the form M(φ ) = 1 Pe √ (1+φ )2(1− φ )2 +ǫ 2 ≥ ǫ Pe > 0 , (1.6) where Pe > 0 is the Peclet number, which might be dependent upon ǫ . We assume that the system (1.2)-(1.4) is supplemented with the bounda ry conditions u|∂ Ω = 0, and ∂ nφ |∂ Ω = ∂ nµ |∂ Ω = 0. The latter conditions represent local thermodynamic equ ilibrium on the boundary . With this set of boundary conditions, the system (1.2)-(1.4) is mass conser- vative and energy dissipative, and the dissipation rate is r eadily found to be [8, 14, 15, 17] dtE = − ǫ (M(φ )∇ µ ,∇ µ )L2 − 1 γ (η (φ )u,u)L2 − 1 2γ (ν (φ )D(u),D(u))L2 ≤ 0 . (1.7) Eq. (1.3) is a generalized Brinkman equation [2] that incorp orates a diffuse interface surface tension force. The Cahn-Hilliard-Brinkman (CHB) s ystem (1.2)-(1.4) was recently proposed as a model for phase separation and coarsening of a b inary fluid in a Brinkman porous medium [18]. The authors showed the existence of a log arithmically slow coars- ening regime that arises when the phase domains are comparab le to the average pore size. The system (1.2)-(1.4) is also closely related to mode ls of tumor growth [20, 33, 34] which include an additional mass source for volumetric grow th. When the surface ten- sion vanishes, i.e., γ = 0, the CHB system reduces to the Cahn-Hilliard equation [3]. A generalized Stokes equation is obtained when η ≡ 0 in (1.3). The system (1.2)-(1.4) is a simplified version of the model derived by Lee et al. [14, 15], which they used to describe gravity-driven, density-mismatched, two-phase flow. We re mark that the CHB system https:/www.cambridge.org/core/terms. https://doi.org/10.4208/cicp.171211.130412a Downloaded from https:/www.cambridge.org/core. Cornell University Library, on 11 May 2017 at 05:18:45, subject to the Cambridge Core terms of use, available at C. Collins, J. Shen and S. M. Wise / Commun. Comput. Phys., 13 (2013), pp. 929-957 931 is closely related to the Cahn-Hilliard-Navier-Stokes sys tems studied by [8, 12–17, 22, 24] and many others. We will discuss this connection a bit more at the conclusion of the paper. Note that we specifically use the surface tension force formul ation f=− γφ ∇ µ , which was used by Feng [8] and others. This will be a vital point for t he solvability of the fully discrete scheme. However, at the continuous level, th e form we use is equivalent to others. For example, introducing a new pressure ˜p := p+γφµ , we find −∇· [ν (φ )D(u)]+η (φ )u = −∇ ˜p− γµ ∇ φ , (1.8) which is the form used in [18, 22] and elsewhere. In this paper, we propose and analyze a convex-splitting sch eme for the CHB sys- tem (1.2)-(1.4). We prove that the scheme is unconditionall y stable and solvable, and we present a practical and efficient multigrid method for solvin g the nonlinear system at each time step. 1.2 A convex splitting scheme in time In this section we describe a time-discrete scheme for the CH B system. The calcula- tions here are meant to motivate those for the fully discrete scheme that we exhibit in later sections. The scheme is based on a convex splitting app roach [1, 6, 7, 27] that we have used in earlier works [10, 21, 23, 28, 29, 35]. There are t wo important properties that convex splitting schemes generally inherit, unconditiona l energy stability and uncondi- tional unique solvability [7, 35]. However, convex splitti ng schemes are typically nonlin- ear, which presents a challenge with respect to practical im plementation. Later we will show that nearly optimally efficient algorithms are availabl e for solving such nonlinear schemes. Notice that the energy (1.1) can be written as the difference of two purely convex pieces Ec − Ee with, for example, Ec = ∫ Ω { 1 4ǫ φ 4 + 1 4ǫ + ǫ 2 |∇ φ |2 } dx , Ee = ∫ Ω 1 2ǫ φ 2 dx . (1.9) The key idea of the convex splitting schemes is to treat Ec implicitly , while treating Ee explicitly in a time-discrete scheme. Hence, a first-order se mi-implicit, convex splitting scheme is as follows: φ k+1 − φ k = s∇· ( ǫ M ( φ k ) ∇ µ k+1 − φ kuk+1 ) , (1.10) µ k+1 := δ φ Ec(φ k+1)− δ φ Ee(φ k) = 1 ǫ ( φ k+1 ) 3 − 1 ǫ φ k − ǫ ∆φ k+1 , (1.11) −∇· [ ν ( φ k ) D ( uk+1 )] +η ( φ k ) uk+1 = −∇ pk+1 − γφ k∇ µ k+1 , (1.12) ∇· uk+1 = 0 , (1.13) https:/www.cambridge.org/core/terms. https://doi.org/10.4208/cicp.171211.130412a Downloaded from https:/www.cambridge.org/core. Cornell University Library, on 11 May 2017 at 05:18:45, subject to the Cambridge Core terms of use, available at 932 C. Collins, J. Shen and S. M. Wise / Commun. Comput. Phys., 13 (2013), pp. 929-957 where s > 0 is the time step size, with the boundary conditions ∂ nφ k+1|∂ Ω = ∂ nµ k+1|∂ Ω = 0, u|∂ Ω = 0 . (1.14) Theorem 1.1. The scheme (1.10)-(1.13) is uniquely solvable for any time step s > 0; mass con- servative, i.e., ( φ k+1,1 ) L2 = ( φ k,1 ) L2 , ∀ k ≥ 0 ; and unconditionally energy stable, i.e., E ( φ k+1 ) ≤ E ( φ k ) , ∀ k ≥ 0 , (1.15) for any time step s > 0. Proof. For brevity , we omit the proof for the unique solvability here, but refer to the proof in Section 2 for the fully discrete scheme, which is based on t ools from convex analysis. Integrating (1.10) over Ω, thanks to (1.14), we derive immediately ( φ k+1,1 ) L2=(φ k,1)L2. Next, we take the inner products of (1.10) with µ k+1, of (1.11) with − (φ k+1 − φ k) and of (1.12) with (s/γ )uk+1, sum up the three relations and integrate by parts, we find that E ( φ k+1 ) − E ( φ k ) =− sǫ ( M ( φ k ) ∇ µ k+1,∇ µ k+1 ) L2 − s γ ( η ( φ k ) uk+1,uk+1 ) L2 − s 2γ ( ν ( φ k ) D ( uk+1 ) ,D ( uk+1 )) L2 − 1 4ǫ ( φ k+1 ) 2 − ( φ k ) 2 2 L2 − 1 2ǫ φ k+1 ( φ k+1 − φ k ) 2 L2 − 1 2ǫ φ k+1 − φ k 2 L2 − ǫ 2 ∇ φ k+1 −∇ φ k 2 L2 . (1.16) Thanks to the non-positivity of all terms on the right-hand- side, this implies E ( φ k+1 ) ≤ E ( φ k ) , (1.17) regardless of the time step size s. In the remainder of the paper we demonstrate that the convex- splitting framework outlined in this section has an analog in the spatial discret e setting, specifically using difference operators. In particular, the fully discrete sc heme that we propose later for the CHB system will be shown to be unconditionally energy sta ble and uncondition- ally uniquely solvable. We also develop a practical and effici ent nonlinear solver for the scheme in this paper. In Section 2 we present the main results of our analyses, includ- ing the unique solvability and discrete-energy stability o f our scheme. In Section 3 we present evidence that our multigrid solver, described late r in Appendix B, is of nearly optimal complexity . We also provide a convergence test for t he scheme, showing that it https:/www.cambridge.org/core/terms. https://doi.org/10.4208/cicp.171211.130412a Downloaded from https:/www.cambridge.org/core. Cornell University Library, on 11 May 2017 at 05:18:45, subject to the Cambridge Core terms of use, available at C. Collins, J. Shen and S. M. Wise / Commun. Comput. Phys., 13 (2013), pp. 929-957 933 is first order accurate in time and second order accurate in spa ce. In Section 4 we use the scheme to simulate spinodal decomposition, as modeled by th e CHB system (1.2)-(1.4). We also use our scheme to simulate two cases of driven flow. We g ive some concluding remarks and suggest some future work in Section 5. In the first a ppendix, Appendix A, we describe some details of the staggered grid finite differen ce space discretization that we employ in the scheme. In the second appendix, Appendix B, w e give some details of the efficient nonlinear multigrid method for solving the semi -implicit scheme in time. 2 Fully discrete scheme and its stability analysis In this section we describe and analyze our staggered grid fini te difference scheme for the CHB system (1.2)-(1.4). We refer the reader to Appendix A for a description of our notation and for some useful results, such as the various sum mation-by-parts formulae that are commonly used in the analyses. 2.1 The fully discrete convex splitting scheme We begin by defining a fully discrete energy that is consistent with the continuous space energy (1.1). In particular, define the discrete energy F : Cm× n → R to be F(φ ) := 1 4ǫ ∥φ ∥4 4 + 1 4ǫ − 1 2ǫ ∥φ ∥2 2 + ǫ 2 ∥∇ hφ ∥2 2 . (2.1) It is straightforward to show that if φ ∈ C m× n and n·∇ hφ |∂ Ω = 0, the energies Fc(φ ) := 1 4ǫ ∥φ ∥4 4 + 1 4ǫ + ǫ 2 ∥∇ hφ ∥2 2 , Fe(φ ) := 1 2ǫ ∥φ ∥2 2 (2.2) are convex. Hence F, as defined in (2.1), admits the convex splitting F = Fc − Fe. The gradients (discrete variations) of the respective energie s are δ φ Fc = 1 ǫ φ 3− ǫ ∆hφ and δ φ Fe = 1 ǫ φ . The fully-discrete scheme for the Cahn-Hilliard-Brinkman system is the following: given φ k ∈ C m× n, find the grid functions φ k+1, µ k+1, pk+1 ∈ C m× n, uk+1 ∈ E ew m× n, and vk+1 ∈ E ns m× n such that φ k+1 − φ k = sǫ [ dx ( M ( Axφ k ) Dxµ k+1 ) +dy ( M ( Ayφ k ) Dyµ k+1 )] − s [ dx ( Axφ kuk+1 ) +dy ( Ayφ kvk+1 )] , (2.3) µ k+1 := δ φ Fc(φ k+1)− δ φ Fe(φ k) = 1 ǫ ( φ k+1 ) 3 − 1 ǫ φ k − ǫ ∆hφ k+1 , (2.4) https:/www.cambridge.org/core/terms. https://doi.org/10.4208/cicp.171211.130412a Downloaded from https:/www.cambridge.org/core. Cornell University Library, on 11 May 2017 at 05:18:45, subject to the Cambridge Core terms of use, available at 934 C. Collins, J. Shen and S. M. Wise / Commun. Comput. Phys., 13 (2013), pp. 929-957 − γ Axφ kDxµ k+1 = Dx pk+1 +η ( Axφ k ) uk+1 − 2Dx ( ν ( φ k ) dxuk+1 ) − dy { ν ( Aφ k )( Dyuk+1 + Dxvk+1 )} , (2.5) − γ Ayφ kDyµ k+1 = Dy pk+1 +η ( Ayφ k ) vk+1 − 2Dy ( ν ( φ k ) dyvk+1 ) − dx { ν ( Aφ k )( Dxvk+1 + Dyuk+1 )} , (2.6) dxuk+1 +dyvk+1 = 0 . (2.7) We enforce the solvability condition ( pk+1 1 ) = 0 and the boundary conditions n·∇ hφ k+1|∂ Ω = n·∇ hµ k+1|∂ Ω = 0, uk+1|∂ Ω = vk+1|∂ Ω = 0. Once again, the reader is referred to Appendix A and [32,35] f or a description of the finite difference notation used here. In order to make the calculations that follow more readable, let us define φ ew := Axφ k , φ ns := Ayφ k ; (2.8) Mew := M(φ ew) , Mns := M(φ ns) ; (2.9) η ew := η (φ ew) , η ns := η (φ ns) ; (2.10) ν vc := ν ( Aφ k ) , ν cc := ν ( φ k ) . (2.11) We will use this notation throughout the remainder of the pap er. Also, we point out that the scheme simplifies in the case of constant viscosity . For instance, if ν ≡ 1, Eqs. (2.5) and (2.6) become − γ Axφ kDxµ k+1 = Dx pk+1 +η ewuk+1 − Dx ( dxuk+1 ) − dy ( Dyuk+1 ) , (2.12) − γ Ayφ kDyµ k+1 = Dy pk+1 +η nsvk+1 − Dy ( dyvk+1 ) − dx ( Dxvk+1 ) , (2.13) upon using our simplified notation and the discrete divergenc e-free condition Eq. (2.7). Now we perform some calculations on the discrete Brinkman eq uations (2.5)-(2.7) that will be used several times in the following sections. To simplify the notations, let us make the notation replacements µ k+1 → µ α , pk+1 → pα , uk+1 → uα , and vk+1 → vα in (2.5)- (2.7). Then, we suppose that the triples (uα ,vα , pα ), α = 1,2, satisfy (2.5)-(2.7). Testing (2.5) (written in terms of α = 1) with u2 and testing (2.6) (written in terms of α = 1) with v2 we have − γ h2 [φ ewDxµ 1∥u2]ew =h2 [Dx p1∥u2]ew +h2 [η ewu1∥u2]ew − 2h2 [Dx (ν ccdxu1)∥u2]ew − h2 [ dy { ν vc ( Dyu1 + Dxv1 )} u 2 ] ew , (2.14) − γ h2 [ φ nsDyµ 1 v 2 ] ns =h2 [ Dy p1 v 2 ] ns +h2 [η nsv1∥v2]ns − 2h2 [ Dy ( ν ccdyv1 ) v 2 ] ns − h2 [ dx { ν vc ( Dxv1 + Dyu1 )} v 2 ] ns . (2.15) https:/www.cambridge.org/core/terms. https://doi.org/10.4208/cicp.171211.130412a Downloaded from https:/www.cambridge.org/core. Cornell University Library, on 11 May 2017 at 05:18:45, subject to the Cambridge Core terms of use, available at C. Collins, J. Shen and S. M. Wise / Commun. Comput. Phys., 13 (2013), pp. 929-957 935 Using the various summation-by-parts formulae from Appendix A and dropping bound- ary terms we have γ h2 (µ 1∥dx (φ ewu2)) =− h2 (p1∥dxu2)+h2 [η ewu1∥u2]ew +2h2 (ν ccdxu1∥dxu2) +h2 ⟨ ν vc ( Dyu1 + Dxv1 ) D yu2 ⟩ , (2.16) γ h2 ( µ 1 d y (φ nsv2) ) =− h2 ( p1 d yv2 ) +h2 [η nsv1∥v2]ns +2h2 ( ν ccdyv1 d yv2 ) +h2 ⟨ ν vc ( Dxv1 + Dyu1 ) D xv2 ⟩ . (2.17) Adding the last two equations, and assuming the divergence- free condition (2.7) holds for u2, v2, we find γ h2 ( µ 1 d x (φ ewu2)+dy (φ nsv2) ) =h2 [η ewu1∥u2]ew +h2 [η nsv1∥v2]ns +2h2 (ν ccdxu1∥dxu2)+2h2 ( ν ccdyv1 d yv2 ) +h2 ⟨ ν vc ( Dyu1 + Dxv1 ) D xv2 + Dyu2 ⟩ . (2.18) 2.2 Unconditional unique solvability We first establish a lemma that will help prove solvability for (2.3)-(2.7). Let us define ˚Cm× n := {φ ∈ C m× n |n·∇ hφ = 0 and (φ ∥1) = 0} , (2.19) ˚Cm× n := {φ ∈ C m× n |(φ ∥1) = 0} . (2.20) Note that dim( ˚Cm× n) =dim( ˚Cm× n); in fact these spaces can be identified in a natural way . We also define the linear operator L(µ α ) : ˚Cm× n → ˚Cm× n via L(µ α ) :=− sǫ { dx (MewDxµ α )+dy ( MnsDyµ α ) } +s { dx (φ ewuα )+dy (φ nsvα ) } , (2.21) where, for a given grid function µ α , the (staggered) grid functions uα ∈ E ew m× n, vα ∈ E ns m× n, and pα ∈ ˚Cm× n are the unique solutions to the discrete Brinkman equations − γφ ewDxµ α = Dx pα +η ewuα − 2Dx (ν cc dxuα )− dy { ν vc ( Dyuα + Dxvα )} , (2.22) − γφ nsDyµ α = Dy pα +η nsvα − 2Dy ( ν cc dyvα ) − dx { ν vc ( Dxvα + Dyuα )} , (2.23) dxuα +dyvα = 0 , (2.24) with homogeneous Dirichlet boundary conditions imposed on uα and vα . Lemma 2.1. Let φ ew ∈E ew m× n , φ ns ∈E ns m× n be given. Then, for any φ ∈ ˚Cm× n, there exists a unique µ ∈ ˚Cm× n that solves L(µ ) =φ . https:/www.cambridge.org/core/terms. https://doi.org/10.4208/cicp.171211.130412a Downloaded from https:/www.cambridge.org/core. Cornell University Library, on 11 May 2017 at 05:18:45, subject to the Cambridge Core terms of use, available at 936 C. Collins, J. Shen and S. M. Wise / Commun. Comput. Phys., 13 (2013), pp. 929-957 Proof. The unique existence of the staggered grid variables uα , vα , and pα (for any µ α ) is a classical result for the simple Stokes case, i.e., ν ≡ 1, η ≡ 0. The arguments can be straightforwardly extended for the discrete Brinkman equa tions so we omit the details here. Hence L is well-defined. Assuming that µ is a solution of L(µ ) = φ , the necessity of (φ ∥1)=0 follows from a simple summation-by-parts calculation uti lizing the homoge- neous boundary conditions. We omit this calculation as well . To prove the lemma, it suffices to show that L is SPD restricted to ˚Cm× n. To show symmetry we test (2.21) (written in terms of α = 2) with µ 1 and sum by parts to obtain h2 (L(µ 2)∥µ 1) =sǫ h2 { [MewDxµ 2∥Dxµ 1]ew + [ MnsDyµ 2 D yµ 1 ] ns } +sh2 ( dx (φ ewu2)+dy (φ nsv2) µ 1 ) . (2.25) Combining this last result with the calculation (2.18) we ha ve h2 (L(µ 2)∥µ 1) =sǫ h2 { [MewDxµ 2∥Dxµ 1]ew + [ MnsDyµ 2 D yµ 1 ] ns } + h2 γ { [η ewu1∥u2]ew +[η nsv1∥v2]ns } + 2h2 γ { (ν cc dxu1∥dxu2)+ ( ν cc dyv1 d yv2 ) } + h2 γ ⣨ ν vc ( Dyu1 + Dxv1 ) D xv2 + Dyu2 ⟩ . (2.26) Thus h2 (L(µ 2)∥µ 1) = h2 (L(µ 1)∥µ 2) and the operator is symmetric. Setting µ 1 = µ 2 = µ in the last result, we have h2 (µ ∥L(µ )) =sǫ h2 { [MewDxµ ∥Dxµ ]ew + [ MnsDyµ D yµ ] ns } + sh2 γ { [η ewu∥u]ew +[η nsv∥v]ns } + 2sh2 γ (ν cc dxu∥dxu)+ 2sh2 γ ( ν cc dyv d yv ) + sh2 γ ⣨ ν vc ( Dyu+ Dxv ) D xv+ Dyu ⟩ ≥ sǫ M0 ∥∇ hµ ∥2 2 ≥ 0 , (2.27) from which we conclude that L is positive semi-definite. Now (µ ∥L(µ )) = 0 only when Dxµ =0 and Dyµ =0 at every edge-centered point. But, the only way that this can happen is if µ is a constant function. With the restriction that µ is a mean zero function, we conclude that µ ≡ 0. Hence (µ ∥L(µ )) = 0 only when µ ≡ 0, which implies that L is SPD. https:/www.cambridge.org/core/terms. https://doi.org/10.4208/cicp.171211.130412a Downloaded from https:/www.cambridge.org/core. Cornell University Library, on 11 May 2017 at 05:18:45, subject to the Cambridge Core terms of use, available at C. Collins, J. Shen and S. M. Wise / Commun. Comput. Phys., 13 (2013), pp. 929-957 937 We equip the spaces ˚Cm× n and ˚Cm× n with the inner product (φ 1∥φ 2)L− 1 := ( φ 1 L− 1 (φ 2) ) = ( L− 1 (φ 1) φ 2 ) , (2.28) for any φ 1, φ 2 ∈ ˚Cm× n ∪ ˚Cm× n. Theorem 2.1 (unique solvability) . The scheme (2.3)-(2.7) is uniquely solvable for any time step-size s > 0 and is discretely mass conserving, i.e., (φ k+1 − φ k∥1) =0. Proof. The proof is very similar to that of [32, Theorem 2]. In partic ular, one can show that the scheme (2.3)-(2.7) is equivalent to δ φ G(φ k+1)= 0, where δ φ is the discrete variation with respect to the grid variable φ , i.e., the gradient. G(φ ) is the strictly convex, coercive functional G(φ ) := h2 2 ( φ − φ k φ − φ k ) L− 1 + Fc(φ )− h2 ( φ δ φ Fe(φ k) ) = h2 2 ( L− 1 ( φ − φ k ) φ − φ k ) + Fc(φ )− h2 ( φ δ φ Fe(φ k) ) (2.29) defined over the set (hyperplane) of admissible functions A = { φ ∈ C m× n ⏐ ⏐ ⏐ (φ ∥1) = ( φ k 1 ) } . (2.30) We omit the details. 2.3 Unconditional stability Theorem 2.2 (energy stability) . The scheme (2.3)-(2.5) is unconditionally (strongly) energy stable, meaning that for any time step-size s > 0, F ( φ k+1 ) ≤ F ( φ k ) . (2.31) Moreover, for any positive integer N, we have F ( φ N ) +sǫ M0 N ∑ k=1 ∇ hµ k 2 2 + sη 0 γ N ∑ k=1 u k 2 2 + sν 0 2γ N ∑ k=1 D h ( uk ) 2 2 ≤ F ( φ 0) , (2.32) where u k 2 2 := h2 [ uk u k ] ew +h2 [ vk v k ] ns (2.33) and 1 2 D h ( uk ) 2 2 :=2h2 ( dxuk d xuk ) +2h2 ( dyvk d yvk ) +h2 ⣨ Dyuk + Dxvk D xvk + Dyuk ⟩ . (2.34) https:/www.cambridge.org/core/terms. https://doi.org/10.4208/cicp.171211.130412a Downloaded from https:/www.cambridge.org/core. Cornell University Library, on 11 May 2017 at 05:18:45, subject to the Cambridge Core terms of use, available at 938 C. Collins, J. Shen and S. M. Wise / Commun. Comput. Phys., 13 (2013), pp. 929-957 Proof. Testing Eq. (2.3) with µ k+1 and using (2.21) we have h2 ( φ k+1 − φ k µ k+1 ) = − h2 ( L ( µ k+1 ) µ k+1 ) . (2.35) Testing Eq. (2.4) with φ k+1 − φ k, using (2.1), summing-by-parts, and dropping boundary terms we find h2 ( φ k+1 − φ k µ k+1 ) =F ( φ k+1 ) − F ( φ k ) + 1 4ǫ ( φ k+1 ) 2 − ( φ k ) 2 2 2 + 1 2ǫ φ k+1 ( φ k+1 − φ k ) 2 2 + 1 2ǫ φ k+1 − φ k 2 2 + ǫ 2 ∇ hφ k+1 −∇ hφ k 2 2 . (2.36) Subtracting Eq. (2.36) from (2.35) and rearranging terms we have F ( φ k+1 ) − F ( φ k ) =− h2 ( L ( µ k+1 ) µ k+1 ) − 1 4ǫ ( φ k+1 ) 2 − ( φ k ) 2 2 2 − 1 2ǫ φ k+1 ( φ k+1 − φ k ) 2 2 − 1 2ǫ φ k+1 − φ k 2 2 − ǫ 2 ∇ hφ k+1 −∇ hφ k 2 2 . (2.37) Now, according to (2.27), we find h2 ( µ k+1 L ( µ k+1 )) =sǫ h2 [ MewDxµ k+1 D xµ k+1 ] ew +sǫ h2 [ MnsDyµ k+1 D yµ k+1 ] ns + sh2 γ [ η ewuk+1 u k+1 ] ew + sh2 γ [ η nsvk+1 v k+1 ] ns + 2sh2 γ ( ν cc dxuk+1 d xuk+1 ) + 2sh2 γ ( ν cc dyvk+1 d yvk+1 ) + sh2 γ ⣨ ν vc ( Dyuk+1 + Dxvk+1 ) D xvk+1 + Dyuk+1 ⟩ ≥ sǫ M0 ∇ hµ k+1 2 2 + sη 0 γ u k+1 2 2 + sν 0 2γ D h ( uk+1 ) 2 2 . (2.38) The result (2.32) now follows upon summing the above from k = 0 to N− 1. The next three lemmas, proved in [32, 35], will be needed late r. The discrete Sobolev norms ∥·∥1,2 and ∥·∥1,2 are defined in the appendix. Lemma 2.2. Suppose that φ ∈ C m× n. Then F(φ ) ≥ C0 ∥φ ∥2 1,2 − 3Lx Ly 4ǫ , (2.39) where C0 = min ( ǫ − 1,ǫ ) /2. https:/www.cambridge.org/core/terms. https://doi.org/10.4208/cicp.171211.130412a Downloaded from https:/www.cambridge.org/core. Cornell University Library, on 11 May 2017 at 05:18:45, subject to the Cambridge Core terms of use, available at C. Collins, J. Shen and S. M. Wise / Commun. Comput. Phys., 13 (2013), pp. 929-957 939 Lemma 2.3. Suppose that φ ∈ C m× n and n·∇ hφ |∂ Ω = 0. Then ∥φ ∥6 ≤ C2 ∥φ ∥1,2 , (2.40) where C2 depends upon L x and L y. Lemma 2.4. Suppose that φ ∈ C m× n and n·∇ hφ |∂ Ω = 0. Then, ∥φ ∥∞ ≤ C3 ∥φ ∥2,2 , C3 := 2 √ max { 1 LxLy , Lx Ly , Ly Lx , LxLy 2 } . (2.41) We prove below that the scheme is stable in various discrete n orms. Theorem 2.3. Let Φ(x,y) be a smooth function on Ω, where Ω = (0,Lx)× (0,Ly), with homoge- neous Neumann boundary conditions. Set φ 0 i,j := Φ(xi,yj). Suppose E is the continuous energy (1.1) and φ k i,j ∈ C m× n is the k th solution of the scheme (2.3)-(2.5). Then φ k 1,2 ≤ √ E(Φ)+ C4Lx Ly C0 =: C5 , (2.42) where C4 > 0 and does not depend on either s or h. More specifically, with s ·N = T, we have ∥φ ∥ℓ∞(0,T;H1 h) := max 1≤ k≤ N φ k 1,2 ≤ C5 , (2.43) ∥∇ hµ ∥ℓ2(0,T;ℓ2) := √ s N ∑ k=1 ∥∇ hµ k∥2 2 ≤ √ C0 ǫ M0 C5 =: C6 , (2.44) ∥u∥ℓ2(0,T;ℓ2) := √ s N ∑ k=1 ∥uk∥2 2 ≤ √ γ C0 η 0 C5 =: C7 , (2.45) ∥Dh (u)∥ℓ2(0,T;ℓ2) := √ s N ∑ k=1 ∥Dh (uk)∥2 2 ≤ √ 2γ C0 ν 0 C5 =: C8 , (2.46) ∥φ ∥ℓ2(0,T;H2 h) := √ s N ∑ k=1 ∥φ k∥2 2,2 ≤ C9 , (2.47) where C9 > 0 depends upon T and Φ, but is independent of s and h. Proof. The techniques used to prove (2.43)-(2.46) are similar to th ose in the proof of [32, Theorem 5] and the details are skipped. To prove (2.47), we begin by testing Eq. (2.4) with https:/www.cambridge.org/core/terms. https://doi.org/10.4208/cicp.171211.130412a Downloaded from https:/www.cambridge.org/core. Cornell University Library, on 11 May 2017 at 05:18:45, subject to the Cambridge Core terms of use, available at 940 C. Collins, J. Shen and S. M. Wise / Commun. Comput. Phys., 13 (2013), pp. 929-957 ∆hφ k+1 and sum by parts. ǫ ∆ hφ k+1 2 2 = h2 ( ∇ hµ k+1 ∇ hφ k+1 ) + h2 ǫ ( ( φ k+1 ) 3 ∆ hφ k+1 ) + h2 ǫ ( ∇ hφ k ∇ hφ k+1 ) ≤ 1 2 ∇ hµ k+1 2 2 + 1 2 ∇ hφ k+1 2 2 + 1 2ǫ φ k+1 6 6 + ǫ 2 ∆ hφ k+1 + 1 2 ∇ hφ k 2 2 + 1 2 ∇ hφ k+1 2 2 . (2.48) Then using (2.40) and (2.43) ǫ 2 ∆ hφ k+1 2 2 ≤ 1 2 ∇ hµ k+1 2 2 + 1 2ǫ φ k+1 6 6 + 3 2 C2 5 ≤ 1 2 ∇ hµ k+1 2 2 + 1 2ǫ C6 2 φ k+1 6 1,2 + 3 2 C2 5 ≤ 1 2 ∇ hµ k+1 2 2 + 1 2ǫ C6 2C6 5 + 3 2 C2 5 . (2.49) Summing and using (2.43) and (2.44) gives the result. Remark 2.1. Combining this last result with Lemma 2.4 naturally leads to ∥φ ∥ℓ2(0,T;ℓ∞) := √ s N ∑ k=1 ∥φ k∥2 ∞ ≤ C10 , (2.50) where C10 > 0 depends upon T and Φ, but is independent of s and h. Remark 2.2. All of the results from this section can be easily extended to the cases where periodic boundary conditions or a mixture of periodic and ph ysical boundary conditions are assumed. 3 Numerical convergence study In this section we discuss aspects of the practical numerica l solution of the scheme (2.3)- (2.7) by using the nonlinear FAS multigrid method given in Ap pendix B. We present some convergence tests and perform some sample computation s. The first set of tests we perform gives evidence that the multigrid solver is robust a nd converges with nearly op- timal complexity . In another test we provide evidence that s uggests our convex-splitting scheme is convergent – in other words, numerical solutions c onverge to the PDE solu- tions – as s and h → 0. 3.1 Convergence and complexity of the multigrid solver To demonstrate the convergence and near optimal complexity (with respect to the grid size h) of the solver we provide evidence that the multigrid conver gence rate is nearly https:/www.cambridge.org/core/terms. https://doi.org/10.4208/cicp.171211.130412a Downloaded from https:/www.cambridge.org/core. Cornell University Library, on 11 May 2017 at 05:18:45, subject to the Cambridge Core terms of use, available at C. Collins, J. Shen and S. M. Wise / Commun. Comput. Phys., 13 (2013), pp. 929-957 941 independent of h. (The reader is referred to Appendix B for a description of th e multi- grid algorithm.) To this end, five separate tests, which are si milar to those carried out in [11,32] for Cahn-Hilliard [11] and Cahn-Hilliard-Hele- Shaw [32] multigrid solvers, are performed. For the tests we take the initial data φ 0 i,j = [ 1− cos ( 4xiπ 3.2 )] · [ 1− cos ( 2yjπ 3.2 )] 2 − 1 , (3.1) and we use the parameters Lx = Ly = 3.2. We fix the temporal step size at s = 1.0× 10− 3 and report results at the 20 th time step, i.e., at the final T = 2.0× 10− 2. We vary the spatial step size from h = 3.2/32 to h = 3.2/512 as indicated in the test results. There is only one tunable parameter in our nonlinear multigrid solver, namel y λ , the number of multigrid smoothing sweeps, as defined [32, Appendix A]. Based on our exp erience, as well as established wisdom [25], we expect that the optimal value of λ should be about 5. Our experiments confirm this. The stopping tolerance for the multigrid solver is taken to b e ∥R(φ)∥2,⋆ ≤ τ = 1.0× 10− 8, where the norm and the residual R(φ) are similar to those defined in [32, Appendix Table 1: The number of multigrid iterations required to redu ce the norm of the residual below the tolerance τ = 1.0× 10− 8. The iteration counts are made at the 20th time step ( k = 20) using the fixed time step size s = 1.0× 10− 3. The parameters for the test are given in the text and in the ta bles. The initial data are given by Eq. (3.1). The precise residual values for Tests 1 and 2 are shown in Fig. 1. Using the multigrid smoothing parameter λ = 2 we observe, for a variety of parameter sets, that the require d number of iterations is nearly independent of h. T est 1 T est 2 ǫ 2.0× 10− 1 ǫ 1.0× 10− 1 γ 2.0ǫ γ 2.0ǫ λ 2 3 4 5 λ 2 3 4 5 3.2/32 6 5 4 4 3.2/32 5 4 4 4 3.2/64 6 5 5 5 3.2/64 6 5 5 4 h 3.2/128 8 6 5 5 h 3.2/128 7 6 5 5 3.2/256 10 8 6 5 3.2/256 9 7 6 5 3.2/512 14 10 7 6 3.2/512 12 9 7 6 T est 3 T est 4 ǫ 5.0× 10− 2 ǫ 5.0× 10− 2 γ 4.0ǫ γ 8.0ǫ λ 2 3 4 5 λ 2 3 4 5 3.2/32 6 5 4 4 3.2/32 6 5 5 4 3.2/64 7 6 5 5 3.2/64 7 6 5 5 h 3.2/128 9 7 6 5 h 3.2/128 10 8 6 6 3.2/256 12 9 7 6 3.2/256 13 9 7 6 3.2/512 17 11 8 6 3.2/512 17 12 9 7 https:/www.cambridge.org/core/terms. https://doi.org/10.4208/cicp.171211.130412a Downloaded from https:/www.cambridge.org/core. Cornell University Library, on 11 May 2017 at 05:18:45, subject to the Cambridge Core terms of use, available at 942 C. Collins, J. Shen and S. M. Wise / Commun. Comput. Phys., 13 (2013), pp. 929-957 A]. The number of multigrid iterations required to reduce th e norm of the residual below the tolerance τ is given in Table 1 for various choices of ǫ , γ , λ , and h. As can be seen in Table 1, using the multigrid smoothing parameter λ = 5 we observe, for a variety of parameter choices, that the required number of iterations i s nearly independent of h. The detailed residual values for Test 3 from Table 1 are given in g raphical form in Fig. 1. For the case λ = 5 note that the norm of the residual is reduced by approximate ly the same factor each time a multigrid iteration is executed, regardl ess of h. This is a typical feature of multigrid when it is operating with optimal complexity [1 1, 25]. With λ ≤ 4, we do not observe a similar feature. Significantly more multigrid iter ations are required for smaller values of h. 3.2 Convergence of the scheme as s, h → 0 Now we present the results of a test that suggest our scheme (2 .3)-(2.7) is convergent as s, h → 0. The initial data are given by Eq. (3.1) and the parameters a re Lx = Ly = 3.2, ǫ = 2.0× 10− 1, γ = 2.0ǫ , and T = 4.0× 10− 1, where T is the final time. We expect that, at best, the global error in φ is et=T = O(s)+ O(h2). Thus, if we choose a refinement path of the form s = Ch2, we have e = O(h2), which is straightforward to confirm. We need only check that the global error is reduced by a factor of 4 when h is reduced by a factor of 2. In particular, we use the refinement path † s = 0.4h2. The full details of the convergence test are described in [10, Section 6.1], and for brevity we do not reproduce them here. The stopping tolerance for the solver is again taken to be τ = 1.0× 10− 8. The results of the test are reported in Table 2, and they give evidence that e = O(h2) is indeed the case. In other words, a global error of the form e=O(s)+O(h2) is consistent with the test results. These results are comparable to those for the Cahn-Hilliard-Hele -Shaw system studied in [32]. Table 2: Errors and convergence rates of the convex-splitti ng scheme (2.3)-(2.5). Here the calculations are carried out for the variable φ only. Parameters are given in the text, and the initial data a re defined in Eq. (3.1). The refinement path is s = 0.4h2. Hence the results suggest global first-order convergence i s attained, which was expected. Grid sizes 16 2 − 322 322− 642 642− 1282 1282− 2562 Error 7.6239 × 10− 3 1.7582 × 10− 3 4.3425 × 10− 4 1.0833 × 10− 4 Rate 2.082 2.012 2.002 4 Applications In this section we apply the scheme presented in the last sect ion to a couple of practical examples. †The reader should keep in mind that the choice of this refineme nt path has nothing to do with any time step restriction for stability or solvability . Recall that we can show that the scheme is unconditionally energy stable and unconditionally uniquely solvable. https:/www.cambridge.org/core/terms. https://doi.org/10.4208/cicp.171211.130412a Downloaded from https:/www.cambridge.org/core. Cornell University Library, on 11 May 2017 at 05:18:45, subject to the Cambridge Core terms of use, available at C. Collins, J. Shen and S. M. Wise / Commun. Comput. Phys., 13 (2013), pp. 929-957 943 1 2 3 4 5 6 7 8 9 10 11 10 -12 10 -10 10 -8 10 -6 10 -4 10 -2 Multigrid V-cycle Iterations Scaled 2-norm of the Residual λ = 3 Test 3: ε = 5.0 x 10-2 , γ = 4.0ε h=3.2/32 h=3.2/64 h=3.2/128 h=3.2/256 h=3.2/512 1 2 3 4 5 6 7 8 9 10 11 10 -12 10 -10 10 -8 10 -6 10 -4 10 -2 Multigrid V-cycle Iterations Scaled 2-norm of the Residual λ = 4 Test 3: ε = 5.0 x 10-2 , γ = 4.0ε 1 2 3 4 5 6 7 8 9 10 11 10 -12 10 -10 10 -8 10 -6 10 -4 10 -2 Multigrid V-cycle Iterations Scaled 2-norm of the Residual λ = 5 Test 3: ε = 5.0 x 10-2 , γ = 4.0ε Figure 1: The reduction in the norm of the residual per V-cycl e iteration at time t = 2.0× 10− 2 (20 full time steps with step size s = 1.0× 10− 3). Parameters are given in the text and the initial data are gi ven in Eq. (3.1). We show three cases, λ =3, 4, and 5 for Test 3 represented in Table 1. The results show a n early h-independent reduction in the residual for the λ = 5 case, though there is some deterioration in the convergence rate as h→ 0. 4.1 Spinodal decomposition and energy dissipation Here we provide a couple of simulations of spinodal decompos ition. We demonstrate energy dissipation at the numerical level and we show the eff ect of different values of the parameter γ . A similar test was given in [32] for the Cahn-Hilliard-Hele -Shaw equation, that is where the flow is given by Darcy’s law. The results of th e test are shown in Figs. 2 and 3, and the parameters are M(φ )= √ (1+φ )2(1− φ )2 +ǫ 2, s=0.005, h=6.4/256, ǫ =0.03, https:/www.cambridge.org/core/terms. https://doi.org/10.4208/cicp.171211.130412a Downloaded from https:/www.cambridge.org/core. Cornell University Library, on 11 May 2017 at 05:18:45, subject to the Cambridge Core terms of use, available at 944 C. Collins, J. Shen and S. M. Wise / Commun. Comput. Phys., 13 (2013), pp. 929-957 γ = 0 γ = 20 ε γ = 40 ε t = 1 t = 4 t = 12 t = 20 Figure 2: Phase separation and coarsening of a binary fluid wi th constant, uniform density. We show the filled contour plots of φ at various times. White means φ ≈ 1, black, φ ≈ − 1. The parameters are M(φ ) =√ (1+φ )2(1− φ )2 +ǫ 2, s = 0.005, h = 6.4/256, ǫ = 0.03, γ = 4.0ǫ , ¯φ = − 0.05, η ≡ 0, and ν ≡ 1. The same initial data are used for all simulations. The chosen mobility limit s the amount of diffusional coarsening, with respect to the case M = 1, since M = ǫ ≪ 1 in the pure phases. The systems with larger excess surface te nsion, γ , tend to “straighten” their interfaces at a faster rate. This is re flected in the overall coarsening rates, as suggested in Fig.3. γ =4.0ǫ , η ≡ 0, and ν ≡ 1. The average composition is ¯φ =− 0.05. Initially ,φ (xi,yj,0)= ¯φ +zi,j, where zi,j ∈ [− 0.05,0.05] are random. After an initial rapid phase separation, the cho sen mobility limits the amount of diffusional coarsening, with respect to the case M=1, since M=ǫ ≪ 1 in the pure phases. In this system coarsening is dominated b y curve shortening via surface diffusion. See for example [4]. The systems with larger excess surface tension, γ , tend to “straighten” their interfaces at a faster rate. Coa rsening rates are typically tied to the energy dissipation rates. Note that the correlation b etween higher values of γ and higher coursing rates is reflected in Fig. 3. We point out that , regardless of the parameter values of the space or time step sizes that the energy is alway s non-increasing in time. https:/www.cambridge.org/core/terms. https://doi.org/10.4208/cicp.171211.130412a Downloaded from https:/www.cambridge.org/core. Cornell University Library, on 11 May 2017 at 05:18:45, subject to the Cambridge Core terms of use, available at C. Collins, J. Shen and S. M. Wise / Commun. Comput. Phys., 13 (2013), pp. 929-957 945 10 0 10 1 10 0.1 10 0.2 10 0.3 10 0.4 10 0.5 10 0.6 γ = 0 γ = 40ε γ = 20ε Energy Time Figure 3: The computed discrete energies, F, plotted in log-log scale as functions of time (solid lines) for the three simulations in Fig. 2. The dashed lines are plots of the fit functions 4.08t− 0.20 (γ =0), 3.74t− 0.28 (γ =20ǫ ), and 3.50t− 0.32 (γ = 40ǫ ), t ∈ [1,20] to avoid the phase separation regime. Clearly systems with h igher excess surface tension γ tend to coarsen faster. Note that wall effects become more infl uential at later times. 4.2 Buoyancy-driven flows To simulate buoyancy-driven flow, we modify the Brinkman flow equation (1.3) as fol- lows: −∇· [ν (φ )D(u)]+η (φ )u+∇ p = − γφ ∇ µ +b , (4.1) where b is a buoyancy term that depends on the mass density . We assume that the mass density depends on φ , i.e., ρ = ρ (φ ), and we employ a Boussinesq type approximation: b = − b(φ ) ˆk , b(φ ) =χ (φ − φ 0) , (4.2) where φ 0 is a constant (usually the average value of φ ), and χ is a constant. Hence, the corresponding scheme that we use for the buoyancy-driven flo w is (2.3)-(2.7) with (2.6) replaced by − γ Ayφ kDyµ k+1 − b ( Ayφ k ) =Dy pk+1 +η ( Ayφ k ) vk+1 − 2Dy ( ν ( φ k ) dyvk+1 ) − dx { ν ( Aφ k )( Dxvk+1 + Dyuk+1 )} . (4.3) The simulation of the first buoyancy-driven flow is shown in Fig . 4. The numerical and physical parameters are s = 0.005, h = 6.4/256, ǫ = 0.03, γ = 4.0ǫ , φ 0 = ¯φ = − 0.05, χ = 10, η ≡ 0, and ν ≡ 1. We take the mobility to be M(φ ) = √ (1+φ )4(1− φ )4 +ǫ 2 , (4.4) so that M = ǫ in the pure phases, φ = ± 1. The mobility is √ 1+ǫ 2 ≈ 1 on the level curve φ =0. As before, a mobility of this type greatly limits the amount of diffusional coarsening in a system. Thus, most of the domain coarsening in these syst ems is driven by the https:/www.cambridge.org/core/terms. https://doi.org/10.4208/cicp.171211.130412a Downloaded from https:/www.cambridge.org/core. Cornell University Library, on 11 May 2017 at 05:18:45, subject to the Cambridge Core terms of use, available at 946 C. Collins, J. Shen and S. M. Wise / Commun. Comput. Phys., 13 (2013), pp. 929-957 t = 1 η = 0 η = 1 t = 5 t = 10 t = 15 t = 20 Figure 4: Phase separation of a binary fluid with variable den sity in a porous medium. Shown are filled contour plots of φ at various times. White means φ ≈ 1, black, φ ≈ − 1. The parameters are M(φ ) =√ (1+φ )4(1− φ )4 +ǫ 2, s = 0.005, h = 6.4/256, ǫ = 0.03, γ = 4.0ǫ , ¯φ = − 0.05, b(φ ) = 10(φ − ¯φ ), and ν ≡ 1. Here the black fluid phase has greater mass density than the wh ite. The left column shows the case η ≡ 0 (Stokes flow), the right column, the case η ≡ 1 (Brinkman flow). As before, the chosen mobility tends to limi t the amount of diffusional coarsening. fluid flow. The average composition is ¯φ = − 0.05, and initially ,φ (xi,yj,0) = ¯φ +zi,j, where zi,j ∈ [− 0.05,0.05] are random. Here the black fluid is heavier than the white fluid . After a very rapid phase separation process – which is similar to wha t was observed in the initial stages of the simulations in Fig. 2 – the black phase sinks and the white phase rises. The fluids mix in complicated ways as this process occurs. Note th at the Stokes case (η ≡ 0, left column, Fig. 4) is qualitatively similar to the Brinkman cas e (η ≡ 1, right column, Fig. 4). It does appear that individual particles in the Brinkman cas e have smaller shape factor – https:/www.cambridge.org/core/terms. https://doi.org/10.4208/cicp.171211.130412a Downloaded from https:/www.cambridge.org/core. Cornell University Library, on 11 May 2017 at 05:18:45, subject to the Cambridge Core terms of use, available at C. Collins, J. Shen and S. M. Wise / Commun. Comput. Phys., 13 (2013), pp. 929-957 947 that is, they are rounder and more compact – than correspondi ng particles in the Stokes case. As a second test of buoyancy-driven (Stokes) flow, we conside r the case of a single bubble rising in a rectangular box. The parameters are M(φ ) =0.1 √ (1+φ )4(1− φ )4 +ǫ 2, s = 0.005, h = 2/256, ǫ = 0.01, γ = 10.0ǫ , φ 0 = − 0.05, b(φ ) =20(φ − φ 0), η ≡ 0, and ν ≡ 1. The results of the test are given in Fig. 5. As expected, the bubbl e rises, reaching an elliptical shape, and then deforms as it approaches the upper boundary . t = 0 t = 10 t = 70t = 60 t = 50t = 40t = 30 t = 20 t = 80 Figure 5: A rising bubble. Shown are filled contour plots of φ at various times. White means φ ≈ 1, black, φ ≈− 1. The parameters are M(φ ) = 0.1 √ (1+φ )4(1− φ )4 +ǫ 2, s = 0.005, h = 2/256, ǫ = 0.01, γ = 10.0ǫ , ¯φ = − 0.05, b(φ ) =20(φ − ¯φ ), η ≡ 0, and ν ≡ 1. https:/www.cambridge.org/core/terms. https://doi.org/10.4208/cicp.171211.130412a Downloaded from https:/www.cambridge.org/core. Cornell University Library, on 11 May 2017 at 05:18:45, subject to the Cambridge Core terms of use, available at 948 C. Collins, J. Shen and S. M. Wise / Commun. Comput. Phys., 13 (2013), pp. 929-957 4.3 Boundary-driven flows The last case we consider is that of boundary-driven flow. Spe cifically , we simulate the deformation of a particle in shear flow. The PDE model is given in Eqs. (1.2)-(1.4), how- ever, we modify the boundary conditions as follows. Let u=(u,v) and Ω=(0,Lx)× (0,Ly). We assume that all fields are periodic in the x direction, and we set at y = 0 and y = Ly, ∂ yφ = ∂ yµ = 0, and v = 0. For the first component of the velocity vector, u = σ at y = 0, and u = − σ at y = Ly, where σ > 0 is the shear rate. The scheme is the same as before. We only modify the numerical boundary condition (A.16) to acco mmodate the shear flow, and, of course, we modify all the boundary conditions, in a st andard way , to allow for periodicity . The results of two simple shear-flow simulations are reporte d in Figs. 6 and 7. In both tests, an initially round drop is suspend in the very center o f box in which a shear flow is imposed via the boundary . The parameters are M ≡ 1, s = 0.001, h = 6.4/256, Lx = 12.8, Ly = 6.4, ǫ = 0.03, γ = 50.0ǫ , η ≡ 0, and ν ≡ 1. Here we only consider Stokes flow. The shear rates are σ = 2 in Fig. 6 and σ = 1 in Fig. 7. t = 1 t = 20 t = 40 t = 60 t = 80 t = 160 Figure 6: A suspended, initially round drop in shear flow. We s how filled contour plots of φ , where white indicates φ ≈ 1, black, φ ≈ − 1. The parameters are M ≡ 1, s = 0.001, h = 6.4/256, Lx = 12.8, Ly = 6.4, ǫ = 0.03, γ = 50.0ǫ , σ = 2, η ≡ 0, and ν ≡ 1. The right and left boundary conditions are taken to be perio dic. In Fig. 6, the shear rate is relatively modest, with respect t o the surface tension. The particle is stretched, as expected, reaches a critical leng th, and then begins to retract. As it does, it rotates into the center line y = Ly/2, where the flow velocity is zero. In Fig. 7, where the shear rate is half that of the simulation in Fig. 6, a similar response of the particle to the flow is observed. Only here, as expected, the d eformation of the drop is considerably less. https:/www.cambridge.org/core/terms. https://doi.org/10.4208/cicp.171211.130412a Downloaded from https:/www.cambridge.org/core. Cornell University Library, on 11 May 2017 at 05:18:45, subject to the Cambridge Core terms of use, available at C. Collins, J. Shen and S. M. Wise / Commun. Comput. Phys., 13 (2013), pp. 929-957 949 t = 80 t = 40 t = 20 t = 1 Figure 7: A suspended, initially round drop in shear flow. We s how the φ = 0 level sets at four time snap shots. The parameters are M ≡ 1, s=0.001, h=6.4/256, Lx =12.8, Ly =6.4, ǫ =0.03, γ =50.0ǫ , σ =1, η ≡ 0, and ν ≡ 1. Note the shear rate is half that in Fig. 6. The right and left bo undary conditions are taken to be periodic. 5 Concluding remarks In this paper we presented and analyzed a finite difference sch eme for the Cahn-Hilliard- Brinkman system of equations. In particular, we proved that our scheme is uniquely solvable and energy stable, without any conditions on the ti me size s or space step size h. The scheme is first-order accurate in time and second-order a ccurate in space. We presented a nonlinear multigrid method – based on a Vanka smo othing strategy for the Brinkman equation and a now standard multigrid strategy for the Cahn-Hilliard equa- tion [32] – for solving the resulting algebraic equations. W e showed that in some typi- cal cases the convergence of our nonlinear multigrid solver can be near optimal with a suitable smoothing parameter. This is similar to the situat ion observed in [32] for the Cahn-Hilliard-Hele-Shaw equation. This work builds upon our previous work on developing uncond itionally energy sta- ble schemes for the Cahn-Hilliard equation [22, 23], the Cah n-Hilliard-Hele-Shaw equa- tion [9, 32], and others [10, 28–30, 35]. The methods describ ed herein can be immedi- ately applied to the case where the Brinkman equation is repl aced by a time-dependent Stokes/Brinkman equation of the form ∂ tu−∇· [ν (φ )D(u)]+η (φ )u = −∇ p− γφ ∇ µ . (5.1) We plan to extend our scheme for the full Cahn-Hilliard-Navi er-Stokes equations, es- pecially for the situation where the mass densities are so si gnificantly different that the Boussinesq approximation is no longer valid [24]. While we have only considered a first-order scheme in time, it i s also possible to construct second-order (in time) convex-splitting scheme s. For example, a second-order scheme in strong form is as follows: φ k+1 − φ k = s∇· ( ǫ M ( ˜φ k+ 1 2 ) ∇ µ k+ 1 2 − ˜φ k+ 1 2 uk+ 1 2 ) , (5.2) µ k+ 1 2 = 1 2ǫ [( φ k+1 ) 2 + ( φ k ) 2] φ k+ 1 2 − 1 ǫ ˜φ k+ 1 2 − ǫ ∆φ k+ 1 2 , (5.3) −∇· ( ν ( ˜φ k+ 1 2 ) D ( uk+ 1 2 )) +η ( ˜φ k+ 1 2 ) uk+ 1 2 = −∇ pk+ 1 2 − γ ˜φ k+ 1 2 ∇ µ k+ 1 2 , (5.4) https:/www.cambridge.org/core/terms. https://doi.org/10.4208/cicp.171211.130412a Downloaded from https:/www.cambridge.org/core. Cornell University Library, on 11 May 2017 at 05:18:45, subject to the Cambridge Core terms of use, available at 950 C. Collins, J. Shen and S. M. Wise / Commun. Comput. Phys., 13 (2013), pp. 929-957 with ∇· uk+1/2=0, and where φ k+1/2:=(1/2)φ k+1+(1/2)φ k, ˜φ k+1/2:=(3/2)φ k− (1/2)φ k− 1, and φ − 1 := φ 0. This scheme is more difficult to analyze than the preliminary first-order scheme described herein. But, as suggested by our previous w ork [10, 21], we believe that all results established in this paper can be extended to this second-order scheme. Acknowledgments JS gratefully acknowledges support from the NSF grant DMS-09 5066 and AFOSR grant FA9550-11-1-0328, and SMW gratefully acknowledges support from the NSF through the grants DMS-1115390 and DMS-0818030 and funding through NIMBio S at the University of Tennessee. A Finite difference discretization on a staggered grid For simplicity , let us assume that Ω = (0,Lx)× (0,Ly). Here we use the notation and re- sults for cell-centered functions from [32, 35]. The reader is directed to those references for more complete details. We begin with definitions of grid fu nctions and difference op- erators needed for our discretization of two-dimensional s pace. Let Ω = (0,Lx)× (0,Ly), with Lx = m·h and Ly = n·h, where m and n are positive integers and h > 0 is the spa- tial step size. Define pr := (r− 1/2)·h, where r takes on integer and half-integer values. For any positive integer ℓ, define Eℓ = {pr | r = 1/2,···,ℓ+1/2}, Cℓ = {pr | r = 1,···,ℓ}, Cℓ= {pr ·h |r = 0,···,ℓ+1}. Define the function spaces Cm× n = {φ : Cm × Cn → R}, Cm× n = {φ : Cm × Cn → R} , (A.1) Cm× n = {φ : Cm × Cn → R}, Cm× n = {φ : Cm × Cn → R} , (A.2) E ew m× n = {u : Em × Cn → R}, E ns m× n = {v : Cm × En → R} , (A.3) E ew m× n = {u : Em × Cn → R}, E ns m× n = {v : Cm × En → R} , (A.4) Vm× n = { f : Em × En → R} . (A.5) We use the notation φ i,j := φ (pi, pj) for cell-centered functions, those in the spaces Cm× n, Cm× n, Cm× n, or Cm× n. In component form east-west edge-centered functions, those in the spaces E ew m× n or E ew m× n, are identified via ui+1/2,j := u(pi+1/2, pj). In component form north- south edge-centered functions, those in the spaces E ns m× n, or E ns m× n, are identified via ui+1/2,j:= u(pi+1/2, pj). The functions of Vm× n are called vertex-centered functions. In component form vertex-centered functions are identified via fi+1/2,j+1/2 := f (pi+1/2, pj+1/2). We will need the weighted 2D grid inner-products (·∥·), [·∥·]ew, [·∥·]ns that are de- fined in [32, 35]. In addition to these, we will use the 2D grid in ner product ⟨ f ∥g⟩ = 1 4 m ∑ i=1 n ∑ j=1 ( fi+ 1 2 ,j+ 1 2 gi+ 1 2 ,j+ 1 2 + fi+ 1 2 ,j− 1 2 gi+ 1 2 ,j− 1 2 + fi− 1 2 ,j+ 1 2 gi− 1 2 ,j+ 1 2 + fi− 1 2 ,j− 1 2 gi− 1 2 ,j− 1 2 ) , f , g ∈ V ns m× n . (A.6) https:/www.cambridge.org/core/terms. https://doi.org/10.4208/cicp.171211.130412a Downloaded from https:/www.cambridge.org/core. Cornell University Library, on 11 May 2017 at 05:18:45, subject to the Cambridge Core terms of use, available at C. Collins, J. Shen and S. M. Wise / Commun. Comput. Phys., 13 (2013), pp. 929-957 951 We will also need the following one-dimensional inner-prod ucts: ( f⋆,j+ 1 2 ⏐ ⏐ ⏐g⋆ ,j+ 1 2 ) = m ∑ i=1 fi,j+ 1 2 gi,j+ 1 2 , ( fi+ 1 2 ,⋆ ⏐ ⏐ ⏐g i+ 1 2 ,⋆ ) = n ∑ j=1 fi+ 1 2 ,jgi+ 1 2 ,j , (A.7) where the first is defined for f , g ∈ E ns m× n, and the second for f , g ∈ E ew m× n; and [ u⋆,j+ 1 2 ⏐ ⏐ ⏐v⋆ ,j+ 1 2 ] = 1 2 m ∑ i=1 ( ui− 1 2 ,j+ 1 2 vi− 1 2 ,j+ 1 2 +ui+ 1 2 ,j+ 1 2 vi+ 1 2 ,j+ 1 2 ) , (A.8) [ ui+ 1 2 ,⋆ ⏐ ⏐ ⏐v i+ 1 2 ,⋆ ] = 1 2 n ∑ j=1 ( ui+ 1 2 ,j− 1 2 vi+ 1 2 ,j− 1 2 +ui+ 1 2 ,j+ 1 2 vi+ 1 2 ,j+ 1 2 ) . (A.9) which are both defined for u, v ∈ V m× n. See, for example, [35, Section 2.1]. The reader is referred to [32, 35] for the precise definitions o f the edge-to-center dif- ference operators dx :E ew m× n → C m× n and dy :E ns m× n → C m× n; the x− dimension center-to-edge average and difference operators, respectively , Ax, Dx : Cm× n → E ew m× n; the y− dimension center-to-edge average and difference operators, respect ively ,Ay, Dy : Cm× n → E ns m× n; and the standard 2D discrete Laplacian, ∆h : Cm× n → C m× n. In addition to these, we also need some operations involving vertex-centered functions . The center-to-vertex average A : Cm× n → V m× n is defined component-wise as Aφ i+ 1 2 ,j+ 1 2 = 1 4 ( φ i,j +φ i+1,j +φ i,j+1 +φ i+1,j+1 ) , i = 0,···,m+1, j = 0,···,n+1 . (A.10) The edge-to-vertex differences are defined as follows: Dx:E ew m× n→V m× n is defined component- wise as Dxvi+ 1 2 ,j+ 1 2 = 1 h ( vi+1,j+ 1 2 − vi,j+ 1 2 ) , i = 0,···,m+1, j = 0,···,n , (A.11) and Dy : E ns m× n → V m× n is defined component-wise as Dyui+ 1 2 ,j+ 1 2 = 1 h ( vi+ 1 2 ,j+1 − vi+ 1 2 ,j ) , i = 0,···,m+1, j = 0,···,n . (A.12) In this paper we use grid functions satisfying homogeneous Neumann boundary con- ditions. Specifically , we shall say the cell-centered functi on φ ∈ C m× n satisfies homoge- neous Neumann boundary conditions if and only if φ m+1,j = φ m,j, φ 0,j = φ 1,j, j = 1,···,n , (A.13) φ i,n+1 = φ i,n, φ i,0 = φ i,1, i = 0,···,m+1 . (A.14) We use the notation n·∇ hφ = 0 to indicate that φ satisfies (A.13) and (A.14). Now, let u ∈ E ew m× n. We say that u = 0 on the boundary if and only if um+ 1 2 ,j = 0, u 1 2 ,j = 0, j = 1,···,n , (A.15) Ayui+ 1 2 ,n+ 1 2 = 0, Ayui+ 1 2 , 1 2 = 0, i = 0,···,m . (A.16) https:/www.cambridge.org/core/terms. https://doi.org/10.4208/cicp.171211.130412a Downloaded from https:/www.cambridge.org/core. Cornell University Library, on 11 May 2017 at 05:18:45, subject to the Cambridge Core terms of use, available at 952 C. Collins, J. Shen and S. M. Wise / Commun. Comput. Phys., 13 (2013), pp. 929-957 Likewise, let v ∈ E ns m× n. We say that v = 0 on the boundary if and only if vi,n+ 1 2 , = 0, vi, 1 2 = 0, i = 1,···,m , (A.17) Axvm+ 1 2 ,j+ 1 2 = 0, Axv 1 2 ,j+ 1 2 , = 0, j = 0,···,n . (A.18) We will also use combinations of homogeneous Dirichlet and p eriodic boundary condi- tions, or homogeneous Neumann and periodic boundary condit ions in some instances, though we suppress the precise definitions. We will use the grid function norms defined in [32, 35]: for φ ∈ C m× n, 1 ≤ p < ∞, ∥φ ∥p := ( h2 m ∑ i=1 n ∑ j=1 ⏐ ⏐φ i,j ⏐ ⏐ p ) 1/p and ∥φ ∥∞ = max 1≤ i≤ m 1≤ j≤ n ⏐ ⏐φ i,j ⏐ ⏐. (A.19) For any φ ∈ C m× n, we define ∥∇ hφ ∥2 := √ h2 [Dxφ ∥Dxφ ]ew +h2 [ Dyφ D yφ ] ew , (A.20) and we need the following discrete Sobolev norms: ∥·∥0,2 := ∥·∥2, ∥φ ∥1,2 = √ ∥φ ∥2 2 +∥∇ h φ ∥2 2 , ∥φ ∥2,2 = √ ∥φ ∥2 1,2 +∥ ∆hφ ∥2 2 . (A.21) Using the definitions given in this appendix and in [32, 35], we obtain the following summation-by-parts formulae: Proposition A.1 (summation-by-parts). If φ ∈ C m× n ∪C m× n and f ∈ E ew m× n then h2 [Dxφ ∥ f ]ew = − h2 (φ ∥dx f )− h ( Axφ 1 2 ,⋆ ⏐ ⏐ ⏐ f 1 2 ,⋆ ) +h ( Axφ m+ 1 2 ,⋆ ⏐ ⏐ ⏐ f m+ 1 2 ,⋆ ) , (A.22) and if φ ∈ C m× n ∪C m× n and f ∈ E ns m× n then h2 [ Dyφ f ] ns = − h2 ( φ d y f ) − h ( Ayφ ⋆, 1 2 ⏐ ⏐ ⏐ f⋆ , 1 2 ) +h ( Ayφ ⋆,n+ 1 2 ⏐ ⏐ ⏐ f⋆ ,n+ 1 2 ) . (A.23) If f ∈ V m× n and g ∈ E ns m× n then h2 ·[dx f ∥g]ns = − h2 ·⟨ f ∥Dxg⟩− h· [ Axg 1 2 ,⋆ ⏐ ⏐ ⏐ f 1 2 ,⋆ ] +h· [ Axgm+ 1 2 ,⋆ ⏐ ⏐ ⏐ f m+ 1 2 ,⋆ ] , (A.24) and if f ∈ V m× n and g ∈ E ew m× n then h2 · [ dy f g ] ew = − h2 · ⟨ f D yg ⟩ − h· [ Axg⋆, 1 2 ⏐ ⏐ ⏐ f⋆ , 1 2 ] +h· [ Axg⋆,n+ 1 2 ⏐ ⏐ ⏐ f⋆ ,n+ 1 2 ] . https:/www.cambridge.org/core/terms. https://doi.org/10.4208/cicp.171211.130412a Downloaded from https:/www.cambridge.org/core. Cornell University Library, on 11 May 2017 at 05:18:45, subject to the Cambridge Core terms of use, available at C. Collins, J. Shen and S. M. Wise / Commun. Comput. Phys., 13 (2013), pp. 929-957 953 Proposition A.2 (discrete Green’s first identity) . Let φ , ψ ∈ C m× n. Then h2 [Dxφ ∥Dxψ ]ew +h2 [ Dyφ D yψ ] ns =− h2 (φ ∥∆hψ )− h ( Axφ 1 2 ,⋆ ⏐ ⏐ ⏐D xψ 1 2 ,⋆ ) +h ( Axφ m+ 1 2 ,⋆ ⏐ ⏐ ⏐D xψ m+ 1 2 ,⋆ ) − h ( Ayφ ⋆, 1 2 ⏐ ⏐ ⏐D yψ ⋆, 1 2 ) +h ( Ayφ ⋆,n+ 1 2 ⏐ ⏐ ⏐D yψ ⋆,n+ 1 2 ) . (A.25) Proposition A.3 (discrete Green’s second identity) . Let φ , ψ ∈ C m× n. Then h2 (φ ∥∆hψ ) =h2 (∆hφ ∥ψ )+h ( Axφ m+ 1 2 ,⋆ ⏐ ⏐ ⏐D xψ m+ 1 2 ,⋆ ) − h ( Dxφ m+ 1 2 ,⋆ ⏐ ⏐ ⏐A xψ m+ 1 2 ,⋆ ) − h ( Axφ 1 2 ,⋆ ⏐ ⏐ ⏐D xψ 1 2 ,⋆ ) +h ( Dxφ 1 2 ,⋆ ⏐ ⏐ ⏐A xψ 1 2 ,⋆ ) +h ( Ayφ ⋆,n+ 1 2 ⏐ ⏐ ⏐D yψ ⋆,n+ 1 2 ) − h ( Dyφ ⋆,n+ 1 2 ⏐ ⏐ ⏐A yψ ⋆,n+ 1 2 ) − h ( Ayφ ⋆, 1 2 ⏐ ⏐ ⏐D yψ ⋆, 1 2 ) +h ( Dyφ ⋆, 1 2 ⏐ ⏐ ⏐A yψ ⋆, 1 2 ) . (A.26) We remark that these formulae have straightforward extensi ons to three dimensions. B Multigrid solver The nonlinear multigrid solver for our Cahn-Hilliard-Brin kman scheme (2.3)-(2.7) is sim- ilar in many respects to that described for the Cahn-Hilliar d-Hele-Shaw problem in our previous paper [32, Appendix A]. The primary difference is t hat in the present case we decouple the smoothing operator. We first perform a relaxatio n on the Cahn-Hilliard equations (2.3) and (2.4); then we relax the flow equations (2 .5)-(2.7) separately . Specifi- cally , in the proposed smoother, for each grid cell(i, j) we update the unknowns φ k+1 i,j and µ k+1 i,j first using a nonlinear Gauss-Seidel method, similar to what i s described in [32, Ap- pendix A]. Then we update the five variables uk+1 i± 1/2,j, vk+1 i,j± 1/2, and pk+1 i,j using a Vanka- type smoothing strategy [19, 25, 26, 31] with the updated val ues for φ k+1 i,j and µ k+1 i,j . Note that u and v are edge-centered variables and this contributes to the com plication of the method. Here we give the full details of the Vanka smoothing strategy and refer the reader to [32, Appendix A] for the remaining details of the solver. T o simplify the discussion, we drop the time superscript k+1 on the unknowns u, v, p, and µ in (2.5)-(2.7). And, as before, we define the known grid functions ν cc := ν ( φ k ) , ν vc := ν ( Aφ k ) , φ ew := Axφ k , φ ns := Ayφ k , (B.1) and η ew := η (φ ew) , η ns := η (φ ns) , (B.2) https:/www.cambridge.org/core/terms. https://doi.org/10.4208/cicp.171211.130412a Downloaded from https:/www.cambridge.org/core. Cornell University Library, on 11 May 2017 at 05:18:45, subject to the Cambridge Core terms of use, available at 954 C. Collins, J. Shen and S. M. Wise / Commun. Comput. Phys., 13 (2013), pp. 929-957 where we have dropped the superscript k. We write the flow equations (2.5)-(2.7) in the form Nu = Su , Nv = Sv , N p = Sp , (B.3) where Nu := − 2Dx (ν ccdxu)− dy [ ν vc ( Dyu+ Dxv )] +η ewu+ Dx p+γφ ewDxµ , (B.4) Nv := − 2Dy ( ν ccdyv ) − dx [ ν vc ( Dxv+ Dyu )] +η nsv+ Dy p+γφ nsDyµ , (B.5) N p := − dxu− dyv , (B.6) and, in this case, Su = Sv = Sp = 0. The discussion that follows simplifies significantly in the case of constant viscosity . For example, when ν ≡ 1, we have Nu := − Dx (dxu)− dy ( Dyu ) +η ewu+ Dx p+γφ ewDxµ , Nv := − Dy ( dyv ) − dx (Dxv)+η nsv+ Dy p+γφ nsDyµ , upon using the divergence-free condition. We will not pursu e this simplification here any further. In component form, Eqs. (B.4)-(B.4) are written as Nu i+ 1 2 ,j =− 2Dx (ν ccdxu)i+ 1 2 ,j − dy [ ν vc ( Dyu+ Dxv )] i+ 1 2 ,j +η ew i+ 1 2 ,jui+ 1 2 ,j + Dx pi+ 1 2 ,j +γφ ew i+ 1 2 ,jDxµ i+ 1 2 ,j =− 2 h2 [ ν cc i+1,j ( ui+ 3 2 ,j − ui+ 1 2 ,j ) − ν cc i,j ( ui+ 1 2 ,j − ui− 1 2 ,j )] − 1 h2 [ ν vc i+ 1 2 ,j+ 1 2 ( ui+ 1 2 ,j+1 − ui+ 1 2 ,j ) − ν vc i+ 1 2 ,j− 1 2 ( ui+ 1 2 ,j − ui+ 1 2 ,j− 1 )] − 1 h2 [ ν vc i+ 1 2 ,j+ 1 2 ( vi+1,j+ 1 2 − vi,j+ 1 2 ) − ν vc i+ 1 2 ,j− 1 2 ( vi+1,j− 1 2 − vi,j− 1 2 )] +η ew i+ 1 2 ,jui+ 1 2 ,j + 1 h ( pi+1,j − pi,j ) + γ h φ ew i+ 1 2 ,j ( µ i+1,j − µ i,j ) , (B.7) and Nv i,j+ 1 2 =− 2Dy ( ν ccdyv ) i,j+ 1 2 − dx [ ν vc ( Dxv+ Dyu )] i,j+ 1 2 +η ns i,j+ 1 2 vi,j+ 1 2 + Dy pi,j+ 1 2 +γφ ns i,j+ 1 2 Dyµ i,j+ 1 2 =− 2 h2 [ ν cc i,j+1 ( vi,j+ 3 2 − vi,j+ 1 2 ) − ν cc i,j ( vi,j+ 1 2 − vi,j− 1 2 )] − 1 h2 [ ν vc i+ 1 2 ,j+ 1 2 ( vi+1,j+ 1 2 − vi,j+ 1 2 ) − ν vc i− 1 2 ,j+ 1 2 ( vi,j+ 1 2 − vi− 1,j+ 1 2 )] − 1 h2 [ ν vc i+ 1 2 ,j+ 1 2 ( ui+ 1 2 ,j+1 − ui+ 1 2 ,j ) − ν vc i− 1 2 ,j+ 1 2 ( ui− 1 2 ,j+1 − ui− 1 2 ,j )] +η ns i,j+ 1 2 vi,j+ 1 2 + 1 h ( pi,j+1 − pi,j ) + γ h φ ns i,j+ 1 2 ( µ i,j+1 − µ i,j ) . (B.8) https:/www.cambridge.org/core/terms. https://doi.org/10.4208/cicp.171211.130412a Downloaded from https:/www.cambridge.org/core. Cornell University Library, on 11 May 2017 at 05:18:45, subject to the Cambridge Core terms of use, available at C. Collins, J. Shen and S. M. Wise / Commun. Comput. Phys., 13 (2013), pp. 929-957 955 Now define Ru,e :=− 2 h2 [ ν cc i+1,jui+ 3 2 ,j +ν cc i,j ui− 1 2 ,j ] + 1 h pi+1,j + γ h φ ew i+ 1 2 ,j ( µ i+1,j − µ i,j ) − 1 h2 [ ν vc i+ 1 2 ,j+ 1 2 ui+ 1 2 ,j+1 +ν vc i+ 1 2 ,j− 1 2 ui+ 1 2 ,j− 1 ] − 1 h2 [ ν vc i+ 1 2 ,j+ 1 2 ( vi+1,j+ 1 2 − vi,j+ 1 2 ) − ν vc i+ 1 2 ,j− 1 2 ( vi+1,j− 1 2 − vi,j− 1 2 )] , (B.9) Ru,w :=− 2 h2 [ ν cc i,j ui+ 1 2 ,j +ν cc i− 1,jui− 3 2 ,j ] − 1 h pi− 1,j + γ h φ ew i− 1 2 ,j ( µ i,j − µ i− 1,j ) − 1 h2 [ ν vc i− 1 2 ,j+ 1 2 ui− 1 2 ,j+1 +ν vc i− 1 2 ,j− 1 2 ui− 1 2 ,j− 1 ] − 1 h2 [ ν vc i− 1 2 ,j+ 1 2 ( vi,j+ 1 2 − vi− 1,j+ 1 2 ) − ν vc i− 1 2 ,j− 1 2 ( vi,j− 1 2 − vi− 1,j− 1 2 )] , (B.10) Rv,n :=− 2 h2 [ ν cc i,j+1vi,j+ 3 2 +ν cc i,j vi,j− 1 2 ] + 1 h pi,j+1 + γ h φ ns i,j+ 1 2 ( µ i,j+1 − µ i,j ) − 1 h2 [ ν vc i+ 1 2 ,j+ 1 2 vi+1,j+ 1 2 +ν vc i− 1 2 ,j+ 1 2 vi− 1,j+ 1 2 ] − 1 h2 [ ν vc i+ 1 2 ,j+ 1 2 ( ui+ 1 2 ,j+1− ui+ 1 2 ,j ) − ν vc i− 1 2 ,j+ 1 2 ( ui− 1 2 ,j+1 − ui− 1 2 ,j )] , (B.11) Rv,s :=− 2 h2 [ ν cc i,j vi,j+ 1 2 +ν cc i,j− 1vi,j− 3 2 ] − 1 h pi,j− 1 + γ h φ ns i,j− 1 2 ( µ i,j − µ i,j− 1 ) − 1 h2 [ ν vc i+ 1 2 ,j− 1 2 vi+1,j− 1 2 +ν vc i− 1 2 ,j− 1 2 vi− 1,j− 1 2 ] − 1 h2 [ ν vc i+ 1 2 ,j− 1 2 ( ui+ 1 2 ,j − ui+ 1 2 ,j− 1 ) − ν vc i− 1 2 ,j− 1 2 ( ui− 1 2 ,j − ui− 1 2 ,j− 1 )] . (B.12) Furthermore, we define au,e := 2 ( ν cc i+1,j +ν cc i,j ) +ν vc i+ 1 2 ,j+ 1 2 +ν vc i+ 1 2 ,j− 1 2 +η ew i+ 1 2 ,jh2 , (B.13) au,w := 2 ( ν cc i,j +ν cc i− 1,j ) +ν vc i− 1 2 ,j+ 1 2 +ν vc i− 1 2 ,j− 1 2 +η ew i− 1 2 ,jh2 , (B.14) av,n := 2 ( ν cc i,j+1 +ν cc i,j ) +ν vc i+ 1 2 ,j+ 1 2 +ν vc i− 1 2 ,j+ 1 2 +η ns i,j+ 1 2 h2 , (B.15) av,s := 2 ( ν cc i,j +ν cc i,j− 1 ) +ν vc i+ 1 2 ,j− 1 2 +ν vc i− 1 2 ,j− 1 2 +η ns i,j− 1 2 h2 . (B.16) Putting everything together, the five equations Nu i± 1 2 ,j = Su i± 1 2 ,j , Nv i,j± 1 2 = Sv i,j± 1 2 , N p i,j = Sp i,j (B.17) https:/www.cambridge.org/core/terms. https://doi.org/10.4208/cicp.171211.130412a Downloaded from https:/www.cambridge.org/core. Cornell University Library, on 11 May 2017 at 05:18:45, subject to the Cambridge Core terms of use, available at 956 C. Collins, J. Shen and S. M. Wise / Commun. Comput. Phys., 13 (2013), pp. 929-957 are equivalent to the 5 × 5 the matrix equation a u,eh− 2 0 0 0 − 1 h 0 au,wh− 2 0 0 1 h 0 0 av,nh− 2 0 − 1 h 0 0 0 av,sh− 2 1 h − 1 h 1 h − 1 h 1 h 0 u i+ 1 2 ,j ui− 1 2 ,j vi,j+ 1 2 vi,j− 1 2 pi,j = S u i+ 1 2 ,j − Ru,e Su i− 1 2 ,j − Ru,w Sv i,j+ 1 2 − Rv,n Sv i,j− 1 2 − Rv,s Sp i,j . (B.18) The Vanka smoothing strategy requires the solution (invers ion) of the preceding 5 × 5 linear system (B.18), which we represent as Aw = b, for each cell (i, j), 1 ≤ i ≤ m, and 1 ≤ j ≤ n. There is a rather simple formula for the solution of system ( B.18). See, for example, [31]. References [1] A.L. Bertozzi, S. Esedoglu, and A. Gillette. Inpainting of binary images using the Cahn- Hilliard equation. IEEE Trans. Image Proc., 16:285–291, 20 07. [2] H.C. Brinkman. A calculation of the viscous force exerte d by a flowing fluid on a dense swarm of particles. Appl. Sci. Res., AI:27–34, 1949. [3] J.W . Cahn. On spinodal decomposition. Acta Metall., 9:7 95–801, 1961. [4] J.W . Cahn, C.M. Elliott, and A. Novick-Cohen. The Cahn-H illiard equation with a concen- tration dependent mobility: Motion by minus the Laplacian o f the mean curvature. Euro. J. Appl. Math., 7:287–301, 1996. [5] J.W . Cahn and J.E. Hilliard. Free energy of a nonuniform s ystem. I. Interfacial free energy . J. Chem. Phys., 28:258–267, 1958. [6] C.M. Elliott and A.M. Stuart. The global dynamics of disc rete semilinear parabolic equa- tions. SIAM J. Numer. Anal, 30:1622–1663, 1993. [7] D. Eyre. Unconditionally gradient stable time marching the Cahn-Hilliard equation. In J. W . Bullard, R. Kalia, M. Stoneham, and L.Q. Chen, editors, Comp utational and Mathematical Models of Microstructural Evolution, volume 53, pages 1686 –1712, W arrendale, P A, USA, 1998. Materials Research Society . [8] X. Feng. Fully discrete finite element approximations of the Navier-Stokes-Cahn-Hilliard diffuse interface model for two-phase fluid flows. SIAM J. Num er. Anal., 44:1049–1072, 2006. [9] X. Feng and S.M. Wise. Analysis of a Darcy-Cahn-Hilliard diffuse interface model for the Hele-Shaw flow and its fully discrete finite element approxim ation. SIAM J. Numer. Anal., 50(3), 1320V1343, 2012. [10] Z. Hu, S.M. Wise, C. W ang, and J.S. Lowengrub. Stable and efficient finite-difference nonlinear-multigrid schemes for the phase-field crystal eq uation. J. Comput. Phys., 228:5323–5339, 2009. [11] D. Kay and R. W elford. A multigrid finite element solver f or the Cahn-Hilliard equation. J. Comput. Phys., 212:288–304, 2006. [12] D. Kay and R. W elford. Efficient numerical solution of Ca hn-Hilliard-Navier Stokes fluids in 2D. SIAM J. Sci. Comput., 29:2241–2257, 2007. [13] J.S. Kim, K. Kang, and J.S. Lowengrub. Conservative mul tigrid methods for Cahn-Hilliard fluids. J. Comput. Phys., 193:511–543, 2003. https:/www.cambridge.org/core/terms. https://doi.org/10.4208/cicp.171211.130412a Downloaded from https:/www.cambridge.org/core. Cornell University Library, on 11 May 2017 at 05:18:45, subject to the Cambridge Core terms of use, available at C. Collins, J. Shen and S. M. Wise / Commun. Comput. Phys., 13 (2013), pp. 929-957 957 [14] H.G. Lee, J.S Lowengrub, and J. Goodman. Modeling pinch off and reconnection in a Hele- Shaw cell. I. The models and their calibration. Phys. Fluids , 14:492–513, 2002. [15] H.G. Lee, J.S Lowengrub, and J. Goodman. Modeling pinch off and reconnection in a Hele- Shaw cell. II. Analysis and simulation in the nonlinear regi me. Phys. Fluids, 14:514–545, 2002. [16] C. Liu and J. Shen. A phase field model for the mixture of tw o incompressible fluids and its approximation by a Fourier-spectral method. Physica D, 179 :211–228, 2003. [17] J.S. Lowengrub and L. Truskinovsky . Cahn-Hilliard flui ds and topological transitions. Proc. R. Soc. Lond. A, 454:2617–2654, 1998. [18] W . Ngamsaad, J. Y ojina, and W Triampo. Theoretical stud ies of phase-separation kinetics in a Brinkman porous medium. J. Phys. A: Math. Theor., 43:20200 1, 2010. [19] C.W . Oosterlee and F .J. Gaspar. Multigrid relaxation m ethods for systems of saddle point type. Appl. Numer. Math., 58:1933–1950, 2008. [20] K. Pham, H.B. Frieboes, V . Cristini, and J. Lowengrub. P redictions of tumour morphological stability and evaluation against experimental observations. J. R. Soc. Interface, 8:16–29, 2011. [21] J. Shen, C. W ang, X. W ang, and S. Wise. Second-order conv ex splitting schemes for gradient flows with Ehrlich-Schwoebel-type energy: Application to thin film epitaxy . SIAM J. Numer. Anal., 50:105–125, 2012. [22] J. Shen and X. Y ang. Energy stable schemes for Cahn-Hill iard phase-field model of two- phase incompressible flows. Chinese Ann. Math. Series B, 31: 743–758, 2010. [23] J. Shen and X. Y ang. Numerical approximations of Allen- Cahn and Cahn-Hilliard equations. Discrete Cont. Dyn. Sys. A, 28:1669–1691, 2010. [24] J. Shen and X. Y ang. A phase-field model and its numerical approximation for two-phase incompressible flows with different densities and viscosities. SIAM J. Sci. Comput., 32:1159– 1179, 2010. [25] U. Trottenberg, C.W . Oosterlee, and A. Sch ¨ uller. Mult igrid. Academic Press, New Y ork, 2005. [26] S.P . V anka. Block-implicit multigrid solution of Navi er-Stokes equations in primitive vari- ables. J. Comput. Phys., 65:138–158, 1986. [27] B.P . V ollmayr-Lee and A.D. Rutenberg. Fast and accurat e coarsening simulation with an unconditionally stable time step. Phys. Rev . E, 68:066703, 2003. [28] C. W ang, X. W ang, and S. Wise. Unconditionally stable sc hemes for equations of thin film epitaxy . Discrete Cont. Dyn. Sys. A, 28:405–423, 2010. [29] C. W ang and S. Wise. Global smooth solution of modified ph ase field crystal equation. Methods Appl. Anal., 17:191–212, 2010. [30] C. W ang and S. Wise. An energy stable and convergent finit e-difference scheme for the modified phase field crystal equation. SIAM J. Numer. Anal., 4 9:945–969, 2011. [31] P . W esseling. An Introduction to Multigrid Methods. R. T. Edwards, Philadelphia, 2004. [32] S.M. Wise. Unconditionally stable finite difference, n onlinear multigrid simulation of the Cahn-Hilliard-Hele-Shaw system of equations. J. Sci. Comp ut., 44:38–68, 2010. [33] S.M. Wise, J.S. Lowengrub, and V . Cristini. An adaptive algorithm for simulating solid tumor growth using mixture models. Math. Comput. Model., 53:1–20 , 2011. [34] S.M. Wise, J.S. Lowengrub, H.B. Frieboes, and V . Cristi ni. Three-dimensional multispecies nonlinear tumor growth – I model and numerical method. J. The or. Biol., 253:524–543, 2008. [35] S.M. Wise, C. W ang, and J.S. Lowengrub. An energy stable and convergent finite-difference scheme for the phase field crystal equation. SIAM J. Numer. An al., 47:2269–2288, 2009. https:/www.cambridge.org/core/terms. https://doi.org/10.4208/cicp.171211.130412a Downloaded from https:/www.cambridge.org/core. Cornell University Library, on 11 May 2017 at 05:18:45, subject to the Cambridge Core terms of use, available at
采集于
查看校方原文 ↗