AMDiS  2.10
The Adaptive Multi-Dimensional Simulation Toolbox
LocalOperator< Traits, Nodes > Class Template Reference

The base class for a local operator to be used in a Assembler. More...

#include <LocalOperator.hpp>

Inherits Base< Traits, Nodes... >.

Public Types

using MatVec = typename Traits::ElementContainer
 Type of the element matrix or element vector.
 
using ContextGeo = ContextGeometry< typename Traits::LocalContext >
 The geometry of the local context, see ContextGeometry.
 
using Element = typename ContextGeo::Element
 The grid entity of codim=0.
 

Public Member Functions

template<class Impl , Dune::disableCopyMove< LocalOperator, Impl > = 0>
 LocalOperator (Impl &&impl)
 Constructor. Pass any type supporting the LocalOperatorInterface.
 
 LocalOperator ()=default
 Default Constructor.
 
void bind (Element const &element)
 Binds the local operator to an element. More...
 
void unbind ()
 Unbinds operator from element.
 
void assemble (ContextGeo const &cg, Nodes const &... ns, MatVec &mv) const
 Assemble a local element matrix or vector on the element that is bound. More...
 

Detailed Description

template<class Traits, class... Nodes>
class AMDiS::LocalOperator< Traits, Nodes >

The base class for a local operator to be used in a Assembler.

Type-erasure base class for local operators.

Template Parameters
TraitsParameters for the LocalOperator collected in a class. See Impl::OperatorTraits.
Nodes...Basis node (pair) the operator is associated to.

Member Function Documentation

◆ assemble()

void assemble ( ContextGeo const &  cg,
Nodes const &...  ns,
MatVec mv 
) const
inline

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

Parameters
contextGeoContainer for geometry related data, ContextGeometry
nodes...The node(s) of the test-basis (and trial-basis)
mvElement-matrix or vector

Referenced by LocalOperatorAdapter< LocalOperator, RowTreePath, ColTreePath >::assemble(), and BoundaryLocalOperator< LocalOperator, Intersection >::assemble().

◆ bind()

void bind ( Element const &  element)
inline

Binds the local operator to an element.

Binding an operator to the currently visited element in grid traversal.

Referenced by BoundaryLocalOperator< LocalOperator, Intersection >::bind(), and LocalOperatorAdapter< LocalOperator, RowTreePath, ColTreePath >::bind().


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