chrono::particlefactory::ChParticleEventTriggerBox Class Reference

Description

This can be used to trigger events when particles are inside a box volume.

Event is triggered all the times that the particle processor is run, not only the 1st time that particle enters the volume. Only the center of gravity of particle is taken into consideration, regardless of its size.

#include <ChParticleEventTrigger.h>

Inheritance diagram for chrono::particlefactory::ChParticleEventTriggerBox:
Collaboration diagram for chrono::particlefactory::ChParticleEventTriggerBox:

Public Member Functions

virtual bool TriggerEvent (std::shared_ptr< ChBody > mbody, ChSystem &msystem)
 This function triggers the a particle event according to the fact the the particle is inside a box. More...
 
void SetTriggerOutside (bool minvert)
 
- Public Member Functions inherited from chrono::particlefactory::ChParticleEventTrigger
virtual void SetupPreProcess (ChSystem &msystem)
 Children classes might optionally implement this. More...
 
virtual void SetupPostProcess (ChSystem &msystem)
 Children classes might optionally implement this. More...
 

Public Attributes

geometry::ChBox mbox
 

Protected Attributes

bool invert_volume
 

Member Function Documentation

◆ TriggerEvent()

virtual bool chrono::particlefactory::ChParticleEventTriggerBox::TriggerEvent ( std::shared_ptr< ChBody mbody,
ChSystem msystem 
)
inlinevirtual

This function triggers the a particle event according to the fact the the particle is inside a box.

If SetTriggerOutside(true), viceversa triggers event outside the box.

Implements chrono::particlefactory::ChParticleEventTrigger.


The documentation for this class was generated from the following file:
  • /builds/uwsbel/chrono/src/chrono/particlefactory/ChParticleEventTrigger.h