P3 Splitting energy
| ID | Group | Type | Backends | Figure | Program |
|---|---|---|---|---|---|
| P3 | Properties | P | CPU (gfortran, nvfortran, ifx; R8P) | yes, and a cast | selah_vv_splitting_energy |
Case and scope
The splittings of SELAH's catalogue are symmetric compositions of exact flows of a separable Hamiltonian: they are symplectic. A symplectic method conserves a modified energy close to the true one, so its energy error oscillates with a bounded amplitude forever. A Runge–Kutta scheme is not symplectic. On the oscillator its amplification factor has modulus below 1, and the energy decays at every step. The case checks both behaviours, which decide what to use for long-time Hamiltonian dynamics.
Setup
| Item | Value |
|---|---|
| Problem | |
| Step | |
| Schemes | strang, yoshida-4, blanes-moan-s6 (splittings, partitions |
| Bound | over every step, $\max |
| Precision | R8P builds (the high-order splittings' errors, about |
Program
./exe/selah_vv_splitting_energy
SELAH_VV_DIR=exe/vv-data ./exe/selah_vv_splitting_energy # splitting-energy-*.dat, splitting-phase-*.datResults

The largest energy error in each of 400 windows of the run (every step counted).
| Scheme | Kind | Max strang | splitting | 0.001253 | 0.001253 | 1.00 | | yoshida-4 | splitting | 3.83e-06 | 3.83e-06 | 1.00 | | blanes-moan-s6 | splitting | 1.40e-08 | 1.40e-08 | 1.00 | | rk4 | Runge–Kutta | 4.36e-05 | 4.35e-04 | 10.00 | | ssp-54 | Runge–Kutta | 1.55e-05 | 1.55e-04 | 10.00 |
Every step counted: the figure and the table plot the largest error in each of 400 windows of the run (point samples would alias the fast oscillation of a splitting's energy error).
Findings
- The splittings' energy error is flat: the same amplitude in the last tenth of the run as in the first, at
(Strang), (Yoshida) and (Blanes–Moan S6). - rk4 and ssp-54 drift linearly: ten times the error after ten times the time. Over long times a fourth-order Runge–Kutta scheme ends up less accurate in energy than the second-order Strang splitting would be at a finer step.
- The property needs exact sub-flows. With a sub-flow that is only first order (A4), the composition is neither of its order nor symplectic.