chrono::particlefactory::ChRandomParticleVelocityConstantDirection Class Reference
Description
Generator of random particle velocities with constant 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::ChRandomParticleVelocityConstantDirection:
![Inheritance graph](classchrono_1_1particlefactory_1_1_ch_random_particle_velocity_constant_direction__inherit__graph.png)
Collaboration diagram for chrono::particlefactory::ChRandomParticleVelocityConstantDirection:
![Collaboration graph](classchrono_1_1particlefactory_1_1_ch_random_particle_velocity_constant_direction__coll__graph.png)
Public Member Functions | |
virtual ChVector3d | RandomVelocity () override |
Function that creates a random velocity each time it is called. | |
void | SetDirection (ChVector3d mdir) |
Set the direction for all the randomized velocities. | |
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. | |
The documentation for this class was generated from the following file:
- /builds/uwsbel/chrono/src/chrono/particlefactory/ChRandomParticleVelocity.h