Public Types | Public Member Functions | Static Public Attributes | List of all members
nmx::gsl::Odeiv2< N, HASCALLOP, JACOBIAN > Class Template Reference

The Odeiv2 class numerische Lösung eines Systems von N Differenzialgleichungen Schnittstelle zur gsl. More...

#include <xode.h>

Public Types

using Array = std::array< double, N >
 

Public Member Functions

template<class T >
 Odeiv2 (T &obj, double istepsize, double abserror, double relerror, const gsl_odeiv2_step_type *steptype=gsl_odeiv2_step_rkf45)
 Odeiv2 Konstruktor. More...
 
 ~Odeiv2 ()
 
void set_init_conditions (double t, const Array &y)
 set_init_conditions lege Anfangsbedingungen fest More...
 
void solve (double t)
 applyStep berechnet Lösung More...
 
double operator[] (size_t idx) const
 operator [] Zugriff auf einzelnen Elemente des Lösungsvektors mit Index More...
 
constexpr size_t size () const
 size More...
 

Static Public Attributes

static constexpr size_t DIM = N
 

Detailed Description

template<size_t N, bool HASCALLOP = false, bool JACOBIAN = false>
class nmx::gsl::Odeiv2< N, HASCALLOP, JACOBIAN >

The Odeiv2 class numerische Lösung eines Systems von N Differenzialgleichungen Schnittstelle zur gsl.

Parameters
NAnzahl der Differenzialgleichungen
HASCALLOPFunktion wird über (...) aufgerufen
Jacobi-Matrixwird benötigt

Definition at line 20 of file xode.h.

Member Typedef Documentation

◆ Array

template<size_t N, bool HASCALLOP = false, bool JACOBIAN = false>
using nmx::gsl::Odeiv2< N, HASCALLOP, JACOBIAN >::Array = std::array<double, N>

Definition at line 24 of file xode.h.

Constructor & Destructor Documentation

◆ Odeiv2()

template<size_t N, bool HASCALLOP = false, bool JACOBIAN = false>
template<class T >
nmx::gsl::Odeiv2< N, HASCALLOP, JACOBIAN >::Odeiv2 ( T &  obj,
double  istepsize,
double  abserror,
double  relerror,
const gsl_odeiv2_step_type *  steptype = gsl_odeiv2_step_rkf45 
)
inline

Odeiv2 Konstruktor.

Parameters
objImplementierung des DGL-Systems
istepsizeanfängliche Schrittweite
abserrorabsoluter Fehler
relerrorrelativer Fehler
steptypeAlgorithmus (Runge-Kutta Familie)

Definition at line 110 of file xode.h.

◆ ~Odeiv2()

template<size_t N, bool HASCALLOP = false, bool JACOBIAN = false>
nmx::gsl::Odeiv2< N, HASCALLOP, JACOBIAN >::~Odeiv2 ( )
inline

Destructor

Definition at line 122 of file xode.h.

Member Function Documentation

◆ operator[]()

template<size_t N, bool HASCALLOP = false, bool JACOBIAN = false>
double nmx::gsl::Odeiv2< N, HASCALLOP, JACOBIAN >::operator[] ( size_t  idx) const
inline

operator [] Zugriff auf einzelnen Elemente des Lösungsvektors mit Index

Parameters
idxIndex
Returns
Element des Lösungsvektors

Definition at line 156 of file xode.h.

◆ set_init_conditions()

template<size_t N, bool HASCALLOP = false, bool JACOBIAN = false>
void nmx::gsl::Odeiv2< N, HASCALLOP, JACOBIAN >::set_init_conditions ( double  t,
const Array y 
)
inline

set_init_conditions lege Anfangsbedingungen fest

Parameters
tunabhängige Variable
yLösungsvektor

Definition at line 133 of file xode.h.

◆ size()

template<size_t N, bool HASCALLOP = false, bool JACOBIAN = false>
constexpr size_t nmx::gsl::Odeiv2< N, HASCALLOP, JACOBIAN >::size ( ) const
inline

size

Returns
Anzahl der Gleichungen im Gleichungssystem

Definition at line 167 of file xode.h.

◆ solve()

template<size_t N, bool HASCALLOP = false, bool JACOBIAN = false>
void nmx::gsl::Odeiv2< N, HASCALLOP, JACOBIAN >::solve ( double  t)
inline

applyStep berechnet Lösung

Parameters
tfür einen Wert der unabhängigen Variablen

Definition at line 142 of file xode.h.

Member Data Documentation

◆ DIM

template<size_t N, bool HASCALLOP = false, bool JACOBIAN = false>
constexpr size_t nmx::gsl::Odeiv2< N, HASCALLOP, JACOBIAN >::DIM = N
static

Definition at line 26 of file xode.h.


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