libode
Easy to compile, fast ODE integrators as C++ classes
Loading...
Searching...
No Matches
ode_dopri_54.h
Go to the documentation of this file.
1#ifndef ODE_DOPRI54_H_
2#define ODE_DOPRI54_H_
3
5
6#include "ode_embedded.h"
7#include "ode_rk.h"
8#include "ode_erk.h"
9
10namespace ode {
11
13
18class OdeDoPri54 : public OdeEmbedded, private OdeRK, private OdeERK {
19
20 public:
22
25 OdeDoPri54 (unsigned long neq);
26
27 private:
28 //function for taking a single time step
29 void step_ (double dt);
30 //coefficents of tableau
31 double c2, a21,
32 c3, a31, a32,
33 c4, a41, a42, a43,
34 c5, a51, a52, a53, a54,
35 c6, a61, a62, a63, a64, a65,
36 c7, a71, a72, a73, a74, a75, a76,
37 b1, b2, b3, b4, b5, b6,
38 d1, d2, d3, d4, d5, d6, d7;
39};
40
41} // namespace ode
42
43#endif
Popular explicit 5/4 pair from Dormand & Prince.
OdeDoPri54(unsigned long neq)
constructs
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.
Provides space for stage slope values, an array of arrays for k values.
Definition ode_rk.h:9