chrono::particlefactory::ChRandomParticleVelocity Class Reference

Description

BASE class for generators of random particle velocities.

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

#include <ChRandomParticleVelocity.h>

Inheritance diagram for chrono::particlefactory::ChRandomParticleVelocity:

Public Member Functions

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

Member Function Documentation

virtual ChVector chrono::particlefactory::ChRandomParticleVelocity::RandomVelocity ( )
virtual

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

This base behavior simply uses zero velocity by default. Children classes implmeent more advanced velocity randomizations.

Reimplemented in chrono::particlefactory::ChRandomParticleVelocityAnyDirection, and chrono::particlefactory::ChRandomParticleVelocityConstantDirection.