Dune Core Modules (2.9.0)
local function evaluating the derivative in reference coordinates More...
#include <dune/functions/gridfunctions/discreteglobalbasisfunction.hh>
Public Member Functions | |
LocalFunction (const GlobalFunction &globalFunction) | |
Create a local function from the associated grid function. | |
void | bind (const Element &element) |
Bind LocalFunction to grid element. More... | |
void | unbind () |
Unbind the local-function. | |
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. | |
const Element & | localContext () const |
Return the element the local-function is bound to. | |
Friends | |
Traits::LocalFunctionTraits::DerivativeInterface | derivative (const LocalFunction &) |
Not implemented. | |
Detailed Description
class Dune::Functions::DiscreteGlobalBasisFunctionDerivative< DGBF >::LocalFunction
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.
Member Function Documentation
◆ bind()
|
inline |
Bind LocalFunction to grid element.
You must call this method before operator()
and after changes to the coefficient vector.
◆ operator()()
|
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.
References Dune::TypeTree::forEachLeafNode(), Dune::Functions::istlVectorBackend(), Dune::transform(), and Dune::TypeTree::treePath().
The documentation for this class was generated from the following file:
- dune/functions/gridfunctions/discreteglobalbasisfunction.hh