Typedefs | |
using | DiscretizationFuncPtr = void(*)(StateSim &, const double &) |
Enumerations | |
enum | DiscretizationType { DiscretizationType::USER_DEF, DiscretizationType::EULER, DiscretizationType::HEUN, DiscretizationType::RK4, DiscretizationType::RK4_38 } |
Several discretization modes. More... | |
Functions | |
template<std::size_t StateNmSize, std::size_t RKOrder, typename... RKCoeff> | |
void | discretize (StateSim &_stateSim, const double &_arc) |
Templetized generic discretization function. More... | |
template<> | |
void | discretize< 0, 0 > (StateSim &_stateSim, const double &_arc) |
Specialization for using a user-defined discretization function. More... | |
template<std::size_t StateNmSize> | |
DiscretizationFuncPtr | getDiscrFunc (DiscretizationType _discrType) |
Returns a discretization function pointer for pre-defined Runge-Kutta specializations defined in DiscretizationType. More... | |
using tuw::RungeKutta::DiscretizationFuncPtr = typedef void (*)(StateSim&, const double&) |
Definition at line 53 of file discretization_runge_kutta_alias.hpp.
|
strong |
Several discretization modes.
Enumerator | |
---|---|
USER_DEF | |
EULER | |
HEUN | |
RK4 | |
RK4_38 |
Definition at line 56 of file discretization_runge_kutta_alias.hpp.
void tuw::RungeKutta::discretize | ( | StateSim & | _stateSim, |
const double & | _arc | ||
) |
Templetized generic discretization function.
Performs variants of the systematic Runge-Kutta methods.
StateNmSize | Size of the numerically-computed state. |
RKOrder | Order of the Runge-Kutta method. |
RKCoeff | Butcher tableau coefficients of the method. The specification order is c2..cn, b1..bn, a21 a31 a32 a41 a42 a43...ann-1 |
_stateSim | Entire simulated state. The function starts from its input values and modifies it according to the discretization step. |
_arc | Evaluation point of the closed-form functions/state. |
Definition at line 81 of file discretization_runge_kutta.hpp.
|
inline |
Specialization for using a user-defined discretization function.
Definition at line 147 of file discretization_runge_kutta.hpp.
DiscretizationFuncPtr tuw::RungeKutta::getDiscrFunc | ( | DiscretizationType | _discrType | ) |
Returns a discretization function pointer for pre-defined Runge-Kutta specializations defined in DiscretizationType.
Definition at line 68 of file discretization_runge_kutta_alias.hpp.