- Home
- About DUNE
- Download
- Documentation
- Community
- Development
A base class for grid functions with any return type and dimension. More...
#include <dune/grid/io/file/vtk/function.hh>
Public Types | |
enum | { dim = Grid::dimension } |
typedef Grid::ctype | ctype |
typedef Grid::template Codim < 0 >::Entity | Entity |
Public Member Functions | |
virtual int | ncomps () const =0 |
virtual double | evaluate (int comp, const Entity &e, const Dune::FieldVector< ctype, dim > &xi) const =0 |
evaluate single component comp in the entity e at local coordinates xi | |
virtual std::string | name () const =0 |
get name | |
virtual | ~VTKFunction () |
virtual destructor |
A base class for grid functions with any return type and dimension.
Trick : use double as return type
typedef Grid::ctype Dune::VTKFunction< Grid >::ctype |
Reimplemented in Dune::P0VTKFunction< GV, V >, and Dune::P1VTKFunction< GV, V >.
typedef Grid::template Codim< 0 >::Entity Dune::VTKFunction< Grid >::Entity |
Reimplemented in Dune::P0VTKFunction< GV, V >, and Dune::P1VTKFunction< GV, V >.
virtual Dune::VTKFunction< Grid >::~VTKFunction | ( | ) | [inline, virtual] |
virtual destructor
virtual double Dune::VTKFunction< Grid >::evaluate | ( | int | comp, | |
const Entity & | e, | |||
const Dune::FieldVector< ctype, dim > & | 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 |
virtual std::string Dune::VTKFunction< Grid >::name | ( | ) | const [pure virtual] |
get name
Implemented in Dune::P0VTKFunction< GV, V >, and Dune::P1VTKFunction< GV, V >.
virtual int Dune::VTKFunction< Grid >::ncomps | ( | ) | const [pure virtual] |
return number of components (1 for scalar valued functions, 3 for vector valued function in 3D etc.)
Implemented in Dune::P0VTKFunction< GV, V >, and Dune::P1VTKFunction< GV, V >.
Generated on Fri Apr 29 2011 with Doxygen (ver 1.7.1) [doxygen-log,error-log].