www.mooseframework.org
EulerAngles.h
Go to the documentation of this file.
1 //* This file is part of the MOOSE framework
2 //* https://www.mooseframework.org
3 //*
4 //* All rights reserved, see COPYRIGHT for full restrictions
5 //* https://github.com/idaholab/moose/blob/master/COPYRIGHT
6 //*
7 //* Licensed under LGPL 2.1, please see LICENSE for details
8 //* https://www.gnu.org/licenses/lgpl-2.1.html
9 
10 #pragma once
11 
12 #include "MooseTypes.h"
13 #include "libmesh/vector_value.h"
14 // Ignore depcrecated copy warnings for this class from libmesh Eigen contrib
15 #include "libmesh/ignore_warnings.h"
16 #include <Eigen/Geometry>
17 
18 // forward declaration
19 class MooseRandom;
20 
25 {
26 public:
28 
29  // default constructor
30  EulerAngles();
31  // Quaternions to Euler Angles
32  EulerAngles(const Eigen::Quaternion<Real> & q);
33 
34  operator RealVectorValue() const { return RealVectorValue(phi1, Phi, phi2); }
35 
36  void random();
37  void random(MooseRandom & random);
38  // Euler to Quaternions
39  Eigen::Quaternion<Real> toQuaternion();
40 };
41 
42 // Restore warnings for other classes
43 #include "libmesh/restore_warnings.h"
void random()
Definition: EulerAngles.C:73
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
Euler angle triplet.
Definition: EulerAngles.h:24
Eigen::Quaternion< Real > toQuaternion()
Definition: EulerAngles.C:44