Dune Core Modules (2.10.0)

Dune::Functions::DiscreteGlobalBasisFunctionDerivative< DGBF >::LocalFunction Class Reference

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

template<typename DGBF>
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()

template<typename DGBF >
void Dune::Functions::DiscreteGlobalBasisFunctionDerivative< DGBF >::LocalFunction::bind ( const Element &  element)
inline

Bind LocalFunction to grid element.

You must call this method before operator() and after changes to the coefficient vector.

◆ operator()()

template<typename DGBF >
Range Dune::Functions::DiscreteGlobalBasisFunctionDerivative< DGBF >::LocalFunction::operator() ( const Domain &  x) const
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(), and Dune::TypeTree::treePath().


The documentation for this class was generated from the following file:
Creative Commons License   |  Legal Statements / Impressum  |  Hosted by TU Dresden  |  generated with Hugo v0.111.3 (Dec 26, 23:30, 2024)