- Home
- About DUNE
- Download
- Documentation
- Community
- Development
#include <functions.hh>
Inheritance diagram for Dune::GridFunction< G, RT, m >:

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 | |
| 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.
| [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 |
Implemented in Dune::GridFunctionDefault< G, RT, m >, and Dune::GridFunctionDefault< G, RT, G::dimension >.
| 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.
| [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] |
evaluate single component comp at global point x
Evaluate a single component of the vector-valued function.
| [in] | comp | number of component to be evaluated |
| [in] | x | position to be evaluated |
Implemented in Dune::GridFunctionAdapter< G, RT, m >, Dune::DifferentiableGridFunctionAdapter< G, RT, m >, Dune::GridLevelLeafFunctionAdapter< G, RT, m >, Dune::GridLeafFunctionAdapter< G, IS, RT, m >, Dune::GridFunctionGradient< G, RT >, Dune::GridFunctionMinus< G, RT, m >, Dune::GridFunctionGlobalEvalDefault< GV, RT, 1 >, Dune::GridFunctionGlobalEvalDefault< G::LevelGridView, RT, m >, Dune::GridFunctionGlobalEvalDefault< G::LeafGridView, RT, 1 >, Dune::GridFunctionGlobalEvalDefault< G::LeafGridView, RT, m >, and Dune::GridFunctionGlobalEvalDefault< G::LevelGridView, RT, 1 >.
| 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.
| [in] | x | position to be evaluated |
| [out] | y | result vector to be filled |