selah_schemes
SELAH, L0: the Runge–Kutta scheme catalogue.
Each scheme is stored in the form its source publishes, and its other forms are derived from that one:
| Scheme | Stages | Order | SSP coefficient | Primary form | Other forms | Source |
|---|---|---|---|---|---|---|
euler | 1 | 1 | 1 | Butcher | Shu–Osher, two-register | — |
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.508 | Shu–Osher | Butcher | Spiteri & Ruuth (2002), digits of Isherwood, Grant & Gottlieb (2018) |
ssp-104 | 10 | 4 | 6 | Shu–Osher | Butcher | Ketcheson (2008) |
rk4 | 4 | 4 | 0 | Butcher | — | Kutta (1901) |
lsrk-33 | 3 | 3 | 0 | Williamson 2N | Butcher | Williamson (1980) |
lsrk-54 | 5 | 4 | 0 | Williamson 2N | Butcher | Carpenter & Kennedy (1994) |
The SSP coefficient is computed from the Shu–Osher form (ssp_coefficient), never typed in. The Butcher literals of euler, ssp-22 and ssp-33 and the Shu–Osher digits of ssp-54 are written as in ADAM's ssp_tableau, so the two give the same tableaux bitwise. An unknown name returns a form of 0 stages.
Source: src/lib/selah_schemes.F90
Dependencies
Contents
Variables
| Name | Type | Attributes | Description |
|---|---|---|---|
SCHEME_EULER | character(len=*) | parameter | Forward Euler. |
SCHEME_SSP_22 | character(len=*) | parameter | SSP, 2 stages, order 2 (Heun). |
SCHEME_SSP_33 | character(len=*) | parameter | SSP, 3 stages, order 3. |
SCHEME_SSP_54 | character(len=*) | parameter | SSP, 5 stages, order 4. |
SCHEME_SSP_104 | character(len=*) | parameter | SSP, 10 stages, order 4, low storage. |
SCHEME_RK4 | character(len=*) | parameter | Classic 4-stage, order 4. |
SCHEME_LSRK_33 | character(len=*) | parameter | Williamson 2N, 3 stages, order 3. |
SCHEME_LSRK_54 | character(len=*) | parameter | Carpenter–Kennedy 2N, 5 stages, order 4. |
RK_SCHEMES | character(len=7) | parameter | Every RK scheme. |
Functions
butcher
Butcher tableau of a scheme.
Attributes: pure
Returns: type(butcher_tableau)
function butcher(scheme) result(bt)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
scheme | character(len=*) | in | Scheme name. |
Call graph
shu_osher
Shu–Osher form of an SSP scheme (euler, ssp-22, ssp-33, ssp-54, ssp-104).
Attributes: pure
Returns: type(shu_osher_form)
function shu_osher(scheme) result(so)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
scheme | character(len=*) | in | Scheme name. |
Call graph
shu_osher_2r
Two-register Shu–Osher form (euler, ssp-22, ssp-33): ADAM's runge-kutta-1/2/3 ark, brk, crk.
Attributes: pure
Returns: type(shu_osher_2r_form)
function shu_osher_2r(scheme) result(r)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
scheme | character(len=*) | in | Scheme name. |
Call graph
williamson_2n
Williamson 2N form (lsrk-33, lsrk-54).
Attributes: pure
Returns: type(williamson_2n_form)
function williamson_2n(scheme) result(w)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
scheme | character(len=*) | in | Scheme name. |
Call graph