Typedefs | Enumerations | Functions
tuw::RungeKutta Namespace Reference

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...
 

Typedef Documentation

using tuw::RungeKutta::DiscretizationFuncPtr = typedef void (*)(StateSim&, const double&)

Definition at line 53 of file discretization_runge_kutta_alias.hpp.

Enumeration Type Documentation

Several discretization modes.

Enumerator
USER_DEF 
EULER 
HEUN 
RK4 
RK4_38 

Definition at line 56 of file discretization_runge_kutta_alias.hpp.

Function Documentation

template<std::size_t StateNmSize, std::size_t RKOrder, typename... RKCoeff>
void tuw::RungeKutta::discretize ( StateSim _stateSim,
const double &  _arc 
)

Templetized generic discretization function.

Performs variants of the systematic Runge-Kutta methods.

Template Parameters
StateNmSizeSize of the numerically-computed state.
RKOrderOrder of the Runge-Kutta method.
RKCoeffButcher tableau coefficients of the method. The specification order is c2..cn, b1..bn, a21 a31 a32 a41 a42 a43...ann-1
Parameters
_stateSimEntire simulated state. The function starts from its input values and modifies it according to the discretization step.
_arcEvaluation point of the closed-form functions/state.

Definition at line 81 of file discretization_runge_kutta.hpp.

template<>
void tuw::RungeKutta::discretize< 0, 0 > ( StateSim _stateSim,
const double &  _arc 
)
inline

Specialization for using a user-defined discretization function.

Definition at line 147 of file discretization_runge_kutta.hpp.

template<std::size_t StateNmSize>
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.



tuw_control
Author(s): George Todoran
autogenerated on Mon Jun 10 2019 15:27:24