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
10namespace ode {
11
13
21class 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
Base class providing space for temporary solutions moving through RK stages.
Definition ode_erk.h:9
Base clase implementing methods for embedded Runge-Kutta error estimation.
Explicit 5/4 pair, also with 3rd, 2nd, and 1st order embedded methods, from Cash & Karp.
Definition ode_rkck.h:21
OdeRKCK(unsigned long neq)
constructs
Definition ode_rkck.cc:7
Provides space for stage slope values, an array of arrays for k values.
Definition ode_rk.h:9