libode
Easy to compile, fast ODE integrators as C++ classes
Loading...
Searching...
No Matches
ode_grk4a.h
Go to the documentation of this file.
1#ifndef ODE_GRK4A_H_
2#define ODE_GRK4A_H_
3
5
6#include "ode_linalg.h"
7#include "ode_embedded.h"
8#include "ode_rosenbrock.h"
9
10namespace ode {
11
13
16class OdeGRK4A : public OdeEmbedded, private OdeRosenbrock {
17
18 public:
20
23 OdeGRK4A (unsigned long neq);
24
25 private:
26 //function for taking a single step
27 void step_ (double dt);
28 //coefficients
29 double gam21,
30 gam31, gam32,
31 gam41, gam42, gam43;
32 double g21,
33 g31, g32,
34 g41, g42, g43;
35 double alp21,
36 alp31, alp32;
37 double b1, b2, b3, b4,
38 d1, d2, d3;
39
40};
41
42} // namespace ode
43
44#endif
Base clase implementing methods for embedded Runge-Kutta error estimation.
Fourth-order, A-stable, adaptive Rosenbrock method from Kaps and Rentrop.
Definition ode_grk4a.h:16
OdeGRK4A(unsigned long neq)
constructs
Definition ode_grk4a.cc:7
Base class for Rosenbrock methods.