Dune Core Modules (2.6.0)
Take a vector and interpret it as point data for the VTKWriter. More...
#include <dune/grid/io/file/vtk/function.hh>
Public Member Functions | |
virtual int | ncomps () const |
return number of components | |
virtual double | evaluate (int comp, const Entity &e, const Dune::FieldVector< ctype, dim > &xi) const |
evaluate | |
virtual std::string | name () const |
get name | |
P1VTKFunction (const GV &gv, const V &v_, const std::string &s_, int ncomps=1, int mycomp=0) | |
construct from a vector and a name More... | |
virtual | ~P1VTKFunction () |
destructor | |
Detailed Description
class Dune::P1VTKFunction< GV, V >
Take a vector and interpret it as point data for the VTKWriter.
This class turns a generic vector containing point data into a VTKFunction. The vector must allow read access to the data via operator[]() and store the data in the order given by MultipleCodimMultipleGeomTypeMapper with a layout class that allows only vertices. Also, it must support the method size().
While the number of components of the function is always 1, the vector may represent a field with multiple components of which one may be selected.
- Template Parameters
-
GV Type of GridView the vector applies to. V Type of vector.
Constructor & Destructor Documentation
◆ P1VTKFunction()
|
inline |
construct from a vector and a name
- Parameters
-
gv GridView to operate on (used to instantiate a MultipleCodimMultipleGeomTypeMapper, otherwise no reference or copy is stored). Note that this must be the GridView the vector applies to as well as the GridView later used by the VTKWriter – i.e. we do not implicitly restrict or prolongate the data. v_ Reference to the vector holding the data. The reference is stored internally and must be valid for as long as this functions evaluate method is used. s_ Name of this function in the VTK file. ncomps Number of components of the field represented by the vector. mycomp Number of the field component this function is responsible for.
References DUNE_THROW, and Dune::MultipleCodimMultipleGeomTypeMapper< GV, LayoutClass >::size().
The documentation for this class was generated from the following file:
- dune/grid/io/file/vtk/function.hh