chrono::particlefactory::ChParticleProcessEventMassCount Class Reference

Description

Processed particle will increment a mass counter .

Note that you have to use this processor with triggers that make some sense, such as ChParticleEventFlowInRectangle, because with others like ChParticleEventTriggerBox you'll get a trigger per each timestep, not only after the particle entered the box.

#include <ChParticleProcessEvent.h>

Inheritance diagram for chrono::particlefactory::ChParticleProcessEventMassCount:
Collaboration diagram for chrono::particlefactory::ChParticleProcessEventMassCount:

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.
 
- Public Member Functions inherited from chrono::particlefactory::ChParticleProcessEvent
virtual void SetupPreProcess (ChSystem &msystem)
 Children classes might optionally implement this.
 
virtual void SetupPostProcess (ChSystem &msystem)
 Children classes might optionally implement this.
 

Public Attributes

double counted_mass
 

Member Function Documentation

◆ ParticleProcessEvent()

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

Remove the particle from the system.

Implements 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