| 1 | = 3^rd^ order Runge-Kutta scheme = |
| 2 | |
| 3 | For the dicretization in time a 3 rd order low storage Runge-Kutta scheme with 3 stages recommended by Williamson ( 1979 ) is used. |
| 4 | Generally an N-stage Runge-Kutta scheme discretizes an ordinary differential equation of the form |
| 5 | {{{ |
| 6 | #!Latex |
| 7 | \[ \frac{d \psi}{d t} & = & f(t,\psi) \] |
| 8 | }}} |
| 9 | as follows ( Baldauf, 2008 ): |
| 10 | {{{ |
| 11 | #!Latex |
| 12 | \[ \psi^{(0)} = \psi^{n}, \] |
| 13 | \[ k^{i} = f(t^{n} + \Delta t\,\alpha_{i},\,\psi^{i-1}), \] |
| 14 | \[ \psi^{i} = \psi^{n} + \Delta t\,\sum^{i}_{j=1}\,\beta_{i+1,j}\,k^{j}, \quad \textnormal{mit} \quad i \in [1,2,...,N] \] |
| 15 | \[ \psi^{n+1} = \psi^{N}. \] |
| 16 | }}} |
| 17 | The coefficients can written in a Butcher-Tableau in the following way: |
| 18 | || α,,1,, || β,,1,1,, || 0 || ... || || || |
| 19 | || α,,2,, || β,,2,1,, || β,,2,2,, || 0 || ... || || |
| 20 | || ... || ... || || || || || |
| 21 | || α,,N,, || β,,N,1,, || β,,N,2,, || ... || β,,N,N-1,, || 0 || |
| 22 | || || β,,N+1,1,, || β,,N+1,2,, || ... || β,,N+1,N-1,, || β,,N+1,N,, || |
| 23 | |
| 24 | The appendant coefficients for the used Runge-Kutta scheme reads: |
| 25 | || 0 || 0 || 0 || 0 || |
| 26 | || 1/3 || 1/3 || 0 || 0 || |
| 27 | || 1/2 || -3/16 || 15/16 || 0 || |
| 28 | || || 1/6 || 3/10 || 8/15 || |
| 29 | … |
| 30 | For the implementation it is advantageous to compute PSI_N from the intermediate solutions PSI_1 and PSI_2 as follows: |
| 31 | … |
| 32 | Due to the fact that the current tendency F(psi) is only required locally in time, the arrays F(Psi_n) and F(Psi_1) can combined after the 2 nd substep and buffered in F(psi_1): |