Programmierpraktikum NPDGL I
Öffentliche Methoden

InitialProjection Klassenreferenz

projection class projecting the initial data Mehr ...

#include <finite_difference.hh>

Aufstellung aller Elemente

Öffentliche Methoden

 InitialProjection ()
 constructor doing nothing
template<class DofVecType >
void apply (const Model &model, Grid &grid, DofVecType &dofs)
 perform projection by midpoint evaluation
 ~InitialProjection ()
 destructor doing nothing

Ausführliche Beschreibung

projection class projecting the initial data

This class has a method apply() which projects the analytical function implemented in Model.u0() onto a discrete function vector.


Dokumentation der Elementfunktionen

template<class DofVecType >
void InitialProjection::apply ( const Model model,
Grid grid,
DofVecType &  dofs 
) [inline]

perform projection by midpoint evaluation

This method fills a discrete function vector dofs with evaluations in of the analytical function \( u_0 \) given by Model.u0() at the midpoints of grid cells defined by grid.

Parameter:
modelModel providing the initial data function
gridGrid providing the midpoints of the grid cells
dofsDof vector with midpoint evaluations

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