DUNE PDELab (git)

Dune::PDELab::ConstBoundaryGridFunction< GV, RF, dimR > Class Template Reference

BoundaryGridFunction returning a constant value everywhere. More...

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

Public Types

typedef BoundaryGridFunctionTraits< GV, RF, dimR, FieldVector< RF, dimR > > Traits
 export Traits class
 
typedef T::GridViewType GridViewType
 Type of the GridView.
 
typedef LeafNodeTag NodeTag
 The type tag that describes a LeafNode.
 

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
 

Static Public Attributes

static const bool isLeaf = true
 Mark this class as a leaf in a dune-typetree.
 
static const bool isPower = false
 Mark this class as a non power in the dune-typetree.
 
static const bool isComposite = false
 Mark this class as a non composite in the dune-typetree.
 

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

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()

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.

The documentation for this class was generated from the following file:
Creative Commons License   |  Legal Statements / Impressum  |  Hosted by TU Dresden  |  generated with Hugo v0.111.3 (Nov 24, 23:30, 2024)