AMDiS  0.3
The Adaptive Multi-Dimensional Simulation Toolbox
GridFunctionOperator< Tag, LC, GridFct > Class Template Reference

The base-template for GridFunctionOperators. More...

#include <GridFunctionOperator.hpp>

Inherits GridFunctionOperatorBase< GridFunctionOperator< Tag, LC, GridFct >, LC, GridFct >.

Additional Inherited Members

- Public Types inherited from LocalOperator< GridFunctionOperator< Tag, LC, GridFct >, LC >
using LocalContext = LC
 The element or intersection the operator is assembled on.
 
using Element = typename ContextType::Entity
 The codim=0 grid entity.
 
using Geometry = typename Element::Geometry
 The geometry of the Element.
 
- Public Member Functions inherited from GridFunctionOperatorBase< GridFunctionOperator< Tag, LC, GridFct >, LC, GridFct >
 GridFunctionOperatorBase (GridFct &&gridFct, int termOrder)
 Constructor. Stores a copy of gridFct. More...
 
void setQuadFactory (PQF &&pre)
 
- Public Member Functions inherited from LocalOperator< GridFunctionOperator< Tag, LC, GridFct >, LC >
void init (GridView const &gridView)
 Initialize the local operator on the current gridView.
 
void bind (Element const &element, Geometry const &geometry)
 Binds operator to element and geometry. More...
 
void unbind ()
 Unbinds operator from element.
 
void calculateElementMatrix (CG const &contextGeo, RN const &rowNode, CN const &colNode, Mat &elementMatrix)
 Assemble a local element matrix on the element that is bound. More...
 
void calculateElementVector (CG const &contextGeo, Node const &node, Vec &elementVector)
 Assemble a local element vector on the element that is bound. More...
 
GridFunctionOperator< Tag, LC, GridFct > & derived ()
 
GridFunctionOperator< Tag, LC, GridFct > const & derived () const
 
- Protected Member Functions inherited from GridFunctionOperatorBase< GridFunctionOperator< Tag, LC, GridFct >, LC, GridFct >
auto coefficient (LocalCoordinate const &local) const
 Return expression value at LocalCoordinates.
 
auto const & getQuadratureRule (Dune::GeometryType type, Nodes const &... nodes) const
 
- Protected Member Functions inherited from LocalOperator< GridFunctionOperator< Tag, LC, GridFct >, LC >
void init_impl (GridView const &)
 
void bind_impl (Element const &, Geometry const &)
 
void unbind_impl ()
 
int getDegree (int derivOrder, int coeffDegree, RN const &rowNode, CN const &colNode) const
 Return the quadrature degree for a matrix operator. More...
 
int getDegree (int derivOrder, int coeffDegree, Node const &node) const
 Return the quadrature degree for a vector operator. More...
 
- Protected Attributes inherited from LocalOperator< GridFunctionOperator< Tag, LC, GridFct >, LC >
bool isSimplex_
 
bool isAffine_
 
bool bound_
 

Detailed Description

template<class Tag, class LC, class GridFct>
class AMDiS::GridFunctionOperator< Tag, LC, GridFct >

The base-template for GridFunctionOperators.

An operator can specialize this class, by deriving from GridFunctionOperatorBase. With the generic function makeLocalOperator, an instance is created. To distinguisch different GridFunction operators, a tag can be provided that has no other effect.

Template Parameters
TagAn Identifier for this GridFunctionOperator
LCAn Element or Intersection the operator is evaluated on
GridFctA GridFunction evaluated in local coordinates on the bound element

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