|
Programmierpraktikum NPDGL I
|
class projecting an analytical function on a FV function space Mehr ...
#include <projection.hh>

Öffentliche Methoden | |
| Projection (const Grid &grid) | |
| constructor | |
| template<class Function , class DofVecType > | |
| void | apply (const Function &func, DofVecType &dofs) |
| applies the projection | |
class projecting an analytical function on a FV function space
It implements a midpoint evaluation to compute the Dofs.
This class has a method apply() which projects an analytical function implementing the interface Function onto a discrete function vector.
| Projection::Projection | ( | const Grid & | grid | ) | [inline] |
constructor
This defines the used discretization by initializing the underlying grid
| grid | the underlying grid |
| void Projection::apply | ( | const Function & | func, |
| DofVecType & | dofs | ||
| ) | [inline] |
applies the projection
| func | The analytical function to be projected |
| dofs | Dof vector holding the dofs of the projected discrete function |
| Function | type of function to be projected. This type needs to be derived from the Function interface class. |
| DofVecType | type of Dof vector. This type needs to be derived from the DofVectorInterface class. |
1.7.3