![]() |
Dune-Fufem 2.11-git
|
Adaptor for turning a Fufem::Forms LocalOperator into a LocalFunction. More...
#include <dune/fufem/forms/localfunctionadaptor.hh>
Public Types | |
| using | Element = typename LocalOperator::Element |
| using | Range = typename LocalOperator::Range |
Public Member Functions | |
| LocalFunctionAdaptor (LocalOperator &&localOperator) | |
| LocalFunctionAdaptor (const LocalOperator &localOperator) | |
| LocalFunctionAdaptor (const LocalFunctionAdaptor &other) | |
| LocalFunctionAdaptor (LocalFunctionAdaptor &&other) | |
| void | bind (const Element &element) |
| Bind the LocalFunction to an element. | |
| void | unbind () |
| Unbind the LocalFunction. | |
| bool | bound () const |
| Check if LocalFunction is already bound to an element. | |
| auto | operator() (const Domain &x) const |
| Evaluate the local function. | |
| const Element & | localContext () const |
| Return the element the local-function is bound to. | |
Detailed Description
class Dune::Fufem::Forms::LocalFunctionAdaptor< LocalOperator >
Adaptor for turning a Fufem::Forms LocalOperator into a LocalFunction.
In Dune::Fufem::Forms a LocalOperator represents the localized version of a multilinear operator from a tuple of finite element spaces to the integrable functions. In this sense a 0-linear (or nullary) operator represents a fixed integrable function and its LocalOperator is essentially a LocalFunction in the sense of Dune::Functions. However, the interface of a nullary LocalOperator and a nullary LocalFunction is slightly different: While the LocalFunction can simply be evaluated at points given by local coordinates, a LocalOperator implements cached evaluations an thus requires to first being bound to a cache associated to a QuadratureRule and then being evaluated at a QuadraturePoint identified by an index.
The LocalFunctionAdaptor adapts a LocalOperator to the LocalFunction interface by managing a local cache and binding passing it to the operator in the desired form. This is meant to be used in nullary Dune::Fufem::Forms operators to implement the GridFunction interface of Dune::Functions.
Member Typedef Documentation
◆ Element
| using Dune::Fufem::Forms::LocalFunctionAdaptor< LocalOperator >::Element = typename LocalOperator::Element |
◆ Range
| using Dune::Fufem::Forms::LocalFunctionAdaptor< LocalOperator >::Range = typename LocalOperator::Range |
Constructor & Destructor Documentation
◆ LocalFunctionAdaptor() [1/4]
|
inline |
◆ LocalFunctionAdaptor() [2/4]
|
inline |
◆ LocalFunctionAdaptor() [3/4]
|
inline |
◆ LocalFunctionAdaptor() [4/4]
|
inline |
Member Function Documentation
◆ bind()
|
inline |
Bind the LocalFunction to an element.
◆ bound()
|
inline |
Check if LocalFunction is already bound to an element.
◆ localContext()
|
inline |
Return the element the local-function is bound to.
◆ operator()()
|
inline |
Evaluate the local function.
◆ unbind()
|
inline |
Unbind the LocalFunction.
The documentation for this class was generated from the following file:
