dune-grid  2.4.1-rc2
Public Member Functions | List of all members
Dune::VTKSequenceWriterBase< GridView > Class Template Reference

Base class to write pvd-files which contains a list of all collected vtk-files. More...

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

Inheritance diagram for Dune::VTKSequenceWriterBase< GridView >:
Inheritance graph

Public Member Functions

 VTKSequenceWriterBase (shared_ptr< VTKWriter< GridView > > vtkWriter, const std::string &name, const std::string &path, const std::string &extendpath, int rank, int size)
 Set up the VTKSequenceWriterBase class. More...
 
 ~VTKSequenceWriterBase ()
 
void addCellData (const shared_ptr< const typename VTKWriter< GridView >::VTKFunction > &p)
 Adds a field of cell data to the VTK file. More...
 
void addCellData (typename VTKWriter< GridView >::VTKFunction *p)
 Adds a field of cell data to the VTK file. More...
 
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. More...
 
void addVertexData (const typename VTKWriter< GridView >::VTKFunctionPtr &p)
 Adds a field of vertex data to the VTK file. More...
 
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::VTKSequenceWriterBase< GridView >

Base class to write pvd-files which contains a list of all collected vtk-files.

Derive from this class to write pvd-file suitable for easy visualization with The Visualization Toolkit (VTK). The derived class needs to inherit from the VTKWriter or the SubsamplingVTKWriter

Template Parameters
GridViewGrid view of the grid we are writing

Constructor & Destructor Documentation

template<class GridView >
Dune::VTKSequenceWriterBase< GridView >::VTKSequenceWriterBase ( shared_ptr< VTKWriter< GridView > >  vtkWriter,
const std::string &  name,
const std::string &  path,
const std::string &  extendpath,
int  rank,
int  size 
)
inlineexplicit

Set up the VTKSequenceWriterBase class.

Parameters
vtkWriterWriter object used to write the individual time step data files
rankProcess number in a multi-process setting
sizeTotal number of processes
template<class GridView >
Dune::VTKSequenceWriterBase< GridView >::~VTKSequenceWriterBase ( )
inline

Member Function Documentation

template<class GridView >
void Dune::VTKSequenceWriterBase< GridView >::addCellData ( const shared_ptr< const typename VTKWriter< GridView >::VTKFunction > &  p)
inline

Adds a field of cell data to the VTK file.

template<class GridView >
void Dune::VTKSequenceWriterBase< GridView >::addCellData ( typename VTKWriter< GridView >::VTKFunction p)
inline

Adds a field of cell data to the VTK file.

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

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)
template<class GridView >
void Dune::VTKSequenceWriterBase< GridView >::addVertexData ( typename VTKWriter< GridView >::VTKFunction p)
inline

Adds a field of vertex data to the VTK file.

template<class GridView >
void Dune::VTKSequenceWriterBase< GridView >::addVertexData ( const typename VTKWriter< GridView >::VTKFunctionPtr &  p)
inline

Adds a field of vertex data to the VTK file.

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

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)
template<class GridView >
void Dune::VTKSequenceWriterBase< GridView >::write ( double  time,
VTK::OutputType  ot = VTK::ascii 
)
inline

Writes VTK data for the given time,.

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

References Dune::VTK::getEndiannessString().


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