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 22 of file EulerAngles.h.

Member Function Documentation

◆ operator RealVectorValue()

EulerAngles::operator RealVectorValue ( ) const
inline

Definition at line 27 of file EulerAngles.h.

27 { return RealVectorValue(phi1, Phi, phi2); }

◆ random() [1/2]

void EulerAngles::random ( )

Definition at line 14 of file EulerAngles.C.

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

15 {
16  phi1 = MooseRandom::rand() * 360.0;
17  Phi = std::acos(1.0 - 2.0 * MooseRandom::rand()) / libMesh::pi * 180.0;
18  phi2 = MooseRandom::rand() * 360;
19 }

◆ random() [2/2]

void EulerAngles::random ( MooseRandom &  random)

Definition at line 22 of file EulerAngles.C.

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

Member Data Documentation

◆ Phi

Real EulerAngles::Phi

◆ phi1

Real EulerAngles::phi1

◆ phi2

Real EulerAngles::phi2

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