25 #ifndef INTERACTIONHANDLER_H
26 #define INTERACTIONHANDLER_H
107 void write(std::ostream& os)
const;
Container to store all ParticleSpecies.
void writeVTK() const
Writes all particles into a vtk file format (unstructured grid), consisting of particle positions...
void write(std::ostream &os) const
Writes the InteractionHandler to an output stream, for example a restart file.
FileType getWriteVTK() const
BaseInteraction * getInteraction(BaseInteractable *P, BaseInteractable *I, Mdouble timeStamp)
Returns the Interaction between the BaseInteractable's P and I.
InteractionHandler()
Default constructor, it creates an empty InteractionHandler.
~InteractionHandler()
Destructor, it destructs the InteractionHandler and all BaseInteraction it contains.
Mdouble getMeanOverlap() const
The mean overlap of all interactions.
Stores information about interactions between two interactable objects; often particles but could be ...
void eraseOldInteractions(Mdouble lastTimeStep)
erases interactions which have an old timestamp.
FileType
With FileType options, one is able to choose if data is to be read/written from/into no or single or ...
void actionsAfterTimeStep()
void removeObjectKeepingPeriodics(unsigned const int id)
Removes interactions of periodic particles when the periodic particles get deleted (see DPMBase::remo...
InteractionHandler operator=(const InteractionHandler &rhs)
Assignment operator.
Container to store Interaction objects.
std::string getName() const
Returns the name of the object.
Container to store the pointers to all objects that one creates in a simulation.
void setWriteVTK(FileType f)
Defines the basic properties that a interactable object can have.
BaseInteraction * getExistingInteraction(BaseInteractable *P, BaseInteractable *I) const
Returns the Interaction between the BaseInteractable's P and I if it exists, otherwise returns a null...
void readObject(std::istream &is)
Reads an Interaction into the InteractionHandler from restart data.
Implementation of a 3D vector (by Vitaliy).
void addObject(BaseInteraction *I)
Adds an Interaction to the InteractionHandler.