libode
Easy to compile, fast ODE integrators as C++ classes
Loading...
Searching...
No Matches
ode_rk_43.h
Go to the documentation of this file.
1#ifndef ODE_RK43_H_
2#define ODE_RK43_H_
3
5
6#include "ode_embedded.h"
7#include "ode_rk.h"
8#include "ode_erk.h"
9
10namespace ode {
11
13class OdeRK43 : public OdeEmbedded, private OdeRK, private OdeERK {
14
15 public:
17
20 OdeRK43 (unsigned long neq);
21
22 private:
23 //function for taking a single time step
24 void step_ (double dt);
25 //coefficents of tableau
26 double c2, a21,
27 c3, a31, a32,
28 c4, a41, a42, a43,
29 c5, a51, a52, a53, a54,
30 b1, b2, b3, b4,
31 d1, d2, d3, d5;
32};
33
34} // namespace ode
35
36#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.
This class implements a 3rd and 4th order method with the FSAL (first same as last) property.
Definition ode_rk_43.h:13
OdeRK43(unsigned long neq)
constructs
Definition ode_rk_43.cc:7
Provides space for stage slope values, an array of arrays for k values.
Definition ode_rk.h:9