A coordinateRotation specified using global axes. More...
Public Types | |
enum | axisOrder { E1_E2, E2_E3, E3_E1, E3_E1_COMPAT } |
Public Member Functions | |
TypeNameNoDebug ("axes") | |
axes () | |
axes (const axes &crot) | |
axes (const vector &axis1, const vector &axis2, axisOrder order=E3_E1) | |
axes (const vector &axis) | |
axes (const dictionary &dict) | |
autoPtr< coordinateRotation > | clone () const |
virtual | ~axes ()=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 &axis1, const vector &axis2, axisOrder order=E3_E1) |
![]() | |
static autoPtr< coordinateRotation > | New (const dictionary &dict) |
Protected Member Functions | |
void | read (const dictionary &dict) |
Protected Attributes | |
vector | axis1_ |
vector | axis2_ |
axisOrder | order_ |
Additional Inherited Members | |
![]() | |
static vector | findOrthogonal (const vector &axis) |
A coordinateRotation specified using global axes.
The rotation is defined by a combination of vectors (e1/e2), (e2/e3) or (e3/e1). Any nonorthogonality is absorbed into the second vector.
rotation { type axes; e1 (1 0 0); e2 (0 1 0); }
Dictionary entries
Property | Description | Required | Default |
---|---|---|---|
type | type name: axes (previously axesRotation) | yes | |
e1 | local x-axis | partly | |
e2 | local y-axis | partly | |
e3 | local z-axis | partly |
axis
and direction
. For cylindrical coordinates, the axis
would correspond to the z-axis and the direction
to the r-axis.Definition at line 100 of file axesRotation.H.
enum axisOrder |
Definition at line 108 of file axesRotation.H.
axes | ( | ) |
Definition at line 196 of file axesRotation.C.
Definition at line 205 of file axesRotation.C.
Definition at line 215 of file axesRotation.C.
Definition at line 228 of file axesRotation.C.
|
explicit |
Definition at line 234 of file axesRotation.C.
References dict, and axes::read().
|
virtualdefault |
|
protected |
Definition at line 151 of file axesRotation.C.
References axes::axis1_, axes::axis2_, dict, axes::E1_E2, axes::E2_E3, axes::E3_E1, axes::E3_E1_COMPAT, Foam::exit(), Foam::FatalIOError, FatalIOErrorInFunction, and axes::order_.
Referenced by axes::axes().
TypeNameNoDebug | ( | "axes" | ) |
|
inlinevirtual |
Implements coordinateRotation.
Reimplemented in cylindrical.
Definition at line 164 of file axesRotation.H.
|
static |
Definition at line 58 of file axesRotation.C.
References Foam::abort(), Tensor::col(), Foam::endl(), Foam::FatalError, FatalErrorInFunction, Foam::mag(), Foam::nl, and WarningInFunction.
Referenced by axes::R().
|
virtual |
Implements coordinateRotation.
Definition at line 244 of file axesRotation.C.
|
virtual |
Implements coordinateRotation.
Definition at line 252 of file axesRotation.C.
References axes::rotation().
|
virtual |
Implements coordinateRotation.
Reimplemented in cylindrical.
Definition at line 260 of file axesRotation.C.
References os().
Implements coordinateRotation.
Reimplemented in cylindrical.
Definition at line 281 of file axesRotation.C.
References os(), and Foam::type().
|
protected |
Definition at line 122 of file axesRotation.H.
Referenced by axes::read().
|
protected |
Definition at line 125 of file axesRotation.H.
Referenced by axes::read().
|
protected |
Definition at line 128 of file axesRotation.H.
Referenced by axes::read().
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.