www.mooseframework.org
EulerAngles.C
Go to the documentation of this file.
1 /****************************************************************/
2 /* MOOSE - Multiphysics Object Oriented Simulation Environment */
3 /* */
4 /* All contents are licensed under LGPL V2.1 */
5 /* See LICENSE for full restrictions */
6 /****************************************************************/
7 
8 #include "EulerAngles.h"
9 #include "MooseRandom.h"
10 
11 void
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 }
18 
19 void
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