www.mooseframework.org
RotationTensor.h
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 #ifndef ROTATIONTENSOR_H
8 #define ROTATIONTENSOR_H
9 
10 #include "Moose.h"
11 
12 // Any requisite includes here
13 #include "libmesh/tensor_value.h"
14 #include "libmesh/vector_value.h"
15 
27 class RotationTensor : public RealTensorValue
28 {
29 public:
31  enum Axis
32  {
33  XAXIS = 0,
36  };
37 
39  RotationTensor(Axis axis, Real angle);
40 
42  RotationTensor(const RealVectorValue & euler_angles);
43 
45  void update(Axis axis, Real angle);
46 
48  void update(const RealVectorValue & euler_angles);
49 };
50 
51 #endif // ROTATIONTENSOR_H
Axis
axis for single axis rotation constructor
This is a RealTensor version of a rotation matrix It is instantiated with the Euler angles...
RotationTensor(Axis axis, Real angle)
single axis rotation (in degrees)
void update(Axis axis, Real angle)
reforms the rotation matrix according to axis and angle.