|
Programmierpraktikum NPDGL I
|
projection class projecting the initial data Mehr ...
#include <finite_difference.hh>
Ö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 | |
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.
| 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.
1.7.3