libode
Easy to compile, fast ODE integrators as C++ classes
Loading...
Searching...
No Matches
ode_trapz.h
Go to the documentation of this file.
1#ifndef ODE_TRAPZ_H_
2#define ODE_TRAPZ_H_
3
5
6#include "ode_adaptive.h"
7#include "ode_rk.h"
8#include "ode_erk.h"
9
10namespace ode {
11
13class OdeTrapz : public OdeAdaptive, private OdeRK, private OdeERK {
14
15 public:
17
20 OdeTrapz (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 b1, b2;
28};
29
30} // namespace ode
31
32#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
Provides space for stage slope values, an array of arrays for k values.
Definition ode_rk.h:9
Second order, explicit trapezoidal rule.
Definition ode_trapz.h:13
OdeTrapz(unsigned long neq)
constructs
Definition ode_trapz.cc:7