dune-pdelab 2.7-git
Loading...
Searching...
No Matches
Public Types | Public Member Functions | List of all members
Dune::PDELab::ConstBoundaryGridFunction< GV, RF, dimR > Class Template Reference

BoundaryGridFunction returning a constant value everywhere. More...

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

Inheritance diagram for Dune::PDELab::ConstBoundaryGridFunction< GV, RF, dimR >:
Inheritance graph

Public Types

typedef BoundaryGridFunctionTraits< GV, RF, dimR, FieldVector< RF, dimR > > Traits
 export Traits class More...
 
typedef GridFunctionTag ImplementationTag
 
typedef T::GridViewType GridViewType
 Type of the GridView. More...
 

Public Member Functions

 ConstBoundaryGridFunction (const GV &gv_, const typename Traits::RangeType &val_=1)
 Contruct a ConstBoundaryGridFunction. More...
 
template<typename I >
void evaluate (const IntersectionGeometry< I > &ig, const typename Traits::DomainType &x, typename Traits::RangeType &y) const
 evaluate the function More...
 
const GV & getGridView () const
 get a reference to the GridView More...
 
template<typename I >
void evaluate (const IntersectionGeometry< I > &ig, const typename Traits::DomainType &x, typename Traits::RangeType &y) const
 Evaluate the GridFunction at given position. More...
 

Detailed Description

template<typename GV, typename RF, unsigned dimR = 1>
class Dune::PDELab::ConstBoundaryGridFunction< GV, RF, dimR >

BoundaryGridFunction returning a constant value everywhere.

Template Parameters
GVThe type of the GridView
RFThe type of the range field
dimRangeThe dimension of the Range

Member Typedef Documentation

◆ GridViewType

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

Type of the GridView.

◆ ImplementationTag

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

◆ Traits

template<typename GV , typename RF , unsigned dimR = 1>
typedef BoundaryGridFunctionTraits< GV, RF,dimR,FieldVector<RF,dimR> > Dune::PDELab::ConstBoundaryGridFunction< GV, RF, dimR >::Traits

export Traits class

Constructor & Destructor Documentation

◆ ConstBoundaryGridFunction()

template<typename GV , typename RF , unsigned dimR = 1>
Dune::PDELab::ConstBoundaryGridFunction< GV, RF, dimR >::ConstBoundaryGridFunction ( const GV &  gv_,
const typename Traits::RangeType val_ = 1 
)
inline

Contruct a ConstBoundaryGridFunction.

Parameters
gv_The GridView to use. This class stores a copy of it.
val_The value tu return on evaluation. This class stores a copy of that value.

Member Function Documentation

◆ evaluate() [1/2]

template<class T , class Imp >
template<typename I >
void Dune::PDELab::BoundaryGridFunctionInterface< T, Imp >::evaluate ( const IntersectionGeometry< I > &  ig,
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]iggeometry of intersection with boundary
[in]xThe position in entity-local coordinates
[out]yThe result of the evaluation

◆ evaluate() [2/2]

template<typename GV , typename RF , unsigned dimR = 1>
template<typename I >
void Dune::PDELab::ConstBoundaryGridFunction< GV, RF, dimR >::evaluate ( const IntersectionGeometry< I > &  ig,
const typename Traits::DomainType x,
typename Traits::RangeType y 
) const
inline

evaluate the function

Template Parameters
IType of intersection
Parameters
igIntersectionGeometry of this boundary intersection.
xPosition in local coordinates where to evaluate.
yThe resulting value.

◆ getGridView()

template<typename GV , typename RF , unsigned dimR = 1>
const GV & Dune::PDELab::ConstBoundaryGridFunction< GV, RF, dimR >::getGridView ( ) const
inline

get a reference to the GridView


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