25 #ifndef INTERACTIONHANDLER_H
26 #define INTERACTIONHANDLER_H
73 void read(std::istream& is);
146 unsigned int& identificationI,
bool& isWallInteraction,
unsigned& timeStamp);
174 void write(std::ostream& os)
const;
191 std::string
getName()
const override;
FileType
With FileType options, one is able to choose if data is to be read/written from/into no or single or ...
Definition: File.h:41
#define UNUSED
Definition: GeneralDefine.h:39
Container to store the pointers to all objects that one creates in a simulation.
Definition: BaseHandler.h:51
Defines the basic properties that a interactable object can have.
Definition: BaseInteractable.h:55
Stores information about interactions between two interactable objects; often particles but could be ...
Definition: BaseInteraction.h:60
Container to store Interaction objects.
Definition: InteractionHandler.h:45
Mdouble getMeanOverlap() const
The mean overlap of all interactions.
Definition: InteractionHandler.cc:406
void removeObjectKeepingPeriodics(unsigned int id)
Removes interactions of periodic particles when the periodic particles get deleted (see DPMBase::remo...
Definition: InteractionHandler.cc:316
void read(std::istream &is)
Definition: InteractionHandler.cc:454
unsigned getNumberOfLiquidBridges() const
Definition: InteractionHandler.cc:573
InteractionHandler()
Default constructor, it creates an empty InteractionHandler.
Definition: InteractionHandler.cc:43
~InteractionHandler() override
Destructor, it destructs the InteractionHandler and all BaseInteraction it contains.
Definition: InteractionHandler.cc:79
std::vector< std::vector< BaseInteraction * > > newObjects_
Definition: InteractionHandler.h:203
BaseInteraction * getInteraction(BaseInteractable *P, BaseInteractable *I, unsigned timeStamp)
Returns the Interaction between the BaseInteractable's P and I.
Definition: InteractionHandler.cc:146
void deleteMPIInteractionDataArray(void *dataArray)
deletes an MPIInteractionDataArray
Definition: InteractionHandler.cc:227
void actionsAfterTimeStep()
Definition: InteractionHandler.cc:395
void resetNewObjectsOMP()
Definition: InteractionHandler.cc:122
void * createMPIInteractionDataArray(unsigned int numberOfInteractions) const
creates an empty MPIInteractionDataArray
Definition: InteractionHandler.cc:211
double getLiquidBridgeVolume() const
Definition: InteractionHandler.cc:564
std::string getName() const override
Returns the name of the object.
Definition: InteractionHandler.cc:424
void addObject(BaseInteraction *I) override
Adds an Interaction to the InteractionHandler.
Definition: InteractionHandler.cc:87
FileType writeVTK_
Definition: InteractionHandler.h:211
void eraseOldInteractions(unsigned)
erases interactions which have an old timestamp.
Definition: InteractionHandler.cc:377
void readAndAddObject(std::istream &is) override
Reads an Interaction into the InteractionHandler from restart data.
Definition: InteractionHandler.cc:492
std::map< unsigned, BaseWall * > wallById
Definition: InteractionHandler.h:214
void getInteractionDetails(void *interactionData, unsigned int index, unsigned int &identificationP, unsigned int &identificationI, bool &isWallInteraction, unsigned &timeStamp)
reads the basic interaction details from an MPIInteractionDataArray
Definition: InteractionHandler.cc:245
void write(std::ostream &os) const
Writes the InteractionHandler to an output stream, for example a restart file.
Definition: InteractionHandler.cc:433
void addNewObjectsOMP()
Definition: InteractionHandler.cc:129
std::map< unsigned, BaseParticle * > particleById
Definition: InteractionHandler.h:213
void setWriteVTK(FileType f)
Definition: InteractionHandler.cc:549
InteractionHandler & operator=(const InteractionHandler &rhs)
Assignment operator.
Definition: InteractionHandler.cc:68
BaseInteraction * createEmptyInteraction() const
Creates an empty interaction.
Definition: InteractionHandler.cc:182
BaseInteraction * getExistingInteraction(const BaseInteractable *P, const BaseInteractable *I) const
Returns the Interaction between the BaseInteractable's P and I if it exists, otherwise returns a null...
Definition: InteractionHandler.cc:103
void deleteEmptyInteraction(BaseInteraction *interaction) const
Deletes an empty interaction.
Definition: InteractionHandler.cc:197
BaseInteraction * addInteraction(BaseInteractable *P, BaseInteractable *I, unsigned timeStamp)
Definition: InteractionHandler.cc:114
FileType getWriteVTK() const
Definition: InteractionHandler.cc:559
Container to store all ParticleSpecies.
Definition: SpeciesHandler.h:37
double P
Uniform pressure.
Definition: TwenteMeshGluing.cpp:73