chrono::particlefactory::ChParticleProcessEventRemove Class Reference

Description

Processed particle will be removed.

Note that this does not necessarily means also deletion of the particle, because they are handled with shared pointers; however if they were referenced only by the ChSystem, this also leads to deletion.

#include <ChParticleProcessEvent.h>

Inheritance diagram for chrono::particlefactory::ChParticleProcessEventRemove:
Collaboration diagram for chrono::particlefactory::ChParticleProcessEventRemove:

Public Member Functions

virtual void ParticleProcessEvent (std::shared_ptr< ChBody > mbody, ChSystem &msystem, std::shared_ptr< ChParticleEventTrigger > mprocessor)
 Remove the particle from the system.
 
virtual void SetupPreProcess (ChSystem &msystem)
 Children classes might optionally implement this. More...
 
virtual void SetupPostProcess (ChSystem &msystem)
 Children classes might optionally implement this. More...
 

Member Function Documentation

virtual void chrono::particlefactory::ChParticleProcessEventRemove::SetupPostProcess ( ChSystem msystem)
virtual

Children classes might optionally implement this.

The ChParticleProcessor will call this once, after each ProcessParticles()

Reimplemented from chrono::particlefactory::ChParticleProcessEvent.

virtual void chrono::particlefactory::ChParticleProcessEventRemove::SetupPreProcess ( ChSystem msystem)
virtual

Children classes might optionally implement this.

The ChParticleProcessor will call this once, before each ProcessParticles()

Reimplemented from chrono::particlefactory::ChParticleProcessEvent.