dune-functions 2.9.0
|
local function evaluating the derivative in reference coordinates More...
#include <dune/functions/gridfunctions/discreteglobalbasisfunction.hh>
Public Types | |
using | GlobalFunction = DiscreteGlobalBasisFunctionDerivative |
using | Domain = typename LocalBase::Domain |
using | Range = GlobalFunction::Range |
using | Element = typename LocalBase::Element |
Public Member Functions | |
LocalFunction (const GlobalFunction &globalFunction) | |
Create a local function from the associated grid function. More... | |
void | bind (const Element &element) |
Bind LocalFunction to grid element. More... | |
void | unbind () |
Unbind the local-function. More... | |
Range | operator() (const Domain &x) const |
Evaluate this local-function in coordinates x in the bound element. More... | |
bool | bound () const |
Check if LocalFunction is already bound to an element. More... | |
const Element & | localContext () const |
Return the element the local-function is bound to. More... | |
Protected Member Functions | |
template<class To , class From > | |
void | assignWith (To &to, const From &from) const |
template<class Node , class TreePath , class Range > | |
decltype(auto) | nodeToRangeEntry (const Node &node, const TreePath &treePath, Range &y) const |
Protected Attributes | |
std::shared_ptr< const Data > | data_ |
LocalView | localView_ |
std::vector< Coefficient > | localDoFs_ |
Friends | |
Traits::LocalFunctionTraits::DerivativeInterface | derivative (const LocalFunction &) |
Not implemented. More... | |
local function evaluating the derivative in reference coordinates
Note that the function returns the derivative with respect to global coordinates even when the point is given in reference coordinates on an element.
using Dune::Functions::DiscreteGlobalBasisFunctionDerivative< DGBF >::LocalFunction::Domain = typename LocalBase::Domain |
using Dune::Functions::DiscreteGlobalBasisFunctionDerivative< DGBF >::LocalFunction::Element = typename LocalBase::Element |
using Dune::Functions::DiscreteGlobalBasisFunctionDerivative< DGBF >::LocalFunction::GlobalFunction = DiscreteGlobalBasisFunctionDerivative |
using Dune::Functions::DiscreteGlobalBasisFunctionDerivative< DGBF >::LocalFunction::Range = GlobalFunction::Range |
|
inline |
Create a local function from the associated grid function.
|
inlineprotectedinherited |
|
inline |
Bind LocalFunction to grid element.
You must call this method before operator()
and after changes to the coefficient vector.
|
inlineinherited |
Check if LocalFunction is already bound to an element.
|
inlineinherited |
Return the element the local-function is bound to.
|
inlineprotectedinherited |
|
inline |
Evaluate this local-function in coordinates x
in the bound element.
The result of this method is undefined if you did not call bind() beforehand or changed the coefficient vector after the last call to bind(). In the latter case you have to call bind() again in order to make operator() usable.
Note that the function returns the derivative with respect to global coordinates even when the point is given in reference coordinates on an element.
|
inline |
Unbind the local-function.
|
friend |
Not implemented.
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |