A coordinateRotation defined in the z-x-y Euler convention. More...
#include <meshTools/EulerCoordinateRotation.H>
A coordinateRotation defined in the z-x-y Euler convention.
The 3 rotations are defined in the Euler convention (around Z, around X' and around Z'). For reference and illustration, see http://mathworld.wolfram.com/EulerAngles.html Note, however, that it is the reverse transformation (local->global) that is defined here.
the rotation angles are in degrees, unless otherwise explictly specified:
coordinateRotation
{
typeEulerRotation
degrees false;
rotation(0 0 3.141592654);
}
Definition at line 64 of file EulerCoordinateRotation.H.
Inheritance diagram for EulerCoordinateRotation:
Collaboration diagram for EulerCoordinateRotation:Public Member Functions | |
| TypeName ("EulerRotation") | |
| Runtime type information. | |
| EulerCoordinateRotation () | |
| Construct null. | |
| EulerCoordinateRotation (const vector &phiThetaPsi, const bool inDegrees=true) | |
| Construct from rotation vector. | |
| EulerCoordinateRotation (const scalar phiAngle, const scalar thetaAngle, const scalar psiAngle, const bool inDegrees=true) | |
| Construct from components of rotation vector. | |
| EulerCoordinateRotation (const dictionary &) | |
| Construct from dictionary. | |
Public Member Functions inherited from coordinateRotation | |
| TypeName ("coordinateRotation") | |
| Runtime type information. | |
| coordinateRotation () | |
| Construct null. | |
| coordinateRotation (const vector &axis, const vector &dir) | |
| Construct from 2 axes. | |
| coordinateRotation (const dictionary &) | |
| Construct from dictionary. | |
| autoPtr< coordinateRotation > | clone () const |
| Return clone. | |
| declareRunTimeSelectionTable (autoPtr, coordinateRotation, dictionary,(const dictionary &dict),(dict)) | |
| virtual | ~coordinateRotation () |
| const tensor & | R () const |
| Return local-to-global transformation tensor. | |
| const vector | e1 () const |
| Return local Cartesian x-axis. | |
| const vector | e2 () const |
| Return local Cartesian y-axis. | |
| const vector | e3 () const |
| Return local Cartesian z-axis. | |
| void | operator= (const dictionary &) |
| assign from dictionary | |
Public Member Functions inherited from Tensor< Cmpt > | |
| Tensor () | |
| Construct null. | |
| Tensor (const VectorSpace< Tensor< Cmpt >, Cmpt, 9 > &) | |
| Construct given VectorSpace. | |
| Tensor (const SphericalTensor< Cmpt > &) | |
| Construct given SphericalTensor. | |
| Tensor (const SymmTensor< Cmpt > &) | |
| Construct given SymmTensor. | |
| Tensor (const Vector< Cmpt > &x, const Vector< Cmpt > &y, const Vector< Cmpt > &z) | |
| Construct given the three vectors. | |
| Tensor (const Cmpt txx, const Cmpt txy, const Cmpt txz, const Cmpt tyx, const Cmpt tyy, const Cmpt tyz, const Cmpt tzx, const Cmpt tzy, const Cmpt tzz) | |
| Construct given the nine components. | |
| Tensor (Istream &) | |
| Construct from Istream. | |
| const Cmpt & | xx () const |
| const Cmpt & | xy () const |
| const Cmpt & | xz () const |
| const Cmpt & | yx () const |
| const Cmpt & | yy () const |
| const Cmpt & | yz () const |
| const Cmpt & | zx () const |
| const Cmpt & | zy () const |
| const Cmpt & | zz () const |
| Cmpt & | xx () |
| Cmpt & | xy () |
| Cmpt & | xz () |
| Cmpt & | yx () |
| Cmpt & | yy () |
| Cmpt & | yz () |
| Cmpt & | zx () |
| Cmpt & | zy () |
| Cmpt & | zz () |
| const Vector< Cmpt > | x () const |
| const Vector< Cmpt > | y () const |
| const Vector< Cmpt > | z () const |
| Tensor< Cmpt > | T () const |
| Transpose. | |
| void | operator= (const SphericalTensor< Cmpt > &) |
| Assign to a SphericalTensor. | |
| void | operator= (const SymmTensor< Cmpt > &) |
| Assign to a SymmTensor. | |
Public Member Functions inherited from VectorSpace< Tensor< Cmpt >, Cmpt, 9 > | |
| VectorSpace () | |
| Construct null. | |
| VectorSpace (Istream &) | |
| Construct from Istream. | |
| VectorSpace (const VectorSpace< Tensor< Cmpt >, Cmpt, nCmpt > &) | |
| Construct as copy. | |
| label | size () const |
| Return the number of elements in the VectorSpace = nCmpt. | |
| const Cmpt & | component (const direction) const |
| Cmpt & | component (const direction) |
| void | component (Cmpt &, const direction) const |
| void | replace (const direction, const Cmpt &) |
| const Cmpt & | operator[] (const direction) const |
| Cmpt & | operator[] (const direction) |
| void | operator= (const VectorSpace< Tensor< Cmpt >, Cmpt, nCmpt > &) |
| void | operator+= (const VectorSpace< Tensor< Cmpt >, Cmpt, nCmpt > &) |
| void | operator-= (const VectorSpace< Tensor< Cmpt >, Cmpt, nCmpt > &) |
| void | operator*= (const scalar) |
| void | operator/= (const scalar) |
Additional Inherited Members | |
Static Public Member Functions inherited from coordinateRotation | |
| static autoPtr < coordinateRotation > | New (const dictionary &dict) |
| Select constructed from Istream. | |
Construct null.
Definition at line 88 of file EulerCoordinateRotation.C.
| EulerCoordinateRotation | ( | const vector & | phiThetaPsi, |
| const bool | inDegrees = true |
||
| ) |
Construct from rotation vector.
Definition at line 95 of file EulerCoordinateRotation.C.
References VectorSpace< Form, Cmpt, nCmpt >::component(), Vector< scalar >::X, Vector< scalar >::Y, and Vector< scalar >::Z.
| EulerCoordinateRotation | ( | const scalar | phiAngle, |
| const scalar | thetaAngle, | ||
| const scalar | psiAngle, | ||
| const bool | inDegrees = true |
||
| ) |
Construct from components of rotation vector.
Definition at line 113 of file EulerCoordinateRotation.C.
| EulerCoordinateRotation | ( | const dictionary & | dict | ) |
Construct from dictionary.
Definition at line 127 of file EulerCoordinateRotation.C.
References dictionary::lookup(), dictionary::lookupOrDefault(), Vector< scalar >::X, Vector< scalar >::Y, and Vector< scalar >::Z.
| TypeName | ( | "EulerRotation" | ) |
Runtime type information.