libode
Easy to compile, fast ODE integrators as C++ classes
Loading...
Searching...
No Matches
ode_rk_4.h
Go to the documentation of this file.
1#ifndef ODE_RK4_H_
2#define ODE_RK4_H_
3
5
6#include "ode_adaptive.h"
7#include "ode_rk.h"
8#include "ode_erk.h"
9
10namespace ode {
11
13
16class OdeRK4 : public OdeAdaptive, private OdeRK, private OdeERK {
17
18 public:
20
23 OdeRK4 (unsigned long neq);
24
25 private:
26 //take a time step
27 void step_ (double dt);
28 //coefficents of tableau
29 double c2, a21,
30 c3, a32,
31 c4, a43,
32 b1, b2, b3, b4;
33};
34
35} // namespace ode
36
37#endif
Base class implementing solver functions with adaptive time steps.
Base class providing space for temporary solutions moving through RK stages.
Definition ode_erk.h:9
The classic Runge-Kutta 4th order method.
Definition ode_rk_4.h:16
OdeRK4(unsigned long neq)
constructs
Definition ode_rk_4.cc:7
Provides space for stage slope values, an array of arrays for k values.
Definition ode_rk.h:9