Skip to content

P1 Strong stability (TVD) ​

IDGroupTypeBackendsFigureProgram
P1PropertiesPCPU (gfortran, nvfortran, ifx; R8P and R4P)yes, and a castselah_vv_ssp_tvd

Case and scope ​

Strong stability is the reason SSP schemes exist. If a spatial operator keeps a convex functional bounded under a forward-Euler step up to ΔtFE (total variation, positivity, a maximum principle), an SSP scheme with coefficient C keeps it bounded up to CΔtFE (Gottlieb, Shu & Tadmor, 2001). The case checks that SELAH's schemes, run through the stepper, deliver that property, and measures where it actually breaks.

What the case catches:

  • a scheme or coefficient that is not SSP as claimed: the total variation grows below ν=C;
  • a wrong SSP coefficient: the bound is checked at the value butcher(scheme) reports.

Setup ​

ItemValue
Operatorfirst-order upwind for ut+ux=0, periodic, 100 cells: forward Euler is TVD for ν≤1
Dataa square wave (u=1 on (1/4,1/2], 0 elsewhere)
Integratorevery scheme through the stepper, Butcher form with stages on q, 60 steps per CFL
Sweepν=0.05C,0.10C,…,2C (in units of 1 for the schemes that are not SSP)
Boundfor every SSP scheme and every ν≤C, no step increases TV by more than 1000εTV0
Reportedthe first swept ν at which the total variation grows

Program ​

bash
./exe/selah_vv_ssp_tvd
SELAH_VV_DIR=exe/vv-data ./exe/selah_vv_ssp_tvd     # ssp-tvd-sweep.dat, ssp-tvd-summary.dat, ssp-tvd-frames-*.dat

Results ​

TVD sweep

The largest one-step growth of the total variation over 60 steps, against the CFL. Left: the SSP schemes, with the CFL in units of their coefficient; the dashed line is ν=C. Right: the schemes without an SSP coefficient.

SchemeSSP coefficient CTV first grows at νthat ν/C
euler1.00001.0501.050
ssp-221.00001.0501.050
ssp-331.00001.0501.050
ssp-541.50821.8851.250
ssp-1046.00006.3001.050
rk4— (not SSP)1.050—
lsrk-33— (not SSP)1.050—
lsrk-54— (not SSP)1.700—

Sweep step 0.05 C (0.05 for the schemes that are not SSP): a threshold is the first swept ν at which the total variation grew by more than 1000 ε.

SSP(5,4), 60 steps. At ν = C (left) the total variation (bottom) only falls. At 1.15 times the measured threshold (right) it overshoots in the first steps, the new extrema of a non-TVD step.

Findings ​

  • Every SSP scheme is TVD up to its coefficient, as the theorem promises.
  • On this linear operator euler, ssp-22, ssp-33 and ssp-104 lose the property at the first swept CFL above C, 1.05 C (the sweep's resolution): their bound is sharp here. ssp-54 holds up to 1.25 C. C is the bound valid for every operator that is TVD under forward Euler; a particular operator can tolerate more. Do not size a step on a measured threshold.
  • rk4 and lsrk-33 lose the TVD property just above ν=1, lsrk-54 at 1.7: without an SSP coefficient there is no guarantee at any ν for a nonlinear operator.

GPL-3.0-or-later, BSD-2-Clause, BSD-3-Clause or MIT, at your choice