www.mooseframework.org
Public Member Functions | Public Attributes | List of all members
EulerAngles Class Reference

Euler angle triplet. More...

#include <EulerAngles.h>

Public Member Functions

 operator RealVectorValue () const
 
void random ()
 
void random (MooseRandom &random)
 

Public Attributes

Real phi1
 
Real Phi
 
Real phi2
 

Detailed Description

Euler angle triplet.

Definition at line 20 of file EulerAngles.h.

Member Function Documentation

EulerAngles::operator RealVectorValue ( ) const
inline

Definition at line 25 of file EulerAngles.h.

25 { return RealVectorValue(phi1, Phi, phi2); }
void EulerAngles::random ( )

Definition at line 12 of file EulerAngles.C.

Referenced by RandomEulerAngleProvider::initialize(), GrainTrackerElasticity::newGrain(), and operator RealVectorValue().

13 {
14  phi1 = MooseRandom::rand() * 360.0;
15  Phi = std::acos(1.0 - 2.0 * MooseRandom::rand()) / libMesh::pi * 180.0;
16  phi2 = MooseRandom::rand() * 360;
17 }
void EulerAngles::random ( MooseRandom &  random)

Definition at line 20 of file EulerAngles.C.

21 {
22  phi1 = random.rand(0) * 360.0;
23  Phi = std::acos(1.0 - 2.0 * random.rand(0)) / libMesh::pi * 180.0;
24  phi2 = random.rand(0) * 360;
25 }
void random()
Definition: EulerAngles.C:12

Member Data Documentation

Real EulerAngles::Phi
Real EulerAngles::phi1
Real EulerAngles::phi2

The documentation for this class was generated from the following files: