dune-grid 2.9.0
|
A base class for grid functions with any return type and dimension. More...
#include <dune/grid/io/file/vtk/function.hh>
Public Types | |
typedef GridView::ctype | ctype |
typedef GridView::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 More... | |
virtual std::string | name () const =0 |
get name More... | |
virtual VTK::Precision | precision () const |
get output precision for the field More... | |
virtual | ~VTKFunction () |
virtual destructor More... | |
Static Public Attributes | |
static constexpr int | dim = GridView::dimension |
A base class for grid functions with any return type and dimension.
Trick : use double as return type
typedef GridView::ctype Dune::VTKFunction< GridView >::ctype |
typedef GridView::template Codim<0>::Entity Dune::VTKFunction< GridView >::Entity |
|
inlinevirtual |
virtual destructor
|
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::P1VTKFunction< GV, V >, and Dune::P0VTKFunction< GV, V >.
|
pure virtual |
get name
Implemented in Dune::P0VTKFunction< GV, V >, and Dune::P1VTKFunction< GV, V >.
|
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 >.
|
inlinevirtual |
get output precision for the field
Reimplemented in Dune::P0VTKFunction< GV, V >, and Dune::P1VTKFunction< GV, V >.
|
staticconstexpr |