AMDiS 2.10
The Adaptive Multi-Dimensional Simulation Toolbox
GridFunctionLocalOperator< LF, Imp > Class Template Reference

The main implementation of a local-operator depending on a local-function. More...

#include <GridFunctionOperator.hpp>

Public Member Functions

template<class LocalFct , class Impl >
 GridFunctionLocalOperator (LocalFct &&localFct, Impl &&impl, int derivDeg, int localFctOrder)
 Constructor. Stores a copy of localFct and impl. More...
 
template<class Element >
void bind (Element const &element)
 Binds operator to element. More...
 
void unbind ()
 Unbinds operator from element.
 
template<class CG , class RN , class CN , class Mat >
void assemble (CG const &contextGeo, RN const &rowNode, CN const &colNode, Mat &elementMatrix) const
 Assemble a local element matrix on the element that is bound. More...
 
template<class CG , class Node , class Vec >
void assemble (CG const &contextGeo, Node const &node, Vec &elementVector) const
 Assemble a local element vector on the element that is bound. More...
 
Implementation & impl ()
 
Implementation const & impl () const
 

Protected Member Functions

int localFctOrder () const
 

Detailed Description

template<class LF, class Imp>
class AMDiS::GridFunctionLocalOperator< LF, Imp >

The main implementation of a local-operator depending on a local-function.

A LocalOperator that takes a local-function as coefficient. Provides quadrature rules and passes the local-function, bound to an element, to the assemble method of an implementation class.

The class implements the interface of a LocalOperator.

Template Parameters
LFThe class type of the local-function
ImpClass providing the local assembling method

Requirements:

  • LF models the Concepts::LocalFunction

Constructor & Destructor Documentation

◆ GridFunctionLocalOperator()

GridFunctionLocalOperator ( LocalFct &&  localFct,
Impl &&  impl,
int  derivDeg,
int  localFctOrder 
)
inline

Constructor. Stores a copy of localFct and impl.

A GridFunctionLocalOperator takes a local-function, an implementation class, the differentiation order of the operator and the local-function polynomial degree, to calculate the quadrature degree of the operator

Member Function Documentation

◆ assemble() [1/2]

void assemble ( CG const &  contextGeo,
Node const &  node,
Vec &  elementVector 
) const
inline

Assemble a local element vector on the element that is bound.

This function calls the assemble method from the impl_ class and additionally passes a quadrature rule and the localFct_ to that method.

◆ assemble() [2/2]

void assemble ( CG const &  contextGeo,
RN const &  rowNode,
CN const &  colNode,
Mat &  elementMatrix 
) const
inline

Assemble a local element matrix on the element that is bound.

This function calls the assemble method from the impl_ class and additionally passes a quadrature rule and the localFct_ to that method.

◆ bind()

void bind ( Element const &  element)
inline

Binds operator to element.

By default, it binds the localFct_ to the element.


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