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 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 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, , 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 be a real Hilbert space with inner product . We consider energies of the abstract form
where is a densely defined self-adjoint differential operator that is bounded below on the relevant state space, and is Fréchet differentiable. We write
For each model the governing gradient flow takes the form
where is a self-adjoint non-positive mobility operator. In the sequel we take with periodic (or homogeneous Neumann) boundary conditions, so that
, one has . This structure guarantees energy dissipation. Defining the chemical potential , we have
which expresses the physical irreversibility of relaxation toward critical points of the energy. The same structure enforces a mass constraint, .
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 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 , producing a modified energy that is quadratic in 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,
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
and the mass-preserving gradient flow
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 asymptotically minimises the leading-order maximum symmetric-energy discrepancy for a fixed number of steps (Proposition 2). We also give the arclength parameter 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 during rapid dissipation and 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 in both regimes (Corollary 1).
Third, we pair this controller with SSAV–vBDF2 discretization and a symmetric-energy acceptance criterion (§ 4). Accepted steps satisfy by construction, from which we deduce a bound on the physical energy that is uniform in (Proposition 6) together with a per-step bound whose deviation from monotonicity is proportional to (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 be a real Hilbert space with inner product . We consider equation (1), where 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 () and nonlinear () parts
We assume is Fréchet differentiable and write
For the pointwise case
one has . In this pointwise case we assume that the nonlinear term satisfies:
with bounded derivatives: and .
is bounded below: there exists such that for all relevant .
The double-well potential satisfies these conditions on any bounded subset of , with . 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 and hold on the relevant solution trajectories. We adopt this convention throughout: the derivative bounds on 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 . In such cases we assign all gradient-dependent nonlinear terms to , verify that holds for the computed solutions, and use the full variational derivative
in place of the pointwise derivative . The SAV construction is unchanged at the functional level, though the splitting and the variational derivative are problem-specific.
Defining and using (1), the energy dissipation property takes the form
SAV Reformulation
Following [13], we introduce the auxiliary variable
which satisfies, by the chain rule for the functional ,
The SAV system to be solved is
where
Define the SAV energy
Then
Hence is nonincreasing along solutions of the SAV system. Moreover, when holds exactly, .
Variable-Step BDF2 Discretization
Let be a partition and define
For , define the step ratio
A variable-step BDF2 formula approximates by
where
are the BDF2 coefficients from [7].
We set, for the step producing ,
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 but the SSAV scheme maintains second order accuracy.
The SSAV–vBDF2 scheme (linearly implicit in ) takes the form, for , as
where is a stabilizing parameter and is the discrete chemical potential.
With negative semidefinite under periodic or homogeneous Neumann boundary conditions, this is the dissipative direction, consistent with (1). Mass conservation comes for free as applying zeros out changes to the mean.
Energy-Rate Equidistribution
The energy dissipation rate 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 -adaptivity. Introduce a computational coordinate and a strictly increasing map
A uniform mesh in then generates a nonuniform mesh in physical time. Given a positive monitor function , the usual equidistribution principle is to choose the map so that
Thus regions in which is large receive smaller physical time steps, while regions in which 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
corresponds to equidistributing arclength along the scaled energy curve
Other possibilities include
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,

Figure 1. Comparison of a scaled-arclength monitor and a combined energy-rate monitor for the energy histories and . 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.
has a smoothly decreasing dissipation rate, while
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
This identifies as the natural monitor and leads to an asymptotic minimax result: equidistributing 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 and 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 to keep a local error estimator below a tolerance, without reference to the energy structure. Our controllers adjust 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
Note that , where . For any sequence and any twice continuously Fréchet differentiable energy with bounded second derivative on the relevant region of state space,
If , the second-order term may be written explicitly as
We now look at points sampled from an exact smooth trajectory. For ,
and hence
Substituting this into (8) gives
Proposition 1 (Energy–dissipation linkage). Let be a trajectory and let be twice continuously Fréchet differentiable with bounded second derivative on a neighbourhood of the trajectory. For , define by (7). Then
Consequently, for a gradient flow with ,
Proof. Equation (8) gives
Using and
gives (9). □
Remark. The closeness is first-order, not second-order. The leading term is , which does not vanish for solutions undergoing active dissipation. We exploit this gap for adaptivity. The departure from 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 directly bounds this departure by while keeping the remainder small:
Equidistribution framework
Proposition 1 shows that the leading symmetric-energy discrepancy is controlled by the product . We now formulate the corresponding minimax problem in terms of a continuous mesh map.
Let denote a computational coordinate and let be a continuously differentiable, strictly increasing map with
A uniform computational mesh induces the physical nodes . If
then
and Proposition 1 gives the leading symmetric-energy discrepancy
Definition 3.1 (Equidistribution [3]). A mesh map equidistributes a positive monitor function if
where
Proposition 2 (Asymptotic minimax equidistribution). Let and suppose
Let be a , strictly increasing mesh map with and , and let . Then the leading-order maximum symmetric-energy discrepancy is
Among all such mesh maps, the leading term is minimized by the equidistribution condition
The minimum leading-order value is
For a monotonically decaying energy this becomes
Proof. Set
Since is increasing,
Because ,
Equality holds precisely when is constant, which is (10). Combining this minimax identity with the leading-order expansion above proves the result. When ,
giving (11). □
Remark. The positivity assumption 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 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 denote the energy dissipation rate associated with step .
(a) The rule equidistributes the monitor and ensures the symmetric-energy discrepancy satisfies .
(b) The rule equidistributes . Near equilibrium, where and rule (a) places no effective restriction on the step, rule (b) caps the growth at ; the associated energy discrepancy still tends to zero, so accuracy is not sacrificed. Away from equilibrium, where , rule (b) is the weaker of the two and is inactive.
(c) Taking with safety factor selects rule (a) when and rule (b) otherwise. This corresponds to the combined monitor
which adapts between optimal discrepancy control during rapid dissipation and controlled step growth near equilibrium.
Proof. Part (a): substituting into the energy–dissipation linkage (9) gives .
Part (b): if with , then , which is finite for every but unbounded as ; the corresponding energy discrepancy is . Rule (a) gives , 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 , i.e. , i.e. . □
Corollary 1 (Uniform local discrepancy bound for the combined rule). Let with . Then, in both regimes,
Proof. If then rule (a) is active and . Otherwise rule (b) is active and .
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]
equidistributes the arclength monitor along the energy curve . The parameter is thus the ratio of the largest permitted step to the energy-error tolerance of Proposition 3(a); equivalently, is the dissipation rate at which the two constraints balance.
Proof. Regularize rule (a) as with . As this reduces to , recovering (14); as it saturates at , which we identify with , so . Factoring out of the square root,
which is (12). The corresponding equidistribution condition distributes time steps uniformly along the arclength of the curve .
Remark. Both sides of (12) carry units of time, so is dimensionless. This form also matches the rule used in [12, 18], where the step is taken as divided by a square root of the same shape; Proposition 4 identifies their tuning parameter with .
Energy–rate–based timestep selection
Once is available, the newest symmetric-energy difference provides the discrete rate estimator
This is a computable approximation to the recent energy dissipation rate. The energy–dissipation linkage motivates the practical adaptive rules
where are user-selected tolerances. In practice one takes
where is a safety factor.
Note that 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 , previous step size , tolerances , safety factor , regularization , step bounds , and ratio bounds .
(Monitor) Compute the current symmetric energy
and the most recent discrete energy-rate estimator
(Propose step) Set
(Enforce bounds) Set
(Attempt step) Set
and compute a candidate via the SSAV–vBDF2 scheme (5)–(6) using step size .
(Accept/reject) Compute
Set .
while and do
Reject step and reduce
Update .
Recompute the candidate with the reduced .
Recompute .
end while
Accept step and record
return .
The ratio clamp in step 3 is applied against , not , so that it is a genuine restriction. The rejection loop in steps 7–11 halves down to rather than to ; without this floor, repeated halving could drive below 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 only if , or if has reached the floor . Therefore, along accepted steps above the floor, the discrete symmetric energy is
non-increasing:
Proof. This is immediate from the rejection loop in Algorithm 1: the while loop rejects and halves until either or the floor is reached.
While Proposition 5 concerns the symmetric energy, the quantity of physical interest is itself. The acceptance test is a statement about consecutive values of , 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 with bounded second and third derivatives on the solution trajectory, and suppose every step is accepted above the floor, so that . Suppose further that the combined rule of Proposition 3(c) is in force, so that for all . Then
where depends only on bounds on and . In particular the bound is uniform in : the tolerance 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, for every . Hence
using in the middle step.
Proposition 7 (Per-step physical quasi-monotonicity). Under the assumptions of Proposition 6, for any accepted step,
where denotes the positive part and depends on bounds on , and on . In particular:
if (non-increasing steps) the middle term vanishes and ;
if , the middle term is times and the bound is overall;
for a general ratio the middle term is and does not vanish with .
Proof. By Proposition 1,
with . The acceptance condition gives
Along a smooth trajectory , and , so
where the last equality uses . This is non-positive when ; otherwise it is bounded by by Corollary 1. Absorbing and the remainder into 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 and survives the limit at fixed . This is the same phenomenon that the variable-step -stability defect quantifies. It also explains why Proposition 6 is the more useful statement for practice. The individual rises cannot accumulate, because the underlying behaviour of is monotone.
Convergence
Proposition 8 (Global accuracy). Let be a sufficiently smooth solution of the gradient flow (1) on , and let be the SSAV–vBDF2 approximation produced by Algorithm 1. Suppose the step ratios satisfy and the step sizes satisfy . Then there exists , depending on , the smoothness of , and the ratio bounds, such that
Proof. The variable-step BDF2 formula (3) with coefficients (4) has local truncation error per step for any step ratio . Convergence of variable-step BDF2 methods under bounded step-ratio constraints is established in [8, 10]; the requirement ensures zero-stability of the method. Algorithm 1 enforces 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 from the coupling between and . Along smooth solutions, , so this contributes only per step and does not affect the global 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 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 and are given by
and the combined time stepper uses and , as outlined in Algorithm 1. We compared the combined time stepper with , 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 . The initial condition was adjusted so that and . 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 . The error in Figure 2a is computed by
where 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, and the combined stepper do the best followed by and AM3. We can also see that and the scaled arclength time stepper are very similar which is expected according to Proposition 4. Figure 2a, shows that 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 and that is shown in Figure 2c. Figure 2b shows for , and the combined monitor. In this plot, 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 and the time stepper enforces a maximum time step of , so the physical step sizes satisfy . Additionally, a minimum and maximum time step ratio, are defined to avoid drastically changing the time step. For simplicity, we set the tolerances equal to each other, ; note that with this choice the

(a) Energy in the error plotted against the number of FFTs. The error in is computed at against a run with a small constant time step of .

(b) Plot of for the monitors , and both combined.

(c) Energy
Figure 2. A comparison of the time steppers for a Cahn–Hilliard run.
crossover of Proposition 3(c) occurs at . Given initial values and , we set and compute the solution values at 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 or modes for the 2D runs and for 3D. Additionally, we fix the SAV parameter for all the models except FCH, where for FCH which was taken from [16]. For all the models except FCH the stabilization parameter comes from [17]. For FCH, the authors in [16] used but this choice wasn’t adequate and through experimentation we found was a reasonable choice. The models we consider are subject to the following mass constraint
| Parameters | Resolution | ||||
| CH | |||||
| OK | |||||
| PFC | |||||
| FCH |
Table 1. Set up for each example
In three of the examples below, we start from random initial data, so the initial mass can differ slightly from . 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
on the domain with Fourier modes where is a random number drawn from the uniform distribution in . We vary and set . The error is computed against a run with . The error in is computed by
We conducted 5 runs with different seeds and took the average of the errors across those runs. The error in and 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 and first order convergence for .

Figure 3. Plot of the error in and at .
| Error in | Rate | Rate | Rejected steps | ||
| 1.250e−03 | 2.6694e−01 | − | 4.1668e−04 | - | 4.4 |
| 6.2500e−04 | 1.7128e−01 | 0.6402 | 2.0752e−04 | 1.0057 | 6.0 |
| 3.125e−04 | 6.3639e−02 | 1.4283 | 1.0332e−04 | 1.0062 | 4.0 |
| 1.5625e−04 | 1.3963e−02 | 2.1883 | 5.1431e−05 | 1.0062 | 3.6 |
| 7.8125e−05 | 3.9387e−03 | 1.8259 | 2.7076e−05 | 0.9258 | 3.8 |
| 3.9063e−05 | 1.0264e−03 | 1.9401 | 1.6537e−05 | 0.7113 | 2.0 |
| 1.9531e−05 | 2.6229e−04 | 1.9684 | 9.2386e−06 | 0.8399 | 3.6 |
| 9.7656e−06 | 6.7136e−05 | 1.9660 | 4.8777e−06 | 0.9215 | 3.6 |
Table 2. Errors at along with the rate of convergence.
Cahn–Hilliard spot collapse
The Cahn–Hilliard model has the following free energy and PDE
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
The two tanh factors each transition over a width proportional to . The shift and rescaling in (18) are chosen so that inside either circle and everywhere else. The energy, time step and profiles of are plotted in Figure 4. In Figure 4b, we see that the time step follows the behaviour of the energy. At around , there is a rapid decrease in the energy so the time step decreases. As the energy flattens out after , there is an increase in the time step.

Figure 4. Plots of energy, time step, and profiles of 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
where is given by the boundary value problem with periodic boundary conditions on . For the Ohta–Kawasaki run, we use random initial condition
where is a random number drawn from the uniform distribution in . Results are shown in Figure 5 for various 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.
| Model | Attempted steps | Rejected steps | Rejection rate | |
| OK | 92901 | 9 | 0.0097% | |
| OK | 65981 | 11 | 0.0167% | |
| OK | 55375 | 3 | 0.0054% | |
| PFC | 1049 | 250 | 23.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.

(a) Energy

(b) Time step

(c) Profiles of
Figure 5. Plots of energy, time step, and final profiles of for the 2D Ohta-Kawasaki model for , and .
Phase–Field Crystal in 3D
The PFC free energy for this model is given by
where is a parameter. For the PFC run we use the following random initial condition
where is a random number drawn from the uniform distribution in . The results are shown in Figure 6. In Figure 6a, for 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 , which ranges between and in this interval. When 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 ,

(a) Energy

(b) Time step

(c) Profile of at . For this set of parameters, we see a spherical packing.
Figure 6. Plots of energy, time step, and final profile of for the 3D PFC model with .

Figure 7. Plots of the number of rejected steps for the 3D PFC model with .
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
where
and the variational derivative of the nonlinear functional is
Taking the variational derivative gives the following PDE
For the FCH model, we will look at the meandering instability example from [16]. The initial condition is given by a smooth approximation of
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 in Figure 8c resemble the results in [16]. In Figure 8a and Figure 8b, we see a decrease in the energy for , so there is a decrease in the time step. For the energy flattens out and the time step starts to increase.

(a) Energy

(b) Time step

(c) Profiles of at times , 10, 15, 20, 50, and 100.
Figure 8. Plots of energy, time step, and profiles of 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 norm of 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 tolerance | FFT | Norm of Error | |
| 84124 | 2.0825e−05 | ||
| 9001 | 4.1706e−03 | ||
| 90001 | 4.9919e−05 | ||
| 900001 | 1.6478e−05 | ||
| Ohta-Kawasaki | |||
| Time step or tolerance | FFT | Norm of Error | |
| 278722 | 6.9410e−05 | ||
| 30001 | 6.0315e−04 | ||
| 300001 | 1.9743e−04 | ||
| 3000001 | 6.2650e−05 | ||
| Phase–field crystal | |||
| Time step or tolerance | FFT | Norm of Error | |
| 3148 | 9.1715e−05 | ||
| 601 | 2.5389e−04 | ||
| 6001 | 1.7211e−04 | ||
| 60001 | 8.8917e−05 | ||
| Functionalized Cahn–Hilliard | |||
| Time step or tolerance | FFT | Norm of Error | |
| 144141 | 7.4185e−06 | ||
| 500001 | 8.0170e−06 | ||
| 1000001 | 5.6238e−06 |
Table 4. Number of FFT evaluations and the norm of the error for adaptive and constant time stepping for each example.
| Model | Fixed | Fixed FFTs | Fixed Norm | Adaptive FFTs | Adaptive Norm | Approximate Speedup |
| CH spot | 900001 | 1.6478e−05 | 84124 | 2.0825e−05 | 10.7 | |
| OK () | 3000001 | 6.2650e−05 | 278722 | 6.9410e−05 | 10.8 | |
| PFC 3D | 60001 | 8.8917e−05 | 3148 | 9.1715e−05 | 18.9 | |
| FCH | 500001 | 8.0170e−06 | 115312 | 7.4185e−06 | 3.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 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 , depending only on the total energy drop and the number of steps. A combined monitor that switches to near equilibrium caps step growth where the first rule becomes vacuous, and does so without weakening the energy-error bound: the combined rule controls by in both regimes. The arclength parameter used in prior adaptive stepping schemes [12, 18] is shown as ,
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 does not increase. Because the accepted values form a monotone chain, this yields a bound on the physical energy that is uniform in the number of steps, : 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 , 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 depends on the asymptotic dynamics of the specific gradient flow; for flows approaching stable equilibria one expects the situation to improve as , 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]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]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]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]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]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]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]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]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]W. Huang and R. D. Russell. Adaptive Moving Mesh Methods, volume 174. Springer Science & Business Media, 2010.DOI
- [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]T. Ohta and K. Kawasaki. Equilibrium morphology of block copolymer melts. Macromolecules, 19(10):2621–2632, 1986.DOI
- [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]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]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]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]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]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]Z. Zhang and Z. Qiao. An adaptive time-stepping strategy for the Cahn–Hilliard equation. Communications in Computational Physics, 11:1261–1278, 2012.DOI