chrono::particlefactory::ChRandomParticleVelocityAnyDirection Class Reference

Description

Generator of random particle velocities with any direction.

Modulus is constant by default, too, but it can be set as randomized via a statistical distribution.

#include <ChRandomParticleVelocity.h>

Inheritance diagram for chrono::particlefactory::ChRandomParticleVelocityAnyDirection:
Collaboration diagram for chrono::particlefactory::ChRandomParticleVelocityAnyDirection:

Public Member Functions

virtual ChVector RandomVelocity () override
 Function that creates a random velocity each time it is called. More...
 
void SetModulusDistribution (std::shared_ptr< ChDistribution > mdistr)
 Set the statistical distribution for the modulus of velocities.
 
void SetModulusDistribution (double mval)
 Set the modulus of velocities as a constant value.
 

Member Function Documentation

virtual ChVector chrono::particlefactory::ChRandomParticleVelocityAnyDirection::RandomVelocity ( )
overridevirtual

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

Reimplemented from chrono::particlefactory::ChRandomParticleVelocity.