ls1-MarDyn
ls1-MarDyn molecular dynamics code
VTKMoleculeWriterImplementation.h
1/*
2 * VTKMoleculeWriterImplementation.h
3 *
4 * @Date: 25.08.2010
5 * @Author: Wolfgang Eckhardt
6 */
7
8#ifndef VTKMOLECULEWRITERIMPLEMENTATION_H_
9#define VTKMOLECULEWRITERIMPLEMENTATION_H_
10
11
12#include <string>
13#include <vector>
14
15#include "molecules/MoleculeForwardDeclaration.h"
16class VTKFile_t;
17
27
28private:
29
31 VTKFile_t* _vtkFile;
32
34 VTKFile_t* _parallelVTKFile;
35
37 unsigned int _numMoleculesPlotted;
38
40 int _rank;
41
43 bool _plotCenters;
44
45 enum CenterType { Charge = 1, LJ = 2, Dipole = 3, Quadrupole = 4};
46
50 void plotCenter(Molecule& molecule, int centerID, CenterType centerType);
51
52public:
53
57 VTKMoleculeWriterImplementation(int rank, bool plotCenters = false);
59
60 void initializeVTKFile();
61
67 void plotMolecule(Molecule& molecule);
68 void writeVTKFile(const std::string& fileName);
69
76 void initializeParallelVTKFile(const std::vector<std::string>& fileNames);
77
78
84 void writeParallelVTKFile(const std::string& fileName);
85
86 bool isVTKFileInitialized();
87
88 bool isParallelVTKFileInitialized();
89
90 unsigned int getNumMoleculesPlotted();
91};
92
93#endif /* VTKMOLECULEWRITERIMPLEMENTATION_H_ */
Charge center.
Definition: Site.h:154
Dipole center.
Definition: Site.h:266
FullMolecule modeled as LJ sphere with point polarities.
Definition: FullMolecule.h:18
Quadrupole center.
Definition: Site.h:328
Class corresponding to the VTKFile_t schema type.
Definition: vtk-punstructured.h:1096
Definition: VTKMoleculeWriterImplementation.h:26
void initializeParallelVTKFile(const std::vector< std::string > &fileNames)
Definition: VTKMoleculeWriterImplementation.cpp:176
void plotMolecule(Molecule &molecule)
Definition: VTKMoleculeWriterImplementation.cpp:74
void initializeVTKFile()
Definition: VTKMoleculeWriterImplementation.cpp:33
void writeParallelVTKFile(const std::string &fileName)
Definition: VTKMoleculeWriterImplementation.cpp:218
VTKMoleculeWriterImplementation(int rank, bool plotCenters=false)
Definition: VTKMoleculeWriterImplementation.cpp:17
::xsd::cxx::tree::string< char, simple_type > string
C++ type corresponding to the string XML Schema built-in type.
Definition: vtk-punstructured.h:270