chrono::particlefactory::ChRandomParticlePositionRectangleOutlet Class Reference

Description

Class for generator of random particle positions scattered over a rectangle outlet in 3D space.

#include <ChRandomParticlePosition.h>

Inheritance diagram for chrono::particlefactory::ChRandomParticlePositionRectangleOutlet:
Collaboration diagram for chrono::particlefactory::ChRandomParticlePositionRectangleOutlet:

Public Member Functions

virtual ChVector RandomPosition () override
 Function that creates a random position each time it is called. More...
 
ChCoordsysOutlet ()
 Access the coordinate system of the rectangular outlet. More...
 
double & OutletWidth ()
 Access the width of the rectangular outlet, that is on the X axis of the coordinate.
 
double & OutletHeight ()
 Access the height of the rectangular outlet, that is on the Y axis of the coordinate.
 

Member Function Documentation

ChCoordsys& chrono::particlefactory::ChRandomParticlePositionRectangleOutlet::Outlet ( )

Access the coordinate system of the rectangular outlet.

The outlet width is on the X direction of this csys, and the outled height is on the Y direction of this csys.

virtual ChVector chrono::particlefactory::ChRandomParticlePositionRectangleOutlet::RandomPosition ( )
overridevirtual

Function that creates a random position each time it is called.

Reimplemented from chrono::particlefactory::ChRandomParticlePosition.