ls1-MarDyn
ls1-MarDyn molecular dynamics code
|
#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 () |
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.
VTKGridWriterImplementation::VTKGridWriterImplementation | ( | int | rank, |
const std::vector< double > * | processorSpeeds = nullptr |
||
) |
rank | the MPI rank of the process |
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).
fileNames | the names of the sequential files which are to be referenced |
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?
void VTKGridWriterImplementation::plotCell | ( | VTKGridCell & | molecule | ) |
Plot a cell.
cell | the cell to plot |
void VTKGridWriterImplementation::writeParallelVTKFile | ( | const std::string & | fileName | ) |
Write the xml-tree to a file on disc.
fileName | the name of the file written |