Programmierpraktikum NPDGL I
Öffentliche Typen | Öffentliche Methoden

ODESolver::DestinationOutput< DataOutputImp, DofVectorType > Template-Klassenreferenz

result type for ODE solvers Mehr ...

#include <odesolver.hh>

Zusammengehörigkeiten von ODESolver::DestinationOutput< DataOutputImp, DofVectorType >:
Collaboration graph
[Legende]

Aufstellung aller Elemente

Öffentliche Typen

typedef DataOutputImp DataOutputType
 Type of the class used for data output. This type needs to be derived from DataOutputInterface.
typedef std::pair< double,
DofVectorType > 
SnapshotType
 Snapshot type: a pair of a time instance and a DofVectorType.
typedef std::vector< SnapshotTypeTrajectoryType
 Trajectory type: a vector of SnapshotType instances.

Öffentliche Methoden

 DestinationOutput (const DataOutputType &dataOut, StorageParams params=StorageParams())
 Constructor storing a reference to the actual DataOutputInterface implementation.
void firstOutput (const DofVectorType &df, double time)
 Function storing the initial data function.
void output (const DofVectorType &df, unsigned int timeStep, double time)
 Function storing the intermediate data functions.
void lastOutput (const DofVectorType &df, unsigned int timeStep, double time)
 Function storing the final data function.
unsigned int size () const
 Returns the size of the stored data functions.
SnapshotTypeoperator[] (unsigned int index)
 Returns a snapshot from the stored trajectory.
const SnapshotTypeoperator[] (unsigned int index) const
 Returns a snapshot from the stored trajectory.

Ausführliche Beschreibung

template<class DataOutputImp, class DofVectorType>
class ODESolver::DestinationOutput< DataOutputImp, DofVectorType >

result type for ODE solvers

This class can be used as the output argument for the ODESolverInterface::solve() method. Usually it writes out trajectory data for visualization and optionally stores Dof vectors of intermediate solutions in memory.

One can think of this class handling as two trajectories

\[ \mbox{Traj}_{o/s} := \{ u_h(t^{\kappa_{o/s}}) \}_{\kappa_{o/s} \in {\cal S}_{o/s}} \]

composed of snapshots \( u_h(t^k) \in { \cal W}_h \) defined for time instances \( 0\leq t^0 \leq \ldots \leq t^K \) with selected time steps \( {\cal S}_{o/s} \subset \{0,\ldots,K\}\).

The trajectory

Siehe auch:
StorageParams for the definition of the sets \( {\cal S}_{o/s} \)
Template Parameters:
DataOutputTypetype of the class used for data output. This type needs to be derived from DataOutputInterface.
DofVectorTypetype of the Dof vectors. This type needs to be derived from DofVectorInterface.

Beschreibung der Konstruktoren und Destruktoren

template<class DataOutputImp , class DofVectorType >
ODESolver::DestinationOutput< DataOutputImp, DofVectorType >::DestinationOutput ( const DataOutputType dataOut,
StorageParams  params = StorageParams() 
) [inline]

Constructor storing a reference to the actual DataOutputInterface implementation.

Parameter:
dataOutThe DataOutputInterface implementation
paramsThis a prameter object defining the behaviour of the DestinationOutput objects.

Dokumentation der Elementfunktionen

template<class DataOutputImp , class DofVectorType >
void ODESolver::DestinationOutput< DataOutputImp, DofVectorType >::firstOutput ( const DofVectorType &  df,
double  time 
) [inline]

Function storing the initial data function.

This function is called at the beginning of an ODESolver loop and outputs/stores the initial data according to the given StorageParams parameters.

Parameter:
dfDof vector of initial data (possibly) to be stored.
timetime instance.
template<class DataOutputImp , class DofVectorType >
void ODESolver::DestinationOutput< DataOutputImp, DofVectorType >::lastOutput ( const DofVectorType &  df,
unsigned int  timeStep,
double  time 
) [inline]

Function storing the final data function.

This function is called at the end of an ODESolver loop and outputs/stores the final data according to the given StorageParams parameters.

Parameter:
dfDof vector of final result.
timeStepthe current time step number.
timetime instance.
template<class DataOutputImp , class DofVectorType >
SnapshotType& ODESolver::DestinationOutput< DataOutputImp, DofVectorType >::operator[] ( unsigned int  index) [inline]

Returns a snapshot from the stored trajectory.

Parameter:
indexindex of the snapshot in the trajectory to be returned.
template<class DataOutputImp , class DofVectorType >
const SnapshotType& ODESolver::DestinationOutput< DataOutputImp, DofVectorType >::operator[] ( unsigned int  index) const [inline]

Returns a snapshot from the stored trajectory.

Parameter:
indexindex of the snapshot in the trajectory to be returned.
template<class DataOutputImp , class DofVectorType >
void ODESolver::DestinationOutput< DataOutputImp, DofVectorType >::output ( const DofVectorType &  df,
unsigned int  timeStep,
double  time 
) [inline]

Function storing the intermediate data functions.

This function is called after each ODESolver step and outputs/stores the intermediately computed data according to the given StorageParams parameters.

Parameter:
dfDof vector of intermediate result (possibly) to be stored.
timeStepthe current time step number.
timetime instance.

Die Dokumentation für diese Klasse wurde erzeugt aufgrund der Datei: