|
dune-pdelab 2.10-git
|
Loading...
Searching...
No Matches
Public Types |
Public Member Functions |
Static Public Member Functions |
Static Public Attributes |
List of all members
Dune::PDELab::ConstGridFunction< GV, RF, dimR > Class Template Reference
GridFunction returning a constant value everywhere. More...
#include <dune/pdelab/function/const.hh>
Inheritance diagram for Dune::PDELab::ConstGridFunction< GV, RF, dimR >:

Public Types | |
| typedef AnalyticGridFunctionTraits< GV, RF, dimR > | Traits |
| typedef AnalyticGridFunctionBase< Traits, ConstGridFunction< GV, RF, dimR > > | BaseT |
| typedef LeafNodeTag | NodeTag |
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 | |
Static Public Member Functions | |
| static constexpr auto | degree () |
Static Public Attributes | |
| static const bool | isLeaf |
| static const bool | isPower |
| static const bool | isComposite |
Detailed Description
template<typename GV, typename RF, unsigned dimR = 1>
class Dune::PDELab::ConstGridFunction< GV, RF, dimR >
class Dune::PDELab::ConstGridFunction< GV, RF, dimR >
GridFunction returning a constant value everywhere.
- Template Parameters
-
GV The type of the GridView RF The type of the range field dimRange The dimension of the Range
Member Typedef Documentation
◆ BaseT
template<typename GV , typename RF , unsigned dimR = 1>
| typedef AnalyticGridFunctionBase< Traits, ConstGridFunction<GV,RF, dimR> > Dune::PDELab::ConstGridFunction< GV, RF, dimR >::BaseT |
◆ Traits
template<typename GV , typename RF , unsigned dimR = 1>
| typedef AnalyticGridFunctionTraits<GV,RF,dimR> Dune::PDELab::ConstGridFunction< GV, RF, dimR >::Traits |
Constructor & Destructor Documentation
◆ ConstGridFunction()
template<typename GV , typename RF , unsigned dimR = 1>
|
inline |
Contruct a Const GridFunction.
- Parameters
-
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.
Member Function Documentation
◆ dataSetType()
|
inlineinherited |
Return the data set type of this function.
◆ evaluate()
template<typename T , typename Imp >
|
inlineinherited |
Evaluate the GridFunction at given position.
Evaluates components of the grid function at the given position and returns these values in a vector.
- Parameters
-
[in] e The entity to evaluate on [in] x The position in entity-local coordinates [out] y The result of the evaluation
◆ evaluateGlobal()
template<typename GV , typename RF , unsigned dimR = 1>
|
inline |
evaluate the function globally
- Parameters
-
x Position in global coordinates where to evaluate. y The resulting value.
◆ getGridView()
template<typename T , typename Imp >
|
inlineinherited |
◆ setDataSetType()
|
inlineinherited |
Set the data set type of this function.
◆ setTime()
template<typename Time >
|
inlineinherited |
set time for subsequent evaluation
This method sets the time for subsequent calls to any of the evaluation methods.
- Note
- This default method does nothing, it just ensures setTime() can be called without ill effects.
- Function implementation are free to restrict the types of acceptable parameters. This should be noted in the function classes documentation.
The documentation for this class was generated from the following file:
Legal Statements / Impressum | Hosted by TU Dresden & Uni Heidelberg | Generated by
1.9.8