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 |
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.
LF | The class type of the local-function |
Imp | Class providing the local assembling method |
Requirements:
LF
models the Concepts::LocalFunction
|
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
|
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.
|
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.
|
inline |
Binds operator to element
.
By default, it binds the localFct_ to the element
.