UNIVERS  15.3
UNIVERS base processing software API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Public Member Functions | Protected Member Functions | List of all members
ode::Runge4_1D< T, X, F > Class Template Reference

#include <ode_runge4.hpp>

Inheritance diagram for ode::Runge4_1D< T, X, F >:
ode::Solver1D< T, X, F >

Public Member Functions

bool operator() (const T &t, const T &dt, F &f, X &x, X &dx) const
 
bool operator() (const T &t, const T &dt, F &f, X &x, X &dx, X &theta) const
 
- Public Member Functions inherited from ode::Solver1D< T, X, F >
virtual ~Solver1D ()
 
bool operator() (const T &t, const T &dt, F &f, X &x, X &dx) const
 

Protected Member Functions

virtual bool step (const T &t, const T &dt, F &f, X &x, X &dx) const
 
bool step (const T &t, const T &dt, F &f, X &x, X &dx, X &theta) const
 

Detailed Description

template<typename T, typename X, typename F>
class ode::Runge4_1D< T, X, F >

Fourth order Runge-Kutta ODE solver.

Member Function Documentation

template<typename T , typename X , typename F >
bool ode::Runge4_1D< T, X, F >::operator() ( const T &  t,
const T &  dt,
F &  f,
X &  x,
X &  dx 
) const
inline

Calculates step dx. Returns false on error.

Parameters
tcurrent argument value
dtstep of argument
fright part function
xcurrent function value
dxresulted function shift
template<typename T , typename X , typename F >
bool ode::Runge4_1D< T, X, F >::operator() ( const T &  t,
const T &  dt,
F &  f,
X &  x,
X &  dx,
X &  theta 
) const
inline

Calculates step dx and stability parameter. Returns false on error.

Parameters
tcurrent argument value
dtstep of argument
fright part function
xcurrent function value
dxresulted function shift
thetastability parameter
template<typename T , typename X , typename F >
bool ode::Runge4_1D< T, X, F >::step ( const T &  t,
const T &  dt,
F &  f,
X &  x,
X &  dx 
) const
protectedvirtual

Calculates step dx. Returns false on error.

Parameters
tcurrent argument value
dtstep of argument
fright part function
xcurrent function value
dxresulted function shift

Implements ode::Solver1D< T, X, F >.

template<typename T , typename X , typename F >
bool ode::Runge4_1D< T, X, F >::step ( const T &  t,
const T &  dt,
F &  f,
X &  x,
X &  dx,
X &  theta 
) const
protected

Calculates step dx and stability parameter. Returns false on error.

Calculates step dx. Returns false on error.

Parameters
tcurrent argument value
dtstep of argument
fright part function
xcurrent function value
dxresulted function shift
thetastability parameter

The documentation for this class was generated from the following file: