ls1-MarDyn
ls1-MarDyn molecular dynamics code
|
IO-plugin: Used to create instances of CavityEnsemble and output the corresponding files containing the detected Cavity coordinates. More...
#include <CavityWriter.h>
Public Member Functions | |
CavityWriter ()=default | |
Initialisation of all necessary field is done in readXML and init. | |
void | readXML (XMLfileUnits &xmlconfig) final |
reads in parameters for CavityEnsemble and output writefrequency: output timestep frequency AFTER initStatistics timesteps componentid: can be multiple. Starts separate CavityEnsembles for each component. radius: search radius around pseudo-molecules to look for neighbors with componentid=0/1... maxNeighbours: number of neighbours allowed in radius for a pseudo-molecule to count as a cavity Nx,Ny,Nz: grid numbers for grid of pseudo-molecules, sampling cavity properties at their grid position for non-overlapping coverage: radius*N_xyz = domainSize_xyz More... | |
void | init (ParticleContainer *particleContainer, DomainDecompBase *domainDecomp, Domain *domain) final |
Set all necessary variables for each CavityEnsemble. One is used per Component. Ensembles are assigned subDomains depending on the rank of the MPI process. Also, if a smaller controlVolume is specified it gets passed here. More... | |
void | beforeEventNewTimestep (ParticleContainer *particleContainer, DomainDecompBase *domainDecomp, unsigned long simstep) final |
Method will be called first thing in a new timestep. If the writeFrequency is reached and this is the first time, this will set the required Quaternions for the pseudo-molecules. More... | |
void | afterForces (ParticleContainer *particleContainer, DomainDecompBase *domainDecomp, unsigned long simstep) final |
Method afterForces will be called after forcefields have been applied no sitewise Forces can be applied here. More... | |
void | endStep (ParticleContainer *particleContainer, DomainDecompBase *domainDecomp, Domain *domain, unsigned long simstep) final |
Output the sampled cavity information from all ensembles to file. More... | |
void | finish (ParticleContainer *particleContainer, DomainDecompBase *domainDecomp, Domain *domain) |
Nothing done here. Necessary for inheritance from PluginBase. More... | |
std::string | getPluginName () final |
return the name of the plugin More... | |
std::map< unsigned, CavityEnsemble * > | getMcav () |
![]() | |
PluginBase () | |
Subclasses should use their constructur to pass parameters (e.g. filenames) | |
virtual void | beforeForces (ParticleContainer *particleContainer, DomainDecompBase *domainDecomp, unsigned long simstep) |
Method beforeForces will be called before forcefields have been applied no alterations w.r.t. Forces shall be made here. More... | |
virtual void | siteWiseForces (ParticleContainer *particleContainer, DomainDecompBase *domainDecomp, unsigned long simstep) |
Method siteWiseForces will be called before forcefields have been applied alterations to sitewise forces and fullMolecule forces can be made here. More... | |
virtual void | registerCallbacks (std::map< std::string, FunctionWrapper > &callbackMap) |
virtual void | accessAllCallbacks (const std::map< std::string, FunctionWrapper > &callbackMap) |
Static Public Member Functions | |
static PluginBase * | createInstance () |
IO-plugin: Used to create instances of CavityEnsemble and output the corresponding files containing the detected Cavity coordinates.
|
finalvirtual |
Method afterForces will be called after forcefields have been applied no sitewise Forces can be applied here.
If the writeFrequency is reached, this will trigger a loop through all pseudo-molecules to determine their status as either cavity or non-cavity and start the communication.
Reimplemented from PluginBase.
|
finalvirtual |
Method will be called first thing in a new timestep. If the writeFrequency is reached and this is the first time, this will set the required Quaternions for the pseudo-molecules.
Reimplemented from PluginBase.
|
finalvirtual |
Output the sampled cavity information from all ensembles to file.
particleContainer | |
domainDecomp | |
domain | |
simstep |
Implements PluginBase.
|
virtual |
Nothing done here. Necessary for inheritance from PluginBase.
particleContainer | |
domainDecomp | |
domain |
Implements PluginBase.
|
inlinefinalvirtual |
return the name of the plugin
Implements PluginBase.
|
finalvirtual |
Set all necessary variables for each CavityEnsemble. One is used per Component. Ensembles are assigned subDomains depending on the rank of the MPI process. Also, if a smaller controlVolume is specified it gets passed here.
particleContainer | |
domainDecomp | |
domain |
Implements PluginBase.
|
finalvirtual |
reads in parameters for CavityEnsemble and output
writefrequency: output timestep frequency AFTER initStatistics timesteps
componentid: can be multiple. Starts separate CavityEnsembles for each component.
radius: search radius around pseudo-molecules to look for neighbors with componentid=0/1...
maxNeighbours: number of neighbours allowed in radius for a pseudo-molecule to count as a cavity
Nx,Ny,Nz: grid numbers for grid of pseudo-molecules, sampling cavity properties at their grid position
for non-overlapping coverage: radius*N_xyz = domainSize_xyz
xmlconfig |
Implements PluginBase.