DUNE-ACFEM (2.5.1)
gridfunctionwrapper.hh
5#include "../functions/gridfunctionadapter.hh" // use our own version in order to get rid of a static_assert
55 typedef GridFunctionExpression<typename FunctionImp::FunctionSpaceType, ThisType> ExpressionBaseType;
287 static const WrappedGridFunctionType& wrap(const std::string& name, const FunctionImp& f, const GridPart& g, unsigned order)
292 static const AdaptedGridFunctionType& adapt(const std::string& name, const FunctionImp& f, const GridPart& g, unsigned order)
304 static WrappedGridFunctionType wrap(const std::string& name, const FunctionImp& f, const GridPart& g, unsigned order)
309 static AdaptedGridFunctionType adapt(const std::string& name, const FunctionImp& f, const GridPart& g, unsigned order)
320 static auto wrap(const std::string& name, const FunctionImp& f, const GridPart& g, unsigned order)
326 static auto adapt(const std::string& name, const FunctionImp& f, const GridPart& g, unsigned order)
342 auto wrapToGridFunction(const std::string& name, const FunctionImp& f, const GridPart& g, unsigned order = 111)
360 auto adaptToGridFunction(const std::string& name, const FunctionImp& f, const GridPart& g, unsigned order = 111)
void jacobian(const DomainType &global, JacobianRangeType &result) const
evaluate function on local coordinate local
Definition: gridfunctionadapter.hh:186
LocalFunction LocalFunctionType
type of local function to export
Definition: gridfunctionadapter.hh:157
Traits::DiscreteFunctionSpaceType DiscreteFunctionSpaceType
type of discrete function space
Definition: gridfunctionadapter.hh:127
Traits::EntityType EntityType
type of codim 0 entity
Definition: gridfunctionadapter.hh:149
const DiscreteFunctionSpaceType & space() const
Definition: gridfunctionadapter.hh:221
const std::string & name() const
Definition: gridfunctionadapter.hh:215
void hessian(const DomainType &global, HessianRangeType &result) const
evaluate function on local coordinate local
Definition: gridfunctionadapter.hh:192
void evaluate(const DomainType &global, RangeType &result) const
evaluate function on local coordinate local
Definition: gridfunctionadapter.hh:180
A class providing some basic functionality common to all expressions.
Definition: gridfunctionexpressionbase.hh:35
const std::string & name() const
Return a descriptive name for the function.
Definition: gridfunctionexpressionbase.hh:56
A special version of Fem::GridFunctionAdapter which stores a copy to the function,...
Definition: gridfunctionwrapper.hh:51
DiscreteFunctionSpaceType::DomainFieldType DomainFieldType
domain type (from function space)
Definition: gridfunctionwrapper.hh:76
AdapterType::EntityType EntityType
type of codim 0 entity
Definition: gridfunctionwrapper.hh:89
AdapterType::DiscreteFunctionSpaceType DiscreteFunctionSpaceType
type of discrete function space
Definition: gridfunctionwrapper.hh:67
void jacobian(const DomainType &global, JacobianRangeType &result) const
evaluate the Jacobian of the function
Definition: gridfunctionwrapper.hh:138
const DiscreteFunctionSpaceType & space() const
Definition: gridfunctionwrapper.hh:171
DiscreteFunctionSpaceType::GridType GridType
type of grid
Definition: gridfunctionwrapper.hh:73
DiscreteFunctionSpaceType::JacobianRangeType JacobianRangeType
jacobian type (from function space)
Definition: gridfunctionwrapper.hh:84
DiscreteFunctionSpaceType::HessianRangeType HessianRangeType
hessian type (from function space)
Definition: gridfunctionwrapper.hh:86
DiscreteFunctionSpaceType::DomainType DomainType
domain type (from function space)
Definition: gridfunctionwrapper.hh:80
DiscreteFunctionSpaceType::RangeFieldType RangeFieldType
range type (from function space)
Definition: gridfunctionwrapper.hh:78
const LocalFunctionType localFunction(const EntityType &entity) const
cons
Definition: gridfunctionwrapper.hh:154
void evaluate(const DomainType &global, RangeType &result) const
evaluate the function
Definition: gridfunctionwrapper.hh:128
LocalFunctionType localFunction(const EntityType &entity)
Definition: gridfunctionwrapper.hh:160
void hessian(const DomainType &global, HessianRangeType &result) const
evaluate the Hessian of the function
Definition: gridfunctionwrapper.hh:148
LocalFunction LocalFunctionType
type of local function to export
Definition: gridfunctionwrapper.hh:102
DiscreteFunctionSpaceType::RangeType RangeType
range type (from function space)
Definition: gridfunctionwrapper.hh:82
static void trimParenthesis(std::string &name)
Remove any outer redundant parenthesis.
Definition: stringhelper.hh:40
static auto 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.
Definition: gridfunctionwrapper.hh:360
static auto wrapToGridFunction(const std::string &name, const FunctionImp &f, const GridPart &g, unsigned order=111)
Possibly wrap a function into a GridFunctionWrapper.
Definition: gridfunctionwrapper.hh:342
Helper class for wrapToGridFunction() and adaptToGridFunction()
Definition: gridfunctionwrapper.hh:279
![Creative Commons License](https://i.creativecommons.org/l/by-sa/4.0/80x15.png)