Programmierpraktikum NPDGL I
|
Interface class for ODE solvers. Mehr ...
#include <interfaces.hh>
Öffentliche Typen | |
typedef Traits::OperatorType | OperatorType |
Type of the space operator \( { \cal L }_h \). | |
typedef Traits::EvolutionModelType | EvolutionModelType |
Type of the evolution model description. | |
Öffentliche Methoden | |
template<class DofVectorType , class DestinationOutputType > | |
void | solve (DofVectorType const &init, DestinationOutputType &destOutput) |
method executing the actual ode solver and solving the differential equation |
Interface class for ODE solvers.
This interfaces defines the minimal methods and types of an ODE solver, solving a differential equation of following type
\[ u_h(0) = { \cal P }_h[u_0] \]
\[ \partial_{t} u_h(t) - { \cal L }_h[u_h(t)] = 0; \]
for a time interval \([0, T]\)
Traits | Traits class with types to be exported by ODE solvers. |
typedef Traits :: EvolutionModelType ODESolverInterface< Traits >::EvolutionModelType |
Type of the evolution model description.
This type should be derived from EvolutionModelInterface
Erneute Implementation in ODESolver::ImprovedEuler< Traits > und ODESolver::Euler< Traits >.
typedef Traits :: OperatorType ODESolverInterface< Traits >::OperatorType |
Type of the space operator \( { \cal L }_h \).
This type should be derived from SpaceOperatorInterface
Erneute Implementation in ODESolver::ImprovedEuler< Traits > und ODESolver::Euler< Traits >.
void ODESolverInterface< Traits >::solve | ( | DofVectorType const & | init, |
DestinationOutputType & | destOutput | ||
) | [inline] |
method executing the actual ode solver and solving the differential equation
DofVectorType | Storage type holding the vector of degrees of freedom. This type should be derived from DofVectorInterface. |
DestinationOutputType | Type of the class handling the intermediate results. This needs to be a class specification of the class template ODEDestinationOutput |
Erneute Implementation in ODESolver::ImprovedEuler< Traits > und ODESolver::Euler< Traits >.