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 ChVector3d RandomVelocity ()
 Function that creates a random velocity each time it is called. More...
 

Member Function Documentation

◆ RandomVelocity()

virtual ChVector3d chrono::particlefactory::ChRandomParticleVelocity::RandomVelocity ( )
inlinevirtual

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

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

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


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