ls1-MarDyn
ls1-MarDyn molecular dynamics code
Public Member Functions | Static Public Member Functions | List of all members
TestPlugin Class Reference
Inheritance diagram for TestPlugin:
PluginBase

Public Member Functions

void init (ParticleContainer *particleContainer, DomainDecompBase *domainDecomp, Domain *domain)
 will be called at the beginning of the simulation More...
 
void readXML (XMLfileUnits &xmlconfig)
 Method readXML will be called once for each plugin section in the input file. More...
 
void beforeEventNewTimestep (ParticleContainer *particleContainer, DomainDecompBase *domainDecomp, unsigned long simstep)
 Method will be called first thing in a new timestep. More...
 
void beforeForces (ParticleContainer *particleContainer, DomainDecompBase *domainDecomp, unsigned long simstep)
 Method beforeForces will be called before forcefields have been applied. More...
 
void afterForces (ParticleContainer *particleContainer, DomainDecompBase *domainDecomp, unsigned long simstep)
 Method afterForces will be called after forcefields have been applied. More...
 
void endStep (ParticleContainer *particleContainer, DomainDecompBase *domainDecomp, Domain *domain, unsigned long simstep)
 Method endStep will be called at the end of each time step. More...
 
void finish (ParticleContainer *particleContainer, DomainDecompBase *domainDecomp, Domain *domain)
 Method finalOutput will be called at the end of the simulation. More...
 
std::string getPluginName ()
 return the name of the plugin More...
 
- Public Member Functions inherited from PluginBase
 PluginBase ()
 Subclasses should use their constructur to pass parameters (e.g. filenames)
 
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 PluginBasecreateInstance ()
 

Member Function Documentation

◆ afterForces()

void TestPlugin::afterForces ( ParticleContainer particleContainer,
DomainDecompBase domainDecomp,
unsigned long  simstep 
)
inlinevirtual

Method afterForces will be called after forcefields have been applied.

make pure Virtual ?

Reimplemented from PluginBase.

◆ beforeEventNewTimestep()

void TestPlugin::beforeEventNewTimestep ( ParticleContainer particleContainer,
DomainDecompBase domainDecomp,
unsigned long  simstep 
)
inlinevirtual

Method will be called first thing in a new timestep.

Reimplemented from PluginBase.

◆ beforeForces()

void TestPlugin::beforeForces ( ParticleContainer particleContainer,
DomainDecompBase domainDecomp,
unsigned long  simstep 
)
inlinevirtual

Method beforeForces will be called before forcefields have been applied.

  make pure Virtual ?

Reimplemented from PluginBase.

◆ endStep()

void TestPlugin::endStep ( ParticleContainer particleContainer,
DomainDecompBase domainDecomp,
Domain domain,
unsigned long  simstep 
)
inlinevirtual

Method endStep will be called at the end of each time step.

This method will be called every time step passing the simstep as an additional parameter. It can be used e.g. to write per time step data to a file or perform additional computations.

Parameters
particleContainerparticle container storing the (local) molecules
domainDecompdomain decomposition in use
domain

Implements PluginBase.

◆ finish()

void TestPlugin::finish ( ParticleContainer particleContainer,
DomainDecompBase domainDecomp,
Domain domain 
)
inlinevirtual

Method finalOutput will be called at the end of the simulation.

This method will be called once at the end of the simulation. It can be used e.g. to closing output files or writing final statistics.

Parameters
particleContainerparticle container storing the (local) molecules
domainDecompdomain decomposition in use
domain

Implements PluginBase.

◆ getPluginName()

std::string TestPlugin::getPluginName ( )
inlinevirtual

return the name of the plugin

Implements PluginBase.

◆ init()

void TestPlugin::init ( ParticleContainer particleContainer,
DomainDecompBase domainDecomp,
Domain domain 
)
inlinevirtual

will be called at the beginning of the simulation

Some OutputPlugins will need some initial things to be done before the output can start, e.g. opening some files. This method will be called once at the beginning of the simulation (see Simulation.cpp)

Implements PluginBase.

◆ readXML()

void TestPlugin::readXML ( XMLfileUnits xmlconfig)
inlinevirtual

Method readXML will be called once for each plugin section in the input file.

This method can be used to read in parameters from the corresponding plugin section in the xml config file. The method will be called once after an instance of the plugin is created.

Note
The same plugins may be specified multiple times in the xml config file. It is the responsibility of the plugin to handle this case in a propper way.

The following xml object structure will be provided to the plugin:

<plugin name="plugin name">
<!-- options for the specific plugin -->
</plugin>
Parameters
xmlconfigsection of the xml file

Implements PluginBase.


The documentation for this class was generated from the following file: