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

◆ RandomAlignment()

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

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.


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