Dune Core Modules (2.5.0)

Dune::VTKFunction< GridView > Class Template Referenceabstract

A base class for grid functions with any return type and dimension. More...

#include <dune/grid/io/file/vtk/function.hh>

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
 
virtual ~VTKFunction ()
 virtual destructor
 

Detailed Description

template<class GridView>
class Dune::VTKFunction< GridView >

A base class for grid functions with any return type and dimension.

Trick : use double as return type

Member Function Documentation

◆ evaluate()

template<class GridView >
virtual double Dune::VTKFunction< GridView >::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.

Parameters
[in]compnumber of component to be evaluated
[in]ereference to grid entity of codimension 0
[in]xipoint in local coordinates of the reference element of e
Returns
value of the component

Implemented in Dune::P1VTKFunction< GV, V >, and Dune::P0VTKFunction< GV, V >.

◆ ncomps()

template<class GridView >
virtual int Dune::VTKFunction< GridView >::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 >.


The documentation for this class was generated from the following file:
Creative Commons License   |  Legal Statements / Impressum  |  Hosted by TU Dresden  |  generated with Hugo v0.111.3 (Nov 12, 23:30, 2024)