ls1-MarDyn
ls1-MarDyn molecular dynamics code
Public Member Functions | List of all members
VTKGridWriterImplementation Class Reference

#include <VTKGridWriterImplementation.h>

Public Member Functions

 VTKGridWriterImplementation (int rank, const std::vector< double > *processorSpeeds=nullptr)
 
void initializeVTKFile ()
 
void plotCell (VTKGridCell &molecule)
 
void writeVTKFile (const std::string &fileName)
 
void initializeParallelVTKFile (const std::vector< std::string > &fileNames)
 
void writeParallelVTKFile (const std::string &fileName)
 
bool isVTKFileInitialized ()
 
bool isParallelVTKFileInitialized ()
 
unsigned int getNumCellsPlotted ()
 
unsigned int getNumVerticesPlotted ()
 

Detailed Description

This class contains the actual functionality for writing a mesh as vtk unstructured grid data. The mesh is written cell wise.

It acts as an adapter to the serialization classes generated by codesynthesis xsd.

Constructor & Destructor Documentation

◆ VTKGridWriterImplementation()

VTKGridWriterImplementation::VTKGridWriterImplementation ( int  rank,
const std::vector< double > *  processorSpeeds = nullptr 
)
Parameters
rankthe MPI rank of the process

Member Function Documentation

◆ initializeParallelVTKFile()

void VTKGridWriterImplementation::initializeParallelVTKFile ( const std::vector< std::string > &  fileNames)

Initialize the data structures to write a parallel vtk file (i.e. a meta file describing the data and structure of the file a single node creates).

Parameters
fileNamesthe names of the sequential files which are to be referenced

◆ initializeVTKFile()

void VTKGridWriterImplementation::initializeVTKFile ( )

TODO: there's redundancy in adding the data members (the same has to be done for the parallel VTK File. -> use array of structs?

◆ plotCell()

void VTKGridWriterImplementation::plotCell ( VTKGridCell molecule)

Plot a cell.

Parameters
cellthe cell to plot

◆ writeParallelVTKFile()

void VTKGridWriterImplementation::writeParallelVTKFile ( const std::string &  fileName)

Write the xml-tree to a file on disc.

Parameters
fileNamethe name of the file written

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