Dune Core Modules (2.11.0)

Dune::Vtk::LocalFunction< Element, ComponentMapper > Class Template Reference

A Vtk::LocalFunction is a function-like object that can be bound to a grid element an that provides an evaluate method with a component argument. More...

#include <dune/vtk/gridfunctions/localfunction.hh>

Public Member Functions

template<class LF >
 LocalFunction (LF &&lf, std::vector< int > components)
 Constructor. Pass any type supporting the LocalOperatorInterface.
 
 LocalFunction ()=default
 Default Constructor.
 
 LocalFunction (LocalFunction &&)=default
 Move Constructor.
 
LocalFunctionoperator= (LocalFunction &&)=default
 Move assignment-operator.
 
 LocalFunction (const LocalFunction &other)
 Copy constructor, clones the underlying implementation.
 
LocalFunctionoperator= (const LocalFunction &other)
 Copy assignment operator, clones the underlying implementation.
 
void bind (Element const &element)
 Binds the local function to an element.
 
void unbind ()
 Unbinds function from element.
 
Impl::RangeProxy< LocalFunction, Domain > operator() (Domain const &x) const
 Return a proxy object to access the components of the range vector.
 
double evaluate (int i, Domain const &x) const
 Evaluate the ith component of the Range value at local coordinate x
 
const std::vector< int > & components () const
 Return the components vector.
 
void setComponents (std::vector< int > components)
 Use the passed components for evaluation of the range.
 

Detailed Description

template<class Element, class ComponentMapper>
class Dune::Vtk::LocalFunction< Element, ComponentMapper >

A Vtk::LocalFunction is a function-like object that can be bound to a grid element an that provides an evaluate method with a component argument.

Stores internally a Vtk::LocalFunctionInterface object for the concrete evaluation.


The documentation for this class was generated from the following file:
Creative Commons License   |  Legal Statements / Impressum  |  Hosted by TU Dresden & Uni Heidelberg  |  generated with Hugo v0.111.3 (Feb 14, 23:39, 2026)