With IMEX order 2, the pressure and the pressure forces ring for a few steps after every start and restart. On a 2D NACA0012 case (Re = 50000, α = 5∘, P = 6, Δt = 2 ×10-6, semi-implicit, strong form) the ringing was, before the remedies below, about three times larger than in the legacy solver, which starts IMEX order J with an IMEX order 1 step (λ = 1) instead of IMEXdirk. Two mechanisms were identified; execution space, operator implementation, solver tolerances, dealiasing and restart I/O were ruled out.
Mechanism 1: weight of the divergence term. The velocity from the Helmholtz solve is
not discretely divergence-free (on the NACA mesh ∥∇⋅un∥L2 ≈0.72 in every step, in
both codes). Since = un + O(Δt), the pressure contains a divergence-cleaning
part
| (29.14) |
whose weight changed with the step type (Table 29.3). The velocity correction removes the divergence whatever λ is, but the pressure, and with it the wall force, jumped at each start-up and relaxed to its multistep level. The measured Poisson forcing ratio between DIRK stages and multistep steps was 2.28 = (2∕3)∕0.2929. This mechanism dominates on meshes with thin boundary-layer elements. Remedy B1 below removes it.
| step type | weight 1∕(λΔt) | change against multistep |
| IMEX-2 multistep | 1.5∕Δt | — |
| redesign IMEXdirk 2_3_2 start-up (both stages) | 3.41∕Δt | +128% |
| legacy IMEX-1 start-up | 1∕Δt | -33% |
Mechanism 2: normalisation of the pressure-BC velocity. By (29.3) the curl–curl velocity of HOPBC and the HOutflow u* are proper extrapolations only if ∑ ici = λ. In IMEXdirk 2_3_2 stage 2 the weights are [1 -δ,δ] with ∑ c = 1, while λ = γ ≈0.2929, so without a normalisation these velocities would be 1∕γ ≈3.41 times too large; remedy A normalises them. The predictor part is consistent. Without the normalisation this would also affect IMEXdirk used as the main scheme whenever HOPBC or HOutflow boundaries are present. The linear-implicit advection has the same root cause: the right-hand side loses the extrapolated advection with weight ∑ cΔt, while the advection operator puts it back with weight λΔt, so without a correction stage 2 would keep only γ ≈29% of its advection. On Kovasznay flow with HOPBC (IMEX-2, Δt = 0.01, exact IC), normalising by ∑ c reduces the pressure L2 error after step 1 from 0.169 to 2.1 ×10-5.
Key evidence. NACA0012 restart test: an uninterrupted run is compared with a run restarted half-way. The steady pressure drag is 0.0078; viscous forces are unaffected.
| variant | max |ΔFdrag,p| | max |ΔFlift,p| |
| legacy | 0.035 | 5.6 ×10-3 |
| redesign without fixes | 0.097 | 2.0 ×10-2 |
| fix A only | 0.087 | 1.6 ×10-2 |
| divergence re-weighting (B1) only | 0.009 | 7.6 ×10-3 |
| fix A + B1 | 5.5 ×10-5 | 9.9 ×10-4 |
| Euler start-up (B4) | 0.035 | 5.4 ×10-3 |
Remedies.
A. Normalise the pressure-BC velocity by ∑
c (implemented): the
pressure-BC histories hold u and N and are combined with the weights scaled
to sum to λΔt, the scale being λΔt∕∑
c with ∑
c from GetCoefficientSum
(eq. (29.3)); it is Δt in multistep steps and DIRK stage 1. The linear-implicit
advection velocity is scaled by ∑
cΔt∕(λΔt), the ratio of the two advection weights.
B1. Fixed divergence weight during start-up (implemented, always on for IMEX
of order two or more): in start-up stage s a fraction β = 1 -λs∕λ of ∇⋅us is
removed from the Poisson forcing (β = 0.561,0.201,0.092 for orders 2, 3, 4;
GetStartupDivergenceWeight), so the divergence-cleaning pressure keeps its multistep
weight. Here us is the solution the stage starts from, not un: un in stage 1, the stage-1
result in stage 2. Re-weighting un in stage 2 would remove again the part that stage 1
already cleaned.
Forms. The strong form takes the divergence of -βus in place of
. The
weak form adds the physical-space forcing F = -β ∇⋅us∕(λsΔt) as -(F,ϕ),
so the boundary flux of us is untouched (Section 29.2.3).
Singular systems. In the strong form the start-up term is part of the forcing
that is balanced against the Neumann data. In the weak form F is shifted by
MeanRemovalOp with SetNeumannBalance, so that its domain integral is the
surface integral of the Neumann data, in place of the constant forcing of the
other steps.
Scope. β is zero in the multistep steps. The weight and the weak-form
operators it needs are set up only for IMEX of order two or more, the schemes
with start-up stages; a one-step scheme and IMEX order 1 are unaffected.
Cost. The start-up projection removes only the fraction λs∕λ (≈ 44% for IMEXdirk 2_3_2) of the divergence of us; later steps remove the rest. Nothing changes for a divergence-free us.
Solver. The time operator is unaware of the weight. A step is a start-up
step while TimeOp::GetStep is below the IMEX order minus one. λ is the
sum of the IMEX explicit-contribution coefficients, and λsΔt is the step
size the implicit solve receives. The stage’s initial solution is copied in
EvaluateAdvection_SetPressureBCs, which each stage calls on it just before
its implicit solve.
Results. The NACA restart kick drops from 0.087 to 6.2 ×10-5 (pressure drag) and from 0.016 to 1.1 ×10-3 (lift). The first-step pressure drag from a smooth state is 0.00768, against a steady 0.00777. The cold-start step-1 lift drops from 1378 to 370; legacy gives -284, the sign differing because of the IMEXdirk stage coupling, which only an IMEX-1 start-up (B4) would reproduce. Steady states and global time orders are unchanged.
Tests. KovasznayFlowHOPBC2D_StartupDivergence and its _WeakPressure
variant take one IMEX-2 step from a perturbation that is not divergence-free;
TestIMEX checks the start-up stage of every implicit solve.
B2. Checkpoint the multistep history (not implemented): restarts continue without a start-up step and reproduce an uninterrupted run, but cold starts are unchanged and checkpoints grow.
What is written. Only the J - 1 previous velocity levels, Δt, the order
and the step count. The TimeOp explicit history and the three VCS histories
(advection RHS, pressure-BC RHS, pressure-BC velocity) are deterministic
functions of those levels and are recomputed on restart. HOPBC and
HOutflow keep no step-to-step state.
Estimate. About 400–600 lines plus restart regression tests, roughly 3–5
days; moderate-to-low risk. The work splits into a generic TimeOp history
export/import (reusing the existing SetSolutions/SetExplicits/SetStep),
a VCS hook to rebuild its histories, checkpoint output of extra fields (u_nm1,
…) with metadata, and a restart reader with a fallback to the start-up.
Constraints. Exact restarts are bit-exact on CPU only (Device reductions are not deterministic). Checkpoints grow by 1 + (J -1)d∕(d+ 1), e.g. +67% in 2D at order 2.
B3. Reduce ∇⋅u (weak pressure form, Taylor–Hood spaces, grad–div penalty, extra projection): addresses the cause in every step, at the price of larger changes to the method.
B4. Legacy-style IMEX-1 start-up (not implemented): reproduces the legacy force history to 3–4 digits, but only reduces the kick to the legacy level.
Steady-state dependence on Δt. A study on Kovasznay flow and steady cylinder flow (Re = 20,40) found:
Common to both codes. With HOPBC boundaries, the steady pressure error grows mildly as λΔt decreases. The effect scales with the spatial error, vanishes spectrally with P, and is absent with Dirichlet pressure everywhere. ∇ ⋅ u is a spatial error and is not O(Δt).
Redesign only (fixed). An additional 1∕(λΔt) error came from subtracting the
analytic Dirichlet velocity instead of the projected one in the HOPBC flux. The
HOPBC now subtracts the discrete boundary velocity (as legacy AddVelBC does),
and the redesign matches legacy to 3–4 digits.
B1, B2 and B4 only affect transients, not the fixed point.