Dune Core Modules (2.4.1)

Dune::SubsamplingVTKSequenceWriter< GridView > Class Template Reference

Writer for the ouput of grid functions in the vtk format. More...

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

Public Member Functions

void addCellData (const shared_ptr< const typename VTKWriter< GridView >::VTKFunction > &p)
 Adds a field of cell data to the VTK file.
 
void addCellData (typename VTKWriter< GridView >::VTKFunction *p)
 Adds a field of cell data to the VTK file.
 
template<class V >
void addCellData (const V &v, const std::string &name, int ncomps=1)
 Adds a field of cell data to the VTK file. More...
 
void addVertexData (typename VTKWriter< GridView >::VTKFunction *p)
 Adds a field of vertex data to the VTK file.
 
void addVertexData (const typename VTKWriter< GridView >::VTKFunctionPtr &p)
 Adds a field of vertex data to the VTK file.
 
template<class V >
void addVertexData (const V &v, const std::string &name, int ncomps=1)
 Adds a field of vertex data to the VTK file. More...
 
void write (double time, VTK::OutputType ot=VTK::ascii)
 Writes VTK data for the given time,. More...
 

Detailed Description

template<class GridView>
class Dune::SubsamplingVTKSequenceWriter< GridView >

Writer for the ouput of grid functions in the vtk format.

Writes arbitrary grid functions (living on cells or vertices of a grid) to a file suitable for easy visualization with The Visualization Toolkit (VTK).

Member Function Documentation

◆ addCellData()

template<class GridView >
template<class V >
void Dune::VTKSequenceWriterBase< GridView >::addCellData ( const V &  v,
const std::string &  name,
int  ncomps = 1 
)
inlineinherited

Adds a field of cell data to the VTK file.

Parameters
vThe container with the values of the grid function for each cell
nameA name to identify the grid function
ncompsNumber of components (default is 1)

◆ addVertexData()

template<class GridView >
template<class V >
void Dune::VTKSequenceWriterBase< GridView >::addVertexData ( const V &  v,
const std::string &  name,
int  ncomps = 1 
)
inlineinherited

Adds a field of vertex data to the VTK file.

Parameters
vThe container with the values of the grid function for each vertex
nameA name to identify the grid function
ncompsNumber of components (default is 1)

◆ write()

template<class GridView >
void Dune::VTKSequenceWriterBase< GridView >::write ( double  time,
VTK::OutputType  ot = VTK::ascii 
)
inlineinherited

Writes VTK data for the given time,.

Parameters
timeThe time(step) for the data to be written.
otVTK output type.

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)