chrono::particlefactory::ChRandomParticlePosition Class Reference

Description

BASE class for generators of random particle positions.

By default it simply always returns Pxyz={0,0,0}, so it it is up to sub-classes to implement more sophisticated randomizations.

#include <ChRandomParticlePosition.h>

Inheritance diagram for chrono::particlefactory::ChRandomParticlePosition:

Public Member Functions

virtual ChVector RandomPosition ()
 Function that creates a random position each time it is called. More...
 

Member Function Documentation

virtual ChVector chrono::particlefactory::ChRandomParticlePosition::RandomPosition ( )
virtual

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

Note: it must be implemented by children classes!

Reimplemented in chrono::particlefactory::ChRandomParticlePositionOnGeometry, and chrono::particlefactory::ChRandomParticlePositionRectangleOutlet.