version 3.10.0
Loading...
Searching...
No Matches
Dumux::Vtk::VectorP1FaceNonConformingVTKFunction< GridView, Mapper, F > Struct Template Reference

A VTK function that supports both scalar and vector values for each face. This expects the data to be organized by a two-dimensional field storing for each element the element-local nodal values. Used for non-conforming spaces such as Rannacher-Turek and Crouzeix-Raviart. More...

#include <dumux/io/vtk/function.hh>

Inheritance diagram for Dumux::Vtk::VectorP1FaceNonConformingVTKFunction< GridView, Mapper, F >:

Description

template<typename GridView, typename Mapper, typename F>
struct Dumux::Vtk::VectorP1FaceNonConformingVTKFunction< GridView, Mapper, F >
Template Parameters
GridViewThe Dune grid view type
MapperThe type used for mapping elements to indices in the field
FThe field type (either vector of scalars or vectors)

Public Types

using ctype = typename GridView::ctype
using Element = typename GridView::template Codim<0>::Entity

Public Member Functions

int ncomps () const final
 return number of components
std::string name () const final
 get name
double evaluate (int mycomp, const Element &e, const Dune::FieldVector< ctype, dim > &localPos) const final
 evaluate
Dumux::Vtk::Precision precision () const final
 get output precision for the field
 VectorP1FaceNonConformingVTKFunction (const GridView &gridView, const Mapper &mapper, const F &field, const std::string &name, int nComps, Dumux::Vtk::Precision precision=Dumux::Vtk::Precision::float32)
 Constructor.

Static Public Attributes

static constexpr int dim = GridView::dimension

Member Typedef Documentation

◆ ctype

template<typename GridView, typename Mapper, typename F>
using Dumux::Vtk::VectorP1FaceNonConformingVTKFunction< GridView, Mapper, F >::ctype = typename GridView::ctype

◆ Element

template<typename GridView, typename Mapper, typename F>
using Dumux::Vtk::VectorP1FaceNonConformingVTKFunction< GridView, Mapper, F >::Element = typename GridView::template Codim<0>::Entity

Constructor & Destructor Documentation

◆ VectorP1FaceNonConformingVTKFunction()

template<typename GridView, typename Mapper, typename F>
Dumux::Vtk::VectorP1FaceNonConformingVTKFunction< GridView, Mapper, F >::VectorP1FaceNonConformingVTKFunction ( const GridView & gridView,
const Mapper & mapper,
const F & field,
const std::string & name,
int nComps,
Dumux::Vtk::Precision precision = Dumux::Vtk::Precision::float32 )
inline

Member Function Documentation

◆ evaluate()

template<typename GridView, typename Mapper, typename F>
double Dumux::Vtk::VectorP1FaceNonConformingVTKFunction< GridView, Mapper, F >::evaluate ( int mycomp,
const Element & e,
const Dune::FieldVector< ctype, dim > & localPos ) const
inlinefinal

◆ name()

template<typename GridView, typename Mapper, typename F>
std::string Dumux::Vtk::VectorP1FaceNonConformingVTKFunction< GridView, Mapper, F >::name ( ) const
inlinefinal

◆ ncomps()

template<typename GridView, typename Mapper, typename F>
int Dumux::Vtk::VectorP1FaceNonConformingVTKFunction< GridView, Mapper, F >::ncomps ( ) const
inlinefinal

◆ precision()

template<typename GridView, typename Mapper, typename F>
Dumux::Vtk::Precision Dumux::Vtk::VectorP1FaceNonConformingVTKFunction< GridView, Mapper, F >::precision ( ) const
inlinefinal

Member Data Documentation

◆ dim

template<typename GridView, typename Mapper, typename F>
int Dumux::Vtk::VectorP1FaceNonConformingVTKFunction< GridView, Mapper, F >::dim = GridView::dimension
staticconstexpr

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