Project Chrono: chrono::particlefactory::ChRandomParticleVelocity Class Reference

Public Member Functions | List of all members
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:
[legend]

## Public Member Functions
virtual ChVector3d | RandomVelocity ()
| Function that creates a random velocity each time it is called.

## 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:

- D:/W/B/src/chrono-9.0.1/src/chrono/particlefactory/ChRandomParticleVelocity.h