dune-functions 2.9.0
Public Types | Public Member Functions | Protected Member Functions | Protected Attributes | Friends | List of all members
Dune::Functions::DiscreteGlobalBasisFunctionDerivative< DGBF >::LocalFunction Class Reference

local function evaluating the derivative in reference coordinates More...

#include <dune/functions/gridfunctions/discreteglobalbasisfunction.hh>

Inheritance diagram for Dune::Functions::DiscreteGlobalBasisFunctionDerivative< DGBF >::LocalFunction:
Inheritance graph

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 ElementlocalContext () 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< CoefficientlocalDoFs_
 

Friends

Traits::LocalFunctionTraits::DerivativeInterface derivative (const LocalFunction &)
 Not implemented. More...
 

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 Typedef Documentation

◆ Domain

template<typename DGBF >
using Dune::Functions::DiscreteGlobalBasisFunctionDerivative< DGBF >::LocalFunction::Domain = typename LocalBase::Domain

◆ Element

template<typename DGBF >
using Dune::Functions::DiscreteGlobalBasisFunctionDerivative< DGBF >::LocalFunction::Element = typename LocalBase::Element

◆ GlobalFunction

template<typename DGBF >
using Dune::Functions::DiscreteGlobalBasisFunctionDerivative< DGBF >::LocalFunction::GlobalFunction = DiscreteGlobalBasisFunctionDerivative

◆ Range

template<typename DGBF >
using Dune::Functions::DiscreteGlobalBasisFunctionDerivative< DGBF >::LocalFunction::Range = GlobalFunction::Range

Constructor & Destructor Documentation

◆ LocalFunction()

template<typename DGBF >
Dune::Functions::DiscreteGlobalBasisFunctionDerivative< DGBF >::LocalFunction::LocalFunction ( const GlobalFunction globalFunction)
inline

Create a local function from the associated grid function.

Member Function Documentation

◆ assignWith()

template<typename B , typename V , typename NTRE >
template<class To , class From >
void Dune::Functions::ImplDoc::DiscreteGlobalBasisFunctionBase< B, V, NTRE >::LocalFunctionBase::assignWith ( To &  to,
const From &  from 
) const
inlineprotectedinherited

◆ 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.

◆ bound()

template<typename B , typename V , typename NTRE >
bool Dune::Functions::ImplDoc::DiscreteGlobalBasisFunctionBase< B, V, NTRE >::LocalFunctionBase::bound ( ) const
inlineinherited

Check if LocalFunction is already bound to an element.

◆ localContext()

template<typename B , typename V , typename NTRE >
const Element & Dune::Functions::ImplDoc::DiscreteGlobalBasisFunctionBase< B, V, NTRE >::LocalFunctionBase::localContext ( ) const
inlineinherited

Return the element the local-function is bound to.

◆ nodeToRangeEntry()

template<typename B , typename V , typename NTRE >
template<class Node , class TreePath , class Range >
decltype(auto) Dune::Functions::ImplDoc::DiscreteGlobalBasisFunctionBase< B, V, NTRE >::LocalFunctionBase::nodeToRangeEntry ( const Node &  node,
const TreePath &  treePath,
Range &  y 
) const
inlineprotectedinherited

◆ 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.

◆ unbind()

template<typename DGBF >
void Dune::Functions::DiscreteGlobalBasisFunctionDerivative< DGBF >::LocalFunction::unbind ( )
inline

Unbind the local-function.

Friends And Related Function Documentation

◆ derivative

template<typename DGBF >
Traits::LocalFunctionTraits::DerivativeInterface derivative ( const LocalFunction )
friend

Not implemented.

Member Data Documentation

◆ data_

template<typename B , typename V , typename NTRE >
std::shared_ptr<const Data> Dune::Functions::ImplDoc::DiscreteGlobalBasisFunctionBase< B, V, NTRE >::LocalFunctionBase::data_
protectedinherited

◆ localDoFs_

template<typename B , typename V , typename NTRE >
std::vector<Coefficient> Dune::Functions::ImplDoc::DiscreteGlobalBasisFunctionBase< B, V, NTRE >::LocalFunctionBase::localDoFs_
protectedinherited

◆ localView_

template<typename B , typename V , typename NTRE >
LocalView Dune::Functions::ImplDoc::DiscreteGlobalBasisFunctionBase< B, V, NTRE >::LocalFunctionBase::localView_
protectedinherited

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