DUNE-ACFEM (2.5.1)

Dune::ACFem::GridFunctionAdapter< FunctionImp, GridPartImp > Class Template Reference

GridFunctionAdapter provides local functions for a Function. More...

#include <dune/acfem/functions/gridfunctionadapter.hh>

Public Types

typedef GridFunctionAdapterTraits< FunctionImp, GridPartImp > Traits
 type of traits
 
typedef FunctionImp FunctionType
 type of function
 
typedef GridPartImp GridPartType
 type of grid part
 
typedef Traits::DiscreteFunctionSpaceType DiscreteFunctionSpaceType
 type of discrete function space
 
typedef DiscreteFunctionSpaceType::GridType GridType
 type of grid
 
typedef DiscreteFunctionSpaceType::DomainFieldType DomainFieldType
 domain type (from function space)
 
typedef DiscreteFunctionSpaceType::RangeFieldType RangeFieldType
 range type (from function space)
 
typedef DiscreteFunctionSpaceType::DomainType DomainType
 domain type (from function space)
 
typedef DiscreteFunctionSpaceType::RangeType RangeType
 range type (from function space)
 
typedef DiscreteFunctionSpaceType::JacobianRangeType JacobianRangeType
 jacobian type (from function space)
 
typedef DiscreteFunctionSpaceType::HessianRangeType HessianRangeType
 hessian type (from function space)
 
typedef Traits::EntityType EntityType
 type of codim 0 entity
 
typedef LocalFunction LocalFunctionType
 type of local function to export
 

Public Member Functions

void evaluate (const DomainType &global, RangeType &result) const
 evaluate function on local coordinate local
 
void jacobian (const DomainType &global, JacobianRangeType &result) const
 evaluate function on local coordinate local
 
void hessian (const DomainType &global, HessianRangeType &result) const
 evaluate function on local coordinate local
 
const LocalFunctionType localFunction (const EntityType &entity) const
 
LocalFunctionType localFunction (const EntityType &entity)
 
const std::string & name () const
 
const DiscreteFunctionSpaceTypespace () const
 

Detailed Description

template<class FunctionImp, class GridPartImp>
class Dune::ACFem::GridFunctionAdapter< FunctionImp, GridPartImp >

GridFunctionAdapter provides local functions for a Function.

To plug an Fem::Function "analytical function" into a operator taking DiscreteFunctionInterface "discrete functions", i.e., expecting LocalFunction "local functions" a wrapper can be applied to the analytical function instance. The resulting class is still a Fem::Function "Function" but with the property HasLocalFunction "\" has local function \"" added.

Note
"Stolen" from core dune-fem in order to get red of a static_assert

Member Function Documentation

◆ localFunction() [1/2]

template<class FunctionImp , class GridPartImp >
LocalFunctionType Dune::ACFem::GridFunctionAdapter< FunctionImp, GridPartImp >::localFunction ( const EntityType entity)
inline

◆ localFunction() [2/2]

template<class FunctionImp , class GridPartImp >
const LocalFunctionType Dune::ACFem::GridFunctionAdapter< FunctionImp, GridPartImp >::localFunction ( const EntityType entity) const
inline

◆ name()

template<class FunctionImp , class GridPartImp >
const std::string & Dune::ACFem::GridFunctionAdapter< FunctionImp, GridPartImp >::name ( ) const
inline

◆ space()

template<class FunctionImp , class GridPartImp >
const DiscreteFunctionSpaceType & Dune::ACFem::GridFunctionAdapter< FunctionImp, GridPartImp >::space ( ) const
inline

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 (Nov 12, 23:30, 2024)