AnimaL |
Tutorial |
Documentation |
#include <solver.h>
The purpose of this class is to provide the integration algorithm with the necessary auxiliary types and methods. This class is adequate for a single state variable. For a container of state variables, see Solver_Traits_M. The types are the following:
Definition at line 260 of file solver.h.
Public Types | |
typedef RealT | Real |
Time representation. | |
typedef StateT | State |
State variable. | |
typedef CopyStateT | CopyState |
Internal container of state variables Some integration schemes need to store copies of state variables. | |
typedef DerivativeT | Derivative |
Derivative of state. | |
typedef NumTraitsT | Numerics |
Numerical traits. | |
typedef SizeTypeT | SizeType |
Size of containers. | |
Public Member Functions | |
void | average (const State &s1, const State &s2, State &result) const |
Average of two states (for Modified_Midpoint only). | |
void | rk4Step (const Derivative &d1, const Derivative &d2, const Derivative &d3, const Derivative &d4, Derivative &sum) const |
Linear combination of derivatives (for Runge_Kutta_4 only). | |
void | copy (const State &s, CopyState &cs) const |
Copy a state to a temporary state. | |
template<class Container> void | resize (Container &, const unsigned int) const |
For compatibility with solvers in dimension N. |
|
Internal container of state variables Some integration schemes need to store copies of state variables. A copy may be of a different type as long as operator = copies the relevant data. |
|
Derivative of state.
|
|
Numerical traits.
|
|
Time representation.
|
|
Size of containers.
|
|
State variable.
|
|
Average of two states (for Modified_Midpoint only).
|
|
Copy a state to a temporary state.
|
|
For compatibility with solvers in dimension N.
|
|
Linear combination of derivatives (for Runge_Kutta_4 only).
|