ls1-MarDyn
ls1-MarDyn molecular dynamics code
EnergyLogWriter.h
1#ifndef SRC_IO_ENERGYLOGWRITER_H_
2#define SRC_IO_ENERGYLOGWRITER_H_
3
4#include <string>
5
6#include "plugins/PluginBase.h"
7
8
21public:
22 EnergyLogWriter() : _outputFilename("global_energy.log"), _writeFrequency(1) {}
24
35 void readXML(XMLfileUnits& xmlconfig);
36
37 void init(ParticleContainer *particleContainer,
38 DomainDecompBase *domainDecomp, Domain *domain);
39 void endStep(
40 ParticleContainer *particleContainer,
41 DomainDecompBase *domainDecomp, Domain *domain,
42 unsigned long simstep
43 );
44 void finish(ParticleContainer *particleContainer,
45 DomainDecompBase *domainDecomp, Domain *domain);
46
48 return std::string("EnergyLogWriter");
49 }
50 static PluginBase* createInstance() { return new EnergyLogWriter(); }
51private:
52 std::string _outputFilename;
53 unsigned long _writeFrequency;
54};
55
56#endif // SRC_IO_ENERGYLOGWRITER_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 writer creates a global energy log file.
Definition: EnergyLogWriter.h:20
void init(ParticleContainer *particleContainer, DomainDecompBase *domainDecomp, Domain *domain)
Method init will be called at the begin of the simulation.
Definition: EnergyLogWriter.cpp:12
void endStep(ParticleContainer *particleContainer, DomainDecompBase *domainDecomp, Domain *domain, unsigned long simstep)
Method endStep will be called at the end of each time step.
Definition: EnergyLogWriter.cpp:39
void readXML(XMLfileUnits &xmlconfig)
Read in XML configuration for EnergyLogWriter and all its included objects.
Definition: EnergyLogWriter.cpp:30
void finish(ParticleContainer *particleContainer, DomainDecompBase *domainDecomp, Domain *domain)
Method finish will be called at the end of the simulation.
Definition: EnergyLogWriter.cpp:100
std::string getPluginName()
return the name of the plugin
Definition: EnergyLogWriter.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
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