A coordinateRotation specified by a rotation axis and a rotation angle about that axis. More...
#include <axisAngleRotation.H>


Public Member Functions | |
| TypeNameNoDebug ("axisAngle") | |
| Runtime type information. | |
| axisAngle () | |
| Default construct. Axis = Z, angle = 0. | |
| axisAngle (const axisAngle &crot) | |
| Copy construct. | |
| axisAngle (const vector &axis, scalar angle, bool degrees) | |
| Construct from axis and angle. | |
| axisAngle (const vector::components axis, scalar angle, bool degrees) | |
| Construct from x/y/z axis enumeration and angle. | |
| axisAngle (const dictionary &dict) | |
| Construct from dictionary. | |
| autoPtr< coordinateRotation > | clone () const |
| Return clone. | |
| virtual | ~axisAngle ()=default |
| Destructor. | |
| virtual void | clear () |
| Reset specification. | |
| virtual tensor | R () const |
| Calculate and return the rotation tensor calculated from axis and angle. | |
| virtual void | write (Ostream &os) const |
| Write information. | |
| virtual void | writeEntry (const word &keyword, Ostream &os) const |
| Write dictionary entry. | |
| Public Member Functions inherited from coordinateRotation | |
| TypeNameNoDebug ("coordinateRotation") | |
| Runtime type information. | |
| declareRunTimeSelectionTable (autoPtr, coordinateRotation, dictionary,(const dictionary &dict),(dict)) | |
| virtual | ~coordinateRotation ()=default |
| Destructor. | |
Static Public Member Functions | |
| static tensor | rotation (const vector &axis, const scalar angle, bool degrees=false) |
| The rotation tensor for given axis/angle. | |
| static tensor | rotation (const vector::components axis, const scalar angle, bool degrees=false) |
| Rotation tensor calculated for given axis and angle. | |
| Static Public Member Functions inherited from coordinateRotation | |
| template<class Derived> | |
| static autoPtr< coordinateRotation > | Clone (const Derived &crot) |
| Clone a coordinate rotation. | |
| static autoPtr< coordinateRotation > | New (const word &modelType, const dictionary &dict) |
| Select construct the specified coordinate rotation type. | |
| static autoPtr< coordinateRotation > | New (const dictionary &dict) |
| Select construct from dictionary (requires the "type" entry). | |
Additional Inherited Members | |
| Static Protected Member Functions inherited from coordinateRotation | |
| static vector | findOrthogonal (const vector &axis) |
| Determine best-guess for an orthogonal 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 | Reqd | 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 | ( | ) |
Default construct. Axis = Z, angle = 0.
Definition at line 91 of file axisAngleRotation.C.
References Foam::Zero.
Referenced by axisAngle(), axisAngle(), and TypeNameNoDebug().

| axisAngle | ( | const axisAngle & | crot | ) |
Copy construct.
Definition at line 100 of file axisAngleRotation.C.
References axisAngle().

| axisAngle | ( | const vector & | axis, |
| scalar | angle, | ||
| bool | degrees ) |
Construct from axis and angle.
Definition at line 111 of file axisAngleRotation.C.
| axisAngle | ( | const vector::components | axis, |
| scalar | angle, | ||
| bool | degrees ) |
Construct from x/y/z axis enumeration and angle.
Definition at line 127 of file axisAngleRotation.C.
References Foam::Zero.
|
explicit |
Construct from dictionary.
Definition at line 143 of file axisAngleRotation.C.
References axisAngle(), and dict.

|
virtualdefault |
| TypeNameNoDebug | ( | "axisAngle" | ) |
Runtime type information.
References axisAngle(), and dict.

|
inlinevirtual |
Return clone.
Implements coordinateRotation.
Definition at line 163 of file axisAngleRotation.H.
References coordinateRotation::Clone().

|
static |
The rotation tensor for given axis/angle.
Definition at line 59 of file axisAngleRotation.C.
References Foam::degToRad(), SphericalTensor< scalar >::I, Foam::mag(), and quaternion::R().
Referenced by R(), rotation(), and ConeNozzleInjection< CloudType >::setPositionAndCell().


|
static |
Rotation tensor calculated for given axis and angle.
Definition at line 75 of file axisAngleRotation.C.
References rotation(), and Foam::Zero.

|
virtual |
Reset specification.
Implements coordinateRotation.
Definition at line 156 of file axisAngleRotation.C.
References Foam::Zero.
|
virtual |
Calculate and return the rotation tensor calculated from axis and angle.
Implements coordinateRotation.
Definition at line 163 of file axisAngleRotation.C.
References rotation().

|
virtual |
Write information.
Implements coordinateRotation.
Definition at line 169 of file axisAngleRotation.C.
References os().

Write dictionary entry.
Implements coordinateRotation.
Definition at line 176 of file axisAngleRotation.C.
References os(), and Foam::type().
