8#ifndef MARDYN_TRUNK_COMALIGNER_H
9#define MARDYN_TRUNK_COMALIGNER_H
12#include "PluginBase.h"
13#include "particleContainer/ParticleContainer.h"
15#include "parallel/DomainDecompBase.h"
40 friend COMalignerTest;
55 float _alignmentCorrection = 1.0f;
66 for (
unsigned d = 0; d < 3; d++) {
74 global_log -> debug() <<
"COM Realignment enabled" << std::endl;
76 for(
unsigned d = 0; d < 3; d++){
80 _cutoff = .9*particleContainer->getCutoff();
90 Domain *domain,
unsigned long simstep)
override;
Plugin: can be enabled via config.xml
Definition: COMaligner.h:37
std::string getPluginName() override
return the name of the plugin
Definition: COMaligner.h:96
void beforeForces(ParticleContainer *particleContainer, DomainDecompBase *domainDecomp, unsigned long simstep) override
called before Forces are applied calculates realignment motion that is applied after the forces have ...
Definition: COMaligner.cpp:100
void init(ParticleContainer *particleContainer, DomainDecompBase *domainDecomp, Domain *domain) override
Method init will be called at the begin of the simulation.
Definition: COMaligner.h:73
void finish(ParticleContainer *particleContainer, DomainDecompBase *domainDecomp, Domain *domain) override
Method finish will be called at the end of the simulation.
Definition: COMaligner.h:93
void endStep(ParticleContainer *particleContainer, DomainDecompBase *domainDecomp, Domain *domain, unsigned long simstep) override
called after Forces are applied applies the motion calculated earlier
Definition: COMaligner.cpp:185
void readXML(XMLfileUnits &xmlconfig) override
will be called to read configuration
Definition: COMaligner.cpp:20
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
double getGlobalLength(int d) const
return the length of the domain
Definition: Domain.h:163
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