libode
Easy to compile, fast ODE integrators as C++ classes
Loading...
Searching...
No Matches
ode_rkf_32.h
Go to the documentation of this file.
1#ifndef ODE_RKF32_H_
2#define ODE_RKF32_H_
3
5
6#include "ode_embedded.h"
7#include "ode_rk.h"
8#include "ode_erk.h"
9
10namespace ode {
11
13class OdeRKF32 : public OdeEmbedded, private OdeRK, private OdeERK {
14
15 public:
17
20 OdeRKF32 (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 b1, b2,
29 d1, d2, d3;
30};
31
32} // namespace ode
33
34#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.
2nd and 3rd order solver developed by Fehlberg
Definition ode_rkf_32.h:13
OdeRKF32(unsigned long neq)
constructs
Definition ode_rkf_32.cc:7
Provides space for stage slope values, an array of arrays for k values.
Definition ode_rk.h:9