11#include "PluginBase.h"
15#include <unordered_map>
21#include "molecules/MoleculeForwardDeclaration.h"
29 MCM_LIMIT_TO_MAX_VALUE = 1,
30 MCM_LIMIT_TO_MAX_VALUE_OVERLAPS = 2,
31 MCM_DELETE_PARTICLES = 3
34 struct TimestepControl
53 typedef std::unordered_map<uint32_t, MaxVals> maxvals_map;
103 unsigned long simstep
112 unsigned long simstep
118 unsigned long simstep
128 double calcSquaredVectorLength(std::array<double,3>& vec) {
return (vec[0]*vec[0] + vec[1]*vec[1] + vec[2]*vec[2]);}
130 bool moleculeInsideRange(std::array<double,3>& r);
133 TimestepControl _control;
134 maxvals_map _maxVals;
135 std::vector<Molecule*> _deletions;
136 struct Range {
double xmin, xmax, ymin, ymax, zmin, zmax;
bool inclusive;} _range;
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: MaxCheck.h:24
void readXML(XMLfileUnits &xmlconfig) override
Read in XML configuration for MaxCheck and all its included objects.
Definition: MaxCheck.cpp:30
std::string getPluginName() override
return the name of the plugin
Definition: MaxCheck.h:124
void beforeEventNewTimestep(ParticleContainer *particleContainer, DomainDecompBase *domainDecomp, unsigned long simstep) override
Method will be called first thing in a new timestep.
Definition: MaxCheck.cpp:116
void afterForces(ParticleContainer *particleContainer, DomainDecompBase *domainDecomp, unsigned long simstep) override
Method afterForces will be called after forcefields have been applied.
Definition: MaxCheck.cpp:127
void siteWiseForces(ParticleContainer *particleContainer, DomainDecompBase *domainDecomp, unsigned long simstep) override
Method siteWiseForces will be called before forcefields have been applied alterations to sitewise for...
Definition: MaxCheck.h:101
void finish(ParticleContainer *particleContainer, DomainDecompBase *domainDecomp, Domain *domain) override
Method finish will be called at the end of the simulation.
Definition: MaxCheck.h:121
void endStep(ParticleContainer *particleContainer, DomainDecompBase *domainDecomp, Domain *domain, unsigned long simstep) override
Method endStep will be called at the end of each time step.
Definition: MaxCheck.h:115
void init(ParticleContainer *particleContainer, DomainDecompBase *domainDecomp, Domain *domain) override
Method init will be called at the begin of the simulation.
Definition: MaxCheck.cpp:25
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