betaFeedback

WorksMathematics

Energy-rate equidistribution for adaptive SSAV–BDF2 integration of gradient flows

Abstract

We develop an adaptive time-stepping strategy for scalar auxiliary variable (SAV) schemes combined with variable-step BDF2 discretization for gradient flows. The strategy selects step sizes based on the instantaneous energy dissipation rate and enforces monotonicity of a computable symmetric energy through a step rejection mechanism. We show that the step-size rules used in practice correspond to equidistributing a monitor function along the energy curve, connecting energy-adaptive time stepping to the classical theory of r-adaptive mesh methods. The monitor g=∣E˙∣g = |\dot{E}| is asymptotically optimal as it minimises the leading-order maximum symmetric-energy discrepancy for a given number of steps. A combined monitor that switches to g=∣E˙∣g = \sqrt{|\dot{E}|} near equilibrium caps step growth without degrading this error bound. The arclength parameter ββ used in prior work is shown to be the ratio of the largest permitted step to the energy-error tolerance. The controller is paired with the SSAV–BDF2 discretization. Accepted steps satisfy monotonicity of the symmetric energy, from which we deduce a bound on the physical energy that is uniform in the number of steps, sup⁡nE(un)≤E(u0)+τ1+O(Δtmax⁡2)\sup_n E(u^n) \le E(u^{0}) + τ_1 + O(Δt_{\max}^2), and the scheme achieves second-order global accuracy under standard step-ratio restrictions. Numerical experiments on Cahn–Hilliard, Ohta–Kawasaki, Phase–Field Crystal, and functionalized Cahn–Hilliard models confirm the theory and demonstrate the method's efficiency.

Introduction

Gradient flows of free-energy functionals model many pattern-forming systems in materials science, fluid mechanics, and biology. Prototypical examples include the Cahn–Hilliard (CH) equation for phase separation in binary alloys [1], the Ohta–Kawasaki (OK) model for block-copolymer morphology [11], the Phase–Field Crystal (PFC) model describing crystalline order on diffusive time scales [5, 4], and the Functionalized Cahn–Hilliard (FCH) equations for amphiphilic interfaces [6].

All these models share a common mathematical structure. Let HH be a real Hilbert space with inner product ⟨⋅,⋅⟩\langle\cdot,\cdot\rangle. We consider energies of the abstract form

E(u)=12⟨u,Lu⟩+Enl(u),E(u) = \frac{1}{2}\langle u,Lu\rangle+ E_{\mathrm{nl}}(u),

where L:D(L)⊂H→H\mathcal{L}:D(\mathcal{L})\subset H\to H is a densely defined self-adjoint differential operator that is bounded below on the relevant state space, and EnlE_{\mathrm{nl}} is Fréchet differentiable. We write

G(u):=δEnlδu.G(u) := \frac{\delta E_{\mathrm{nl}}}{\delta u}.

For each model the governing gradient flow takes the form

ut=MδE(u)δu,δEδu=Lu+G(u),u_t = \mathcal{M}\frac{\delta E(u)}{\delta u}, \qquad\frac{\delta E}{\delta u} = \mathcal{L}u + G(u),

where M\mathcal{M} is a self-adjoint non-positive mobility operator. In the sequel we take M=Δ\mathcal{M} = \Delta with periodic (or homogeneous Neumann) boundary conditions, so that

ut=Δ(Lu+G(u)).u_t = \Delta(\mathcal{L}u + G(u)).

Enl(u)=∫ΩF(u) dxE_{\mathrm{nl}}(u) = \int_{\Omega} F(u)\,dx, one has G(u)=F′(u)G(u) = F'(u). This structure guarantees energy dissipation. Defining the chemical potential μ=δE/δu=Lu+G(u)\mu= \delta E/\delta u = \mathcal{L}u + G(u), we have

dEdt=⟨μ,ut⟩=⟨μ,Δμ⟩=−∥∇μ∥L22≤0,\frac{dE}{dt} = \langle\mu, u_t\rangle= \langle\mu, \Delta\mu\rangle= -\|\nabla\mu\|_{L^2}^{2} \le0,

which expresses the physical irreversibility of relaxation toward critical points of the energy. The same structure enforces a mass constraint, ddt∫Ωu(x,t) dx=0\frac{d}{dt}\int_{\Omega}u(x,t)\,dx = 0.

Energy structure and numerical challenges. Preserving this gradient-flow structure at the discrete level is critical. If a scheme fails to maintain discrete energy decay, numerical solutions can exhibit spurious oscillations, drift in total energy, or violate qualitative features such as coarsening rates and phase-volume conservation [15]. These equations are also stiff: the linear diffusive part imposes severe time-step restrictions [8], while the nonlinear term G(u)G(u) can vary rapidly as interfaces sharpen. Fully explicit schemes are therefore inefficient, and implicit methods require careful design to remain energy-stable and second-order accurate.

SAV and BDF2 frameworks. The scalar auxiliary variable (SAV) method of Shen, Xu, and Yang [13, 14] addresses this by augmenting the system with a scalar w(t)=Enl(u(t))+Cw(t) = \sqrt{E_{\mathrm{nl}}(u(t)) + C}, producing a modified energy that is quadratic in (u,w)(u,w) and admits stable, linearly implicit time discretizations.

SAV–BDF2 and stabilized SAV–BDF2 (SSAV–BDF2) methods achieve second-order accuracy and strong energy-dissipation properties without solving nonlinear systems at each step [13]. For problems whose energy spans several time scales—coarsening, nucleation, defect dynamics—adaptive time stepping is needed to make these schemes efficient.

Motivation for adaptive, structure-preserving methods. Energy decay provides a physically meaningful measure of local temporal activity. Where evolution is slow (small dissipation rate), one can take large steps; where it is fast (interface reconnection, defect annihilation), finer resolution is needed. An adaptive controller driven by the instantaneous energy dissipation rate,

D(t)=∫Ω∣∇μ∣2 dx,\mathcal{D}(t) = \int_{\Omega} |\nabla\mu|^2\,dx,

adjusts the step size directly from the physical relaxation dynamics.

The difficulty is that variable-step BDF2 loses the telescoping energy identity that makes constant-step analysis work, and the SAV/SSAV coupling introduces additional consistency errors [7].

Contributions and organization. We develop an energy-rate equidistribution framework for adaptive SSAV–BDF2 integration of gradient-flow energies

E(u)=12⟨u,Lu⟩+Enl(u)E(u) = \frac{1}{2}\langle u,\mathcal{L}u\rangle+ E_{\mathrm{nl}}(u)

and the H−1H^{-1} mass-preserving gradient flow

ut=Δ(Lu+G(u)).(1)u_t = \Delta(\mathcal{L}u + G(u)). \tag*{(1)}

The paper makes four contributions. First, in § 3, we show that step-size selection based on the energy dissipation rate corresponds to equidistributing a monitor function along the energy curve, and we prove that the monitor g=∣E˙∣g = |\dot{E}| asymptotically minimises the leading-order maximum symmetric-energy discrepancy for a fixed number of steps (Proposition 2). We also give the arclength parameter β\beta from [12, 18] a careful interpretation in terms of the energy-error tolerance and the maximum admissible step (Proposition 4). This part of the analysis is independent of the time integrator and of the SAV reformulation: it applies to any one-step or multistep discretization of any gradient flow, and we introduce it with SSAV–BDF2 only in § 4.

Second, we propose a combined monitor (§ 3) that uses g=∣E˙∣g = |\dot{E}| during rapid dissipation and g=∣E˙∣g = \sqrt{|\dot{E}|} near equilibrium, capping step growth where the first rule becomes too loose, and we show that the combined rule bounds the symmetric-energy discrepancy by the user defined parameter τ1/2\tau_1/2 in both regimes (Corollary 1).

Third, we pair this controller with SSAV–vBDF2 discretization and a symmetric-energy acceptance criterion (§ 4). Accepted steps satisfy Esymn+1≤EsymnE_{\mathrm{sym}}^{n+1} \le E_{\mathrm{sym}}^n by construction, from which we deduce a bound on the physical energy that is uniform in nn (Proposition 6) together with a per-step bound whose deviation from monotonicity is proportional to ∣ρn−1∣\lvert\rho_n - 1\rvert (Proposition 7). The scheme is second-order accurate under standard step-ratio restrictions (Proposition 8).

Fourth, in § 5, we test the method on Cahn–Hilliard, Ohta–Kawasaki, Phase–Field Crystal, and functionalized Cahn–Hilliard problems. Here we compare efficiency against fixed-step SSAV–BDF2 at matched accuracy.

Problem Setup and Discretization

Continuous Problem

Let HH be a real Hilbert space with inner product ⟨⋅,⋅⟩\langle\cdot,\cdot\rangle. We consider equation (1), where L:D(L)⊂H→H\mathcal{L}:D(\mathcal{L}) \subset H \to H is a densely defined self-adjoint operator, bounded below on the relevant state space, with periodic or homogeneous Neumann boundary conditions where appropriate. We split the energy into linear (ElE_{\mathrm{l}}) and nonlinear (EnlE_{\mathrm{nl}}) parts

E(u)=El(u)+Enl(u),El(u)=12⟨u,Lu⟩.E(u) = E_{\mathrm{l}}(u) + E_{\mathrm{nl}}(u), \qquad E_{\mathrm{l}}(u) = \tfrac{1}{2}\langle u,\mathcal{L}u\rangle.

We assume EnlE_{\mathrm{nl}} is Fréchet differentiable and write

G(u):=δEnlδu.G(u) := \frac{\delta E_{\mathrm{nl}}}{\delta u}.

For the pointwise case

Enl(u)=∫ΩF(u) dx,E_{\mathrm{nl}}(u) = \int_{\Omega} F(u)\,dx,

one has G(u)=F′(u)G(u)=F'(u). In this pointwise case we assume that the nonlinear term F:R→RF:\mathbb{R}\to\mathbb{R} satisfies:

  • F∈C3F \in C^3 with bounded derivatives: ∥F′′∥L∞≤CF\lVert F''\rVert_{L^\infty} \le C_F and ∥F′′′∥L∞≤CF\lVert F'''\rVert_{L^\infty} \le C_F.

  • FF is bounded below: there exists C>0C>0 such that F(u)+C≥c0>0F(u)+C \ge c_0>0 for all relevant uu.

The double-well potential F(u)=14(u2−1)2F(u)=\frac{1}{4}(u^2-1)^2 satisfies these conditions on any bounded subset of R\mathbb{R}, with C=1/4C=1/4. Since solutions of the Cahn–Hilliard equation satisfy a maximum principle at the continuous level, and discrete solutions remain bounded under standard CFL-type or energy-stability conditions, the boundedness assumptions on F′′F'' and F′′′F''' hold on the relevant solution trajectories. We adopt this convention throughout: the derivative bounds on FF apply on the range of the computed solution, not globally.

For models with gradient-dependent nonlinearities, such as the functionalized Cahn–Hilliard energy in § 5, the nonlinear energy need not take the pointwise form ∫ΩF(u) dx\int_{\Omega} F(u)\,dx. In such cases we assign all gradient-dependent nonlinear terms to Enl(u)E_{\mathrm{nl}}(u), verify that Enl(u)+C>0E_{\mathrm{nl}}(u)+C>0 holds for the computed solutions, and use the full variational derivative

G(u)=δEnlδuG(u)=\frac{\delta E_{\mathrm{nl}}}{\delta u}

in place of the pointwise derivative F′(u)F'(u). The SAV construction is unchanged at the functional level, though the splitting and the variational derivative are problem-specific.

Defining μ=Lu+G(u)\mu=\mathcal{L}u+G(u) and using (1), the energy dissipation property takes the form

dEdt=⟨μ,ut⟩=⟨μ,Δμ⟩=−∥∇μ∥L22≤0.\frac{dE}{dt}=\langle\mu,u_t\rangle=\langle\mu,\Delta\mu\rangle=-\lVert\nabla\mu\rVert_{L^2}^2\le0.

SAV Reformulation

Following [13], we introduce the auxiliary variable

w(t)=Enl(u(t))+C,w(t)=\sqrt{E_{\mathrm{nl}}(u(t))+C},

which satisfies, by the chain rule for the functional EnlE_{\mathrm{nl}},

dwdt=12Enl(u)+C⟨G(u),dudt⟩.\frac{dw}{dt}=\frac{1}{2\sqrt{E_{\mathrm{nl}}(u)+C}}\left\langle G(u),\frac{du}{dt}\right\rangle.

The SAV system to be solved is

dudt=Δ(Lu+wEnl(u)+CG(u))=:Δμ~,dwdt=12Enl(u)+C⟨G(u),dudt⟩,(2)\begin{aligned} \frac{du}{dt} &= \Delta\left(\mathcal{L}u+\frac{w}{\sqrt{E_{\mathrm{nl}}(u)+C}}G(u)\right)=:\Delta\widetilde{\mu},\\ \frac{dw}{dt} &= \frac{1}{2\sqrt{E_{\mathrm{nl}}(u)+C}}\left\langle G(u),\frac{du}{dt}\right\rangle, \tag*{(2)} \end{aligned}

where

μ~=Lu+wEnl(u)+CG(u).\widetilde{\mu}=\mathcal{L}u+\frac{w}{\sqrt{E_{\mathrm{nl}}(u)+C}}G(u).

Define the SAV energy

ESAV(u,w):=12⟨u,Lu⟩+w2−C.E_{\mathrm{SAV}}(u,w):=\frac{1}{2}\langle u,\mathcal{L}u\rangle+w^2-C.

Then

ddtESAV=⟨ut,Lu⟩+2w wt=⟨ut,Lu⟩+wEnl(u)+C⟨G(u),ut⟩=⟨ut,μ~⟩=⟨Δμ~,μ~⟩=−∫Ω∣∇μ~∣2 dx≤0.\begin{aligned} \frac{d}{dt}E_{\mathrm{SAV}} &= \langle u_t,\mathcal{L}u\rangle+2w\,w_t\\ &=\langle u_t,\mathcal{L}u\rangle+\frac{w}{\sqrt{E_{\mathrm{nl}}(u)+C}}\langle G(u),u_t\rangle\\ &=\langle u_t,\widetilde{\mu}\rangle=\langle\Delta\widetilde{\mu},\widetilde{\mu}\rangle=-\int_{\Omega}|\nabla\widetilde{\mu}|^2\,dx\leq0. \end{aligned}

Hence ESAVE_{\mathrm{SAV}} is nonincreasing along solutions of the SAV system. Moreover, when w2=Enl(u)+Cw^2=E_{\mathrm{nl}}(u)+C holds exactly, ESAV(u,w)=E(u)E_{\mathrm{SAV}}(u,w)=E(u).

Variable-Step BDF2 Discretization

Let 0=t0<t1<⋯<tN=T0=t_0<t_1<\cdots<t_N=T be a partition and define

Δtn=tn+1−tn,n=0,…,N−1.\Delta t_n=t_{n+1}-t_n,\qquad n=0,\ldots,N-1.

For n≥1n\geq1, define the step ratio

ρn=ΔtnΔtn−1∈[ρmin⁡,ρmax⁡]⊂(0,1+2).\rho_n=\frac{\Delta t_n}{\Delta t_{n-1}}\in[\rho_{\min},\rho_{\max}]\subset\left(0,1+\sqrt{2}\right).

A variable-step BDF2 formula approximates u′(tn+1)u'(t_{n+1}) by

δtvBDF2un+1:=dn(0)un+1+dn(1)un+dn(2)un−1Δtn,(3)\delta_t^{\mathrm{vBDF2}}u^{n+1}:=\frac{d_n^{(0)}u^{n+1}+d_n^{(1)}u^n+d_n^{(2)}u^{n-1}}{\Delta t_n}, \tag*{(3)}

where

dn(0)=1+2ρn1+ρn,dn(1)=−(1+ρn),dn(2)=ρn21+ρn.(4)d_n^{(0)}=\frac{1+2\rho_n}{1+\rho_n},\qquad d_n^{(1)}=-(1+\rho_n),\qquad d_n^{(2)}=\frac{\rho_n^2}{1+\rho_n}. \tag*{(4)}

are the BDF2 coefficients from [7].

We set, for the step producing (un+1,wn+1)(u^{n+1},w^{n+1}),

u‾n+1:=(1+ρn)un−ρnun−1,qn+1:=wn+1Enl(u‾n+1)+C.\overline{u}^{n+1}:=(1+\rho_n)u^n-\rho_n u^{n-1},\qquad q^{n+1}:=\frac{w^{n+1}}{\sqrt{E_{\mathrm{nl}}(\overline{u}^{n+1})+C}}.

The SAV scheme is commonly combined with the stabilization technique as is done in [17, 16] which yields the stabilized SAV (SSAV) scheme. It’s shown in [17] that the SSAV allows us to take larger time steps and save computational costs. Additionally, with larger time steps the SAV loses accuracy whereas the SSAV scheme doesn’t. In [16], it’s shown in the accuracy test for the FCH model that the SAV scheme significantly loses accuracy when Δt>5×10−4\Delta t>5\times10^{-4} but the SSAV scheme maintains second order accuracy.

The SSAV–vBDF2 scheme (linearly implicit in un+1u^{n+1}) takes the form, for n≥1n\geq1, as

δtvBDF2un+1=Δ(Lun+1+qn+1G(u‾n+1)+S(un+1−u‾n+1))=Δμ~n+1,(5)\delta_t^{\mathrm{vBDF2}}u^{n+1}=\Delta\left(\mathcal{L}u^{n+1}+q^{n+1}G(\overline{u}^{n+1})+S(u^{n+1}-\overline{u}^{n+1})\right)=\Delta\widetilde{\mu}^{n+1}, \tag*{(5)}
δtvBDF2wn+1=12Enl(u‾n+1)+C⟨G(u‾n+1),δtvBDF2un+1⟩,(6)\delta_t^{\mathrm{vBDF2}}w^{n+1}=\frac{1}{2\sqrt{E_{\mathrm{nl}}(\overline{u}^{n+1})+C}}\left\langle G(\overline{u}^{n+1}),\delta_t^{\mathrm{vBDF2}}u^{n+1}\right\rangle, \tag*{(6)}

where S>0S>0 is a stabilizing parameter and μ~n+1:=Lun+1+qn+1G(u‾n+1)+S(un+1−u‾n+1)\widetilde{\mu}^{n+1}:=\mathcal{L}u^{n+1}+q^{n+1}G(\overline{u}^{n+1})+S(u^{n+1}-\overline{u}^{n+1}) is the discrete chemical potential.

With Δ\Delta negative semidefinite under periodic or homogeneous Neumann boundary conditions, this is the dissipative direction, consistent with (1). Mass conservation comes for free as applying Δ\Delta zeros out changes to the mean.

Energy-Rate Equidistribution

The energy dissipation rate dE/dt\mathrm{d}E/\mathrm{d}t may vary over many orders of magnitude during a gradient-flow simulation. During rapid coarsening, interface reconnection, or defect annihilation the energy can change quickly, while near equilibrium it may change only very slowly. A uniform temporal mesh therefore places the same number of time steps in regions with very different levels of activity. Our goal is to redistribute the time steps so that more are taken where the energy is changing rapidly and fewer where it is nearly constant.

This is naturally viewed as a one-dimensional version of rr-adaptivity. Introduce a computational coordinate ξ∈[0,1]\xi\in[0,1] and a strictly increasing map

t=t(ξ),t(0)=0,t(1)=T.t=t(\xi), \qquad t(0)=0, \qquad t(1)=T.

A uniform mesh in ξ\xi then generates a nonuniform mesh in physical time. Given a positive monitor function gg, the usual equidistribution principle is to choose the map so that

g(t(ξ))t′(ξ)=constant.g(t(\xi))t'(\xi)=\text{constant}.

Thus regions in which gg is large receive smaller physical time steps, while regions in which gg is small receive larger ones [3, 9].

For gradient flows, the energy itself provides a natural quantity from which to construct the monitor. For example, the choice

g(E˙)=1+β2E˙2g(\dot{E})=\sqrt{1+\beta^2\dot{E}^2}

corresponds to equidistributing arclength along the scaled energy curve

t⟼(t,βE(t)).t\longmapsto(t,\beta E(t)).

Other possibilities include

g(E˙)=∣E˙∣,g(E˙)=∣E˙∣,g(\dot{E})=|\dot{E}|,\qquad g(\dot{E})=\sqrt{|\dot{E}|},

or combinations of these monitors. All of them have the same basic effect: rapid energy change produces a denser temporal mesh, while nearly flat portions of the energy curve are traversed with larger steps.

Figure 1 illustrates this idea for two simple energy histories. The first,

Comparison of grid distributions with scaled-arclength and combined energy-rate monitors

Figure 1. Comparison of a scaled-arclength monitor and a combined energy-rate monitor for the energy histories E1(t)=e−tE_1(t)=e^{-t} and E2(t)=tanh⁡(10−t)E_2(t)=\tanh(10-t). The red curves show the energies in physical time and the blue curves show the same energies in the corresponding computational coordinate. The parameters have been chosen so that approximately half of the grid points lie in the transition region.

E1(t)=e−t,E_1(t)=e^{-t},

has a smoothly decreasing dissipation rate, while

E2(t)=tanh⁡(10−t)E_2(t)=\tanh(10-t)

contains a relatively sharp transition between two slowly varying regimes. The physical-time plots show the nonuniform distribution of the time points produced by the monitors. When the same energy curves are plotted against the corresponding computational coordinate, the rapid changes are spread over a larger portion of the computational interval. Equidistribution can therefore be viewed as a reparametrization of time that resolves changes in the energy more uniformly.

The remaining question is which monitor is appropriate for the adaptive integration of a gradient flow. We answer this by relating the energy dissipation rate to the symmetric energy used in our acceptance criterion. We first show that the leading discrepancy between the symmetric and physical energies is proportional to

Δt ∣E˙∣.\Delta t\,|\dot{E}|.

This identifies g=∣E˙∣g=|\dot{E}| as the natural monitor and leads to an asymptotic minimax result: equidistributing ∣E˙∣|\dot{E}| minimizes the leading-order maximum symmetric-energy discrepancy for a fixed number of time steps. We then consider the behaviour of this monitor near equilibrium, introduce the combined ∣E˙∣|\dot{E}| and ∣E˙∣\sqrt{|\dot{E}|} rule used in the computations, and relate the scaled-arclength controller of [12, 18] to the same framework.

Local truncation error (LTE) control, such as the AM3-based controller of [2], adjusts Δt\Delta t to keep a local error estimator below a tolerance, without reference to the energy structure. Our controllers adjust Δt\Delta t to equidistribute the energy dissipation rate, which directly controls the departure of the symmetric energy from the physical energy. For gradient flows, this means the step-size selection is informed by the physics of the problem, not just the numerical error. Both approaches yield second-order accuracy; they differ in which error they control. § 5 compares them on a benchmark problem.

Nothing in this section depends on the SSAV reformulation or on the BDF2 discretization. The analysis is first carried out for a smooth gradient-flow trajectory and its continuous energy. In § 4, the continuous dissipation rate is replaced by a computable discrete estimator and the resulting controller is coupled to SSAV–vBDF2.

Symmetric energy and its relation to dissipation rate

Define the practical symmetric energy

Esymn:=12(E(un)+E(2un−un−1)).(7)E_{\mathrm{sym}}^n := \frac{1}{2}\left(E(u^n)+E(2u^n-u^{n-1})\right). \tag*{(7)}

Note that 2un−un−1=un+δn2u^n-u^{n-1}=u^n+\delta^n, where δn=un−un−1\delta^n=u^n-u^{n-1}. For any sequence {un}\{u^n\} and any twice continuously Fréchet differentiable energy EE with bounded second derivative on the relevant region of state space,

Esymn−E(un)=12DE(un)[δn]+O(∥δn∥2).(8)E_{\mathrm{sym}}^n-E(u^n)=\frac{1}{2}DE(u^n)[\delta^n]+O(\lVert\delta^n\rVert^2). \tag*{(8)}

If E∈C3E\in C^3, the second-order term may be written explicitly as

Esymn−E(un)=12DE(un)[δn]+14D2E(un)[δn,δn]+O(∥δn∥3).E_{\mathrm{sym}}^n-E(u^n)=\frac{1}{2}DE(u^n)[\delta^n]+\frac{1}{4}D^2E(u^n)[\delta^n,\delta^n]+O(\lVert\delta^n\rVert^3).

We now look at points sampled from an exact smooth trajectory. For un=u(tn)u^n=u(t_n),

u(tn−1)=u(tn)−Δtn−1ut(tn)+O(Δtn−12),u(t_{n-1})=u(t_n)-\Delta t_{n-1}u_t(t_n)+O(\Delta t_{n-1}^2),

and hence

δn=Δtn−1ut(tn)+O(Δtn−12).\delta^n=\Delta t_{n-1}u_t(t_n)+O(\Delta t_{n-1}^2).

Substituting this into (8) gives

Esymn−E(u(tn))=12Δtn−1dEdt(tn)+O(Δtn−12).E_{\mathrm{sym}}^n-E(u(t_n))=\frac{1}{2}\Delta t_{n-1}\frac{dE}{dt}(t_n)+O(\Delta t_{n-1}^2).

Proposition 1 (Energy–dissipation linkage). Let u:[0,T]→Xu:[0,T]\to X be a C2C^2 trajectory and let E:X→RE:X\to\mathbb{R} be twice continuously Fréchet differentiable with bounded second derivative on a neighbourhood of the trajectory. For un=u(tn)u^n=u(t_n), define EsymnE_{\mathrm{sym}}^n by (7). Then

Esymn−E(u(tn))=12Δtn−1dEdt(tn)+O(Δtn−12).(9)E_{\mathrm{sym}}^n-E(u(t_n))=\frac{1}{2}\Delta t_{n-1}\frac{dE}{dt}(t_n)+O(\Delta t_{n-1}^2). \tag*{(9)}

Consequently, for a gradient flow with E˙≤0\dot E\le0,

∣Esymn−E(u(tn))∣=12Δtn−1∣E˙(tn)∣+O(Δtn−12).\left|E_{\mathrm{sym}}^n-E(u(t_n))\right|=\frac{1}{2}\Delta t_{n-1}|\dot E(t_n)|+O(\Delta t_{n-1}^2).

Proof. Equation (8) gives

Esymn−E(u(tn))=12DE(u(tn))[δn]+O(∥δn∥2).E_{\mathrm{sym}}^{n}-E(u(t_n))=\tfrac{1}{2}DE(u(t_n))[\delta^n]+O(\lVert\delta^n\rVert^2).

Using δn=Δtn−1ut(tn)+O(Δtn−12)\delta^n=\Delta t_{n-1}u_t(t_n)+O(\Delta t_{n-1}^2) and

DE(u(tn))[ut(tn)]=ddtE(u(t))∣t=tnDE(u(t_n))[u_t(t_n)]=\left.\frac{d}{dt}E(u(t))\right|_{t=t_n}

gives (9). □

Remark. The closeness Esymn=E(un)+O(h)E_{\mathrm{sym}}^n=E(u^n)+O(h) is first-order, not second-order. The leading O(h)O(h) term is 12Δtn−1 dE/dt\frac{1}{2}\Delta t_{n-1}\,dE/dt, which does not vanish for solutions undergoing active dissipation. We exploit this gap for adaptivity. The departure from E(un)E(u^n) encodes how fast the energy is changing, and controlling it through the step size is the basis of the equidistribution framework developed below.

An adaptive controller that enforces Δtn−1∣dE/dt∣(tn)≲τ1\Delta t_{n-1}|dE/dt|(t_n)\lesssim\tau_1 directly bounds this departure by O(τ1)O(\tau_1) while keeping the O(Δtn−12)O(\Delta t_{n-1}^2) remainder small:

∣Esymn−E(un)∣≲12τ1+CΔtn−12.\left|E_{\mathrm{sym}}^n-E(u^n)\right|\lesssim\tfrac{1}{2}\tau_1+C\Delta t_{n-1}^2.

Equidistribution framework

Proposition 1 shows that the leading symmetric-energy discrepancy is controlled by the product Δtn−1∣dE/dt∣\Delta t_{n-1}|dE/dt|. We now formulate the corresponding minimax problem in terms of a continuous mesh map.

Let ξ∈[0,1]\xi\in[0,1] denote a computational coordinate and let t=t(ξ)t=t(\xi) be a continuously differentiable, strictly increasing map with

t(0)=0,t(1)=T.t(0)=0,\qquad t(1)=T.

A uniform computational mesh ξn=n/N\xi_n=n/N induces the physical nodes tn=t(ξn)t_n=t(\xi_n). If

g(t):=∣E˙(t)∣,g(t):=|\dot{E}(t)|,

then

Δtn=tn+1−tn=1Nt′(ξn)+O(N−2),\Delta t_n=t_{n+1}-t_n=\frac{1}{N}t'(\xi_n)+O(N^{-2}),

and Proposition 1 gives the leading symmetric-energy discrepancy

∣Esymn−E(u(tn))∣=12Ng(t(ξn))t′(ξn)+O(N−2).|E_{\mathrm{sym}}^n-E(u(t_n))|=\frac{1}{2N}g(t(\xi_n))t'(\xi_n)+O(N^{-2}).

Definition 3.1 (Equidistribution [3]). A mesh map t:[0,1]→[0,T]t:[0,1]\to[0,T] equidistributes a positive monitor function gg if

g(t(ξ))t′(ξ)=σfor all ξ∈[0,1],g(t(\xi))t'(\xi)=\sigma\qquad\text{for all }\xi\in[0,1],

where

σ=∫0Tg(s) ds.\sigma=\int_0^T g(s)\,ds.

Proposition 2 (Asymptotic minimax equidistribution). Let E∈C2([0,T])E\in C^2([0,T]) and suppose

g(t)=∣E˙(t)∣>0,0≤t≤T.g(t)=|\dot{E}(t)|>0,\qquad0\leq t\leq T.

Let t:[0,1]→[0,T]t:[0,1]\to[0,T] be a C1C^1, strictly increasing mesh map with t(0)=0t(0)=0 and t(1)=Tt(1)=T, and let tn=t(n/N)t_n=t(n/N). Then the leading-order maximum symmetric-energy discrepancy is

max⁡n∣Esymn−E(u(tn))∣=12N∥g(t(ξ))t′(ξ)∥L∞(0,1)+O(N−2).\max_n|E_{\mathrm{sym}}^n-E(u(t_n))|=\frac{1}{2N}\lVert g(t(\xi))t'(\xi)\rVert_{L^\infty(0,1)}+O(N^{-2}).

Among all such mesh maps, the leading term is minimized by the equidistribution condition

g(t(ξ))t′(ξ)=∫0Tg(s) ds.(10)g(t(\xi))t'(\xi)=\int_0^Tg(s)\,ds. \tag*{(10)}

The minimum leading-order value is

12N∫0T∣E˙(t)∣ dt.\frac{1}{2N}\int_0^T|\dot{E}(t)|\,dt.

For a monotonically decaying energy this becomes

E(0)−E(T)2N.(11)\frac{E(0)-E(T)}{2N}. \tag*{(11)}

Proof. Set

q(ξ):=g(t(ξ))t′(ξ).q(\xi) := g(t(\xi))t'(\xi).

Since tt is increasing,

∫01q(ξ) dξ=∫01g(t(ξ))t′(ξ) dξ=∫0Tg(t) dt.\int_0^1 q(\xi)\,d\xi= \int_0^1 g(t(\xi))t'(\xi)\,d\xi= \int_0^T g(t)\,dt.

Because q≥0q \ge0,

∥q∥L∞(0,1)≥∫01q(ξ) dξ=∫0Tg(t) dt.\|q\|_{L^\infty(0,1)} \ge\int_0^1 q(\xi)\,d\xi= \int_0^T g(t)\,dt.

Equality holds precisely when qq is constant, which is (10). Combining this minimax identity with the leading-order expansion above proves the result. When E˙≤0\dot{E} \le0,

∫0T∣E˙(t)∣ dt=E(0)−E(T),\int_0^T |\dot{E}(t)|\,dt = E(0)-E(T),

giving (11). □

Remark. The positivity assumption ∣E˙∣>0|\dot{E}| > 0 excludes intervals on which the energy is exactly flat. On such intervals the ideal monitor is degenerate: at leading order the symmetric-energy discrepancy places no restriction on the mesh density. This is one reason to regularize the energy-rate monitor in the practical controller below.

This result identifies g(E˙)=∣E˙∣g(\dot{E}) = |\dot{E}| as the asymptotically optimal monitor for controlling the leading-order maximum symmetric-energy discrepancy. Additionally, we see why energy-rate–based controllers work as they approximately equidistribute the quantity that determines this discrepancy. Equation (11) is a useful practical guide. Halving the leading-order discrepancy requires doubling the step count. Problems with a large total energy drop are intrinsically more expensive at fixed tolerance, independent of how the drop is distributed in time.

Proposition 3 (Monitor function properties). Let E˙n\dot{E}_n denote the energy dissipation rate associated with step nn.

(a) The rule Δtn≤τ1/∣E˙n∣\Delta t_n \le\tau_1/|\dot{E}_n| equidistributes the monitor g=∣E˙∣g=|\dot{E}| and ensures the symmetric-energy discrepancy satisfies ∣Esymn−E(un)∣≤τ1/2+O(Δtn−12)|E_{\mathrm{sym}}^n-E(u^n)| \le\tau_1/2+O(\Delta t_{n-1}^2).

(b) The rule Δtn≤τ2/∣E˙n∣\Delta t_n \le\tau_2/\sqrt{|\dot{E}_n|} equidistributes g=∣E˙∣g=\sqrt{|\dot{E}|}. Near equilibrium, where ∣E˙n∣→0|\dot{E}_n|\to0 and rule (a) places no effective restriction on the step, rule (b) caps the growth at Δtn=τ2/∣E˙n∣\Delta t_n=\tau_2/\sqrt{|\dot{E}_n|}; the associated energy discrepancy 12τ2∣E˙n∣\frac{1}{2}\tau_2\sqrt{|\dot{E}_n|} still tends to zero, so accuracy is not sacrificed. Away from equilibrium, where ∣E˙n∣≫(τ1/τ2)2|\dot{E}_n|\gg(\tau_1/\tau_2)^2, rule (b) is the weaker of the two and is inactive.

(c) Taking Δtn=αmin⁡(τ1/∣E˙n∣,τ2/∣E˙n∣)\Delta t_n=\alpha\min(\tau_1/|\dot{E}_n|,\tau_2/\sqrt{|\dot{E}_n|}) with safety factor α∈(0,1)\alpha\in(0,1) selects rule (a) when ∣E˙n∣>(τ1/τ2)2|\dot{E}_n|>(\tau_1/\tau_2)^2 and rule (b) otherwise. This corresponds to the combined monitor

gcomb(E˙)=max⁡(∣E˙∣/τ1,∣E˙∣/τ2),g_{\mathrm{comb}}(\dot{E})=\max\left(|\dot{E}|/\tau_1,\sqrt{|\dot{E}|}/\tau_2\right),

which adapts between optimal discrepancy control during rapid dissipation and controlled step growth near equilibrium.

Proof. Part (a): substituting Δtn=τ1/∣E˙n∣\Delta t_n=\tau_1/|\dot{E}_n| into the energy–dissipation linkage (9) gives ∣Esymn−E(un)∣=τ1/2+O(h2)|E_{\mathrm{sym}}^n-E(u^n)|=\tau_1/2+O(h^2).

Part (b): if ∣E˙n∣=ε2|\dot{E}_n|=\varepsilon^2 with ε→0\varepsilon\to0, then Δtn=τ2/ε\Delta t_n=\tau_2/\varepsilon, which is finite for every ε>0\varepsilon>0 but unbounded as ε→0\varepsilon\to0; the corresponding energy discrepancy is 12(τ2/ε)ε2=12τ2ε→0\frac{1}{2}(\tau_2/\varepsilon)\varepsilon^2=\frac{1}{2}\tau_2\varepsilon\to0. Rule (a) gives τ1/ε2\tau_1/\varepsilon^2, which grows faster, so (b) is the binding constraint in this limit.

Part (c): the minimum of two step-size rules corresponds to the maximum of the associated monitors. The crossover occurs when τ1/∣E˙∣=τ2/∣E˙∣\tau_1/|\dot{E}|=\tau_2/\sqrt{|\dot{E}|}, i.e. ∣E˙∣=τ1/τ2\sqrt{|\dot{E}|}=\tau_1/\tau_2, i.e. ∣E˙∣=(τ1/τ2)2|\dot{E}|=(\tau_1/\tau_2)^2. □

Corollary 1 (Uniform local discrepancy bound for the combined rule). Let Δtn=αmin⁡(τ1/∣E˙n∣,τ2/∣E˙n∣)\Delta t_n=\alpha\min(\tau_1/|\dot{E}_n|,\tau_2/\sqrt{|\dot{E}_n|}) with α∈(0,1)\alpha\in(0,1). Then, in both regimes,

Δtn∣E˙n∣≤ατ1,hence∣Esymn−E(un)∣≤12ατ1+O(Δtn2).\Delta t_n|\dot{E}_n|\le\alpha\tau_1,\qquad\text{hence}\qquad|E_{\mathrm{sym}}^n-E(u^n)|\le\frac{1}{2}\alpha\tau_1+O(\Delta t_n^2).

Proof. If ∣E˙n∣>(τ1/τ2)2|\dot{E}_n| > (\tau_1/\tau_2)^2 then rule (a) is active and Δtn∣E˙n∣=ατ1\Delta t_n|\dot{E}_n| = \alpha\tau_1. Otherwise rule (b) is active and Δtn∣E˙n∣=ατ2∣E˙n∣≤ατ2(τ1/τ2)=ατ1\Delta t_n|\dot{E}_n| = \alpha\tau_2\sqrt{|\dot{E}_n|} \le\alpha\tau_2(\tau_1/\tau_2) = \alpha\tau_1.

Corollary 1 makes the combined monitor useful in practice as the second rule caps step growth near equilibrium without weakening the energy-error guarantee established for the optimal monitor. It is also the estimate that drives the uniform physical-energy bound in Proposition 6.

Proposition 4 (Arclength connection). The regularized step-size rule [12]

Δtn≤Δtmax⁡1+β2∣E˙n∣2,β:=Δtmax⁡τ1,(12)\Delta t_n \le\frac{\Delta t_{\max}}{\sqrt{1+\beta^2|\dot{E}_n|^2}}, \qquad\beta:= \frac{\Delta t_{\max}}{\tau_1}, \tag*{(12)}

equidistributes the arclength monitor g(E˙)=1+β2E˙2g(\dot{E}) = \sqrt{1+\beta^2\dot{E}^2} along the energy curve t↦(t,βE(t))t \mapsto(t,\beta E(t)). The parameter β\beta is thus the ratio of the largest permitted step to the energy-error tolerance of Proposition 3(a); equivalently, 1/β=τ1/Δtmax⁡1/\beta= \tau_1/\Delta t_{\max} is the dissipation rate at which the two constraints balance.

Proof. Regularize rule (a) as Δtn≤τ1/ε2+∣E˙n∣2\Delta t_n \le\tau_1/\sqrt{\varepsilon^2+|\dot{E}_n|^2} with ε>0\varepsilon>0. As ∣E˙n∣→∞|\dot{E}_n| \to\infty this reduces to τ1/∣E˙n∣\tau_1/|\dot{E}_n|, recovering (14); as ∣E˙n∣→0|\dot{E}_n| \to0 it saturates at τ1/ε\tau_1/\varepsilon, which we identify with Δtmax⁡\Delta t_{\max}, so ε=τ1/Δtmax⁡=1/β\varepsilon= \tau_1/\Delta t_{\max} = 1/\beta. Factoring ε\varepsilon out of the square root,

τ1ε2+∣E˙n∣2=τ1/ε1+∣E˙n∣2/ε2=Δtmax⁡1+β2∣E˙n∣2,\frac{\tau_1}{\sqrt{\varepsilon^2+|\dot{E}_n|^2}} = \frac{\tau_1/\varepsilon}{\sqrt{1+|\dot{E}_n|^2/\varepsilon^2}} = \frac{\Delta t_{\max}}{\sqrt{1+\beta^2|\dot{E}_n|^2}},

which is (12). The corresponding equidistribution condition Δtn1+β2E˙n2=const\Delta t_n\sqrt{1+\beta^2\dot{E}_n^2}=\mathrm{const} distributes time steps uniformly along the arclength of the curve (t,βE(t))(t,\beta E(t)).

Remark. Both sides of (12) carry units of time, so βE˙\beta\dot{E} is dimensionless. This form also matches the rule used in [12, 18], where the step is taken as Δtmax⁡\Delta t_{\max} divided by a square root of the same shape; Proposition 4 identifies their tuning parameter with Δtmax⁡/τ1\Delta t_{\max}/\tau_1.

Energy–rate–based timestep selection

Once unu^n is available, the newest symmetric-energy difference provides the discrete rate estimator

Dn:=∣Esymn−Esymn−1Δtn−1∣.(13)D_n := \left|\frac{E_{\mathrm{sym}}^n-E_{\mathrm{sym}}^{n-1}}{\Delta t_{n-1}}\right|. \tag*{(13)}

This is a computable approximation to the recent energy dissipation rate. The energy–dissipation linkage motivates the practical adaptive rules

Δtn=τ1Dn,(14)\Delta t_n = \frac{\tau_1}{D_n}, \tag*{(14)}
Δtn=τ2Dn,(15)\Delta t_n = \frac{\tau_2}{\sqrt{D_n}}, \tag*{(15)}

where τ1,τ2>0\tau_1,\tau_2>0 are user-selected tolerances. In practice one takes

Δtn=αmin⁡(τ1Dn,τ2Dn),0<α<1,\Delta t_n = \alpha\min\left(\frac{\tau_1}{D_n},\frac{\tau_2}{\sqrt{D_n}}\right), \qquad0<\alpha<1,

where α\alpha is a safety factor.

Note that Dn=∣E˙(tn)∣+O(h)D_n=|\dot{E}(t_n)|+O(h) by Proposition 1. Hence all the same bounds follow with only modified constants.

The Adaptive SSAV–vBDF2 Algorithm

Algorithm

Algorithm 1 Adaptive SSAV–vBDF2 with energy–rate proposal and symmetric-energy acceptance

Require: Solution values Yn−1,YnY^{n-1}, Y^n, previous step size Δtn−1\Delta t_{n-1}, tolerances τ1,τ2\tau_1, \tau_2, safety factor α∈(0,1)\alpha\in(0,1), regularization δ>0\delta> 0, step bounds Δtmin⁡,Δtmax⁡\Delta t_{\min}, \Delta t_{\max}, and ratio bounds ρmin⁡,ρmax⁡\rho_{\min}, \rho_{\max}.

  1. (Monitor) Compute the current symmetric energy

Esymn:=12(E(un)+E(2un−un−1))E_{\mathrm{sym}}^n := \frac{1}{2}\left(E(u^n) + E(2u^n-u^{n-1})\right)

and the most recent discrete energy-rate estimator

Dn:=∣Esymn−Esymn−1Δtn−1∣.D_n := \left|\frac{E_{\mathrm{sym}}^n-E_{\mathrm{sym}}^{n-1}}{\Delta t_{n-1}}\right|.
  1. (Propose step) Set

Δtprop:=αmin⁡(τ1δ+Dn,τ2δ2+Dn).\Delta t_{\mathrm{prop}} := \alpha\min\left(\frac{\tau_1}{\delta+D_n},\frac{\tau_2}{\sqrt{\delta^2+D_n}}\right).
  1. (Enforce bounds) Set

Δtn←min⁡(Δtmax⁡,max⁡(Δtmin⁡,Δtprop)),\Delta t_n \leftarrow\min(\Delta t_{\max},\max(\Delta t_{\min},\Delta t_{\mathrm{prop}})),
Δtn←min⁡(ρmax⁡Δtn−1,max⁡(ρmin⁡Δtn−1,Δtn)).\Delta t_n \leftarrow\min(\rho_{\max}\Delta t_{n-1},\max(\rho_{\min}\Delta t_{n-1},\Delta t_n)).
  1. (Attempt step) Set

ρn=ΔtnΔtn−1\rho_n=\frac{\Delta t_n}{\Delta t_{n-1}}

and compute a candidate Yn+1Y^{n+1} via the SSAV–vBDF2 scheme (5)–(6) using step size Δtn\Delta t_n.

  1. (Accept/reject) Compute

Esymn+1:=12(E(un+1)+E(2un+1−un)).E_{\mathrm{sym}}^{n+1}:=\frac{1}{2}\left(E(u^{n+1})+E(2u^{n+1}-u^n)\right).
  1. Set Δtnfloor←max⁡(Δtmin⁡,ρmin⁡Δtn−1)\Delta t_n^{\mathrm{floor}}\leftarrow\max(\Delta t_{\min},\rho_{\min}\Delta t_{n-1}).

  1. while Esymn+1>EsymnE_{\mathrm{sym}}^{n+1}>E_{\mathrm{sym}}^n and Δtn>Δtnfloor\Delta t_n>\Delta t_n^{\mathrm{floor}} do

  1. Reject step and reduce

Δtn←max⁡(Δtnfloor,12Δtn).\Delta t_n\leftarrow\max\left(\Delta t_n^{\mathrm{floor}},\frac{1}{2}\Delta t_n\right).
  1. Update ρn←Δtn/Δtn−1\rho_n\leftarrow\Delta t_n/\Delta t_{n-1}.

  1. Recompute the candidate Yn+1Y^{n+1} with the reduced Δtn\Delta t_n.

  1. Recompute Esymn+1E_{\mathrm{sym}}^{n+1}.

  1. end while

  1. Accept step and record

ρn←ΔtnΔtn−1.\rho_n\leftarrow\frac{\Delta t_n}{\Delta t_{n-1}}.
  1. return Yn+1,Δtn,ρnY^{n+1},\Delta t_n,\rho_n.

The ratio clamp in step 3 is applied against Δtn−1\Delta t_{n-1}, not Δtn\Delta t_n, so that it is a genuine restriction. The rejection loop in steps 7–11 halves down to max⁡(Δtmin⁡,ρmin⁡Δtn−1)\max(\Delta t_{\min},\rho_{\min}\Delta t_{n-1}) rather than to Δtmin⁡\Delta t_{\min}; without this floor, repeated halving could drive ρn\rho_n below ρmin⁡\rho_{\min} and violate the hypothesis of Proposition 8.

Energy stability of accepted steps

The adaptive controller in Algorithm 1 enforces energy monotonicity by construction. We now state this precisely and quantify its implications for the physical energy.

Proposition 5 (Practical monotonicity). *Algorithm 1 accepts step nn only if Esymn+1≤EsymnE_{\mathrm{sym}}^{n+1}\le E_{\mathrm{sym}}^n, or if Δtn\Delta t_n has reached the floor max⁡(Δtmin⁡,ρmin⁡Δtn−1)\max(\Delta t_{\min},\rho_{\min}\Delta t_{n-1}). Therefore, along accepted steps above the floor, the discrete symmetric energy is

non-increasing:

Esymn+1≤Esymn.E_{\mathrm{sym}}^{n+1} \le E_{\mathrm{sym}}^n.

Proof. This is immediate from the rejection loop in Algorithm 1: the while loop rejects and halves Δtn\Delta t_n until either Esymn+1≤EsymnE_{\mathrm{sym}}^{n+1} \le E_{\mathrm{sym}}^n or the floor is reached.

While Proposition 5 concerns the symmetric energy, the quantity of physical interest is E(un)E(u^n) itself. The acceptance test is a statement about consecutive values of EsymE_{\mathrm{sym}}, and because those form a monotone chain it telescopes; combining it with the local bound of Corollary 1 gives a bound on the physical energy that does not accumulate with the number of steps.

Proposition 6 (Uniform physical energy bound). Assume E∈C3E \in C^3 with bounded second and third derivatives on the solution trajectory, and suppose every step n0<n≤Nn_0 < n \le N is accepted above the floor, so that Esymn≤Esymn0E_{\mathrm{sym}}^n \le E_{\mathrm{sym}}^{n_0}. Suppose further that the combined rule of Proposition 3(c) is in force, so that hk∣E˙k∣≤ατ1h_k|\dot{E}_k| \le\alpha\tau_1 for all kk. Then

E(un)≤E(un0)+ατ1+2C0Δtmax⁡2for all n0<n≤N,(16)E(u^n) \le E(u^{n_0}) + \alpha\tau_1 + 2C_0\Delta t_{\max}^2 \qquad\text{for all } n_0 < n \le N, \tag*{(16)}

where C0C_0 depends only on bounds on E′′E'' and E′′′E'''. In particular the bound is uniform in nn: the tolerance τ1\tau_1 caps the total admissible rise in the physical energy over the whole integration, not merely the rise per step.

Proof. By Proposition 1 and Corollary 1, ∣Esymk−E(uk)∣≤12ατ1+C0Δtmax⁡2|E_{\mathrm{sym}}^k - E(u^k)| \le\frac{1}{2}\alpha\tau_1 + C_0\Delta t_{\max}^2 for every kk. Hence

E(un)≤Esymn+12ατ1+C0Δtmax⁡2≤Esymn0+12ατ1+C0Δtmax⁡2≤E(un0)+ατ1+2C0Δtmax⁡2,E(u^n) \le E_{\mathrm{sym}}^n + \frac{1}{2}\alpha\tau_1 + C_0\Delta t_{\max}^2 \le E_{\mathrm{sym}}^{n_0} + \frac{1}{2}\alpha\tau_1 + C_0\Delta t_{\max}^2 \le E(u^{n_0}) + \alpha\tau_1 + 2C_0\Delta t_{\max}^2,

using Esymn≤Esymn0E_{\mathrm{sym}}^n \le E_{\mathrm{sym}}^{n_0} in the middle step.

Proposition 7 (Per-step physical quasi-monotonicity). Under the assumptions of Proposition 6, for any accepted step,

E(un+1)≤E(un)+12ατ1(1−ρn−1)++C1Δtn2,(17)E(u^{n+1}) \le E(u^n) + \frac{1}{2}\alpha\tau_1\left(1-\rho_n^{-1}\right)_+ + C_1\Delta t_n^2, \tag*{(17)}

where (⋅)+(\cdot)_+ denotes the positive part and C1C_1 depends on bounds on E′′E'', E′′′E''' and on ρmax⁡\rho_{\max}. In particular:

  • if ρn≤1\rho_n \le1 (non-increasing steps) the middle term vanishes and E(un+1)≤E(un)+C1Δtn2E(u^{n+1}) \le E(u^n) + C_1\Delta t_n^2;

  • if ∣ρn−1∣=O(Δtn)|\rho_n - 1| = O(\Delta t_n), the middle term is O(Δtn)O(\Delta t_n) times τ1\tau_1 and the bound is O(Δtn2)O(\Delta t_n^2) overall;

  • for a general ratio ρn∈(1,ρmax⁡]\rho_n \in(1,\rho_{\max}] the middle term is O(τ1)O(\tau_1) and does not vanish with Δtn\Delta t_n.

Proof. By Proposition 1,

Esymn=E(un)+12Δtn−1E˙n+Rn,Esymn+1=E(un+1)+12ΔtnE˙n+1+Rn+1,E_{\mathrm{sym}}^n = E(u^n) + \frac{1}{2}\Delta t_{n-1}\dot{E}_n + R_n,\qquad E_{\mathrm{sym}}^{n+1} = E(u^{n+1}) + \frac{1}{2}\Delta t_n\dot{E}_{n+1} + R_{n+1},

with ∣Rk∣≤C0hk2|R_k| \le C_0 h_k^2. The acceptance condition Esymn+1≤EsymnE_{\mathrm{sym}}^{n+1} \le E_{\mathrm{sym}}^n gives

E(un+1)−E(un)≤12(Δtn−1E˙n−ΔtnE˙n+1)+Rn−Rn+1.E(u^{n+1}) - E(u^n) \le\frac{1}{2}\left(\Delta t_{n-1}\dot{E}_n - \Delta t_n\dot{E}_{n+1}\right) + R_n - R_{n+1}.

Along a smooth trajectory E˙n+1=E˙n+O(Δtn)\dot{E}_{n+1} = \dot{E}_n + O(\Delta t_n), and Δtn−1=Δtn/ρn\Delta t_{n-1} = \Delta t_n/\rho_n, so

12(Δtn−1E˙n−ΔtnE˙n+1)=12ΔtnE˙n(ρn−1−1)+O(Δtn2)=12Δtn∣E˙n∣(1−ρn−1)+O(Δtn2),\frac{1}{2}\left(\Delta t_{n-1}\dot{E}_n - \Delta t_n\dot{E}_{n+1}\right) = \frac{1}{2}\Delta t_n\dot{E}_n\left(\rho_n^{-1} - 1\right) + O(\Delta t_n^2) = \frac{1}{2}\Delta t_n|\dot{E}_n|\left(1-\rho_n^{-1}\right) + O(\Delta t_n^2),

where the last equality uses E˙n≤0\dot{E}_n \le0. This is non-positive when ρn≤1\rho_n \le1; otherwise it is bounded by 12Δtn∣E˙n∣(1−ρn−1)≤12ατ1(1−ρn−1)\frac{1}{2}\Delta t_n|\dot{E}_n|(1-\rho_n^{-1}) \le\frac{1}{2}\alpha\tau_1(1-\rho_n^{-1}) by Corollary 1. Absorbing Rn−Rn+1R_n-R_{n+1} and the O(Δtn2)O(\Delta t_n^2) remainder into C1Δtn2C_1\Delta t_n^2 gives (17).

Remark. Proposition 7 makes explicit that the per-step deviation from physical energy monotonicity is a due to changes in step-ratio. It is not a step-size effect as it is proportional to (1−ρn−1)+(1-\rho_n^{-1})_+ and survives the limit Δtn→0\Delta t_n \to0 at fixed ρn>1\rho_n > 1. This is the same phenomenon that the variable-step GG-stability defect quantifies. It also explains why Proposition 6 is the more useful statement for practice. The individual O(τ1)O(\tau_1) rises cannot accumulate, because the underlying behaviour of EsymE_{\mathrm{sym}} is monotone.

Convergence

Proposition 8 (Global accuracy). Let u(t)u(t) be a sufficiently smooth solution of the gradient flow (1) on [0,T][0,T], and let {un}\{u^n\} be the SSAV–vBDF2 approximation produced by Algorithm 1. Suppose the step ratios satisfy ρn∈[ρmin⁡,ρmax⁡]⊂(0,1+2)\rho_n \in[\rho_{\min},\rho_{\max}] \subset(0,1+\sqrt{2}) and the step sizes satisfy Δtn∈[Δtmin⁡,Δtmax⁡]\Delta t_n \in[\Delta t_{\min},\Delta t_{\max}]. Then there exists C>0C>0, depending on TT, the smoothness of uu, and the ratio bounds, such that

∥un−u(tn)∥H≤CΔtmax⁡2for all tn≤T.\lVert u^n-u(t_n)\rVert_H \le C\Delta t_{\max}^2 \quad\text{for all }t_n\le T.

Proof. The variable-step BDF2 formula (3) with coefficients (4) has local truncation error O(Δtn3)O(\Delta t_n^3) per step for any step ratio ρn>0\rho_n>0. Convergence of variable-step BDF2 methods under bounded step-ratio constraints is established in [8, 10]; the requirement ρn<1+2\rho_n<1+\sqrt{2} ensures zero-stability of the method. Algorithm 1 enforces ρn∈[ρmin⁡,ρmax⁡]\rho_n\in[\rho_{\min},\rho_{\max}] for every accepted step, so the ratio bounds hold by construction. The result then follows from standard convergence theory for zero-stable, consistent linear multistep methods on variable grids.

The SSAV reformulation introduces an additional consistency error of order O(Δtn∣qn−1∣2)O(\Delta t_n\lvert q^n-1\rvert^2) from the coupling between uu and ww. Along smooth solutions, qn=wn/Enl(uˉn)+C=1+O(Δtn)q^n=w^n/\sqrt{E_{\mathrm{nl}}(\bar{u}^n)+C}=1+O(\Delta t_n), so this contributes only O(Δtn3)O(\Delta t_n^3) per step and does not affect the global O(Δtmax⁡2)O(\Delta t_{\max}^2) bound.

:::

Remark. Sharper convergence results for variable-step BDF2 that track the dependence on the step-ratio sequence are available. Those results show that the global error constant grows at most polynomially with TT under bounded ratios, and that tighter ratio bounds yield smaller constants. For the purposes of this paper, the classical convergence result suffices: the adaptive controller produces a step sequence with bounded ratios, and the scheme is second-order accurate on that sequence.

Time-stepper comparison

The time steppers Δt1\Delta t_1 and Δt2\Delta t_2 are given by

Δt1=τ1δ+DnΔt2=τ2δ2+Dn\Delta t_1=\frac{\tau_1}{\delta+D_n} \qquad \Delta t_2=\frac{\tau_2}{\sqrt{\delta^2+D_n}}

and the combined time stepper uses Δt1\Delta t_1 and Δt2\Delta t_2, as outlined in Algorithm 1. We compared the combined time stepper with Δt1\Delta t_1, Δt2\Delta t_2 and the time steppers from [2] and [12]. The scaled arc length controller from [12] uses the time stepper given by (12). The time stepper AM3 is the adaptive time stepping scheme from [2] based on the local truncation error. They used a solution computed with the third-order Adams-Moulton (AM3) scheme to control the error. The comparison is done for a Cahn–Hilliard run where the initial condition is a large collection of cosines on Ω∈[−π,π]\Omega\in[-\pi,\pi]. The initial condition was adjusted so that u∈[−0.5,0.5]u\in[-0.5,0.5] and m=0m=0. The time stepping methods were compared by observing the error in the energy. To compute the error in the energy we used a run with a constant time step of Δt=10−5\Delta t=10^{-5}. The error in Figure 2a is computed by

∫050∣E−Ee∣1+∣E∣ dt\int_0^{50}\frac{\lvert E-E_e\rvert}{1+\lvert E\rvert}\,\mathrm{d}t

where EeE_e is the energy from the run with constant time step. Each time stepper adjusts the adaptivity differently, so the error is plotted against the number of FFT. For this example, Δt2\Delta t_2 and the combined stepper do the best followed by Δt1\Delta t_1 and AM3. We can also see that Δt1\Delta t_1 and the scaled arclength time stepper are very similar which is expected according to Proposition 4. Figure 2a, shows that Δt1\Delta t_1 doesn’t do as well as the other time steppers and the reason is because it doesn’t capture the small dip in the energy between t=31t=31 and 3232 that is shown in Figure 2c. Figure 2b shows max⁡n∣Esymn−E(un)∣\max_n\lvert E_{\mathrm{sym}}^n-E(u^n)\rvert for Δt1\Delta t_1, Δt2\Delta t_2 and the combined monitor. In this plot, Δt1\Delta t_1 is optimal which is consistent with Proposition 2.

Numerical Experiments

Implementation details

Our full time-step selection algorithm is given in Algorithm 1. We define the minimum time step Δtmin⁡\Delta t_{\min} and the time stepper enforces a maximum time step of Δtmax⁡=τ/δ\Delta t_{\max}=\tau/\delta, so the physical step sizes satisfy Δtn∈[Δtmin⁡,Δtmax⁡]\Delta t_n\in[\Delta t_{\min},\Delta t_{\max}]. Additionally, a minimum and maximum time step ratio, ρmin⁡,ρmax⁡\rho_{\min},\rho_{\max} are defined to avoid drastically changing the time step. For simplicity, we set the tolerances equal to each other, τ=τ1=τ2\tau=\tau_1=\tau_2; note that with this choice the

Energy in the error plotted against the number of FFTs

(a) Energy in the error plotted against the number of FFTs. The error in E(u)E(u) is computed at t=50t = 50 against a run with a small constant time step of 1e−51\mathrm{e}{-5}.

Plot of the maximum energy difference for the monitors

(b) Plot of max⁡n∣Esym−E(u∗)∣\max_n \lvert E_{\mathrm{sym}} - E(u^*) \rvert for the monitors Δt1\Delta t_1, Δt2\Delta t_2 and both combined.

Energy

(c) Energy

Figure 2. A comparison of the time steppers for a Cahn–Hilliard run.

crossover of Proposition 3(c) occurs at ∣E˙∣=1|\dot{E}| = 1. Given initial values t0t_0 and Y0Y^0, we set Δt0=Δtmin⁡\Delta t_0 = \Delta t_{\min} and compute the solution values at t=t1t = t_1 using BDF1. In the examples below, the time stepper usually doesn’t reach the maximum time step and the minimum only during the initial transient phase when starting with random initial data. The parameter values, domain, minimum time step and tolerance used for each example is given in Table 1. For the spatial discretization we use Fourier pseudo-spectral methods with 1282128^2 or 2562256^2 modes for the 2D runs and 64364^3 for 3D. Additionally, we fix the SAV parameter C=1C = 1 for all the models except FCH, where for FCH C=2562C = 256^2 which was taken from [16]. For all the models except FCH the stabilization parameter comes from [17]. For FCH, the authors in [16] used S=3ε2S = 3\varepsilon^2 but this choice wasn’t adequate and through experimentation we found S=10S = 10 was a reasonable choice. The models we consider are subject to the following mass constraint

ParametersΩ\OmegaResolutionΔtmin⁡\Delta t_{\min}τ\tau
CHε=0.06\varepsilon= 0.06 S=2S = 2[−π,π]2[-\pi,\pi]^21282128^210−510^{-5}10−510^{-5}
OKγ=3.5\gamma= 3.5 S=2S = 2[0,4π]2[0,4\pi]^21282128^210−510^{-5}10−510^{-5}
PFCβ=0.2\beta= 0.2 m=0.25m = 0.25 S=2S = 2[0,8π]3[0,8\pi]^364364^310−210^{-2}10−310^{-3}
FCHε=0.1\varepsilon= 0.1 η=ε2\eta= \varepsilon^2 S=10S = 10[0,4π]2[0,4\pi]^22562256^210−510^{-5}10−510^{-5}

Table 1. Set up for each example

m=1∣Ω∣∫Ωu dx.m = \frac{1}{|\Omega|}\int_{\Omega} u\,dx.

In three of the examples below, we start from random initial data, so the initial mass can differ slightly from mm. We adjust the initial condition to ensure it has the correct mean. For the examples below this mass constraint was fulfilled.

Convergence study with exact solution

To show that the adaptive time stepper is second order, we conduct a convergence study for the 2D Cahn–Hilliard model. We will use the following initial condition

u0=0.2(rand⁡(Nx,Ny)−1/2)u_0 = 0.2(\operatorname{rand}(N_x,N_y) - 1/2)

on the domain Ω=[−π,π]2\Omega= [-\pi,\pi]^2 with 64264^2 Fourier modes where rand⁡(Nx,Ny)\operatorname{rand}(N_x,N_y) is a random number drawn from the uniform distribution in (0,1)(0,1). We vary τ\tau and set Δtmin⁡=τ/100\Delta t_{\min} = \tau/100. The error is computed against a run with τ=1.2207e−06\tau= 1.2207\mathrm{e}{-06}. The error in uu is computed by

eu=ΔxΔy∑i=1Nx∑j=1Ny∣u−uE∣2e_u = \sqrt{\Delta x\Delta y\sum_{i=1}^{N_x}\sum_{j=1}^{N_y}|u-u_E|^2}

We conducted 5 runs with different seeds and took the average of the errors across those runs. The error in uu and max⁡∣Esym−E∣\max|E_{\mathrm{sym}}-E| are presented in Table 2 and a plot of the errors is shown in Figure 3. From the plot and table we can see second order convergence for uu and first order convergence for max⁡∣Esym−E∣\max|E_{\mathrm{sym}}-E|.

Plot of the error in $u$ and $\max |E_{\mathrm{sym}}-E|$ at $t=1$

Figure 3. Plot of the error in uu and max⁡∣Esym−E∣\max|E_{\mathrm{sym}}-E| at t=1t=1.

τ\tauError in uuRatemax⁡∣Esym−E(u)∣\max|E_{\mathrm{sym}}-E(u)|RateRejected steps
1.250e−032.6694e−01−4.1668e−04-4.4
6.2500e−041.7128e−010.64022.0752e−041.00576.0
3.125e−046.3639e−021.42831.0332e−041.00624.0
1.5625e−041.3963e−022.18835.1431e−051.00623.6
7.8125e−053.9387e−031.82592.7076e−050.92583.8
3.9063e−051.0264e−031.94011.6537e−050.71132.0
1.9531e−052.6229e−041.96849.2386e−060.83993.6
9.7656e−066.7136e−051.96604.8777e−060.92153.6

Table 2. Errors at t=1t=1 along with the rate of convergence.

Cahn–Hilliard spot collapse

The Cahn–Hilliard model has the following free energy and PDE

E(u)=1∣Ω∣∫Ω(ε22∣∇u∣2+14(1−u2)2).E(u) = \frac{1}{|\Omega|}\int_{\Omega}\left(\frac{\varepsilon^2}{2}|\nabla u|^2+\frac{1}{4}(1-u^2)^2\right).
ut=Δ(−ε2Δu+u3−u)u_t = \Delta(-\varepsilon^2\Delta u + u^3-u)

For the Cahn–Hilliard model, we will look at the spot collapse example from [17]. The initial condition is two circles with different radii given by the following equation

u0=−[tanh⁡((x+0.8)2+y2−1.41.5ε)+tanh⁡((x−1.7)2+y2−0.51.5ε)]+1(18)u_0=-\left[\tanh\left(\frac{\sqrt{(x+0.8)^2+y^2}-1.4}{1.5\varepsilon}\right)+\tanh\left(\frac{\sqrt{(x-1.7)^2+y^2}-0.5}{1.5\varepsilon}\right)\right]+1 \tag*{(18)}

The two tanh factors each transition over a width proportional to ε\varepsilon. The shift and rescaling in (18) are chosen so that u≈1u\approx1 inside either circle and u≈−1u\approx-1 everywhere else. The energy, time step and profiles of uu are plotted in Figure 4. In Figure 4b, we see that the time step follows the behaviour of the energy. At around t=19t=19, there is a rapid decrease in the energy so the time step decreases. As the energy flattens out after t=20t=20, there is an increase in the time step.

Plots of energy, time step, and profiles of $u$

Figure 4. Plots of energy, time step, and profiles of uu for the 2D Cahn–Hilliard that models the spot collapse.

Ohta–Kawasaki mixed states

The next model we will look at is the Ohta–Kawasaki model, which is the nonlocal extension of the Cahn–Hilliard model. The free energy and PDE are given by

E(u)=1∣Ω∣∫Ω(12γ2∣∇u∣2+14(1−u2)2+12∣∇v∣2) dxE(u)=\frac{1}{|\Omega|}\int_{\Omega}\left(\frac{1}{2\gamma^2}|\nabla u|^2+\frac{1}{4}(1-u^2)^2+\frac{1}{2}|\nabla v|^2\right)\,\mathrm{d}x
ut=Δ(−1γ2Δu+u3−u+v)u_t=\Delta\left(-\frac{1}{\gamma^2}\Delta u+u^3-u+v\right)

where vv is given by the boundary value problem −Δv=u−m-\Delta v = u - m with periodic boundary conditions on ∂Ω\partial\Omega. For the Ohta–Kawasaki run, we use random initial condition

u0=m+0.002(rand⁡(Nx,Ny)−1/2)u_0 = m + 0.002(\operatorname{rand}(N_x,N_y) - 1/2)

where rand⁡(Nx,Ny)\operatorname{rand}(N_x,N_y) is a random number drawn from the uniform distribution in (0,1)(0,1). Results are shown in Figure 5 for various mm values. In Figure 5a, for all three runs, the energy starts out flat so there is an increase in the time step. The time step decreases when the energy drops and increases again when the energy flattens out. For these runs, there were some early rejected steps due to using random initial data. The number of rejected steps for each run is given in Table 3. The rejected steps occurred at the beginning of the run and for the 3 runs we have a negligible rejection rate.

ModelAttempted stepsRejected stepsRejection rate
OKm=0.05m = 0.059290190.0097%
OKm=0.15m = 0.1565981110.0167%
OKm=0.25m = 0.255537530.0054%
PFC104925023.8322%

Table 3. Number of rejected steps and the rejection rate for each model. The Cahn–Hilliard and functionalized Cahn–Hilliard run didn’t have any rejected steps.

Energy plots

(a) Energy

Time step plots

(b) Time step

Profiles of $u$

(c) Profiles of uu

Figure 5. Plots of energy, time step, and final profiles of uu for the 2D Ohta-Kawasaki model for m=0.05m = 0.05, 0.150.15 and 0.250.25.

Phase–Field Crystal in 3D

The PFC free energy for this model is given by

E(u)=1∣Ω∣∫Ω(12∣(Δ+1)u∣2+14(u2−β)2) dxE(u) = \frac{1}{|\Omega|}\int_{\Omega}\left(\frac{1}{2}|(\Delta+1)u|^2 + \frac{1}{4}(u^2-\beta)^2\right)\,dx

where β\beta is a parameter. For the PFC run we use the following random initial condition

u0=m+0.2(rand⁡(Nx,Ny,Nz)−1/2)u_0 = m + 0.2(\operatorname{rand}(N_x,N_y,N_z) - 1/2)

where rand⁡(Nx,Ny,Nz)\operatorname{rand}(N_x, N_y, N_z) is a random number drawn from the uniform distribution in (0,1)(0, 1). The results are shown in Figure 6. In Figure 6a, for t∈[500,2000]t \in[500, 2000] the energy appears flat on the scale of the plot, but the time step continues to fluctuate. These fluctuations are driven by corresponding but inversely related variations in ∣dE/dt∣\lvert dE/dt\rvert, which ranges between 10−910^{-9} and 10−510^{-5} in this interval. When ∣dE/dt∣\lvert dE/dt\rvert increases, the controller reduces the step size, and vice versa. Similar to the Ohta-Kawasaki example, due to using random initial data along with a coarser grid we have some rejected steps. This run had 250 rejected steps out of 1049 attempted steps, which yields a rejection rate of 24.2682%. Figure 7a depicts the number of rejected steps that occurs per time step, and this shows that there is at most 1 rejected step per time step. Figure 7b shows that the vast majority of rejected steps, 246 out of a total of 250, are concentrated at the start of the run, within the time interval t∈[0,2.5]t \in[0, 2.5],

Energy plot

(a) Energy

Time step plot

(b) Time step

Final profile of $u$

(c) Profile of uu at t=2000t = 2000. For this set of parameters, we see a spherical packing.

Figure 6. Plots of energy, time step, and final profile of uu for the 3D PFC model with m=0.25m = 0.25.

Plots of the number of rejected steps for the 3D PFC model with $m = 0.25$

Figure 7. Plots of the number of rejected steps for the 3D PFC model with m=0.25m = 0.25.

Functionalized Cahn–Hilliard

The FCH model is a variation that includes additional non-linearities and derivative couplings to model the behaviour of lipid bilayer membranes [2] which contain both hydrophobic and hydrophilic parts. Consider the following FCH free energy

E(u)=1∣Ω∣∫Ω(12(ε2Δu)2−(1+η2)ε2∣∇u∣2) dx+W(u)E(u) = \frac{1}{|\Omega|}\int_{\Omega}\left(\frac{1}{2}(\varepsilon^2\Delta u)^2-\left(1+\frac{\eta}{2}\right)\varepsilon^2|\nabla u|^2\right)\,dx+W(u)

where

W(u)=1∣Ω∣∫Ω(3ε2u2∣∇u∣2+12(F′(u))2−ηF(u)) dxW(u) = \frac{1}{|\Omega|} \int_{\Omega} \left( 3\varepsilon^2u^2|\nabla u|^2 + \frac{1}{2}(F'(u))^2 - \eta F(u) \right)\,dx

and the variational derivative of the nonlinear functional is

δGδu=−6ε2(u∣∇u∣2+u2Δu)+F′(u)F′′(u)−ηF′(u).\frac{\delta G}{\delta u} = -6\varepsilon^2\left(u|\nabla u|^2 + u^2\Delta u\right) + F'(u)F''(u) - \eta F'(u).

Taking the variational derivative gives the following PDE

ut=Δ(ε4Δ2u+(2+η)ε2Δu+δGδu)u_t = \Delta\left(\varepsilon^4\Delta^2u + (2+\eta)\varepsilon^2\Delta u + \frac{\delta G}{\delta u}\right)

For the FCH model, we will look at the meandering instability example from [16]. The initial condition is given by a smooth approximation of

ϕ0={−1,x>sin⁡(y)+0.34,−1,x<sin⁡(y)−0.34,1,otherwise(19)\phi_0 = \begin{cases} -1, & x > \sin(y) + 0.34, \\ -1, & x < \sin(y) - 0.34, \\ 1, & \text{otherwise} \end{cases} \tag*{(19)}

where the process to smooth the initial data is outlined in [16]. Our results are shown in Figure 8 and were compared to [16] to verify our results. The profiles of uu in Figure 8c resemble the results in [16]. In Figure 8a and Figure 8b, we see a decrease in the energy for t∈[0,20]t \in[0,20], so there is a decrease in the time step. For t>20t > 20 the energy flattens out and the time step starts to increase.

Energy

(a) Energy

Time step

(b) Time step

Profiles of $u$ at times $t = 0$, 10, 15, 20, 50, and 100

(c) Profiles of uu at times t=0t = 0, 10, 15, 20, 50, and 100.

Figure 8. Plots of energy, time step, and profiles of uu at various times for the 2D FCH with smooth initial condition from [16].

Efficiency comparison

We compare our adaptive time stepping scheme with using fixed time step to show how efficient our scheme is. Table 4 shows the number of FFT evaluations and the L2L_2 norm of ∣Esym−E(u)∣|E_{\mathrm{sym}} - E(u)| for each of the models we’ve shown. We include runs with various fixed time steps and in Table 5 choose the run with an error closest to the adaptive run. For Cahn–Hilliard and Ohta–Kawasaki we have approximately 10 times the speedup if we use an adaptive method over a fixed time step, for PFC it’s approximately 18.9 times and for FCH about 3.5 times.

CH Spot Collapse
Time step or toleranceFFTL2L_2 Norm of Error
τ\tau10−510^{-5}841242.0825e−05
Δt\Delta t10−210^{-2}90014.1706e−03
10−310^{-3}900014.9919e−05
10−410^{-4}9000011.6478e−05
Ohta-Kawasaki
Time step or toleranceFFTL2L_2 Norm of Error
τ\tau10−510^{-5}2787226.9410e−05
Δt\Delta t10−210^{-2}300016.0315e−04
10−310^{-3}3000011.9743e−04
10−410^{-4}30000016.2650e−05
Phase–field crystal
Time step or toleranceFFTL2L_2 Norm of Error
τ\tau10−510^{-5}31489.1715e−05
Δt\Delta t10106012.5389e−04
1160011.7211e−04
0.10.1600018.8917e−05
Functionalized Cahn–Hilliard
Time step or toleranceFFTL2L_2 Norm of Error
τ\tau10−310^{-3}1441417.4185e−06
Δt\Delta t10−310^{-3}5000018.0170e−06
5×10−45 \times10^{-4}10000015.6238e−06

Table 4. Number of FFT evaluations and the norm of the error for adaptive and constant time stepping for each example.

ModelFixed Δt\Delta tFixed FFTsFixed NormAdaptive FFTsAdaptive NormApproximate Speedup
CH spot10−310^{-3}9000011.6478e−05841242.0825e−0510.7
OK (m=0.05m = 0.05)10−410^{-4}30000016.2650e−052787226.9410e−0510.8
PFC 3D10−110^{-1}600018.8917e−0531489.1715e−0518.9
FCH10−310^{-3}5000018.0170e−061153127.4185e−063.5

Table 5. Condensed version of Table 4 presenting the adaptive time-step run alongside the fixed time-step run whose error norm most closely matches the adaptive case. This table also reports the approximate speedup.

Conclusions

We have shown that energy-rate–based adaptive time stepping for gradient flows has a natural interpretation as equidistribution of a monitor function along the energy curve. The monitor g=∣E˙∣g = |\dot{E}| is asymptotically optimal in the minimax sense: it minimises the leading-order maximum symmetric-energy discrepancy for a fixed step budget, and the optimal leading-order value is (E(0)−E(T))/(2N)(E(0) - E(T))/(2N), depending only on the total energy drop and the number of steps. A combined monitor that switches to g=∣E˙∣g = \sqrt{|\dot{E}|} near equilibrium caps step growth where the first rule becomes vacuous, and does so without weakening the energy-error bound: the combined rule controls Δtn∣E˙n∣\Delta t_n|\dot{E}_n| by τ1\tau_1 in both regimes. The arclength parameter β\beta used in prior adaptive stepping schemes [12, 18] is shown as β=Δtmax⁡/τ1\beta= \Delta t_{\max}/\tau_1,

the ratio of the largest permitted step to the energy-error tolerance. These results connect the ideas energy-stable phase-field numerics and mesh equidistribution which developed largely independently.

The adaptive controller built on this framework proposes steps from the energy dissipation rate and accepts them only when a computable symmetric energy EsymnE_{\mathrm{sym}}^n does not increase. Because the accepted EsymE_{\mathrm{sym}} values form a monotone chain, this yields a bound on the physical energy that is uniform in the number of steps, sup⁡nE(un)≤E(u0)+τ1+O(Δtmax⁡2)\sup_n E(u^n) \le E(u^0) + \tau_1 + O(\Delta t_{\max}^2): the user’s tolerance caps the admissible energy rise over the entire integration, not merely per step. Per step, the deviation from monotonicity is proportional to (1−ρn1)+(1-\rho_n^1)_+, so it is a step-ratio rather than a step-size effect and vanishes when the controller keeps ratios near unity. The SSAV–vBDF2 scheme achieves second-order global accuracy under standard step-ratio restrictions. The guarantee is a posteriori, depending on a rejection mechanism. Across Cahn–Hilliard, Ohta–Kawasaki, PFC, and FCH test problems, the controller takes small steps during rapid energy changes and grows the step aggressively on plateaus, with no accepted step violating energy monotonicity.

Several extensions are worth pursuing. Higher-order BDF methods (BDF3–BDF6) can reach up to sixth-order accuracy, and the equidistribution analysis would need to account for the higher-order local truncation error structure. Whether the energy-error bounds remain useful as T→∞T \to\infty depends on the asymptotic dynamics of the specific gradient flow; for flows approaching stable equilibria one expects the situation to improve as ∣∇E∣→0\lvert\nabla E\rvert\to0, but a rigorous statement would require long-time stability estimates. Vector-valued problems such as Cahn–Hilliard–Navier–Stokes can in principle be handled the same way, though the energy structure is more involved and the interaction between different dissipation mechanisms (viscous and diffusive) may require separate monitors or a multi-component equidistribution strategy.

Data availability

No data was used for the research in this article.

Acknowledgements

The authors thank NSERC (2021-04114) for financial support and John Stockie for helpful discussions.

Declaration of generative AI

During the preparation of this manuscript the authors used Writefull for Overleaf in order to paraphrase some sentences and make edits to the document. The authors also used Claude code to comment and debug some of the code. The authors reviewed and edited the output and take full responsibility for the content of the publication.

References

  1. [1]J. W. Cahn and J. E. Hilliard. Free Energy of a Nonuniform System. I. Interfacial Free Energy. The Journal of Chemical Physics, 28(2):258–267, 08 2004.
  2. [2]A. Christlieb, K. Promislow, Z. Tan, S. Wang, B. Wetton, and S. M. Wise. Benchmark computation of morphological complexity in the functionalized cahn-hilliard gradient flow. Communications in Computational Physics, 37(4):877–920, Apr. 2025.arxiv.org/abs/2006.04784
  3. [3]C. de Boor. Good approximation by splines with variable knots ii. practical algorithms. In G. A. Watson, editor, Conference on Numerical Solution of Differential Equations, volume 363 of Lecture Notes in Mathematics, pages 12–20. Springer-Verlag, Berlin, 1974.
  4. [4]K. R. Elder and M. Grant. Modeling Elastic and Plastic Deformations in Nonequilibrium Processing Using Phase Field Crystals. Phys. Rev. E, 70:051605, Nov 2004.pubmed.ncbi.nlm.nih.gov/15600626
  5. [5]K. R. Elder, M. Katakowski, M. Haataja, and M. Grant. Modeling Elasticity in Crystal Growth. Phys. Rev. Lett., 88:245701, Jun 2002.pubmed.ncbi.nlm.nih.gov/12059316
  6. [6]G. Gompper and M. Schick. Correlation between structural and interfacial properties of amphiphilic systems. Phys. Rev. Lett., 65:1116–1119, Aug 1990.pubmed.ncbi.nlm.nih.gov/10043109
  7. [7]E. Hairer, S. P. Nørsett, and G. Wanner. Solving Ordinary Differential Equations I: Nonstiff Problems, volume 14 of Springer Series in Computational Mathematics. Springer-Verlag, Berlin, 1987.DOI
  8. [8]E. Hairer and G. Wanner. Solving Ordinary Differential Equations II: Stiff and Differential-Algebraic Problems, volume 14 of Springer Series in Computational Mathematics. Springer, Berlin, 2 edition, 1996.
  9. [9]W. Huang and R. D. Russell. Adaptive Moving Mesh Methods, volume 174. Springer Science & Business Media, 2010.DOI
  10. [10]A. Iserles and S. P. Nørsett. On the theory of variable-step multistep methods. IMA Journal of Numerical Analysis, 11:79–99, 1991.
  11. [11]T. Ohta and K. Kawasaki. Equilibrium morphology of block copolymer melts. Macromolecules, 19(10):2621–2632, 1986.DOI
  12. [12]Z. Qiao, Z. Zhang, and T. Tang. An adaptive time-stepping strategy for the molecular beam epitaxy models. SIAM Journal on Scientific Computing, 33:1395–1414, 2011.DOI
  13. [13]J. Shen, J. Xu, and J. Yang. The scalar auxiliary variable (SAV) approach for gradient flows. Journal of Computational Physics, 353:407–416, 2018.DOI
  14. [14]J. Shen, J. Xu, and J. Yang. A new class of efficient and robust energy stable schemes for gradient flows. SIAM Review, 61:474–506, 2019.arxiv.org/abs/1710.01331
  15. [15]S.M. Wise, C. Wang, and J. S. Lowengrub. An energy-stable and convergent finite-difference scheme for the phase-field crystal equation. SIAM Journal on Numerical Analysis, 47(3):2269–2288, 2009.
  16. [16]C. Zhang, J. Ouyang, C. Wang, and S. M. Wise. Numerical comparison of modified-energy stable SAV-type schemes and classical BDF methods on benchmark problems for the functionalized Cahn–Hilliard equation. Journal of Computational Physics, 423, 2020.DOI
  17. [17]J. Zhang, C. Chen, and X. Yang. Efficient and energy stable method for the Cahn–Hilliard phase-field model for diblock copolymers. Applied Numerical Mathematics, 151:263–281, 2020.DOI
  18. [18]Z. Zhang and Z. Qiao. An adaptive time-stepping strategy for the Cahn–Hilliard equation. Communications in Computational Physics, 11:1261–1278, 2012.DOI

Paper details

vlnc:W_3t7m7zmp
Version
v1 · latest
Published
Fresh — added to the Hub within the last 30 days
Added
License
CC BY 4.0
Usage

views · 8

downloads · 0

A view counts once per browser per day, a download each time the PDF is requested.

  • Mathematics

Writefull for Overleaf, Claude Code

View statement
Looking for related papers…
Contents