A coordinateRotation defined by the STAR-CD convention. More...
Public Member Functions | |
TypeNameNoDebug ("starcd") | |
Runtime type information. More... | |
starcd () | |
Default construct - an identity transform. More... | |
starcd (const starcd &crot) | |
Copy construct. More... | |
starcd (const vector &rotZrotXrotY, bool degrees) | |
Construct from rotation vector. More... | |
starcd (scalar rotZ, scalar rotX, scalar rotY, bool degrees) | |
Construct from components of rotation vector. More... | |
starcd (const dictionary &dict) | |
Construct from dictionary. More... | |
autoPtr< coordinateRotation > | clone () const |
Return clone. More... | |
virtual | ~starcd ()=default |
Destructor. More... | |
virtual void | clear () |
Reset specification. More... | |
virtual tensor | R () const |
The rotation tensor calculated for the specified STARCD angles. More... | |
virtual void | write (Ostream &os) const |
Write information. More... | |
virtual void | writeEntry (const word &keyword, Ostream &os) const |
Write dictionary entry. More... | |
![]() | |
TypeNameNoDebug ("coordinateRotation") | |
Runtime type information. More... | |
declareRunTimeSelectionTable (autoPtr, coordinateRotation, dictionary,(const dictionary &dict),(dict)) | |
virtual | ~coordinateRotation ()=default |
Destructor. More... | |
Static Public Member Functions | |
static tensor | rotation (const vector &angles, bool degrees) |
![]() | |
static autoPtr< coordinateRotation > | New (const dictionary &dict) |
Select constructed from dictionary. More... | |
Additional Inherited Members | |
![]() | |
static vector | findOrthogonal (const vector &axis) |
Determine best-guess for an orthogonal axis. More... | |
A coordinateRotation defined by the STAR-CD convention.
The 3 rotations are defined in the STAR-CD convention (around Z, around X' and around Y''). The order of the parameter arguments matches this rotation order.
rotation { type starcd; angles (0 0 180); }
Dictionary entries
Property | Description | Required | Default |
---|---|---|---|
type | Type name: starcd (or STARCDRotation) | yes | |
angles | The z-x-y rotation angles | yes | |
degrees | Angles are in degrees | no | true |
Definition at line 95 of file STARCDCoordinateRotation.H.
starcd | ( | ) |
Default construct - an identity transform.
Definition at line 97 of file STARCDCoordinateRotation.C.
Copy construct.
Definition at line 105 of file STARCDCoordinateRotation.C.
Construct from rotation vector.
Definition at line 114 of file STARCDCoordinateRotation.C.
Construct from components of rotation vector.
Definition at line 126 of file STARCDCoordinateRotation.C.
|
explicit |
Construct from dictionary.
Definition at line 139 of file STARCDCoordinateRotation.C.
|
virtualdefault |
Destructor.
TypeNameNoDebug | ( | "starcd" | ) |
Runtime type information.
|
inlinevirtual |
Return clone.
Implements coordinateRotation.
Definition at line 132 of file STARCDCoordinateRotation.H.
|
static |
The rotation tensor calculated for the specified STARCD angles interpreted as rotate-Z, rotate-X, rotate-Y
Definition at line 65 of file STARCDCoordinateRotation.C.
References VectorSpace< Form, Cmpt, Ncmpts >::component(), Foam::cos(), Foam::degToRad(), Foam::sin(), x, Y, and y.
Referenced by starcd::R().
|
virtual |
Reset specification.
Implements coordinateRotation.
Definition at line 149 of file STARCDCoordinateRotation.C.
References Foam::Zero.
|
virtual |
The rotation tensor calculated for the specified STARCD angles.
Implements coordinateRotation.
Definition at line 156 of file STARCDCoordinateRotation.C.
References starcd::rotation().
|
virtual |
Write information.
Implements coordinateRotation.
Definition at line 162 of file STARCDCoordinateRotation.C.
References os().
Write dictionary entry.
Implements coordinateRotation.
Definition at line 169 of file STARCDCoordinateRotation.C.
References os(), and Foam::type().