A coordinateRotation specified by a rotation axis and a rotation angle about that axis. More...
Public Member Functions | |
TypeNameNoDebug ("axisAngle") | |
axisAngle () | |
axisAngle (const axisAngle &crot) | |
axisAngle (const vector &axis, scalar angle, bool degrees) | |
axisAngle (const vector::components axis, scalar angle, bool degrees) | |
axisAngle (const dictionary &dict) | |
autoPtr< coordinateRotation > | clone () const |
virtual | ~axisAngle ()=default |
virtual void | clear () |
virtual tensor | R () const |
virtual void | write (Ostream &os) const |
virtual void | writeEntry (const word &keyword, Ostream &os) const |
![]() | |
TypeNameNoDebug ("coordinateRotation") | |
declareRunTimeSelectionTable (autoPtr, coordinateRotation, dictionary,(const dictionary &dict),(dict)) | |
virtual | ~coordinateRotation ()=default |
Static Public Member Functions | |
static tensor | rotation (const vector &axis, const scalar angle, bool degrees=false) |
![]() | |
static autoPtr< coordinateRotation > | New (const dictionary &dict) |
Additional Inherited Members | |
![]() | |
static vector | findOrthogonal (const vector &axis) |
A coordinateRotation specified by a rotation axis and a rotation angle about that axis.
rotation { type axisAngle; axis (1 0 0); angle 90; }
Dictionary entries
Property | Description | Required | Default |
---|---|---|---|
type | Type name: axisAngle | yes | |
axis | Axis of rotation (vector) | yes | |
angle | Rotation angle | yes | |
degrees | The angle is in degrees | no | true |
Definition at line 95 of file axisAngleRotation.H.
axisAngle | ( | ) |
Definition at line 75 of file axisAngleRotation.C.
Definition at line 84 of file axisAngleRotation.C.
Definition at line 96 of file axisAngleRotation.C.
axisAngle | ( | const vector::components | axis, |
scalar | angle, | ||
bool | degrees | ||
) |
Definition at line 112 of file axisAngleRotation.C.
|
explicit |
Definition at line 127 of file axisAngleRotation.C.
|
virtualdefault |
TypeNameNoDebug | ( | "axisAngle" | ) |
|
inlinevirtual |
Implements coordinateRotation.
Definition at line 141 of file axisAngleRotation.H.
|
static |
Definition at line 58 of file axisAngleRotation.C.
References Foam::degToRad(), SphericalTensor< scalar >::I, Foam::mag(), and quaternion::R().
|
virtual |
Implements coordinateRotation.
Definition at line 140 of file axisAngleRotation.C.
References Foam::Zero.
|
virtual |
Implements coordinateRotation.
Definition at line 147 of file axisAngleRotation.C.
|
virtual |
Implements coordinateRotation.
Definition at line 153 of file axisAngleRotation.C.
References os().
Implements coordinateRotation.
Definition at line 161 of file axisAngleRotation.C.
References os(), and Foam::type().
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.