|
dune-pdelab 2.7-git
|
GridFunction returning a constant value everywhere. More...
#include <dune/pdelab/function/const.hh>

Public Types | |
| typedef AnalyticGridFunctionTraits< GV, RF, dimR > | Traits |
| typedef AnalyticGridFunctionBase< Traits, ConstGridFunction< GV, RF, dimR > > | BaseT |
Public Member Functions | |
| ConstGridFunction (const GV &gv, const typename Traits::RangeType &val_=1) | |
| Contruct a Const GridFunction. | |
| void | evaluateGlobal (const typename Traits::DomainType &x, typename Traits::RangeType &y) const |
| evaluate the function globally | |
| void | evaluate (const typename Traits::ElementType &e, const typename Traits::DomainType &x, typename Traits::RangeType &y) const |
| Evaluate the GridFunction at given position. | |
| const Traits::GridViewType & | getGridView () const |
| Output::DataSetType | dataSetType () const |
| Return the data set type of this function. | |
| void | setDataSetType (Output::DataSetType dataSetType) |
| Set the data set type of this function. | |
| template<typename Time > | |
| void | setTime (Time t) |
| set time for subsequent evaluation | |
GridFunction returning a constant value everywhere.
| GV | The type of the GridView |
| RF | The type of the range field |
| dimRange | The dimension of the Range |
| typedef AnalyticGridFunctionBase< Traits, ConstGridFunction<GV,RF, dimR> > Dune::PDELab::ConstGridFunction< GV, RF, dimR >::BaseT |
| typedef AnalyticGridFunctionTraits<GV,RF,dimR> Dune::PDELab::ConstGridFunction< GV, RF, dimR >::Traits |
|
inline |
Contruct a Const GridFunction.
| gv | The GridView to use. It is passed as a reference to AnalyticGridFunctionBase (look there for the requirements of this argument). |
| val_ | The value tu return on evaluation. This class stores a copy of that value. |
|
inlineinherited |
Return the data set type of this function.
|
inlineinherited |
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 |
evaluate the function globally
| x | Position in global coordinates where to evaluate. |
| y | The resulting value. |
|
inlineinherited |
|
inlineinherited |
Set the data set type of this function.
|
inlineinherited |
set time for subsequent evaluation
This method sets the time for subsequent calls to any of the evaluation methods.