dune-pdelab
2.5-dev
|
an analytic grid function More...
#include <dune/pdelab/common/function.hh>
Public Types | |
typedef T | Traits |
Public Member Functions | |
AnalyticGridFunctionBase (const typename Traits::GridViewType &g_) | |
Construct an Analytic GridFunctionBase given a GridView g_. More... | |
void | evaluate (const typename Traits::ElementType &e, const typename Traits::DomainType &x, typename Traits::RangeType &y) const |
Evaluate the GridFunction at given position. More... | |
const Traits::GridViewType & | getGridView () const |
Output::DataSetType | dataSetType () const |
Return the data set type of this function. More... | |
void | setDataSetType (Output::DataSetType dataSetType) |
Set the data set type of this function. More... | |
an analytic grid function
This is a convenience class which eases the creation of analytic GridFunctions. Classes derived from it need only implement a method evaluateGlobal(const Dune::FieldVector<typename Traits::DomainFieldType,GV::dimensionworld> &x_global, RangeType &y) to have a full-fledged GridFunction.
T | The Traits class |
Imp | Class implementing the function. Imp must be derived from AnalyticGridFunctionBase in some way (Barton-Nackman-Trick). |
typedef T Dune::PDELab::AnalyticGridFunctionBase< T, Imp >::Traits |
|
inline |
Construct an Analytic GridFunctionBase given a GridView g_.
|
inlineinherited |
Return the data set type of this function.
|
inline |
Evaluate the GridFunction at given position.
Evaluates components of the grid function at the given position and returns these values in a vector.
[in] | e | The entity to evaluate on |
[in] | x | The position in entity-local coordinates |
[out] | y | The result of the evaluation |
|
inline |
|
inlineinherited |
Set the data set type of this function.