Schemes
SELAH's L0 layer holds the coefficients: every scheme in the form its source publishes, the other forms derived from it, and every value verified by a test. Nothing in this layer touches a field. The kernels (L1) and the stepper (L2) read these coefficients.
Runge–Kutta schemes
| Name | Stages | Order | SSP coefficient | Primary form | Other forms | Source |
|---|---|---|---|---|---|---|
euler | 1 | 1 | 1 | Butcher | Shu–Osher, two-register | forward Euler |
ssp-22 | 2 | 2 | 1 | Butcher | Shu–Osher, two-register | Shu & Osher (1988) |
ssp-33 | 3 | 3 | 1 | Butcher | Shu–Osher, two-register | Shu & Osher (1988) |
ssp-54 | 5 | 4 | 1.508180049 | Shu–Osher | Butcher | Spiteri & Ruuth (2002); 15 digits of Isherwood, Grant & Gottlieb (2018) |
ssp-104 | 10 | 4 | 6 | Shu–Osher | Butcher | Ketcheson (2008) |
rk4 | 4 | 4 | — | Butcher | — | Kutta (1901) |
lsrk-33 | 3 | 3 | — | Williamson 2N | Butcher | Williamson (1980) |
lsrk-54 | 5 | 4 | — | Williamson 2N | Butcher | Carpenter & Kennedy (1994), NASA TM-109112 |
The SSP coefficient is computed from the Shu–Osher form (ssp_coefficient), never typed in. It is the minimum of
The names are the constants SCHEME_EULER, SCHEME_SSP_22, …, SCHEME_LSRK_54; RK_SCHEMES lists them all. The entries of RK_SCHEMES are fixed-length strings padded with blanks: trim them before passing them on. An unknown name gives a tableau of 0 stages.
The coefficient forms
For an autonomous system
- Butcher:
, , . The form the order conditions and the reflux weights are stated in. - Shu–Osher:
, , . With each stage is a convex combination of forward-Euler steps, and the SSP coefficient is . - Two-register Shu–Osher:
: only and the current stage are kept. These are ADAM's runge-kutta-1/2/3(ark,brk,crk). - Williamson 2N:
, .
runge-kutta-2 and runge-kutta-3 of ADAM are ssp-22 and ssp-33 in two-register form: the same methods, with less storage and no access to the per-stage residuals.
Storage
registers_needed(scheme, form) counts the field-sized buffers a step needs besides the solution, the residual buffer included:
| Form | Buffers | Schemes |
|---|---|---|
FORM_BUTCHER | s + 1 (stage state + s residuals) | every RK scheme |
FORM_SHU_OSHER_2R | 2 | euler, ssp-22, ssp-33 |
FORM_WILLIAMSON_2N | 2 | lsrk-33, lsrk-54 |
FORM_KETCHESON_2R | 2 | ssp-104 |
FORM_SPLITTING | 1 | every splitting scheme |
ssp-104 is the reason the low-storage forms matter. In Butcher form it needs 11 buffers, but 2 in Ketcheson's. Its effective SSP coefficient per stage is 0.6, against 0.30 for ssp-54.
Every tableau
Printed from the library itself (docs/examples/src/tableaux.F90, regenerated with the documentation):
$ tableaux
euler: 1 stages, order 1 (c | A, then b)
0.000000 | 0.000000
1.000000
ssp-22: 2 stages, order 2 (c | A, then b)
0.000000 | 0.000000
1.000000 | 1.000000
0.500000 0.500000
ssp-33: 3 stages, order 3 (c | A, then b)
0.000000 | 0.000000
1.000000 | 1.000000
0.500000 | 0.250000 0.250000
0.166667 0.166667 0.666667
ssp-54: 5 stages, order 4 (c | A, then b)
0.000000 | 0.000000
0.391752 | 0.391752
0.586080 | 0.217669 0.368411
0.474542 | 0.082692 0.139959 0.251892
0.935011 | 0.067966 0.115035 0.207035 0.544975
0.146812 0.248483 0.104259 0.274439 0.226007
ssp-104: 10 stages, order 4 (c | A, then b)
0.000000 | 0.000000
0.166667 | 0.166667
0.333333 | 0.166667 0.166667
0.500000 | 0.166667 0.166667 0.166667
0.666667 | 0.166667 0.166667 0.166667 0.166667
0.333333 | 0.066667 0.066667 0.066667 0.066667 0.066667
0.500000 | 0.066667 0.066667 0.066667 0.066667 0.066667 0.166667
0.666667 | 0.066667 0.066667 0.066667 0.066667 0.066667 0.166667 0.166667
0.833333 | 0.066667 0.066667 0.066667 0.066667 0.066667 0.166667 0.166667 0.166667
1.000000 | 0.066667 0.066667 0.066667 0.066667 0.066667 0.166667 0.166667 0.166667 0.166667
0.100000 0.100000 0.100000 0.100000 0.100000 0.100000 0.100000 0.100000 0.100000 0.100000
rk4: 4 stages, order 4 (c | A, then b)
0.000000 | 0.000000
0.500000 | 0.500000
0.500000 | 0.000000 0.500000
1.000000 | 0.000000 0.000000 1.000000
0.166667 0.333333 0.333333 0.166667
lsrk-33: 3 stages, order 3 (c | A, then b)
0.000000 | 0.000000
0.333333 | 0.333333
0.750000 | -0.187500 0.937500
0.166667 0.300000 0.533333
lsrk-54: 5 stages, order 4 (c | A, then b)
0.000000 | 0.000000
0.149659 | 0.149659
0.370401 | -0.008809 0.379210
0.622256 | 0.401178 -0.601877 0.822955
0.958282 | -0.190430 0.813823 -0.364561 0.699450
0.005594 0.344743 0.028912 0.467694 0.153057
strang: 3 flows, order 2 (partition, fraction of the step)
1 0.500000
2 1.000000
1 0.500000
yoshida-4: 7 flows, order 4 (partition, fraction of the step)
1 0.675604
2 1.351207
1 -0.175604
2 -1.702414
1 -0.175604
2 1.351207
1 0.675604
blanes-moan-s6: 13 flows, order 4 (partition, fraction of the step)
1 0.079204
2 0.209515
1 0.353173
2 -0.143852
1 -0.042065
2 0.434337
1 0.219377
2 0.434337
1 -0.042065
2 -0.143852
1 0.353173
2 0.209515
1 0.079204
blanes-moan-s10: 21 flows, order 6 (partition, fraction of the step)
1 0.050263
2 0.148816
1 0.413514
2 -0.132386
1 0.045080
2 0.067308
1 -0.188055
2 0.432666
1 0.541961
2 -0.016405
1 -0.725526
2 -0.016405
1 0.541961
2 0.432666
1 -0.188055
2 0.067308
1 0.045080
2 -0.132386
1 0.413514
2 0.148816
1 0.050263butcher_tableau%b_hat, the embedded weights of a pair, is reserved: no scheme of the catalogue has one, and it stays unallocated.
Splitting schemes
For
| Name | Flows | Order | Source |
|---|---|---|---|
strang | 3 | 2 | Strang (1968) |
yoshida-4 | 7 | 4 | Yoshida (1990), the triple jump |
blanes-moan-s6 | 13 | 4 | Blanes & Moan (2002), S6 |
blanes-moan-s10 | 21 | 6 | Blanes & Moan (2002), S10 |
The flows apply left to right, flow 1 first, and splitting(name, first=2) starts with partition 2. Through the stepper a flow is one forward-Euler step of its partition,
Verification
| What | Case |
|---|---|
| the order conditions, in quadruple precision | A1 |
| the observed orders, scalar problems, through the stepper, splittings | A2, A3, A4 |
| the stability regions | A5 |
| the SSP coefficients and strong stability | P2, P1 |
| ADAM's coefficients, bitwise | C1 |