EIT Agent
登录
← 校园网页目录

校园网页 · 学校官网

A Highly Efficient and Accurate New Scalar Auxiliary Variable Approach for Gradient Flows | SIAM Journal on Scientific Computing | Vol. 42, No. 4 | Society for Industrial and Applied Mathematics

Copyright © by SIAM. Unauthorized reproduction of this article is prohibited. SIAM J. S \mathrm{C}\mathrm{I}. C \mathrm{O}\mathrm{M}\mathrm{P}\mathrm{U}\mathrm{T}. © 2020 Society for Industrial and Applied Mathematics V ol. 42, No. 4, pp. A2514--A2536 A HIGHL Y EFFICIENT AND ACCURA TE NEW SCALAR AUXILIAR Y V ARIABLE APPROACH FOR GRADIENT FLOWS \ast FUKENG HUANG \dagger , JIE SHEN \dagger , \mathrm{A}\mathrm{N}\mathrm{D}ZHIGUO YANG \dagger Abstract. We present several essential improvements to the powerful scalar auxiliary variable (SA V) approach. Firstly, by using the introduced scalar variable to control both the nonlinear and the explicit linear terms, we are able to reduce the number of linear equations with constant coefficients to be solved at each time step from two to one, so the computational cost of the new SA V approach is essentially half of the original SA V approach while keeping all its other advantages. This technique is also extended to the multiple SA V approach. Secondly, instead of discretizing the dynamical equation for the auxiliary variable, we use a first-order approximation of the energy balance equation, which allows us to construct high-order unconditionally energy-stable SA V schemes with uniform and, more importantly, variable time step sizes, enabling us to construct, for the first time, high-order unconditionally stable adaptive time-stepping backward differentiation formula schemes. Representative numerical examples are provided to demonstrate the improved efficiency and accuracy of the proposed method. Key words. gradient flow, SA V approach, adaptive time-stepping, high-order methods, stability AMS subject classifications. 65N35, 65N22, 65F05, 35J05 DOI. 10.1137/19M1298627 1. Introduction. Dissipative physical systems are ubiquitous in the real world, due to the second law of thermodynamics. It is highly desirable for numerical meth- ods targeted on such systems to preserve the discrete energy dissipation law. As such, many efforts to develop energy-stable numerical methods have been devoted to this longstanding and active research area. These include, but are not limited to, the average vector field method [8, 22], the convex splitting method [4, 5, 12, 13], the sta- bilization method [26, 33], the Lagrange multiplier method [14], and more recently, the invariant energy quadratization method [27, 32, 15] and the scalar auxiliary variable (SA V) method [23, 24, 16]. Among them, the SA V method is a particular powerful tool for the design of unconditionally energy-stable first- and second-order schemes for a large class of gradient flows. The aim of this paper is to present some essential improvements on the highly efficient SA V approach. In order to motivate our improvements, we briefly review below the SA V approach for the general form of gradient flows: \partial \phi \partial t= - \scrG \mu ,(1.1) where \phi is the unknown function, \scrG is a positive operator that gives rise to the dissipative mechanism of the system, e.g., \scrG = \scrI in the L2 gradient flow and \scrG = - \nabla 2 in the H - 1 gradient flow, and \mu is the so-called chemical potential \mu = \delta Etot \delta \phi = \scrL \phi + U (\phi ) (1.2) \ast Submitted to the journal's Methods and Algorithms for Scientific Computing section November 11, 2019; accepted for publication (in revised form) July 6, 2020; published electronically August 27, 2020. https://doi.org/10.1137/19M1298627 F unding: The work of the second author was partially supported by NSF through grant DMS- 2012585 and by AFOSR through grant F A9550-20-1-0309. \dagger Department of Mathematics, Purdue University, West Lafayette, IN 47907 (huang972@ purdue.edu, shen7@purdue.edu, yang1508@purdue.edu). A2514 Downloaded 09/02/20 to 128.210.107.25. Redistribution subject to SIAM license or copyright; see http://www.siam.org/journals/ojsa.php Copyright © by SIAM. Unauthorized reproduction of this article is prohibited. A NEW SA V METHOD FOR GRADIENT FLOWS A2515 with respect to the free energy Etot(\phi ) = 1 2 (\phi ,\scrL \phi ) + E1(\phi ),(1.3) where \scrL is a nonnegative linear operator and E1(\phi ) is a nonlinear functional. For the sake of conciseness, homogeneous Neumann or periodic boundary conditions are assumed throughout the paper such that all boundary terms will vanish when inte- gration by parts is performed. The key for the SA V approach is to introduce a scalar variable r(t) defined by r(t) = \sqrt{} E1[\phi ] + C0 (C0 is chosen such that E1[\phi ] + C0 > 0) and its associated dynamical equation dr dt = 1 2 \sqrt{} E1[\phi ] + C0 \int \Omega U [\phi ] \partial \phi \partial td\Omega , U [\phi ] = \delta E1 \delta \phi .(1.4) Then, a first-order SA V scheme with explicit treatment for all nonlinear terms is as follows: \phi n+1 - \phi n \Delta t = - \scrG \mu n+1,(1.5a) \mu n+1 = \scrL \phi n+1 + rn+1 \sqrt{} E1[\phi n] + C0 U (\phi n),(1.5b) rn+1 - rn \Delta t = 1 2 \sqrt{} E1[\phi n] + C0 \int U (\phi n) \phi n+1 - \phi n \Delta t d\Omega .(1.5c) One can eliminate \mu n+1 and rn+1 from the above coupled linear scheme to obtain a linear equation for \phi only: (I + \Delta t\scrG \scrL )\phi n+1 = \phi n - rn+1\Delta t\scrG \Biggl( U [\phi n]\sqrt{} E1[\phi n] + C0 \Biggr) .(1.6) Setting \phi n+1 = \phi n+1 1 + rn+1\phi n+1 2 , we find that \phi n+1 1 and \phi n+1 2 are solutions of the following two linear equations with constant coefficients: (I + \Delta t\scrG \scrL )\phi n+1 1 = \phi n, (I + \Delta t\scrG \scrL )\phi n+1 2 = - \Delta t\scrG \Biggl( U [\phi n]\sqrt{} E1[\phi n] + C0 \Biggr) .(1.7) Once \phi n+1 1 and \phi n+1 2 are known, we can determine rn+1 explicitly from (1.5c) (see more details in [23, 24, 30]). The above SA V approach enjoys the following remarkable properties: \bullet it requires only the solution of two linear systems with constant coefficients at each time step (efficiency); \bullet the first- and second-order SA V schemes are unconditionally energy stable (stability); \bullet it only requires the nonlinear energy functional E1(\phi ) be bounded from below, so it is applicable to a large class of gradient flows (flexibility). Our aim in this paper is to propose some new essential improvements on the SA V approach to make it even more efficient and flexible in the sense that \bullet it only requires solving one linear system with constant coefficients at each time step; Downloaded 09/02/20 to 128.210.107.25. Redistribution subject to SIAM license or copyright; see http://www.siam.org/journals/ojsa.php Copyright © by SIAM. Unauthorized reproduction of this article is prohibited. A2516 FUKENG HUANG, JIE SHEN, AND ZHIGUO YANG \bullet it does not require the nonlinear energy functional E1(\phi ) be bounded from below and is applicable to more general gradient flows, even to general dissi- pative systems; \bullet and more importantly, it is extendable to higher-order backward differentia- tion formula (BDF) type schemes with unconditional stability and amenable to higher-order adaptive time-stepping. The rest of the paper is organized as follows. In section 2, we describe the construction of the new SA V scheme for gradient flows in a general form. In section 3, we construct the higher-order unconditionally energy-stable scheme. In section 4, adaptive time-stepping strategy for our unconditionally energy-stable schemes will be studied. In section 5, we provide ample numerical examples to demonstrate the performance of our proposed method, and comparisons with the original SA V method will be reported. Section 6 concludes the discussions with some closing remarks. 2. A new SA V energy-stable scheme. The SA V approach requires solving two linear equations at each time step. However, we observe that the two equations for \phi n+1 1 and \phi n+1 2 in (1.7) are different only on the right-hand side. This motivates us to employ the auxiliary variable to control not only the nonlinear term U (\phi n) but also the explicit term \phi n, i.e., replace the temporal derivative in (1.5a) by \phi n+1 - rn+1 \surd E1[\phi n]+C0 \phi n \Delta t . Consequently, this gives rise to the counterpart of (1.6): (I + \Delta t\scrG \scrL )\phi n+1 = rn+1 \Biggl( \phi n \sqrt{} E1[\phi n] + C0 - \Delta t\scrG \Biggl( U [\phi n]\sqrt{} E1[\phi n] + C0 \Biggr) \Biggr) ,(2.1) which requires only the solution of the single equation (I + \Delta t\scrG \scrL ) \=\phi n+1 = \phi n \sqrt{} E1[\phi n] + C0 - \Delta t\scrG \Biggl( U [\phi n]\sqrt{} E1[\phi n] + C0 \Biggr) (2.2) and then to determine \phi n+1 and rn+1 from \phi n+1 = rn+1 \=\phi n+1 and (1.5c). However, such a naive treatment on the temporal derivative term could not lead to even first-order convergence due to the fact that \phi n+1 - rn+1 \surd E1[\phi n]+C0 \phi n \Delta t is no longer a first-order approximation of \partial \phi \partial t \bigm| \bigm| n+1 . Specifically, assuming that rn+1 is approximated such that rn+1 \surd E1[\phi n]+C0 = 1 + \scrO (\Delta t), we have \phi n+1 - \xi n+1\phi n \Delta t = \phi n+1 - \phi n \Delta t + 1 - \xi n+1 \Delta t \phi n = \partial \phi \partial t \bigm| \bigm| \bigm| n+1 + \scrO (\phi n),(2.3) where \xi n+1 := rn+1 \surd E1[\phi n]+C0 . Actually, in order to achieve first-order approximation of \partial \phi \partial t \bigm| \bigm| n+1 using the novel formula (2.3), \xi n+1 needs to be approximated such that \xi n+1 = 1 + \scrO (\Delta tk), k \geq 2. Downloaded 09/02/20 to 128.210.107.25. Redistribution subject to SIAM license or copyright; see http://www.siam.org/journals/ojsa.php Copyright © by SIAM. Unauthorized reproduction of this article is prohibited. A NEW SA V METHOD FOR GRADIENT FLOWS A2517 This inspires us to replace the controlling factor \xi n+1 = rn+1 \surd E1[\phi n]+C0 by \theta + (1 - \theta )\xi n+1,(2.4) where \theta is a given constant such that \theta = 1 + \scrO (\Delta t). In this way, it is direct to observe that \phi n+1 - [\theta + (1 - \theta )\xi n+1]\phi n \Delta t = \phi n+1 - \phi n \Delta t + (1 - \theta )(1 - \xi n+1) \Delta t \phi n = \partial \phi \partial t \bigm| \bigm| \bigm| n+1 + \scrO (\Delta t). (2.5) More generally, for any \theta = 1 + \scrO (\Delta tm) and \xi n+1 = 1 + \scrO (\Delta tn), we have \theta + (1 - \theta )\xi n+1 = 1 + \scrO (\Delta tn+m).(2.6) This observation makes it possible to achieve high-order convergence of \phi n+1 with lower-order approximation for \xi n+1. The novel approximation (2.5) brings about significant issues in devising energy- stable schemes. In order to overcome this obstacle, we adopt some ideas from the recently proposed generalized positive auxiliary variable method in [28]. Specifically, in [28] it is suggested to (i) use a shifted total energy E[\phi ] = Etot[\phi ] + C0 instead of E1[\phi ] in (1.3) to define the SA V; (ii) use the energy balance equation of the gradi- ent flow (1.1) instead of (1.4) to construct the dynamical equation of the auxiliary variable, i.e., we adopt the following equation as the dynamical equation: dE[\phi ] dt = \int \Omega \delta E \delta \phi \partial \phi \partial td\Omega = - \biggl( \delta E \delta \phi , \scrG \delta E \delta \phi \biggr) = - (\mu ,\scrG \mu ) \leq 0; (2.7) and (iii) use a delicate treatment of the dynamical equation to preserve the positive- ness of the auxiliary variable in the discrete level. With the help of these intuitive thoughts, we are ready to construct new unconditionally energy-stable schemes, which require solving only one linear equation with constant coefficients at each time step. We define a shifted total energy by E[\phi ] = Etot[\phi ] + C0 = 1 2 (\phi ,\scrL \phi ) + E1(\phi ) + C0,(2.8) where C0 is a chosen scalar such that E[\phi ] > 0 for all \phi . Note that for a physically meaningful system, the total energy Etot is bounded from below; thus such a C0 is always available. In the spirit of the recent work [28], we introduce an SA V R(t) := E[\phi ], which satisfies the following dynamical equation: dR(t) dt = dE[\phi ] dt = - (\mu ,\scrG \mu ).(2.9) Define \xi (t) = R(t) E(t) and note that \xi (t) \equiv 1 at the continuous level, we can reformulate the system (1.1)--(1.2) into the following equivalent form: \partial \phi \partial t= - \scrG \mu ,(2.10a) \mu = \scrL \phi + [\theta + (1 - \theta )\xi ]U [\phi ],(2.10b) dR dt = - \xi (\mu ,\scrG \mu ),(2.10c) Downloaded 09/02/20 to 128.210.107.25. Redistribution subject to SIAM license or copyright; see http://www.siam.org/journals/ojsa.php Copyright © by SIAM. Unauthorized reproduction of this article is prohibited. A2518 FUKENG HUANG, JIE SHEN, AND ZHIGUO YANG where \theta (t) can be an arbitrary function at the continuous level. Our new first-order scheme for (2.10) is as follows: \phi n+1 - [\theta n + (1 - \theta n)\xi n+1]\phi n \Delta t = - \scrG \mu n+1,(2.11a) \mu n+1 = \scrL \phi n+1 + [\theta n + (1 - \theta n)\xi n+1]U (\phi n),(2.11b) \xi n+1 = Rn+1 E[ \=\phi n+1] ,(2.11c) Rn+1 - Rn \Delta t = - \xi n+1\bigl( \=\mu n+1, \scrG \=\mu n+1\bigr) ,(2.11d) where \theta n, \=\phi n+1 and \=\mu n+1 are to be specified below, together with the initial conditions \phi 0 = \phi 0(\bfitx , t), R 0 = E[\phi 0].(2.12) Combining (2.11a) and (2.11b) leads to the following linear equation: \bigl( I + \Delta t\scrG \scrL \bigr) \phi n+1 = \bigl( \theta n + (1 - \theta n)\xi n+1\bigr) \Bigl( \phi n - \Delta t\scrG \bigl( U [\phi n] \bigr) \Bigr) .(2.13) Setting \phi n+1 = \bigl( \theta n + (1 - \theta n)\xi n+1\bigr) \=\phi n+1(2.14) in the above, we find that \=\phi n+1 is determined by \bigl( I + \Delta t\scrG \scrL \bigr) \=\phi n+1 = \phi n - \Delta t\scrG \bigl( U [\phi n] \bigr) .(2.15) Once \=\phi n+1 is known, we define \=\mu n+1 = \scrL \=\phi n+1 + U ( \=\phi n+1).(2.16) Note that \=\phi n+1 can be viewed as an approximation of \phi (tn+1) by a direct semi- implicit method. Thus, \=\phi n+1 and \=\mu n+1 are first-order approximations of \phi n+1 and \mu n+1. Inserting (2.11c) into (2.11d) leads to \xi n+1 = Rn E[ \=\phi n+1] + \Delta t(\=\mu n+1, \scrG \=\mu n+1) .(2.17) It remains to specify \theta n which should be chosen such that \theta n = 1 + \scrO (\Delta t) for first- order consistency. While theoretically, \theta n = 1 + \scrO (\Delta t) suffices to have the desired order of accuracy and leads to stable schemes, our numerical results indicate that \theta n = \xi n, which obviously satisfies the order requirement, leads to more accurate and robust results. To summarize, the scheme (2.11a)--(2.11d) can be implemented as follows: \bullet solve \=\phi n+1 from (2.15); \bullet set \=\mu n+1 = \scrL \=\phi n+1 + U ( \=\phi n+1) and compute \xi n+1 from (2.17); \bullet update \phi n+1 = \bigl( \theta n + (1 - \theta n)\xi n+1\bigr) \=\phi n+1 and go to the next time step. We observe that the above procedure only requires solving one linear equation with constant coefficients as in a standard semi-implicit scheme. As for the stability, we have the following result. Theorem 2.1. Given Rn \geq 0, we have Rn+1, \xi n+1 \geq 0, and the scheme (2.11a)-- (2.11d) is unconditionally energy stable in the sense that Rn+1 - Rn = - \Delta t\xi n+1\bigl( \=\mu n+1, \scrG \=\mu n+1\bigr) \leq 0.(2.18) Proof. In light of (2.7), (\=\mu n+1, \scrG \=\mu n+1) \geq 0. Given that Rn \geq 0, since E[ \=\phi n+1] > 0, we derive from (2.17) that \xi n+1 \geq 0. We then conclude from (2.11d). Downloaded 09/02/20 to 128.210.107.25. Redistribution subject to SIAM license or copyright; see http://www.siam.org/journals/ojsa.php Copyright © by SIAM. Unauthorized reproduction of this article is prohibited. A NEW SA V METHOD FOR GRADIENT FLOWS A2519 3. Extension to higher order. The proposed method can be extended to construct high-order unconditionally energy-stable schemes when coupled with k-step BDF (BDF k). The essential idea is that we can achieve overall kth-order accuracy for \phi by using just a first-order approximation for \xi if we choose \theta n such that \theta n + (1 - \theta n)\xi n+1 is a ( k + 1)th-order approximation to 1, thanks to (2.5). Actually, for any \theta n = 1 + \scrO (\Delta tp) and \xi n+1 = 1 + \scrO (\Delta tq), we have that \theta n + (1 - \theta n)\xi n+1 = 1 + \scrO (\Delta tp+q).(3.1) 3.1. A recurrence formula for \bfittheta \bfitn . As discussed in the first-order case, the proposed scheme tends to be more accurate and robust when \theta n is computed from \xi n. In what follows, we provide a recurrence formula to effectively construct \theta n from \xi n such that \theta n + (1 - \theta n)\xi n+1 is sufficient to achieve kth-order convergent scheme for \phi at tn+1. Given \xi n and letting l be an integer to be specified, we define \theta n by the following recursion: \gamma 0 = \xi n + (1 - \xi n)\xi n, \gamma 1 = \gamma 0 + (1 - \gamma 0)\gamma 0, \gamma 2 = \gamma 1 + (1 - \gamma 1)\gamma 1, . . . \theta n = \gamma l = \gamma l - 1 + (1 - \gamma l - 1)\gamma l - 1. (3.2) One can easily check that the following result holds. Lemma 3.1. If \xi n and \xi n+1 are first-order approximations to 1, i.e., \xi n, \xi n+1 = 1 + \scrO (\Delta t), then \theta n + (1 - \theta n)\xi n+1 = 1 + \scrO \Bigl( \Delta t1+2l+1\Bigr) ,(3.3) where \theta n is obtained by (3.2). Thus, to achieve an overall kth-order scheme for \phi , it suffices to choose the smallest nonnegative integer l satisfying l \geq ln k ln 2 - 1.(3.4) For example, for k = 2, 3, 4, l can be chosen as 0 , 1, 1, respectively. 3.2. A \bfitk th-order energy-stable scheme. Combining the idea from the pre- vious section for the first-order scheme, the above recurrence relation for constructing \theta n, and the classical BDF k, we arrive at a new kth-order BDF k scheme: \alpha \phi n+1 - [\theta n + (1 - \theta n)\xi n+1] \^\phi n \Delta t = - \scrG \mu n+1,(3.5a) \mu n+1 = \scrL \phi n+1 + [\theta n + (1 - \theta n)\xi n+1]U \bigl( \phi \ast ,n+1\bigr) ,(3.5b) \xi n+1 = Rn+1 E[ \=\phi n+1] ,(3.5c) Rn+1 - Rn \Delta t = - \xi n+1\bigl( \=\mu n+1, \scrG \=\mu n+1\bigr) ,(3.5d) where \theta n is obtained from (3.2). Here, \alpha ,\^\phi n, and \phi \ast ,n+1 in (3.5) are defined as follows: Downloaded 09/02/20 to 128.210.107.25. Redistribution subject to SIAM license or copyright; see http://www.siam.org/journals/ojsa.php Copyright © by SIAM. Unauthorized reproduction of this article is prohibited. A2520 FUKENG HUANG, JIE SHEN, AND ZHIGUO YANG BDF2: \alpha = 3 2 , \^\phi n = 2\phi n - 1 2 \phi n - 1, \phi \ast ,n+1 = 2\phi n - \phi n - 1; (3.6) BDF3: \alpha = 11 6 , \^\phi n = 3\phi n - 3 2 \phi n - 1 + 1 3 \phi n - 2, \phi \ast ,n+1 = 3\phi n - 3\phi n - 1 + \phi n - 2; (3.7) BDF4: \alpha = 25 12 , \^\phi n = 4\phi n - 3\phi n - 1 + 4 3 \phi n - 2 - 1 4 \phi n - 3,(3.8) \phi \ast ,n+1 = 4\phi n - 6\phi n - 1 + 4\phi n - 2 - \phi n - 3. We can also use BDF5 and BDF6, but for the sake of brevity, we omit the detailed formula here. Note that the solution algorithm for the new BDF k scheme is the same as the first- order scheme presented in section 2. In each time step, it requires only the solution of one linear equation with constant coefficients, making the proposed method highly efficient. The new BDF k scheme also enjoys the same stability as the first-order scheme, namely, we can prove the following result using exactly the same procedure as in section 2. Theorem 3.2. Given Rn \geq 0, we have Rn+1, \xi n+1 \geq 0, and the scheme (3.5a)-- (3.5d) for any k \geq 2 is unconditionally energy stable in the sense that Rn+1 - Rn = - \Delta t\xi n+1\bigl( \=\mu n+1, \scrG \=\mu n+1\bigr) \leq 0.(3.9) Remark 3.1. Note that the stability is built into the scheme in (3.5d), independent of the actual scheme used in (3.5a) and (3.5b). In principle, we can use any linear multistep schemes in place of (3.5a) and (3.5b). 4. Adaptive time-stepping strategy for SA V BDF \bfitk schemes. To achieve satisfactory numerical results in real simulations efficiently, we are supposed to use small time steps when the energy and solution of gradient flows vary drastically while using relatively larger time steps when they vary slightly. However, for conditionally stable schemes, the allowable time step is often dictated by the stability constraint, not by accuracy. One salient feature of an unconditionally energy-stable scheme is that it allows us to employ an appropriate adaptive time-stepping strategy [9, 17, 21, 31]. Note that time-adaptivity strategy has been applied to first-order and second-order Crank--Nicolson SA V schemes in [11, 19, 24]. There are essential difficulties in applying adaptive time-stepping to other schemes, particularly other second- or higher-order schemes. The main reason is that one does not have robust unconditionally stable second- or higher-order schemes with variable step sizes. In a recent work [9], the authors developed a stabilized second-order BDF scheme with variable step sizes that is stable if \tau n+1 \leq \gamma \ast \tau n, where \{ \tau k\} are the time step sizes and \gamma \ast \approx 1.5 for optimal convergence. To the best of our knowledge, there is no unconditionally stable third- or higher-order BDF scheme with variable step sizes. However, as stated in Remark 3.1, we can replace (3.5a) and (3.5b) by any linear multistep schemes without affecting the stability provided by (3.9). In particular, we can replace them by the BDF k schemes (along with kth-order extrapolation formula for nonlinear terms) with variable step sizes which we shall derive in the appendix. It is crucial to figure out a good indicator for adaptive time-stepping schemes, which suggests that we adjust the time step at reasonable moments. Some observa- tions from abundant numerical experiments are as follows: Downloaded 09/02/20 to 128.210.107.25. Redistribution subject to SIAM license or copyright; see http://www.siam.org/journals/ojsa.php Copyright © by SIAM. Unauthorized reproduction of this article is prohibited. A NEW SA V METHOD FOR GRADIENT FLOWS A2521 (i) to achieve an accurate result, \xi n+1 has to be a good approximation to 1; (ii) \xi n+1 starts to deviate from 1 when oscillation or inaccuracy tends to happen, while adopting a smaller time step can avoid such a situation. These observations suggest to us that | 1 - \xi n+1| is a suitable indicator for the time- adaptivity procedure. Roughly speaking, we should decrease the time step whenever | 1 - \xi n+1| is bigger than a given tolerance while we can maintain a relatively large time step whenever | 1 - \xi n+1| is small enough. Based on these observations, we provide an adaptive time-stepping algorithm for the proposed BDF k SA V scheme. Given a default safety coefficient \rho , a reference tolerance tol, the minimum time steps \tau \mathrm{m}\mathrm{i}\mathrm{n}and the maximum time steps \tau \mathrm{m}\mathrm{a}\mathrm{x}, and the adaptivity speed tunable constant r, we can update the time step size by the following formula: Adp(e, \tau ) = \rho \Bigl( tol e \Bigr) r \tau .(4.1) The corresponding algorithm is summarized as follows. Algorithm 1. Time step adaptive procedure. Given: the previous time step \tau n. step 1. compute \xi n from previous step with time step \tau n; step 2. calculate en = | 1 - \xi n| ; step 3. if en > tol, then recalculate time step \tau n \leftarrow max\{ \tau \mathrm{m}\mathrm{i}\mathrm{n}, min\{ Adp(en, \tau n), \tau \mathrm{m}\mathrm{a}\mathrm{x}\} \} ; goto step 1 step 4. else update time step \tau n+1 \leftarrow max\{ \tau \mathrm{m}\mathrm{i}\mathrm{n}, min\{ Adp(en, \tau n), \tau \mathrm{m}\mathrm{a}\mathrm{x}\} \} ; step 5. endif Remark 4.1. It is suggested in [34] that when Rn has an obvious deviation from E[\phi n], a reset of Rn = E[\phi n] can be prescribed to improve the long time accuracy of the numerical scheme. This strategy could also be incorporated into the time- adaptivity algorithm. Specifically, Rn is reset to E[\phi n] when \tau n+1/\tau n is less than a threshold value. The proposed time-stepping strategy will be applied to the simulations of Allen-- Cahn and Cahn--Hilliard equations in the next section to show its advantages to achieve high accuracy with low computational cost. 5. Representative numerical examples. In this section, we provide ample numerical results to validate the accuracy and efficiency of our proposed method. Comparisons with the original SA V approach [23, 24] will be reported, and the effi- ciency of the time-adaptivity technique for high-order schemes will be addressed. Let us consider two typical types of gradient flow, i.e., the Allen--Cahn equation [1] and the Cahn--Hilliard equation [6, 7]. Given the free energy Etot[\phi ] = \int \Omega \lambda 2 | \nabla \phi | 2 + E1[\phi ]d\Omega , E 1[\phi ] = \lambda 4\eta 2 (1 - \phi 2)2,(5.1) the chemical potential in (1.2) takes the form \mu = \delta Etot \delta \phi = - \lambda \nabla 2 + U [\phi ], U [\phi ] = \lambda \eta 2 \phi (\phi 2 - 1).(5.2) Downloaded 09/02/20 to 128.210.107.25. Redistribution subject to SIAM license or copyright; see http://www.siam.org/journals/ojsa.php Copyright © by SIAM. Unauthorized reproduction of this article is prohibited. A2522 FUKENG HUANG, JIE SHEN, AND ZHIGUO YANG The Allen--Cahn equation corresponds to the L2 gradient flow with \scrG = m0I, while the Cahn--Hilliard equation corresponds to the H - 1 gradient flow with \scrG = - m0\nabla 2 in (1.1). Remark 5.1. Although we consider only the Allen--Cahn and the Cahn--Hillard equations in the forthcoming numerical experiments, it is worthwhile to point out that our proposed approach is directly applicable to gradient flow problems where the nonlinear part of the free energy contains spatial derivatives, e.g., the molecular beam epitaxy model [11]. Example 1 (convergence rate of the new SA V/BDF k scheme for the Allen--Cahn and Cahn--Hilliard equations). Consider the Allen--Cahn and Cahn--Hilliard equations in the computational domain \Omega = [0, 2] \times [0, 2] with a contrived exact solution \phi (\bfitx , t) = cos( \pi x) cos(\pi y) sin(t)/(1 + 10t2) (5.3) and, correspondingly, the external source term f (\bfitx , t) satisfying \phi t = - \scrG \mu + f. The Fourier spectral method [25] for spatial discretization is employed throughout this section. Nx and Ny denote the number of Fourier collocation points along the x and y axis, respectively. In the simulations, we set ( Nx, Ny) = (40 , 40) with which the spatial discretization error is negligible compared with time discretization error. Other parameters are \lambda = 0 .01, m0 = 0 .01, \eta = 0 .05, and C0 = 0 . The algorithm for the new SA V/BDFk (k = 1, 2, 3, 4) is employed to numerically integrate the governing equations in time from t = 0 .1 to t = 1 .1. The L2 errors of \phi at t = 1 .1 are plotted, respectively, in Figure 5.1(a)--(b) for the Allen--Cahn equation and Figure 5.2(a)--(b) for the Cahn--Hilliard equation, where we can observe the expected convergence rate of the field variable \phi for all cases. Recall that R(t) = E[\phi ] in the continuous level, and the evolution equation of R(t) stems from this equation. The discretization (3.5d) of R(t) leads to a first-order approximation of E[\phi ]. Consequently, \xi n+1 = Rn+1 E[ \=\phi n+1] is a first-order approximation of 1. We depict the L\infty error of \xi n+1 to 1 for the Allen--Cahn and Cahn--Hillard equations in Figure 5.1(c)--(d) and Figure 5.2(c)--(d), respectively. As expected, it can be observed that \xi n+1 converges to 1 with a first-order convergence rate for all cases. Moreover, this observation implies that \xi n+1 can serve as an indicator of the accuracy of the simulations. If the difference of \xi n+1 from 1 is small, then the simulation tends to be more accurate. Otherwise, when \xi n+1 deviates significantly from 1, the simulation is no longer accurate. Example 2 (spinodal decomposition for the Allen--Cahn equation). Consider the spinodal decomposition of a homogeneous mixture into two coexisting phases governed by the Allen--Cahn equation as another test of the algorithms developed herein. The computational domain is [0 , 2] \times [0, 2], and the initial phase field is given by uniformly distributed data between [ - 0.5, 0.5]. We adopt ( Nx, Ny) = (512 , 512), \lambda = 1 , m 0 = 10 - 4, \eta = 0 .005, and C0 = 0 in the forthcoming simulations. The new SA V/BDF2 scheme is employed to numerically integrate this problem. In Figure 5.3, we depict a temporal sequence of snapshots of the interfaces formed between the two phases. Figure 5.4 shows the time histories of the total energy Etot[\phi ] obtained by the current method and the original SA V method using various time steps \Delta t = 10 - 1, 10 - 2, 10 - 3. A reference solution obtained with \Delta t = 10 - 4 using the original SA V scheme is also included for comparison. It can be observed in Figure 5.4(a) that all the energy history curves decrease dramatically at the beginning and level off gradually, indicating the stability of the proposed method. In Figure 5.4(b), Downloaded 09/02/20 to 128.210.107.25. Redistribution subject to SIAM license or copyright; see http://www.siam.org/journals/ojsa.php Copyright © by SIAM. Unauthorized reproduction of this article is prohibited. A NEW SA V METHOD FOR GRADIENT FLOWS A2523 10-5 10-4 10-3 10-2 10-1 ∆t 10-10 10-8 10-6 10-4 10-2 Errors L2-φ: SAV-BDF1 L2-φ: SAV-BDF2 reference: 1st-order reference: 2nd-order (a) BDF1 and BDF2 vs. errors of \phi 10-4 10-3 10-2 10-1 ∆t 10-14 10-12 10-10 10-8 10-6 10-4 10-2 Errors L2-φ: SAV-BDF3 L2-φ: SAV-BDF4 reference: 3rd-order reference: 4th-order (b) BDF3 and BDF4 vs. errors of \phi 10-5 10-4 10-3 10-2 10-1 ∆t 10-7 10-6 10-5 10-4 10-3 10-2 Errors L∞-|1-ξ|: SAV-BDF1 L∞-|1-ξ|: SAV-BDF2 reference: 1st-order (c) BDF1 and BDF2 vs. errors of \xi 10-4 10-3 10-2 10-1 ∆t 10-5 10-4 10-3 Errors L∞-|1-ξ|: SAV-BDF3 L∞-|1-ξ|: SAV-BDF4 reference: 1st-order (d) BDF3 and BDF4 vs. errors of \xi Fig. 5.1 . (Example 1.) Temporal convergence test for the Allen--Cahn equation using the new SA V/BDFk (k = 1, 2, 3, 4). (a)--(b) L2 errors of \phi as a function of \Delta t; (c)--(d) L\infty errors of \xi as a function of \Delta t. we zoom in the energy history curves at the region t \in [0, 0.1]. It shows that the results obtained by the current method and the original SA V method overlap with each other for the same time step size. This implies that the proposed method provides almost the same accuracy as the original SA V method, but with halved computational cost. It also indicates that to achieve acceptable accuracy, the step size should be chosen no bigger than \Delta t = 10 - 3. Example 3 (application of adaptive time-stepping strategy to Example 2). Next, we use the spinodal decomposition governed by the Allen--Cahn equation to demon- strate the performance of the time adaptivity. The setup is the same as in Example 2. The proposed SA V/BDF k schemes with variable time steps using l = 0 , 1, 1 in the recurrence relation (3.2) for k = 2, 3, 4, respectively, are employed to numerically integrate this problem. We choose \rho = 0 .9, tol = 10 - 3, and r = 0 .25 in (4.1). The minimum time step is taken as \tau \mathrm{m}\mathrm{i}\mathrm{n}= 10 - 6, while the maximum time step is take as \tau \mathrm{m}\mathrm{a}\mathrm{x}= 10 - 3/k, k = 2 , 3, 4, respectively, such that when \tau \mathrm{m}\mathrm{a}\mathrm{x}is employed, the errors for BDF k schemes ( k = 2 , 3, 4) are of the same level. The initial time step is taken as \tau \mathrm{m}\mathrm{i}\mathrm{n}. In Figure 5.5(a), we depict the energy history curves obtained by BDF k (k = 2, 3, 4) schemes for long time simulations, and it can be seen that the curves essentially overlap with each other. Correspondingly, the snapshots of the interfaces between Downloaded 09/02/20 to 128.210.107.25. Redistribution subject to SIAM license or copyright; see http://www.siam.org/journals/ojsa.php Copyright © by SIAM. Unauthorized reproduction of this article is prohibited. A2524 FUKENG HUANG, JIE SHEN, AND ZHIGUO YANG 10-5 10-4 10-3 10-2 10-1 ∆t 10-10 10-8 10-6 10-4 10-2 Errors L2-φ: SAV-BDF1 L2-φ: SAV-BDF2 reference: 1st-order reference: 2nd-order (a) BDF1 and BDF2 vs. errors of \phi 10-3 10-2 10-1 ∆t 10-14 10-12 10-10 10-8 10-6 10-4 10-2 Errors L2-φ: SAV-BDF3 L2-φ: SAV-BDF4 reference: 3rd-order reference: 4th-order (b) BDF3 and BDF4 vs. errors of \phi 10-5 10-4 10-3 10-2 10-1 ∆t 10-7 10-6 10-5 10-4 10-3 Errors L∞-|1-ξ|: SAV-BDF1 L∞-|1-ξ|: SAV-BDF2 reference: 1st-order (c) BDF1 and BDF2 vs. errors of \xi 10-3 10-2 10-1 ∆t 10-5 10-4 10-3 Errors L∞-|1-ξ|: SAV-BDF3 L∞-|1-ξ|: SAV-BDF4 reference: 1st-order (d) BDF3 and BDF4 vs. errors of \xi Fig. 5.2 . (Example 1.) Temporal convergence test for the Cahn--Hilliard equation using the new SA V/BDFk (k = 1, 2, 3, 4). (a)--(b) L2 errors of \phi as a function of \Delta t; (c)--(d) L\infty errors of \xi as a function of \Delta t. these two phases at t = 300 are compared in Figure 5.5(b)--(d), and no noticeable difference can be observed. In order to demonstrate the efficiency of the time-adaptivity technique, we plot in Figures 5.6, 5.7, and 5.8 the time history curves of the time steps and time step ratios between two successive steps in the time window t \in (0, 3), where rapid changes of the phase field variable occur. It can be seen that the time steps gradually increase for all these three solvers, and the average time steps in these period are 1 .6 \times 10 - 2, 2.0 \times 10 - 2, and 2 .1 \times 10 - 2. Note that in Example 2, for the BDF2 scheme with a fixed time step, it takes at least \Delta t = 10 - 3 to obtain reasonable numerical results. We also record the total wall time of this simulation computed from t = 0 to t = 300 with the BDF2 scheme using a fixed time step \Delta t = 10 - 3, which is 19970.2 seconds. While equipped with the time-adaptivity technique, the total wall time for the BDF2-- BDF4 schemes reduces drastically to 929.0 seconds, 318.9 seconds, and 429.6 seconds, respectively. The speedups in these simulations are noticeable, compared with the solver without time adaptivity. In [9], it is pointed out that the variable step BDF2 scheme is stable if \tau n+1 \leq \gamma \ast \tau n and \gamma \ast \approx 1.5 for optimal convergence, while with the current method, we are not restricted by this constraint, and the maximum time step ratios are observed to be as large as 22 , 41, 41 for k = 2, 3, 4. Downloaded 09/02/20 to 128.210.107.25. Redistribution subject to SIAM license or copyright; see http://www.siam.org/journals/ojsa.php Copyright © by SIAM. Unauthorized reproduction of this article is prohibited. A NEW SA V METHOD FOR GRADIENT FLOWS A2525 (a) t = 0 (b) t = 10 (c) t = 20 (d) t = 30 (e) t = 40 (f) t = 50 (g) t = 70 (h) t = 100 Fig. 5.3 . (Example 2.) Spinodal decomposition governed by the Allen--Cahn equation. The simulation is obtained with \Delta t = 10 - 3. Example 4 (merging of an array of circles for the Cahn--Hilliard equation). We consider, as another test problem, the merging of a rectangular array of 9 \times 9 circles governed by the Cahn--Hilliard equation. The computational domain is [0 , 2] \times [0, 2], and the initial phase field is given by \phi 0(\bfitx , t) = 80 - 9\sum i=1 9\sum j=1 tanh \bigl( \sqrt{} (x - xi)2 + (y - yj)2 - R0 \bigr) \surd 2\eta ,(5.4) where R0 = 0 .085, x i = 0 .2 \times i, and yj = 0 .2 \times j for i, j = 1 , 2, . . . ,9. We adopt (Nx, Ny) = (512 , 512), \lambda = 1, m 0 = 10 - 6, \eta = 0.01, and C0 = 0 in the simulations. In Figure 5.9, we plot a temporal sequence of snapshots of the interfaces formed between the two phases using the BDF3 scheme with variable time steps using \rho = 0.95, tol = 10 - 3, r = 0.57, \tau \mathrm{m}\mathrm{i}\mathrm{n}= 10 - 6, and \tau \mathrm{m}\mathrm{a}\mathrm{x}= 10 - 1 in (4.1). In order to investigate the influence of the parameter tol to the accuracy and efficiency of the new SA V/BDF k (k = 2 , 3, 4) schemes with time adaptivity, we de- pict in Figure 5.10 the L2 errors of \phi as a function of the average of the time step sizes. Downloaded 09/02/20 to 128.210.107.25. Redistribution subject to SIAM license or copyright; see http://www.siam.org/journals/ojsa.php Copyright © by SIAM. Unauthorized reproduction of this article is prohibited. A2526 FUKENG HUANG, JIE SHEN, AND ZHIGUO YANG 0 20 40 60 80 100 Time 0.1 1 3 5 7 9 11Energy ×104 ∆t=10-1 - current method ∆t=10-2 - current method ∆t=10-3 - current method ∆t=10-1 - original SAV method ∆t=10-2 - original SAV method ∆t=10-3 - original SAV method reference (a) Energy shown in (0 , 100) 0 0.02 0.04 0.06 0.08 0.1 Time 4 6 8 10 12Energy ×104 ∆t=10-1 - current method ∆t=10-2 - current method ∆t=10-3 - current method ∆t=10-1 - original SAV method ∆t=10-2 - original SAV method ∆t=10-3 - original SAV method reference (b) Energy zoomed in (0 , 0.1) Fig. 5.4 . (Example 2.) Time histories of Etot[\phi ] for spinodal decomposition governed by the Allen--Cahn equation obtained using the current method and the original SA V method with \Delta t = 10 - 1, 10 - 2, 10 - 3. 0 50 100 150 200 250 300 Time 103 104 105 Energy Current method-BDF2 with adaptivity Current method-BDF3 with adaptivity Current method-BDF4 with adaptivity (a) Energy vs. time (b) BDF2-adaptivity (c) BDF3-adaptivity (d) BDF4-adaptivity Fig. 5.5 . (Example 3.) Spinoidal decomposition governed by the Allen--Cahn equation. Simula- tion results are obtained by the proposed SA V/BDFk (k = 2, 3, 4) scheme with adaptive time-stepping technique, and the snapshots (b)--(d) of the interfaces between these two phases are depicted at t = 300. Downloaded 09/02/20 to 128.210.107.25. Redistribution subject to SIAM license or copyright; see http://www.siam.org/journals/ojsa.php Copyright © by SIAM. Unauthorized reproduction of this article is prohibited. A NEW SA V METHOD FOR GRADIENT FLOWS A2527 0 0.5 1 1.5 2 2.5 3 Time 10-6 10-5 10-4 10-3 10-2 10-1 ∆t Current method-BDF2 with adaptivity average ∆t=1.60× 10-2 (a) History of \Delta t at (0 , 3) 10-6 0.0001 0.01 1 3 Time 0 5 10 15 20 25Time step ratio Current method-BDF2 with adaptivity (b) History of \tau n+1/\tau n Fig. 5.6 . (Example 3.) Time histories of time steps and time step ratios in the time window t \in (0, 3) obtained by the BDF 2 scheme with adaptive time-stepping technique. The average \Delta t = 1.60 \times 10 - 2. 0 0.5 1 1.5 2 2.5 3 Time 10-5 10-4 10-3 10-2 10-1 ∆t Current method-BDF3 with adaptivity average ∆t=2.0× 10-2 (a) History of \Delta t at (0 , 3) 0.0001 0.01 1 3 Time 0 5 10 15 20 25 30 35 40 45Time step ratio Current method-BDF3 with adaptivity (b) History of \tau n+1/\tau n Fig. 5.7 . (Example 3.) Time histories of time steps and time step ratios obtained by the BDF 3 scheme with adaptive time-stepping technique. The average \Delta t = 2.0 \times 10 - 2. 0 0.5 1 1.5 2 2.5 3 Time 10-5 10-4 10-3 10-2 10-1 100 ∆t Current method-BDF4 with adaptivity average ∆t=2.1× 10-2 (a) History of \Delta t at (0 , 3) 0.0001 0.01 1 3 Time 0 5 10 15 20 25 30 35 40 45Time step ratio Current method-BDF4 with adaptivity (b) History of \tau n+1/\tau n Fig. 5.8 . (Example 3.) Time histories of time steps and time step ratios obtained by the BDF 4 scheme with adaptive time-stepping technique. The average \Delta t = 2.1 \times 10 - 2. Downloaded 09/02/20 to 128.210.107.25. Redistribution subject to SIAM license or copyright; see http://www.siam.org/journals/ojsa.php Copyright © by SIAM. Unauthorized reproduction of this article is prohibited. A2528 FUKENG HUANG, JIE SHEN, AND ZHIGUO YANG (a) t = 0 (b) t = 1 (c) t = 5 (d) t = 10 (e) t = 20 (f) t = 30 (g) t = 40 (h) t = 50 Fig. 5.9 . (Example 4.) Merging of an array of circles governed by the Cahn--Hilliard equation. Simulations are obtained with the proposed SA V/BDF 3 schemes with time-adaptivity technique. These errors are obtained through comparing the numerical solutions with a reference solution computed by the new SA V/BDF2 scheme with a fixed small \Delta t = 10 - 5 at t = 1. It can be seen that a better accuracy is achieved when we adopt a smaller tol. Figure 5.11 is a demonstration of the stability of the proposed scheme. The time histories of the modified energy R(t) obtained by large time step sizes \Delta t = 2 , 5 are depicted. At these large time step sizes, we can no longer expect the results to be accurate. But it can be observed that the modified energy decays and remains positive for long time simulations. In Figure 5.12, we depict a comparison of the time histories of \xi n+1 obtained by the new BDF2 schemes with \theta n = 1 - (\Delta t)2 and \theta n = \xi n + (1 - \xi n)\xi n (see the recurrence relation (3.2)). As discussed before, the difference between \xi n+1 and the unit value can be used to indicate the accuracy of the computation. Thus, this comparison shows the influence of these two different choices of \theta n on the performance of the proposed scheme. It can be observed in Figure 5.12(a) that when \Delta t = 10 - 3 is used, \xi n+1 obtained by both choices is close to 1 and the history curves of \xi n+1 Downloaded 09/02/20 to 128.210.107.25. Redistribution subject to SIAM license or copyright; see http://www.siam.org/journals/ojsa.php Copyright © by SIAM. Unauthorized reproduction of this article is prohibited. A NEW SA V METHOD FOR GRADIENT FLOWS A2529 4.4 4.45 4.5 4.55 4.6 4.65 4.7 4.75 4.8 4.85 4.9 ∆tave ×10-3 10-4 10-3 10-2 L2-errors of φ tol=0.1 tol=0.01 tol=0.001 (a) BDF2 scheme with different tol 1.2 1.25 1.3 1.35 1.4 1.45 1.5 ∆tave ×10-3 10-3 10-2 L2-errors of φ tol=0.1 tol=0.01 tol=0.001 (b) BDF3 scheme with different tol 6 6.1 6.2 6.3 6.4 6.5 6.6 6.7 6.8 6.9 7 ∆tave ×10-4 10-4 10-3 10-2 L2-errors of φ tol=0.1 tol=0.01tol=0.001 (c) BDF4 scheme with different tol Fig. 5.10 . (Example 4.) L2 errors of \phi as a function of the average of \Delta t obtained by (a) the BDF2 scheme, (b) the BDF 3 scheme, and (c) the BDF 4 scheme, respectively. The time-adaptivity technique is employed with tol = 10 - 1, 10 - 2, 10 - 3. The parameters (r, \rho ) in (4.1) are set to be (0.75, 0.85), (0.57, 0.95), (0.7, 0.85) for the BDF 2--BDF4 schemes, respectively. 0 2 04 06 08 0 1 0 0 Time 10-6 10-4 10-2 100 102 104 Modified Energy ∆t=2 ∆t=5 (a) BDF2 0 2 04 06 08 0 1 0 0 Time 10-15 10-10 10-5 100 105 Modified Energy ∆t=2 ∆t=5 (b) BDF3 0 2 04 06 08 0 1 0 0 Time 10-20 10-15 10-10 10-5 100 105 Modified Energy ∆t=2 ∆t=5 (c) BDF4 Fig. 5.11 . (Example 4.) Time histories of the modified energy R(t) computed by (a) the BDF 2 scheme, (b) the BDF 3 scheme, and (c) the BDF 4 scheme, using large time step sizes \Delta t = 2, 5. Downloaded 09/02/20 to 128.210.107.25. Redistribution subject to SIAM license or copyright; see http://www.siam.org/journals/ojsa.php Copyright © by SIAM. Unauthorized reproduction of this article is prohibited. A2530 FUKENG HUANG, JIE SHEN, AND ZHIGUO YANG 0 0.5 1 1.5 2 2.5 3 Time 1 1.00025 1.0005 ξ scheme with θn=1-∆t2 scheme with θn=ξn+(1-ξn)ξn (a) History of \xi n+1 with \Delta t = 10 - 3 0 0.5 1 1.5 2 2.5 3 Time 0.4 0.5 0.6 0.7 0.8 0.9 1 ξ scheme with θn=1-∆t2 scheme with θn=ξn+(1-ξn)ξn (b) History of \xi n+1 with \Delta t = 0.006 Fig. 5.12 . (Example 4.) A comparison of two different choices of \theta n to the performance of the new BDF 2 schemes. The time histories of \xi computed by the scheme with \theta n = 1 - (\Delta t)2 and the one with \theta n = \xi n + (1 - \xi n)\xi n (see the recurrence relation (3.2)) obtained with (a) \Delta t = 10 - 3 and (b) \Delta t = 0.006. overlap with each other, while when a relatively larger \Delta t = 0 .006 in Figure 5.12(b) is employed, \xi n+1 obtained by the scheme with a constant \theta n deviates more from 1, indicating a larger numerical error, compared with the one obtained by the scheme with \theta n = \xi n + (1 - \xi n)\xi n. Example 5 (an improved multiple SA V method for one-component Bose--Einstein condensates). We consider the ground state solution of one-component Bose--Einstein condensates in two dimensions [2, 3, 34] as an example to show how our current method can reduce the number of linear equations to be solved in each time step from three to two, compared with the classical multiple SA V (MSA V) [10, 34] approach. Like [34], we consider the penalized energy E(\phi ) = 1 2 (\phi ,\scrL \phi ) + 1 2 \int \Omega F (| \phi | )2)d\Omega +1 4\varepsilon \biggl( \int \Omega | \phi | 2d\Omega - 1 \biggr) 2 .(5.5) Here, F (\phi ) = \beta 2 \phi 2, \scrL = ( - 1 2 \nabla 2 + V (x, y))\phi with V (x, y) \geq 0, and \varepsilon \ll 1. Corre- spondingly, the governing equation for this gradient flow problem takes the form \partial \phi \partial t= - \delta E \delta \phi = - \scrL \phi - F \prime (| \phi | 2)\phi - 1 \varepsilon (\| \phi \| 2 - 1)\phi (5.6) and is subject to the constraints \int \Omega | \phi (\bfitx , t)| 2d\Omega = 1,(5.7a) lim | x| \rightarrow \infty \phi (\bfitx , t) = 0 .(5.7b) In our new MSA V approach, we introduce two SA Vs: R1(t) = E1(\phi ), R 2(t) = E2(\phi ),(5.8) where E1 = 1 2 (\phi ,\scrL \phi ) + 1 2 \int \Omega F (| \phi | )2d\Omega , E 2 = 1 4\varepsilon \biggl( \int \Omega | \phi | 2d\Omega - 1 \biggr) 2 .(5.9) Downloaded 09/02/20 to 128.210.107.25. Redistribution subject to SIAM license or copyright; see http://www.siam.org/journals/ojsa.php Copyright © by SIAM. Unauthorized reproduction of this article is prohibited. A NEW SA V METHOD FOR GRADIENT FLOWS A2531 With the same spirit to improve the single SA V approach in section 2, we employ one of the introduced auxiliary variables to control not only the nonlinear term, but also the explicit linear term, and consequently, we are only required to solve two linear equations at each time step. The first-order new MSA V scheme can be written as \phi n+1 - [\theta n 1 + (1 - \theta n 1 )\xi n+1 1 ]\phi n \Delta t = - \mu n+1,(5.10a) \mu n+1 = \scrL \phi n+1 + [\theta n 1 + (1 - \theta n 1 )\xi n+1 1 ]U1(\phi n) + [\theta n 2 + (1 - \theta n 2 )\xi n+1 2 ]U2(\phi n),(5.10b) \xi n+1 1 = Rn+1 1 E1[ \=\phi n+1] , \xi n+1 2 = Rn+1 2 E2[ \=\phi n+1] ,(5.10c) Rn+1 1 - Rn 1 \Delta t = - Rn+1 1 + Rn+1 2 E1[ \=\phi n+1] + E2[ \=\phi n+1] \bigl( \scrL \=\phi n+1 + U1( \=\phi n+1), \=\mu n+1\bigr) ,(5.10d) Rn+1 2 - Rn 2 \Delta t = - Rn+1 1 + Rn+1 2 E1[ \=\phi n+1] + E2[ \=\phi n+1] \bigl( U2( \=\phi n+1), \=\mu n+1\bigr) ,(5.10e) where \=\mu n+1 = \scrL \=\phi n+1 + U1( \=\phi n+1) + U2( \=\phi n+1), \theta i = 1 + \scrO (\Delta t) for i = 1 , 2, \=\phi n+1 is defined as in the single SA V case, and U1(\phi ) = F \prime (| \phi | 2)\phi , U2(\phi ) = 1 \varepsilon (\| \phi \| 2 - 1)\phi .(5.11) The initial condition is chosen as \phi 0(x, y) = (\gamma x\gamma y)1/4 \pi 1/2 e - (\gamma xx2+\gamma yy2)/2(5.12) with two different potential functions: Case 1. A harmonic oscillator potential V (x, y) = 1 2 \bigl( \gamma 2 xx2 + \gamma 2 yy2\bigr) .(5.13) Case 2. A harmonic oscillator potential and a potential of a stirrer corresponding to a far-blue detuned Gaussian laser beam V (x, y) = 1 2 \bigl( \gamma 2 xx2 + \gamma 2 yy2\bigr) + \omega 0e - \delta ((x - r0)2+y2).(5.14) The parameters are chosen as \gamma x = 1, \gamma y = 4, and \beta = 200 in Case 1 and \gamma x = 1, \gamma y = 1, \omega 0 = 4, \delta = r0 = 1, and \beta = 200 in Case 2. We then solve Case 1 by spectral- Galerkin method on \Omega 1 = [ - 8, 8] \times [ - 4, 4] and Case 2 on \Omega 2 = [ - 8, 8] \times [ - 8, 8]. In both cases, we choose ( Nx, Ny) = (40 , 40), \varepsilon = 10 - 4, time steps \Delta t = 10 - 4 and impose the homogeneous Dirichlet boundary condition. We plot the ground state solutions of both cases in Figure 5.13 and compare the chemical potential and the energy of the ground states with the results obtained by the original MSA V method in [34] and by the time-splitting sine-spectral (TSSP) method in [3] in Tables 1 and 2, where we denote x\mathrm{r}\mathrm{m}\mathrm{s}= \| x\phi \| L2(\Omega ), y \mathrm{r}\mathrm{m}\mathrm{s}= \| y\phi \| L2(\Omega ),(5.15) and \mu \beta (\phi ) = \int \Omega \biggl( 1 2 | \nabla \phi (x)| 2 + V (x)| \phi (x)| 2 + \beta | \phi (x)| 4 \biggr) d\Omega = E\beta (\phi ) + \int \Omega \beta 2 | \phi (x)| 4d\Omega . (5.16) Downloaded 09/02/20 to 128.210.107.25. Redistribution subject to SIAM license or copyright; see http://www.siam.org/journals/ojsa.php Copyright © by SIAM. Unauthorized reproduction of this article is prohibited. A2532 FUKENG HUANG, JIE SHEN, AND ZHIGUO YANG 0 4 10 2 5 0 y x 0-2 -5-4 -6 -10 0.05 0.1 (a) Case 1 10 0 -10 5 -5 y 0 x 0 -55 -1010 0.02 0.04 (b) Case 2 Fig. 5.13 . Ground state solutions of one-component Bose--Einstein condensates. Table 1 Case 1: \gamma x = 1, \gamma y = 4, and \beta = 200. Case 1 of Bose--Einstein condensates Scheme xrms yrms E\beta \mu \beta TSSP 2.2734 0.6074 11.1563 16.3377 MSA V 2.2812 0.6096 11.1560 16.3002 New MSA V 2.2710 0.6064 11.1621 16.2514 Table 2 Case 2: \gamma x = 1, \gamma y = 1, \omega 0 = 4, \delta = r0 = 1, and \beta = 200. Case 2 of Bose--Einstein condensates Scheme xrms yrms E\beta \mu \beta TSSP 1.6951 1.7144 5.8507 8.3269 MSA V 1.6978 1.7169 5.8506 8.3189 New MSA V 1.6933 1.7124 5.8455 8.3202 We observe from Tables 1 and 2 that the results by our new SA V schemes are consistent with the results obtained by using the original SA V and TSSP methods. Remark 5.2. Some remarks are in order: 1. As with the single SA V approach mentioned in section 2, one can easily prove the scheme (5.10) is unconditionally energy stable in the sense that Rn 1 + Rn 2 \geq 0 for every n and (Rn+1 1 + Rn+1 2 ) - (Rn 1 + Rn 2 ) = - \Delta t Rn+1 1 + Rn+1 2 E1[ \=\phi n+1] + E2[ \=\phi n+1] \bigl( \=\mu n+1, \=\mu n+1\bigr) \leq 0. (5.17) Downloaded 09/02/20 to 128.210.107.25. Redistribution subject to SIAM license or copyright; see http://www.siam.org/journals/ojsa.php Copyright © by SIAM. Unauthorized reproduction of this article is prohibited. A NEW SA V METHOD FOR GRADIENT FLOWS A2533 2. The new MSA V scheme (5.10) only requires solving two instead of three linear equations, compared with the original MSA V scheme in [34]. In general, if we introduce K auxiliary variables, our new MSA V scheme requires only the solution of K linear equations, while the original SA V scheme requires us to solve K + 1 linear equations. Hence, the new MSA V scheme is more efficient. 3. We can construct higher-order unconditionally energy-stable MSA V schemes based on the approach presented in section 3. 6. Concluding remarks. We presented in this paper several essential improve- ments over the original SA V approach, making our new SA V approach even more efficient, flexible, and amenable to higher order. More precisely, our new SA V ap- proach enjoys the following additional advantages: 1. For the case with single SA V, our new method only requires solving one linear equation with constant coefficients, reducing half of the computational cost of the original SA V approach. In other words, the computational cost of the new SA V approach, being unconditionally energy stable, is essentially the same as that of the semi-implicit approach which is only conditionally stable. Furthermore, the new approach does not require the nonlinear part of the free energy to be bounded from below, making it more flexible than the original SA V approach. 2. While the original SA V approach only leads to first- and second-order un- conditionally stable BDF type schemes, the new SA V approach allows us to construct higher-order unconditionally energy-stable schemes with any mul- tistep schemes. In particular, we are able to construct, for the first time, unconditionally energy-stable higher-order time adaptive schemes based on the BDF k scheme with variable step sizes. 3. For the cases where K SA Vs are needed, our new method requires solving K linear equations with constant coefficients, as opposed to K + 1 linear equations by the original MSA V approach. The SA V method is not limited to the realm of gradient flow. The idea of in- troducing an SA V has been extended to many nongradient flow type problems, e.g., Navier--Stokes equation [18, 20], two phase flows [29], chemo-repulsion model [28], etc. Although we only focus on gradient flow problems in the current paper, the proposed method can be in principle extended to general dissipative systems. We will explore this issue in our future work. Appendix A. BDF for variable time step sizes. Given a successive of variable time steps \tau n+1 = tn+1 - tn, \tau n = tn - tn - 1, \tau n - 1 = tn - 1 - tn - 2, \tau n - 2 = tn - 2 - tn - 3, . . . , (A.1) the corresponding \alpha ,\^\phi n, and \phi \ast ,n+1 in (3.5) for BDF k scheme with kth-order extrap- olation can be derived by Taylor expansion. More precisely, let us denote x1 = - \tau n+1, x2 = - \tau n+1 - \tau n, x3 = - \tau n+1 - \tau n - \tau n - 1, x4 = - \tau n+1 - \tau n - \tau n - 1 - \tau n - 2, . . . . (A.2) Then, for k = 2, 3, 4, the formulae are given below. Downloaded 09/02/20 to 128.210.107.25. Redistribution subject to SIAM license or copyright; see http://www.siam.org/journals/ojsa.php Copyright © by SIAM. Unauthorized reproduction of this article is prohibited. A2534 FUKENG HUANG, JIE SHEN, AND ZHIGUO YANG BDF2: \alpha = \gamma - 1, \^\phi n = \gamma - 1(a\phi n + b\phi n - 1), \phi \ast ,n+1 = A\phi n + B\phi n - 1,(A.3) where \gamma = x2 x1 + x2 , a = - x2 2 x2 1 - x2 2 , b = x2 1 x2 1 - x2 2 ,(A.4) A = - x2 x1 - x2 , B = x1 x1 - x2 . BDF3: \alpha = \gamma - 1, \^\phi n = \gamma - 1 \bigl( a\phi n + b\phi n - 1 + c\phi n - 2\bigr) , \phi \ast ,n+1 = A\phi n + B\phi n - 1 + C\phi n - 2, (A.5) where \gamma = x2 x3 x1x2 + x1x3 + x2x3 , a = x2 2 x2 3 (x1 - x2)(x1 - x3)(x1x2 + x1x3 + x2x3) , b = - x2 1 x2 3 (x1 - x2)(x2 - x3)(x1x2 + x1x3 + x2x3) , c = x2 1 x2 2 (x1 - x3)(x2 - x3)(x1x2 + x1x3 + x2x3) , (A.6) and A = x2 x3 (x1 - x2)(x1 - x3) , B = - x1 x3 (x1 - x2)(x2 - x3) , C = x1 x2 (x1 - x3)(x2 - x3) . (A.7) BDF4: \alpha = \gamma - 1, \^\phi n = \gamma - 1\bigl( a\phi n + b\phi n - 1 + c\phi n - 2 + d\phi n - 3\bigr) ,(A.8) \phi \ast ,n+1 = A\phi n + B\phi n - 1 + C\phi n - 2 + D\phi n - 3, where \gamma = x2 x3 x4 x1x2x3 + x1x2x4 + x1x3x4 + x2x3x4 , a = - x2 2 x2 3 x2 4 (x1 - x2)(x1 - x3)(x1 - x4)(x1x2x3 + x1x2x4 + x1x3x4 + x2x3x4) , b = x2 1 x2 3 x2 4 (x1 - x2)(x2 - x3)(x2 - x4)(x1x2x3 + x1x2x4 + x1x3x4 + x2x3x4) , c = - x2 1 x2 2 x2 4 (x1 - x3)(x2 - x3)(x3 - x4)(x1x2x3 + x1x2x4 + x1x3x4 + x2x3x4) , d = x2 1 x2 2 x2 3 (x1 - x4)(x2 - x4)(x3 - x4)(x1x2x3 + x1x2x4 + x1x3x4 + x2x3x4) , (A.9) and Downloaded 09/02/20 to 128.210.107.25. Redistribution subject to SIAM license or copyright; see http://www.siam.org/journals/ojsa.php Copyright © by SIAM. Unauthorized reproduction of this article is prohibited. A NEW SA V METHOD FOR GRADIENT FLOWS A2535 A = - x2 x3 x4 (x1 - x2)(x1 - x3)(x1 - x4) , B = x1 x3 x4 (x1 - x2)(x2 - x3)(x2 - x4) , C = - x1 x2 x4 (x1 - x3)(x2 - x3)(x3 - x4) , D = x1 x2 x3 (x1 - x4)(x2 - x4)(x3 - x4) . (A.10) The formulae for higher-order BDF k (k \geq 5) with variable step sizes can also be derived similarly. We omit the detail here for brevity. REFERENCES [1] S.M. Allen and J.W. Cahn , A microscopic theory for antiphase boundary motion and its application to antiphase domain coarsening , Acta Metallurgica, 27 (1979), pp. 1085--1095. [2] M.H. Anderson, J.R. Ensher, M.R. Matthews, C.E. Wieman, and E.A. Cornell , Ob- servation of Bose-Einstein condensation in a dilute atomic vapor , Science, 269 (1995), pp. 198--201. [3] W. Bao and Q. Du , Computing the ground state solution of Bose--Einstein condensates by a normalized gradient flow , SIAM J. Sci. Comput., 25 (2004), pp. 1674--1697. [4] J.W. Barrett and J.F. Blowey , Finite element approximation of a model for phase sepa- ration of a multi-component alloy with non-smooth free energy , Numer. Math., 77 (1997), pp. 1--34. [5] J.W. Barrett and J.F. Blowey , Finite element approximation of a model for phase separa- tion of a multi-component alloy with a concentration-dependent mobility matrix , IMA J. Numer. Anal., 18 (1998), pp. 287--328. [6] J.W. Cahn and J.E. Hilliard. , Free energy of a nonuniform system. I. Interfacial free energy , J. Chem. Phys., 28 (1958), pp. 258--267. [7] J.W. Cahn and J.E. Hilliard , Free energy of a nonuniform system. III. Nucleation in a two-component incompressible fluid , J. Chem. Phys., 31 (1959), pp. 688--699. [8] E. Celledoni, V. Grimm, R.I. McLachlan, D.I. McLaren, D. O'Neale, B. Owren, and G.R.W. Quispel , Preserving energy resp. dissipation in numerical PDEs using the ``Av- erage Vector Field"" method, J. Comput. Phys., 231 (2012), pp. 6770--6789. [9] W. Chen, X. W ang, Y. Yan, and Z. Zhang , A second order BDF numerical scheme with variable steps for the Cahn--Hilliard equation , SIAM J. Numer. Anal., 57 (2019), pp. 495--525. [10] Q. Cheng and J. Shen , Multiple scalar auxiliary variable (MSA V) approach and its application to the phase-field vesicle membrane model , SIAM J. Sci. Comput., 40 (2018), pp. A3982-- A4006. [11] Q. Cheng, J. Shen, and X.F. Yang , Highly efficient and accurate numerical schemes for the epitaxial thin film growth models by using the SA V approach , J. Sci. Comput., 78 (2019), pp. 1467--1487. [12] C.M. Elliott and A.M. Stuart , The global dynamics of discrete semilinear parabolic equa- tions, SIAM J. Numer. Anal., 30 (1993), pp. 1622--1663. [13] D.J. Eyre , Unconditionally gradient stable time marching the Cahn-Hilliard equation , in Com- putational and Mathematical Models of Microstructural Evolution (San Francisco, CA, 1998), Warrendale, PA, 1998, pp. 39--46. [14] F. Guillen-Gonzalez and G. Tierra , On linear schemes for a Cahn-Hilliard diffuse interface model, J. Comput. Phys., 234 (2013), pp. 140--171. [15] Y. Gong, J. Zhao, and Q. W ang , Arbitrarily high-order unconditionally energy stable schemes for thermodynamically consistent gradient flow models , SIAM J. Sci. Comput., 42 (2020), pp. 135--156. [16] Y. Gong, J. Zhao, and Q. W ang , Arbitrarily high-order unconditionally energy stable SA V schemes for gradient flow models , Comput. Phys. Commun., 249 (2020), pp. 107033. [17] Y. He, Y. Liu, and T. Tang , On large time-stepping methods for the Cahn-Hilliard equation , Appl. Numer. Math., 57 (2006), pp. 616--628. [18] X.L. Li and J. Shen , Error Analysis of the SA V-MAC Scheme for the Navier-Stokes Equations , e-print, arXiv:1909.05131, 2019. [19] X.L. Li, J. Shen, and H.X. Rui , Stability and error analysis of a second-order SA V scheme with block-centered finite differences for gradient flows , Math. Comp., 88 (2019), pp. 2047--2068. [20] L.L Lin, Z.G. Yang, and S.C. Dong , Numerical approximation of incompressible Navier- Stokes equations based on an auxiliary energy variable , J. Comput. Phys., 388 (2019), pp. 1--22. Downloaded 09/02/20 to 128.210.107.25. Redistribution subject to SIAM license or copyright; see http://www.siam.org/journals/ojsa.php Copyright © by SIAM. Unauthorized reproduction of this article is prohibited. A2536 FUKENG HUANG, JIE SHEN, AND ZHIGUO YANG [21] F. Lou, T. Tang, and H. Xie , Parameter-free time adaptivity based on energy evolution for the Cahn-Hilliard equation , Commun. Comput. Phys., 19 (2016), pp. 1542--1563. [22] G.R.W. Quispel and D.I. McLaren , A new class of energy-preserving numerical integration methods, J. Phys. A, 41 (2008), 045206. [23] J. Shen, J. Xu, and J. Yang , The scalar auxiliary variable (SA V) approach for gradient flows , J. Comput. Phys., 353 (2018), pp. 407--416. [24] J. Shen, J. Xu, and J. Yang , A new class of efficient and robust energy stable schemes , SIAM Rev., 61 (2019), pp. 474--506. [25] J. Shen, T. Tang, and L.L. W ang , Spectral Methods: Algorithms, Analysis and Applications , Springer, Berlin, 2011. [26] J. Shen and X.F. Yang , Numerical approximations of Allen-Cahn and Cahn-Hilliard equa- tions, Discrete Contin. Dyn. Syst., 28 (2010), pp. 1669--1691. [27] X.F. Yang , Linear, first and second-order, unconditionally energy stable numerical schemes for the phase field model of homopolymer blends , J. Comput. Phys., 327 (2016), pp. 294--316. [28] Z.G. Yang and S.C. Dong , A roadmap for discretely energy-stable schemes for dissipative systems based on a generalized auxiliary variable with guaranteed positivity , J. Comput. Phys., 404 (2020), 109121. [29] Z.G. Yang and S.C. Dong , An unconditionally energy-stable scheme based on an implicit aux- iliary energy variable for incompressible two-phase flows with different densities involving only precomputable coefficient matrices , J. Comput. Phys., 393 (2019), pp. 229--257. [30] Z.G. Yang, L.L Lin, and S.C. Dong , A family of second-order energy-stable schemes for Cahn-Hilliard type equations , J. Comput. Phys., 383 (2019), pp. 24--54. [31] Z. Zhang and Z. Qiao , An adaptive time-stepping strategy for the Cahn-Hilliard equation , Commun. Comput. Phys., 11 (2012), pp. 1261--1278. [32] J. Zhao, Q. W ang, and X.F. Yang , Numerical approximations for a phase field dendritic crystal growth model based on the invariant energy quadratization approach , Internat. J. Numer. Methods Engrg., 110 (2017), pp. 279--300. [33] J.Z. Zhu, L.Q. Chen, J. Shen, and V. Tikare , Finite element approximation of a model for phase separation of a multi-component alloy with a concentration-dependent mobility matrix, Phys. Rev. E, 60 (1999), pp. 35--64. [34] Q.Q. Zhuang and J. Shen , Efficient SA V approach for imaginary time gradient flows with applications to one-and multi-component Bose-Einstein condensates , J. Comput. Phys., 396 (2019), pp. 72--88. Downloaded 09/02/20 to 128.210.107.25. Redistribution subject to SIAM license or copyright; see http://www.siam.org/journals/ojsa.php

采集于

查看校方原文 ↗