3.1-git
DUNE for Multi-{Phase, Component, Scale, Physics, ...} flow and transport in porous media
Loading...
Searching...
No Matches
Dumux::Vtk::Field< GridView > Class Template Reference

struct that can hold any field that fulfills the VTKFunction interface More...

#include <dumux/io/vtkfunction.hh>

Description

template<class GridView>
class Dumux::Vtk::Field< GridView >

struct that can hold any field that fulfills the VTKFunction interface

Template Parameters
GridViewThe Dune grid view type

Public Member Functions

template<typename F, class Mapper>
 Field (const GridView &gridView, const Mapper &mapper, F const &f, const std::string &name, int numComp=1, int codim=0, Dune::VTK::DataMode dm=Dune::VTK::conforming)
virtual ~Field ()
virtual std::string name () const
 return the name of this field
virtual int ncomps () const
 return the number of components of this field
int codim () const
 codimension of the entities on which the field values live
virtual double evaluate (int mycomp, const Element &element, const Dune::FieldVector< ctype, dim > &xi) const
 element-local evaluation of the field
std::shared_ptr< const Dune::VTKFunction< GridView > > get () const
 returns the underlying vtk function

Constructor & Destructor Documentation

◆ Field()

template<class GridView>
template<typename F, class Mapper>
Dumux::Vtk::Field< GridView >::Field ( const GridView & gridView,
const Mapper & mapper,
F const & f,
const std::string & name,
int numComp = 1,
int codim = 0,
Dune::VTK::DataMode dm = Dune::VTK::conforming )
inline

◆ ~Field()

template<class GridView>
virtual Dumux::Vtk::Field< GridView >::~Field ( )
inlinevirtual

Member Function Documentation

◆ codim()

template<class GridView>
int Dumux::Vtk::Field< GridView >::codim ( ) const
inline

codimension of the entities on which the field values live

◆ evaluate()

template<class GridView>
virtual double Dumux::Vtk::Field< GridView >::evaluate ( int mycomp,
const Element & element,
const Dune::FieldVector< ctype, dim > & xi ) const
inlinevirtual

element-local evaluation of the field

◆ get()

template<class GridView>
std::shared_ptr< const Dune::VTKFunction< GridView > > Dumux::Vtk::Field< GridView >::get ( ) const
inline

returns the underlying vtk function

◆ name()

template<class GridView>
virtual std::string Dumux::Vtk::Field< GridView >::name ( ) const
inlinevirtual

return the name of this field

◆ ncomps()

template<class GridView>
virtual int Dumux::Vtk::Field< GridView >::ncomps ( ) const
inlinevirtual

return the number of components of this field


The documentation for this class was generated from the following file: