dune-pdelab 2.9
Loading...
Searching...
No Matches
Dune::PDELab::GridFunctionBase< T, Imp > Class Template Reference

leaf of a function tree More...

#include <dune/pdelab/common/function.hh>

Inherits Dune::PDELab::GridFunctionInterface< T, Imp >, and Dune::TypeTree::LeafNode.

Inherited by Dune::PDELab::AnalyticGridFunctionBase< AnalyticGridFunctionTraits< GV, RF, 1 >, ConstGridFunction< GV, RF, 1 > >, Dune::PDELab::AnalyticGridFunctionBase< Dune::PDELab::AnalyticGridFunctionTraits< T::Traits::GridViewType, T::Traits::RangeFieldType, T::Traits::GridViewType::dimension >, ConvectionDiffusionVelocityExtensionAdapter< T > >, Dune::PDELab::ProductGridFunctionAdapter< GF2, GF1 >, DiagonalPermeabilityAdapter< T >, Dune::PDELab::ConvectionDiffusionDirichletExtensionAdapter< T >, Dune::PDELab::ConvectionDiffusionExactGradientAdapter< T >, Dune::PDELab::DirichletBoundaryCondition_CD< T >, Dune::PDELab::LinearAcousticsInitialValueAdapter< T >, Dune::PDELab::LinearElasticityDirichletExtensionAdapter< T >, Dune::PDELab::MaxwellInitialValueAdapter< T >, Dune::PDELab::MemberFunctionToGridFunctionAdaptor< Member, Class, GV, RF, dimR >, Dune::PDELab::SelectComponentGridFunctionAdapter< GF, dimR >, Dune::PDELab::TwoArgsMemberFunctionToGridFunctionAdaptor< Member, Class, GV, RF, dimR >, Dune::PDELab::UserFunction< FS, Functor >, Dune::PDELab::VectorDiscreteGridFunction< T, X, dimR >, and PermeabilityAdapter< T >.

Public Types

typedef GridFunctionTag ImplementationTag
 
typedef T::GridViewType GridViewType
 Type of the GridView.
 
using Output = typename Base::Output
 
typedef T Traits
 Export type traits.
 
typedef LeafNodeTag NodeTag
 

Public Member Functions

 GridFunctionBase (typename Output::DataSetType dataSetType=Output::vertexData)
 
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
 get a reference to the GridView
 
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.
 

Static Public Member Functions

static constexpr auto degree ()
 

Static Public Attributes

static const bool isLeaf
 
static const bool isPower
 
static const bool isComposite
 
static const std::size_t CHILDREN
 

Detailed Description

template<class T, class Imp>
class Dune::PDELab::GridFunctionBase< T, Imp >

leaf of a function tree

Classes derived from this class implement a GridFunctionTree.

Template Parameters
TTraits class holding the functions signature
ImpClass implementing the function. Imp must be derived from GridFunctionBase in some way (Barton-Nackman-Trick).

Member Typedef Documentation

◆ GridViewType

template<class T , class Imp >
typedef T::GridViewType Dune::PDELab::GridFunctionBase< T, Imp >::GridViewType

Type of the GridView.

◆ ImplementationTag

template<class T , class Imp >
typedef GridFunctionTag Dune::PDELab::GridFunctionBase< T, Imp >::ImplementationTag

◆ Output

template<class T , class Imp >
using Dune::PDELab::GridFunctionBase< T, Imp >::Output = typename Base::Output

◆ Traits

template<class T , class Imp >
typedef T Dune::PDELab::GridFunctionInterface< T, Imp >::Traits
inherited

Export type traits.

Constructor & Destructor Documentation

◆ GridFunctionBase()

template<class T , class Imp >
Dune::PDELab::GridFunctionBase< T, Imp >::GridFunctionBase ( typename Output::DataSetType  dataSetType = Output::vertexData)
inline

Member Function Documentation

◆ dataSetType()

Output::DataSetType Dune::PDELab::GridFunctionOutputParameters::dataSetType ( ) const
inlineinherited

Return the data set type of this function.

◆ evaluate()

template<class T , class Imp >
void Dune::PDELab::GridFunctionInterface< T, Imp >::evaluate ( const typename Traits::ElementType &  e,
const typename Traits::DomainType &  x,
typename Traits::RangeType &  y 
) const
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]eThe entity to evaluate on
[in]xThe position in entity-local coordinates
[out]yThe result of the evaluation

◆ getGridView()

template<class T , class Imp >
const Traits::GridViewType & Dune::PDELab::GridFunctionInterface< T, Imp >::getGridView ( ) const
inlineinherited

get a reference to the GridView

◆ setDataSetType()

void Dune::PDELab::GridFunctionOutputParameters::setDataSetType ( Output::DataSetType  dataSetType)
inlineinherited

Set the data set type of this function.


The documentation for this class was generated from the following file: