AnimaL |
Tutorial |
Documentation |
#include <solver.h>
This class extends Solver_Traits to STL-like containers of state variables.
Definition at line 341 of file solver.h.
Public Types | |
| typedef RealT | Real |
| Time representation. | |
| typedef StateT | State |
| Container of state variables. | |
| typedef CopyStateT | CopyState |
| Internal container of state variables Some integration schemes need to store copies of state variables. | |
| typedef DerivativeT | Derivative |
| Container of derivatives of state variables. | |
| typedef NumTraitsT | Numerics |
| Numerical traits. | |
| typedef SizeTypeT | SizeType |
| Size of containers. | |
Public Member Functions | |
| template<class Container> void | resize (Container &c, const unsigned int size) const |
| Resize auxiliary containers. | |
| 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. | |
|
|||||
|
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. |
|
|||||
|
Container of derivatives of state variables. Derivative must define State::value_type and State::size_type and have the following members:
Derivative::value_typ must have the following members:
|
|
|||||
|
Numerical traits.
|
|
|||||
|
Time representation.
|
|
|||||
|
Size of containers.
|
|
|||||
|
Container of state variables. State must define State::value_type and State::size_type and have the following members:
State::value_type must have the following members:
|
|
||||||||||||||||||||
|
Average of two states (for Modified_Midpoint only).
|
|
||||||||||||||||
|
Copy a state to a temporary state.
|
|
||||||||||||||||||||
|
Resize auxiliary containers.
|
|
||||||||||||||||||||||||||||
|
Linear combination of derivatives (for Runge_Kutta_4 only).
|
1.3.6