ls1-MarDyn
ls1-MarDyn molecular dynamics code
MmspdBinWriter.h
1#ifndef MMSPDBINWRITER_H_
2#define MMSPDBINWRITER_H_
3
4#include <string>
5
6#include "plugins/PluginBase.h"
7
9 public:
22 MmspdBinWriter(unsigned long writeFrequency, std::string outputPrefix);
24
25 void readXML(XMLfileUnits& xmlconfig);
26
27 void init(ParticleContainer *particleContainer,
28 DomainDecompBase *domainDecomp, Domain *domain);
29 void endStep(
30 ParticleContainer *particleContainer,
31 DomainDecompBase *domainDecomp, Domain *domain,
32 unsigned long simstep
33 );
34 void finish(ParticleContainer *particleContainer,
35 DomainDecompBase *domainDecomp, Domain *domain);
36
38 return std::string("MmspdBinWriter");
39 }
40 static PluginBase* createInstance() { return new MmspdBinWriter(); }
41private:
42 std::string _outputPrefix;
43 unsigned long _writeFrequency;
44 bool _appendTimestamp;
45};
46
47#endif /* MMSPDBINWRITER_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
Definition: MmspdBinWriter.h:8
void endStep(ParticleContainer *particleContainer, DomainDecompBase *domainDecomp, Domain *domain, unsigned long simstep)
Method endStep will be called at the end of each time step.
Definition: MmspdBinWriter.cpp:175
void finish(ParticleContainer *particleContainer, DomainDecompBase *domainDecomp, Domain *domain)
Method finish will be called at the end of the simulation.
Definition: MmspdBinWriter.cpp:263
MmspdBinWriter(unsigned long writeFrequency, std::string outputPrefix)
: writes a mmspd file used by MegaMol
void init(ParticleContainer *particleContainer, DomainDecompBase *domainDecomp, Domain *domain)
Method init will be called at the begin of the simulation.
Definition: MmspdBinWriter.cpp:52
std::string getPluginName()
return the name of the plugin
Definition: MmspdBinWriter.h:37
void readXML(XMLfileUnits &xmlconfig)
Method readXML will be called once for each plugin section in the input file.
Definition: MmspdBinWriter.cpp:35
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
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