libode
Easy to compile, fast ODE integrators as C++ classes
Loading...
Searching...
No Matches
ode_rkck.h
Go to the documentation of this file.
1
#ifndef ODE_RKCK_H_
2
#define ODE_RKCK_H_
3
5
6
#include "
ode_embedded.h
"
7
#include "
ode_rk.h
"
8
#include "
ode_erk.h
"
9
10
namespace
ode
{
11
13
21
class
OdeRKCK
:
public
OdeEmbedded
,
private
OdeRK
,
private
OdeERK
{
22
23
public
:
25
28
OdeRKCK
(
unsigned
long
neq);
29
30
private
:
31
//function for taking a single time step
32
void
step_ (
double
dt);
33
//coefficents of tableau
34
double
c2, a21,
35
c3, a31, a32,
36
c4, a41, a42, a43,
37
c5, a51, a52, a53, a54,
38
c6, a61, a62, a63, a64, a65,
39
b1, b3, b4, b6,
40
d1, d3, d4, d5, d6,
41
e1, e3, e4,
42
f1, f2,
43
g1;
44
};
45
46
}
// namespace ode
47
48
#endif
ode::OdeERK
Base class providing space for temporary solutions moving through RK stages.
Definition
ode_erk.h:9
ode::OdeEmbedded
Base clase implementing methods for embedded Runge-Kutta error estimation.
Definition
ode_embedded.h:15
ode::OdeRKCK
Explicit 5/4 pair, also with 3rd, 2nd, and 1st order embedded methods, from Cash & Karp.
Definition
ode_rkck.h:21
ode::OdeRKCK::OdeRKCK
OdeRKCK(unsigned long neq)
constructs
Definition
ode_rkck.cc:7
ode::OdeRK
Provides space for stage slope values, an array of arrays for k values.
Definition
ode_rk.h:9
ode
Definition
ode_adaptive.cc:5
ode_embedded.h
ode_erk.h
ode_rk.h
include
ode
ode_rkck.h
Generated by
1.10.0