chrono::particlefactory::ChParticleEventTriggerBox Class Reference

Description

Event trigger for particles inside a box volume.

The event is triggered every time 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

ChBox m_box
 box volume
 
ChFrame m_frame
 box position and orientation
 

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