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) override
 Remove the particle from the system.
 
virtual void SetupPreProcess (ChSystem &msystem) override
 Children classes might optionally implement this.
 
virtual void SetupPostProcess (ChSystem &msystem) override
 Children classes might optionally implement this.
 

Member Function Documentation

◆ ParticleProcessEvent()

virtual void chrono::particlefactory::ChParticleProcessEventRemove::ParticleProcessEvent ( std::shared_ptr< ChBody > mbody,
ChSystem & msystem,
std::shared_ptr< ChParticleEventTrigger > mprocessor )
inlineoverridevirtual

Remove the particle from the system.

Implements chrono::particlefactory::ChParticleProcessEvent.

◆ SetupPostProcess()

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

Children classes might optionally implement this.

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

Reimplemented from chrono::particlefactory::ChParticleProcessEvent.

◆ SetupPreProcess()

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

Children classes might optionally implement this.

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

Reimplemented from chrono::particlefactory::ChParticleProcessEvent.


The documentation for this class was generated from the following file:
  • C:/M/B/src/chrono-9.0.1/src/chrono/particlefactory/ChParticleProcessEvent.h