dune-fem  2.4.1-rc
Classes | Public Types | Public Member Functions | Protected Member Functions | Static Protected Member Functions | Protected Attributes | List of all members
Dune::Fem::GridFunctionAdapter< FunctionImp, GridPartImp > Class Template Reference

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

#include </local/tomalk/somewhere/tmp/dune-fem/dune/fem/function/common/gridfunctionadapter.hh>

Inheritance diagram for Dune::Fem::GridFunctionAdapter< FunctionImp, GridPartImp >:
Inheritance graph

Classes

class  LocalFunction
 

Public Types

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

Public Member Functions

 GridFunctionAdapter (const std::string &name, const FunctionType &f, const GridPartType &gridPart, unsigned int order=DiscreteFunctionSpaceType::polynomialOrder)
 
 GridFunctionAdapter (const ThisType &other)
 
void evaluate (const DomainType &global, RangeType &result) const
 evaluate function on local coordinate local More...
 
void jacobian (const DomainType &global, JacobianRangeType &result) const
 evaluate function on local coordinate local More...
 
LocalFunctionType localFunction (const EntityType &entity)
 obtain a local function for an entity (read-write) More...
 
const LocalFunctionType localFunction (const EntityType &entity) const
 obtain a local function for an entity (read-write) More...
 
const std::string & name () const
 obtain the name of the discrete function More...
 
const DiscreteFunctionSpaceTypespace () const
 obtain a reference to the corresponding DiscreteFunctionSpace More...
 
const GridPartTypegridPart () const
 
virtual void operator() (const DomainType &arg, RangeType &dest) const
 application operator call evaluate More...
 
void operator() (const DomainType &arg, RangeType &dest) const
 Application operator that applies all operators in the linear combination stack. More...
 
void evaluate (const DomainType &x, RangeType &value) const
 evaluate the function More...
 
void jacobian (const DomainType &x, JacobianRangeType &jacobian) const
 evaluate the Jacobian of the function More...
 
void hessian (const DomainType &x, HessianRangeType &hessian) const
 evaluate the hessian of the function More...
 

Protected Member Functions

const GridFunctionAdapter< FunctionImp, GridPartImp > & asImp () const
 
GridFunctionAdapter< FunctionImp, GridPartImp > & asImp ()
 

Static Protected Member Functions

static const GridFunctionAdapter< FunctionImp, GridPartImp > & asImp (const ThisType &other)
 
static GridFunctionAdapter< FunctionImp, GridPartImp > & asImp (ThisType &other)
 

Protected Attributes

DiscreteFunctionSpaceType space_
 
const FunctionTypefunction_
 
const std::string name_
 

Detailed Description

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

GridFunctionAdapter provides local functions for a Function.

Member Typedef Documentation

typedef FunctionSpaceType :: HessianRangeType Dune::Fem::Function< FunctionImp::FunctionSpaceType , GridFunctionAdapter< FunctionImp, GridPartImp > >::HessianRangeType
inherited

hessian type

typedef Mapping< DomainFieldType, RangeFieldType, DomainType, RangeType > Dune::Fem::Function< FunctionImp::FunctionSpaceType , GridFunctionAdapter< FunctionImp, GridPartImp > >::MappingType
inherited

type of mapping base class

Member Function Documentation

static const GridFunctionAdapter< FunctionImp, GridPartImp > & Dune::Fem::BartonNackmanInterface< Function< FunctionImp::FunctionSpaceType, GridFunctionAdapter< FunctionImp, GridPartImp > > , GridFunctionAdapter< FunctionImp, GridPartImp > >::asImp ( const ThisType other)
inlinestaticprotectedinherited
static GridFunctionAdapter< FunctionImp, GridPartImp > & Dune::Fem::BartonNackmanInterface< Function< FunctionImp::FunctionSpaceType, GridFunctionAdapter< FunctionImp, GridPartImp > > , GridFunctionAdapter< FunctionImp, GridPartImp > >::asImp ( ThisType other)
inlinestaticprotectedinherited
const GridFunctionAdapter< FunctionImp, GridPartImp > & Dune::Fem::BartonNackmanInterface< Function< FunctionImp::FunctionSpaceType, GridFunctionAdapter< FunctionImp, GridPartImp > > , GridFunctionAdapter< FunctionImp, GridPartImp > >::asImp ( ) const
inlineprotectedinherited
GridFunctionAdapter< FunctionImp, GridPartImp > & Dune::Fem::BartonNackmanInterface< Function< FunctionImp::FunctionSpaceType, GridFunctionAdapter< FunctionImp, GridPartImp > > , GridFunctionAdapter< FunctionImp, GridPartImp > >::asImp ( )
inlineprotectedinherited
void Dune::Fem::Function< FunctionImp::FunctionSpaceType , GridFunctionAdapter< FunctionImp, GridPartImp > >::evaluate ( const DomainType x,
RangeType value 
) const
inlineinherited

evaluate the function

Parameters
[in]xevaluation point
[out]valuevalue of the function in x
void Dune::Fem::Function< FunctionImp::FunctionSpaceType , GridFunctionAdapter< FunctionImp, GridPartImp > >::hessian ( const DomainType x,
HessianRangeType hessian 
) const
inlineinherited

evaluate the hessian of the function

Parameters
[in]xevaluation point
[out]hessianvalue of the hessian in x
void Dune::Fem::Function< FunctionImp::FunctionSpaceType , GridFunctionAdapter< FunctionImp, GridPartImp > >::jacobian ( const DomainType x,
JacobianRangeType jacobian 
) const
inlineinherited

evaluate the Jacobian of the function

Parameters
[in]xevaluation point
[out]jacobianvalue of the Jacobian in x
virtual void Dune::Fem::Function< FunctionImp::FunctionSpaceType , GridFunctionAdapter< FunctionImp, GridPartImp > >::operator() ( const DomainType arg,
RangeType dest 
) const
inlinevirtualinherited

application operator call evaluate

Parameters
[in]argargument
[out]destdestination, i.e. f(arg)
void Dune::Fem::Mapping< FunctionImp::FunctionSpaceType::DomainFieldType , FunctionImp::FunctionSpaceType::RangeFieldType , FunctionImp::FunctionSpaceType::DomainType , FunctionImp::FunctionSpaceType::RangeType >::operator() ( const DomainType arg,
RangeType dest 
) const
inlineinherited

Application operator that applies all operators in the linear combination stack.

Parameters
[in]argargument
[out]destdestination

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