ls1-MarDyn
ls1-MarDyn molecular dynamics code
VISWriter.h
1#ifndef VISWRITER_H_
2#define VISWRITER_H_
3
4#include "plugins/PluginBase.h"
5#include "Domain.h"
6#include <string>
7#include <list>
8
10class DomainDecompBase;
11class Domain;
12
13class VISWriter : public PluginBase {
14public:
15 VISWriter(){}
29 VISWriter(unsigned long writeFrequency, std::string outputPrefix);
30 ~~VISWriter();
31
32 void readXML(XMLfileUnits& xmlconfig);
33
34 void init(ParticleContainer *particleContainer,
35 DomainDecompBase *domainDecomp, Domain *domain);
36 void endStep(
37 ParticleContainer *particleContainer,
38 DomainDecompBase *domainDecomp, Domain *domain,
39 unsigned long simstep
40 );
41 void finish(ParticleContainer *particleContainer,
42 DomainDecompBase *domainDecomp, Domain *domain);
43
45 return std::string("VISWriter");
46 }
47 static PluginBase* createInstance() { return new VISWriter(); }
48private:
49 std::string _outputPrefix;
50 unsigned long _writeFrequency;
51 bool _appendTimestamp;
52 bool _wroteVIS;
53};
54
55#endif /* VISWRITER_H_ */
handle boundary region and multiple processes
Definition: DomainDecompBase.h:51
This class is used to read in the phasespace and to handle macroscopic values.
Definition: Domain.h:47
This Interface is used to get access to particles and pairs of particles.
Definition: ParticleContainer.h:69
The PluginBase class provides the interface for any kind of output/plugin classes - called "(output) ...
Definition: PluginBase.h:47
Definition: VISWriter.h:13
VISWriter(unsigned long writeFrequency, std::string outputPrefix)
Writes out a file (using *.vis-format) containing coordinates + orientation (using quaternions) of ea...
std::string getPluginName()
return the name of the plugin
Definition: VISWriter.h:44
void endStep(ParticleContainer *particleContainer, DomainDecompBase *domainDecomp, Domain *domain, unsigned long simstep)
Method endStep will be called at the end of each time step.
Definition: VISWriter.cpp:60
void finish(ParticleContainer *particleContainer, DomainDecompBase *domainDecomp, Domain *domain)
Method finish will be called at the end of the simulation.
Definition: VISWriter.cpp:145
void init(ParticleContainer *particleContainer, DomainDecompBase *domainDecomp, Domain *domain)
Method init will be called at the begin of the simulation.
Definition: VISWriter.cpp:53
void readXML(XMLfileUnits &xmlconfig)
Method readXML will be called once for each plugin section in the input file.
Definition: VISWriter.cpp:36
XML file with unit attributes abstraction.
Definition: xmlfileUnits.h:25
::xsd::cxx::tree::string< char, simple_type > string
C++ type corresponding to the string XML Schema built-in type.
Definition: vtk-punstructured.h:270