DUNE-ACFEM (2.5.1)

GridFunctionWrapper

Augment global functions by a HasLocalFunction property. More...

Classes

class  Dune::ACFem::LocalDivergenceAdapter< GridFunction >
 An adapter class to compute the divergence of a GridFunction. More...
 
class  Dune::ACFem::LocalGradientAdapter< GridFunction >
 An adapter class to compute the gradient of a scalar GridFunction. More...
 
class  Dune::ACFem::GridFunctionAdapter< FunctionImp, GridPartImp >
 GridFunctionAdapter provides local functions for a Function. More...
 
struct  Dune::ACFem::GridFunctionAdapterTraits< FunctionImp, GridPartImp >
 traits of GridFunctionAdapter More...
 
class  Dune::ACFem::GridFunctionWrapper< FunctionImp, GridPart >
 A special version of Fem::GridFunctionAdapter which stores a copy to the function, not a reference. More...
 
struct  Dune::ACFem::GridFunctionConverter< FunctionImp, GridPart >
 Helper class for wrapToGridFunction() and adaptToGridFunction() More...
 
class  Dune::ACFem::LocalFunctionWrapper< LocalFunctionImpl, GridPart >
 LocalFunctionWrapper wraps a class with a local evaluate method into a grid function. More...
 
struct  Dune::ACFem::LocalFunctionWrapperTraits< LocalFunctionImpl, GridPart >
 traits of DiscreteFunctionAdapter More...
 
class  Dune::ACFem::LocalPiecewiseAdapter< CharacteristicFunction, GridFunction0, GridFunction1 >
 An adapter class to form a piecewise defined function where the domain decomposition is given by the characteristic function of one of the sub-domains. More...
 
class  Dune::ACFem::LocalRightHandSideAdapter< OperatorParts, Solution >
 An adapter class which takes any ACFem-PDE model and computes from its bulk contributions and any given GridFunction a bulk forces density field (AKA "right hand side") such that the discrete solution of the PDE model should approximate the underlying "exact solution". More...
 

Typedefs

typedef GridPartType::template Codim< 0 >::IteratorType Dune::ACFem::LocalFunctionWrapperTraits< LocalFunctionImpl, GridPart >::IteratorType
 type of iterator
 
typedef GridPartType::IndexSetType Dune::ACFem::LocalFunctionWrapperTraits< LocalFunctionImpl, GridPart >::IndexSetType
 type of IndexSet
 
typedef LocalFunctionImpl Dune::ACFem::LocalFunctionWrapper< LocalFunctionImpl, GridPart >::LocalFunctionImplType
 Evaluate class.
 
typedef GridPart Dune::ACFem::LocalFunctionWrapper< LocalFunctionImpl, GridPart >::GridPartType
 type of grid part
 
typedef LocalFunctionWrapperTraits< LocalFunctionImplType, GridPartTypeDune::ACFem::LocalFunctionWrapper< LocalFunctionImpl, GridPart >::TraitsType
 traits class
 
typedef TraitsType::DiscreteFunctionSpaceType Dune::ACFem::LocalFunctionWrapper< LocalFunctionImpl, GridPart >::DiscreteFunctionSpaceType
 type of discrete function space
 
typedef TraitsType::GridType Dune::ACFem::LocalFunctionWrapper< LocalFunctionImpl, GridPart >::GridType
 type of grid
 
typedef TraitsType::DomainFieldType Dune::ACFem::LocalFunctionWrapper< LocalFunctionImpl, GridPart >::DomainFieldType
 domain type
 
typedef TraitsType::RangeFieldType Dune::ACFem::LocalFunctionWrapper< LocalFunctionImpl, GridPart >::RangeFieldType
 range type
 
typedef TraitsType::DomainType Dune::ACFem::LocalFunctionWrapper< LocalFunctionImpl, GridPart >::DomainType
 domain type
 
typedef TraitsType::RangeType Dune::ACFem::LocalFunctionWrapper< LocalFunctionImpl, GridPart >::RangeType
 range type
 
typedef TraitsType::JacobianRangeType Dune::ACFem::LocalFunctionWrapper< LocalFunctionImpl, GridPart >::JacobianRangeType
 jacobian type
 
typedef TraitsType::HessianRangeType Dune::ACFem::LocalFunctionWrapper< LocalFunctionImpl, GridPart >::HessianRangeType
 hessian type
 
typedef TraitsType::EntityType Dune::ACFem::LocalFunctionWrapper< LocalFunctionImpl, GridPart >::EntityType
 type of codim 0 entity
 
typedef LocalFunction Dune::ACFem::LocalFunctionWrapper< LocalFunctionImpl, GridPart >::LocalFunctionType
 type of local function to export
 
typedef LocalFunctionImpl Dune::ACFem::LocalFunctionWrapper< LocalFunctionImpl, GridPart >::LocalFunction::LocalFunctionImplType
 type of local function implementation
 
typedef LocalFunctionWrapperTraits< LocalFunctionImplType, GridPart > Dune::ACFem::LocalFunctionWrapper< LocalFunctionImpl, GridPart >::LocalFunction::TraitsType
 type of the traits class
 
typedef TraitsType::DomainFieldType Dune::ACFem::LocalFunctionWrapper< LocalFunctionImpl, GridPart >::LocalFunction::DomainFieldType
 domain type
 
typedef TraitsType::RangeFieldType Dune::ACFem::LocalFunctionWrapper< LocalFunctionImpl, GridPart >::LocalFunction::RangeFieldType
 range type
 
typedef TraitsType::DomainType Dune::ACFem::LocalFunctionWrapper< LocalFunctionImpl, GridPart >::LocalFunction::DomainType
 domain type
 
typedef TraitsType::RangeType Dune::ACFem::LocalFunctionWrapper< LocalFunctionImpl, GridPart >::LocalFunction::RangeType
 range type
 
typedef TraitsType::JacobianRangeType Dune::ACFem::LocalFunctionWrapper< LocalFunctionImpl, GridPart >::LocalFunction::JacobianRangeType
 jacobian type
 
typedef TraitsType::HessianRangeType Dune::ACFem::LocalFunctionWrapper< LocalFunctionImpl, GridPart >::LocalFunction::HessianRangeType
 hessian type
 

Functions

template<class FunctionImp , class GridPart >
static auto Dune::ACFem::wrapToGridFunction (const std::string &name, const FunctionImp &f, const GridPart &g, unsigned order=111)
 Possibly wrap a function into a GridFunctionWrapper. More...
 
template<class FunctionImp , class GridPart >
static auto Dune::ACFem::adaptToGridFunction (const std::string &name, const FunctionImp &f, const GridPart &g, unsigned order=111)
 Possibly enhance a function by encapsulating a reference into a GridFunctionAdapter. More...
 
 Dune::ACFem::LocalFunctionWrapper< LocalFunctionImpl, GridPart >::LocalFunctionWrapper (const std::string &name, const LocalFunctionImplType &eval, const GridPartType &gridPart, unsigned int order=DiscreteFunctionSpaceType::polynomialOrder)
 constructer taking instance of EvalImp class
 
void Dune::ACFem::LocalFunctionWrapper< LocalFunctionImpl, GridPart >::evaluate (const DomainType &global, RangeType &result) const
 Evaluate function in global coordinates.
 
void Dune::ACFem::LocalFunctionWrapper< LocalFunctionImpl, GridPart >::jacobian (const DomainType &global, JacobianRangeType &result) const
 Evaluate jacobian in global coordinates.
 
void Dune::ACFem::LocalFunctionWrapper< LocalFunctionImpl, GridPart >::hessian (const DomainType &global, HessianRangeType &result) const
 Evaluate hessian in global coordinates.
 
LocalFunctionType Dune::ACFem::LocalFunctionWrapper< LocalFunctionImpl, GridPart >::localFunction (const EntityType &entity)
 
const LocalFunctionType Dune::ACFem::LocalFunctionWrapper< LocalFunctionImpl, GridPart >::localFunction (const EntityType &entity) const
 
 Dune::ACFem::LocalFunctionWrapper< LocalFunctionImpl, GridPart >::LocalFunction::LocalFunction (const EntityType &entity, const DiscreteFunctionType &wrapper)
 constructor initializing local function
 
 Dune::ACFem::LocalFunctionWrapper< LocalFunctionImpl, GridPart >::LocalFunction::LocalFunction (const DiscreteFunctionType &wrapper)
 constructor
 
template<class PointType >
void Dune::ACFem::LocalFunctionWrapper< LocalFunctionImpl, GridPart >::LocalFunction::evaluate (const PointType &x, RangeType &ret) const
 evaluate local function
 
template<class PointType >
void Dune::ACFem::LocalFunctionWrapper< LocalFunctionImpl, GridPart >::LocalFunction::jacobian (const PointType &x, JacobianRangeType &ret) const
 jacobian of local function
 
template<class QuadratureType , class VectorType >
void Dune::ACFem::LocalFunctionWrapper< LocalFunctionImpl, GridPart >::LocalFunction::evaluateQuadrature (const QuadratureType &quadrature, VectorType &values) const
 evaluate function or jacobian of function for given quadrature
 
void Dune::ACFem::LocalFunctionWrapper< LocalFunctionImpl, GridPart >::LocalFunction::init (const EntityType &entity)
 init local function
 

Detailed Description

Augment global functions by a HasLocalFunction property.

See Fem::GridFunctionAdapter.

Function Documentation

◆ adaptToGridFunction()

template<class FunctionImp , class GridPart >
static auto Dune::ACFem::adaptToGridFunction ( const std::string &  name,
const FunctionImp &  f,
const GridPart &  g,
unsigned  order = 111 
)
inlinestatic

Possibly enhance a function by encapsulating a reference into a GridFunctionAdapter.

If f already has the Fem::HasLocalFunction property, then do nothing, otherwise encapsulate f by a GridFunctionAdapter. The difference between GridFunctionAdapter and GridFunctionWrapper is that the wrapper makes a copy of f, the adaptor keeps only a reference.

◆ localFunction() [1/2]

template<class LocalFunctionImpl , class GridPart >
LocalFunctionType Dune::ACFem::LocalFunctionWrapper< LocalFunctionImpl, GridPart >::localFunction ( const EntityType entity)
inline

◆ localFunction() [2/2]

template<class LocalFunctionImpl , class GridPart >
const LocalFunctionType Dune::ACFem::LocalFunctionWrapper< LocalFunctionImpl, GridPart >::localFunction ( const EntityType entity) const
inline

◆ wrapToGridFunction()

template<class FunctionImp , class GridPart >
static auto Dune::ACFem::wrapToGridFunction ( const std::string &  name,
const FunctionImp &  f,
const GridPart &  g,
unsigned  order = 111 
)
inlinestatic

Possibly wrap a function into a GridFunctionWrapper.

If f already has the Fem::HasLocalFunction property, then do nothing, otherwise encapsulate f by a GridFunctionWrapper. The difference between GridFunctionAdapter and GridFunctionWrapper is that the wrapper makes a copy of f, the adaptor keeps only a reference.

Referenced by Dune::ACFem::coordinateGridFunction(), and Dune::ACFem::identityGridFunction().

Creative Commons License   |  Legal Statements / Impressum  |  Hosted by TU Dresden  |  generated with Hugo v0.80.0 (Apr 24, 22:30, 2024)