libode
Easy to compile, fast ODE integrators as C++ classes
Loading...
Searching...
No Matches
ode_dopri_87.h
Go to the documentation of this file.
1#ifndef ODE_DOPRI87_H_
2#define ODE_DOPRI87_H_
3
5
6#include "ode_embedded.h"
7#include "ode_rk.h"
8#include "ode_erk.h"
9
10namespace ode {
11
13
17class OdeDoPri87 : public OdeEmbedded, private OdeRK, private OdeERK {
18
19 public:
21
24 OdeDoPri87 (unsigned long neq);
25
26 private:
27 //function for taking a single time step
28 void step_ (double dt);
29 //coefficents of tableau
30 double c2, a21,
31 c3, a31, a32,
32 c4, a41, a43,
33 c5, a51, a53, a54,
34 c6, a61, a64, a65,
35 c7, a71, a74, a75, a76,
36 c8, a81, a84, a85, a86, a87,
37 c9, a91, a94, a95, a96, a97, a98,
38 c10, a101, a104, a105, a106, a107, a108, a109,
39 c11, a111, a114, a115, a116, a117, a118, a119, a1110,
40 c12, a121, a124, a125, a126, a127, a128, a129, a1210, a1211,
41 c13, a131, a134, a135, a136, a137, a138, a139, a1310, a1311,
42 b1, b6, b7, b8, b9, b10, b11, b12, b13,
43 d1, d6, d7, d8, d9, d10, d11, d12;
44};
45
46} // namespace ode
47
48#endif
Explicit 8/7 pair from Dormand & Prince.
OdeDoPri87(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