Dune::GridFunction< G, RT, m > Class Template Reference
[Functions Hierarchy]

#include <functions.hh>

Inheritance diagram for Dune::GridFunction< G, RT, m >:

Dune::FunctionBase< G::ctype, RT, G::dimension, m > Dune::C0GridFunction< G, RT, m > Dune::C0GridFunction< G::LeafGridView::Grid, RT, m > Dune::C0GridFunction< G::LevelGridView::Grid, RT, m > Dune::C0GridFunction< GridType, RT, m > Dune::C0GridFunction< GV::Grid, RT, m > Dune::DGFunction< G::LeafGridView, RT, o, SFSC > Dune::DGFunction< G::LevelGridView, RT, o, SFSC > Dune::DifferentiableGridFunction< G, RT, m > Dune::DifferentiableGridFunction< G::LeafGridView::Grid, RT, m > Dune::DifferentiableGridFunction< G::LevelGridView::Grid, RT, m > Dune::DifferentiableGridFunction< GridType, RT, m > Dune::DifferentiableGridFunction< GV::Grid, RT, m > Dune::DifferentiableGridFunctionAdapter< G, RT, m > Dune::GridFunctionAdapter< G, RT, m > Dune::GridFunctionDefault< G, RT, m > Dune::GridFunctionDefault< G, RT, G::dimension > Dune::GridFunctionDefault< G::LeafGridView::Grid, RT, 1 > Dune::GridFunctionDefault< G::LevelGridView::Grid, RT, 1 > Dune::GridFunctionDefault< GV::Grid, RT, 1 > Dune::GridFunctionGlobalEvalDefault< G::LeafGridView, RT, 1 > Dune::GridFunctionGlobalEvalDefault< G::LeafGridView, RT, m > Dune::GridFunctionGlobalEvalDefault< G::LevelGridView, RT, 1 > Dune::GridFunctionGlobalEvalDefault< G::LevelGridView, RT, m > Dune::GridFunctionGlobalEvalDefault< GV, RT, 1 > Dune::GridFunctionMinus< G, RT, m > Dune::GridLeafFunctionAdapter< G, IS, RT, m > Dune::GridLevelLeafFunctionAdapter< G, RT, m > Dune::P0Function< G::LeafGridView, RT, m > Dune::P0Function< G::LevelGridView, RT, m > List of all members.

Detailed Description

template<class G, class RT, int m>
class Dune::GridFunction< G, RT, m >

Base class for functions living on a grid.

Grid functions are defined with respect to a grid and allow evaluation on elements in local coordinates. Note that derivation from the base class Function is public virtual.

G a grid class, ctype and dimension are used for DT and n in the base class RT type for return values m number of components of the vector-valued function


Public Types

enum  
 export dimension of domain and range
typedef G::ctype DomainFieldType
 export type for domain components
typedef RT RangeFieldType
 export type for range components

Public Member Functions

virtual RT evallocal (int comp, const Entity &e, const Dune::FieldVector< DT, n > &xi) const =0
 evaluate single component comp in the entity e at local coordinates xi
virtual void evalalllocal (const Entity &e, const Dune::FieldVector< DT, G::dimension > &xi, Dune::FieldVector< RT, m > &y) const=0
 evaluate all components in the entity e at local coordinates xi
virtual RT eval (int comp, const Dune::FieldVector< G::ctype, n > &x) const=0
 evaluate single component comp at global point x
virtual void evalall (const Dune::FieldVector< G::ctype, n > &x, Dune::FieldVector< RT, m > &y) const=0
 evaluate all components at point x and store result in y

Member Function Documentation

template<class G, class RT, int m>
virtual RT Dune::GridFunction< G, RT, m >::evallocal ( int  comp,
const Entity &  e,
const Dune::FieldVector< DT, n > &  xi 
) const [pure virtual]

evaluate single component comp in the entity e at local coordinates xi

Evaluate the function in an entity at local coordinates.

Parameters:
[in] comp number of component to be evaluated
[in] e reference to grid entity of codimension 0
[in] xi point in local coordinates of the reference element of e
Returns:
value of the component

Implemented in Dune::GridFunctionDefault< G, RT, m >, and Dune::GridFunctionDefault< G, RT, G::dimension >.

template<class G, class RT, int m>
virtual void Dune::GridFunction< G, RT, m >::evalalllocal ( const Entity &  e,
const Dune::FieldVector< DT, G::dimension > &  xi,
Dune::FieldVector< RT, m > &  y 
) const [pure virtual]

evaluate all components in the entity e at local coordinates xi

Evaluates all components of a function at once.

Parameters:
[in] e reference to grid entity of codimension 0
[in] xi point in local coordinates of the reference element of e
[out] y vector with values to be filled

Implemented in Dune::GridFunctionDefault< G, RT, m >, and Dune::GridFunctionDefault< G, RT, G::dimension >.

virtual RT Dune::FunctionBase< G::ctype , RT , n, m >::eval ( int  comp,
const Dune::FieldVector< G::ctype , n > &  x 
) const [pure virtual, inherited]

virtual void Dune::FunctionBase< G::ctype , RT , n, m >::evalall ( const Dune::FieldVector< G::ctype , n > &  x,
Dune::FieldVector< RT , m > &  y 
) const [pure virtual, inherited]

evaluate all components at point x and store result in y

Evaluation function for all components at once.

Parameters:
[in] x position to be evaluated
[out] y result vector to be filled


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

Generated on 6 Jan 2009 with Doxygen (ver 1.5.1) [logfile].