MRKISS 2025-09-10
A tiny library with zero dependencies that aims to make it easy to use & experiment with explicit Runge-Kutta methods.
Loading...
Searching...
No Matches
mrkiss_eerk_tsitouras_arkode_5_4.f90
Go to the documentation of this file.
1! -*- Mode:F90; Coding:us-ascii-unix; fill-column:129 -*-
2!.!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!.H.S.!!
3!>
4!! @file mrkiss_eerk_tsitouras_arkode_5_4.f90
5!! @author Mitch Richling http://www.mitchr.me/
6!! @brief Butcher tableau for ARKODE's Tsitouras 7 stage Order (5,4) Runge-Kutta method.@EOL
7!! @keywords ode ivp differential equation initial value problem rk
8!! @std F2023
9!! @see https://github.com/richmit/MRKISS
10!! @copyright
11!! @parblock
12!! Copyright (c) 2025, Mitchell Jay Richling <http://www.mitchr.me/> All rights reserved.
13!!
14!! Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following
15!! conditions are met:
16!!
17!! 1. Redistributions of source code must retain the above copyright notice, this list of conditions, and the following
18!! disclaimer.
19!!
20!! 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions, and the following
21!! disclaimer in the documentation and/or other materials provided with the distribution.
22!!
23!! 3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products
24!! derived from this software without specific prior written permission.
25!!
26!! THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES,
27!! INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
28!! DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
29!! EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
30!! USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
31!! LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
32!! OF THE POSSIBILITY OF SUCH DAMAGE.
33!! @endparblock
34!.!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!.H.E.!!
35
36!----------------------------------------------------------------------------------------------------------------------------------
37!> Butcher tableau for ARKODE's Tsitouras 7 stage Order (5,4) Runge-Kutta method
38!!
39!! @image html eerk_tsitouras_arkode_5_4-stab.png
40!!
41!! @par IMO
42!! This tableau came directly from the ARKODE source. It's *not* the same one from tsitouras' paper. It is also not the
43!! same one used in OrdinaryDiffEq.jl. So far my testing has shown to be a solid method.
44!!
45!! @par Known Aliases
46!! 'ARKODE_TSITOURAS_7_4_5' (SUNDIALS)
47!!
48!! @par Stability Image Links
49!! <a href="eerk_tsitouras_arkode_5_4-stab.png"> <img src="eerk_tsitouras_arkode_5_4-stab.png" width="256px"> </a>
50!! <a href="eerk_tsitouras_arkode_5_4-astab.png"> <img src="eerk_tsitouras_arkode_5_4-astab.png" width="256px"> </a>
51!! <a href="eerk_tsitouras_arkode_5_4-star1.png"> <img src="eerk_tsitouras_arkode_5_4-star1.png" width="256px"> </a>
52!! <a href="eerk_tsitouras_arkode_5_4-star2.png"> <img src="eerk_tsitouras_arkode_5_4-star2.png" width="256px"> </a>
53!!
54!! @par References:
55!! - Tsitouras (2011); Runge-Kutta Pairs of Order 5(4) Satisfying Only the First Column Simplifying Assumption;
56!! Comp. & Math. w/ Appl. 62 (2); p770-775; zotero://select/items/0_WHVVHHDH
57!!
59 use mrkiss_config, only: rk
60 implicit none
61 public
62 !> The order of the overall method
63 integer, parameter :: s = 7
64 !> Number of methods
65 integer, parameter :: m = 2
66 !> The @f$\mathbf{a}@f$ matrix for the Butcher Tableau. @hideinitializer @hideinlinesource
67 real(kind=rk), parameter :: a(s,s) = reshape([ 0.000000000000000000_rk, 0.000000000000000000_rk, 0.000000000000000000_rk, 0.000000000000000000_rk, 0.000000000000000000_rk, 0.000000000000000000_rk, 0.000000000000000000_rk, &
68 0.161000000000000000_rk, 0.000000000000000000_rk, 0.000000000000000000_rk, 0.000000000000000000_rk, 0.000000000000000000_rk, 0.000000000000000000_rk, 0.000000000000000000_rk, &
69 -0.008480655492356989_rk, 0.335480655492357000_rk, 0.000000000000000000_rk, 0.000000000000000000_rk, 0.000000000000000000_rk, 0.000000000000000000_rk, 0.000000000000000000_rk, &
70 2.897153057105493000_rk, -6.359448489975075000_rk, 4.362295432869581000_rk, 0.000000000000000000_rk, 0.000000000000000000_rk, 0.000000000000000000_rk, 0.000000000000000000_rk, &
71 5.325864828439257000_rk, -11.748883564062830000_rk, 7.495539342889836000_rk, -0.092495066361755250_rk, 0.000000000000000000_rk, 0.000000000000000000_rk, 0.000000000000000000_rk, &
72 5.861455442946420000_rk, -12.920969317847110000_rk, 8.159367898576159000_rk, -0.071584973281401000_rk, -0.028269050394068380_rk, 0.000000000000000000_rk, 0.000000000000000000_rk, &
73 0.096460766818065230_rk, 0.010000000000000000_rk, 0.479889650414499600_rk, 1.379008574103742000_rk, -3.290069515436081000_rk, 2.324710524099774000_rk, 0.000000000000000000_rk], [s, s])
74 !> The @f$\mathbf{b_1}@f$ matrix for the Butcher Tableau. @hideinitializer @hideinlinesource
75 real(kind=rk), parameter :: b(s,m) = reshape([ 0.096460766818065230_rk, 0.010000000000000000_rk, 0.479889650414499600_rk, 1.379008574103742000_rk, -3.290069515436081000_rk, 2.324710524099774000_rk, 0.000000000000000000_rk, &
76 & 0.093523748581892710_rk, 0.008652883141566368_rk, 0.492893099131431900_rk, 1.140235412267858000_rk, -2.329180192439365000_rk, 1.568875049316616000_rk, 0.025000000000000000_rk], [s, m])
77 !> The @f$\mathbf{c}@f$ matrix for the Butcher Tableau. @hideinitializer @hideinlinesource
78 real(kind=rk), parameter :: c(s) = [ 0.000000000000000000_rk, 0.161000000000000000_rk, 0.327000000000000000_rk, 0.900000000000000000_rk, 0.980025540904509700_rk, 1.000000000000000000_rk, 1.000000000000000000_rk]
79 !> The method orders
80 integer, parameter :: p(m) = [5, 4]
81 !> Number of stages for each method
82 integer, parameter :: se(m) = [6, 7]
Configuration for MRKISS == MR RK KISS == Mitch Richling's Runge-Kutta Keep It Simple Stupid.
integer, parameter, public rk
Real kind used across the library.
Butcher tableau for ARKODE's Tsitouras 7 stage Order (5,4) Runge-Kutta method.
integer, parameter s
The order of the overall method.
real(kind=rk), dimension(s, m), parameter b
The matrix for the Butcher Tableau.
real(kind=rk), dimension(s, s), parameter a
The matrix for the Butcher Tableau.
integer, dimension(m), parameter p
The method orders.
integer, dimension(m), parameter se
Number of stages for each method.
real(kind=rk), dimension(s), parameter c
The matrix for the Butcher Tableau.