chrono::particlefactory::ChRandomParticleAlignment Class Reference

Description

BASE class for generators of random particle alignment.

By default it simply always returns quaternion {1,0,0,0} (no rotation) so it it is up to sub-classes to implement more sophisticated randomizations.

#include <ChRandomParticleAlignment.h>

Inheritance diagram for chrono::particlefactory::ChRandomParticleAlignment:

Public Member Functions

virtual ChQuaternion RandomAlignment ()
 Function that creates a random alignment (as a rotation quaternion) each time it is called. More...
 

Member Function Documentation

virtual ChQuaternion chrono::particlefactory::ChRandomParticleAlignment::RandomAlignment ( )
virtual

Function that creates a random alignment (as a rotation quaternion) each time it is called.

Note: it must be implemented by children classes!

Reimplemented in chrono::particlefactory::ChRandomParticleAlignmentUniform.