A7 Particle sub-flows
| ID | Group | Type | Backends | Figure | Program |
|---|---|---|---|---|---|
| A7 | Accuracy | P | CPU (gfortran, nvfortran, ifx; R8P, the oscillator in R4P); GPU | no | selah_test_particle_flows |
Case and scope
A particle array p(6, np) stepped by the stepper's splitting form, the velocities as partition 1 (the kick) and the positions as partition 2 (the drift): strang is kick–drift–kick leapfrog with SELAH's fractions (guide). The case checks it against KDK's own discrete solution, the orders and long-time energy of every splitting on a Kepler orbit, and a gas–sink system coupled through A6's additive splitting.
Setup
| Item | Value |
|---|---|
| Oscillator | |
| Kepler | |
| Gas and sink | |
| Bounds |
Program
bash
./exe/selah_test_particle_flowsResults
| Check | Value |
|---|---|
| 2.9e-13 / 7.2e-14 | |
| phase error per period, | 2.621e-3 (2.618e-3) / 6.736e-2 (6.545e-2) |
| Kepler orders, strang / yoshida-4 / blanes-moan-s6 / blanes-moan-s10 | 2.00 / 4.00 / 4.00 / 5.99 |
| Kepler energy error, orbits 1–10 and 41–50 (equal) | 8.2e-4 / 3.8e-6 / 2.9e-8 / 2.2e-11 |
| gas and sink, lie / strang orders | 0.99 / 2.00 |
Findings
- SELAH's strang on a particle array is KDK leapfrog, to round-off: its discrete solution, not only its order.
- The energy error is bounded with a fixed step. Sampled once per orbit, the energy error seemed to grow 4-fold over 50 orbits; that sample follows the precessing perihelion. The largest error over every step of an orbit is the same in orbit 1 and orbit 50 for every scheme.
- Gas and sinks compose at the expected orders through the additive splitting with the sink's KDK step as the flow.