Abstract base class for coordinate rotation. More...
Public Member Functions | |
TypeName ("coordinateRotation") | |
Runtime type information. More... | |
declareRunTimeSelectionTable (autoPtr, coordinateRotation, dictionary,(const dictionary &dict),(dict)) | |
declareRunTimeSelectionTable (autoPtr, coordinateRotation, points,(const dictionary &dict, const UList< vector > &points),(dict, points)) | |
virtual autoPtr< coordinateRotation > | clone () const =0 |
Construct and return a clone. More... | |
virtual | ~coordinateRotation () |
Destructor. More... | |
virtual void | updatePoints (const UList< vector > &points)=0 |
Update the rotation for a list of points. More... | |
virtual const tensor & | R () const =0 |
Return local-to-global transformation tensor. More... | |
virtual const vector | e1 () const =0 |
Return local Cartesian x-axis. More... | |
virtual const vector | e2 () const =0 |
Return local Cartesian y-axis. More... | |
virtual const vector | e3 () const =0 |
Return local Cartesian z-axis. More... | |
virtual bool | uniform () const |
Return true if the rotation tensor is uniform. More... | |
virtual vector | transform (const vector &st) const =0 |
Transform vector using transformation tensor. More... | |
virtual tmp< vectorField > | transform (const vectorField &st) const =0 |
Transform vectorField using transformation tensor field. More... | |
virtual vector | invTransform (const vector &st) const =0 |
Inverse transform vector using transformation tensor. More... | |
virtual tmp< vectorField > | invTransform (const vectorField &st) const =0 |
Inverse transform vectorField using transformation tensor field. More... | |
virtual tensor | transformTensor (const tensor &st) const =0 |
Transform tensor using transformation tensorField. More... | |
virtual tmp< tensorField > | transformTensor (const tensorField &st) const =0 |
Transform tensor field using transformation tensorField. More... | |
virtual symmTensor | transformVector (const vector &st) const =0 |
Transform vector using transformation tensor and return. More... | |
virtual tmp< symmTensorField > | transformVector (const vectorField &st) const =0 |
Transform vectorField using transformation tensorField and return. More... | |
virtual void | write (Ostream &) const =0 |
Write. More... | |
Static Public Member Functions | |
static autoPtr< coordinateRotation > | New (const dictionary &dict, const UList< vector > &points) |
Select constructed from dictionary and list of points. More... | |
static autoPtr< coordinateRotation > | New (const dictionary &dict) |
Select constructed from dictionary. More... | |
Protected Member Functions | |
symmTensor | transformPrincipal (const tensor &, const vector &) const |
Transform principal. More... | |
Abstract base class for coordinate rotation.
coordinateRotation { type axesRotation e1 (1 0 0); e2 (0 1 0); }
Types of coordinateRotation:
Definition at line 70 of file coordinateRotation.H.
|
inlinevirtual |
Destructor.
Definition at line 136 of file coordinateRotation.H.
References coordinateRotation::e1(), coordinateRotation::e2(), coordinateRotation::e3(), coordinateRotation::R(), and coordinateRotation::updatePoints().
|
protected |
Transform principal.
Definition at line 43 of file coordinateRotation.C.
References Vector< Cmpt >::x(), Tensor< Cmpt >::xx(), Tensor< Cmpt >::xy(), Tensor< Cmpt >::xz(), Vector< Cmpt >::y(), Tensor< Cmpt >::yx(), Tensor< Cmpt >::yy(), Tensor< Cmpt >::yz(), Vector< Cmpt >::z(), Tensor< Cmpt >::zx(), Tensor< Cmpt >::zy(), and Tensor< Cmpt >::zz().
Referenced by axesRotation::transformVector(), and cylindrical::transformVector().
TypeName | ( | "coordinateRotation" | ) |
Runtime type information.
declareRunTimeSelectionTable | ( | autoPtr | , |
coordinateRotation | , | ||
dictionary | , | ||
(const dictionary &dict) | , | ||
(dict) | |||
) |
declareRunTimeSelectionTable | ( | autoPtr | , |
coordinateRotation | , | ||
points | , | ||
(const dictionary &dict, const UList< vector > &points) | , | ||
(dict, points) | |||
) |
|
pure virtual |
Construct and return a clone.
Implemented in axesRotation, cylindrical, STARCDCoordinateRotation, and EulerCoordinateRotation.
|
static |
Select constructed from dictionary and list of points.
Definition at line 65 of file coordinateRotationNew.C.
References dict, Foam::endl(), Foam::exit(), Foam::FatalIOError, FatalIOErrorInFunction, dictionary::lookup(), Foam::nl, points, and Foam::Pout.
Referenced by coordinateRotation::New().
|
static |
Select constructed from dictionary.
Definition at line 32 of file coordinateRotationNew.C.
References dict, Foam::endl(), Foam::exit(), Foam::FatalIOError, FatalIOErrorInFunction, dictionary::lookup(), coordinateRotation::New(), Foam::nl, and Foam::Pout.
Update the rotation for a list of points.
Implemented in axesRotation, cylindrical, STARCDCoordinateRotation, and EulerCoordinateRotation.
Referenced by coordinateRotation::~coordinateRotation().
|
pure virtual |
Return local-to-global transformation tensor.
Implemented in axesRotation, cylindrical, STARCDCoordinateRotation, and EulerCoordinateRotation.
Referenced by coordinateRotation::~coordinateRotation().
|
pure virtual |
Return local Cartesian x-axis.
Implemented in axesRotation, cylindrical, STARCDCoordinateRotation, and EulerCoordinateRotation.
Referenced by coordinateRotation::~coordinateRotation().
|
pure virtual |
Return local Cartesian y-axis.
Implemented in axesRotation, cylindrical, STARCDCoordinateRotation, and EulerCoordinateRotation.
Referenced by coordinateRotation::~coordinateRotation().
|
pure virtual |
Return local Cartesian z-axis.
Implemented in axesRotation, cylindrical, STARCDCoordinateRotation, and EulerCoordinateRotation.
Referenced by coordinateRotation::~coordinateRotation().
|
inlinevirtual |
Return true if the rotation tensor is uniform.
Reimplemented in cylindrical.
Definition at line 158 of file coordinateRotation.H.
References coordinateRotation::invTransform(), coordinateRotation::transform(), coordinateRotation::transformTensor(), coordinateRotation::transformVector(), and coordinateRotation::write().
Transform vector using transformation tensor.
Implemented in cylindrical, axesRotation, STARCDCoordinateRotation, and EulerCoordinateRotation.
Referenced by coordinateRotation::uniform().
|
pure virtual |
Transform vectorField using transformation tensor field.
Implemented in cylindrical, axesRotation, STARCDCoordinateRotation, and EulerCoordinateRotation.
Inverse transform vector using transformation tensor.
Implemented in cylindrical, axesRotation, STARCDCoordinateRotation, and EulerCoordinateRotation.
Referenced by coordinateRotation::uniform().
|
pure virtual |
Inverse transform vectorField using transformation tensor field.
Implemented in cylindrical, axesRotation, STARCDCoordinateRotation, and EulerCoordinateRotation.
Transform tensor using transformation tensorField.
Implemented in cylindrical, axesRotation, STARCDCoordinateRotation, and EulerCoordinateRotation.
Referenced by fixedCoeff::calcTransformModelData(), DarcyForchheimer::calcTransformModelData(), and coordinateRotation::uniform().
|
pure virtual |
Transform tensor field using transformation tensorField.
Implemented in cylindrical, axesRotation, STARCDCoordinateRotation, and EulerCoordinateRotation.
|
pure virtual |
Transform vector using transformation tensor and return.
symmetrical tensor
Implemented in cylindrical, axesRotation, STARCDCoordinateRotation, and EulerCoordinateRotation.
Referenced by coordinateRotation::uniform().
|
pure virtual |
Transform vectorField using transformation tensorField and return.
symmetrical tensorField
Implemented in cylindrical, axesRotation, STARCDCoordinateRotation, and EulerCoordinateRotation.
|
pure virtual |
Write.
Implemented in cylindrical, axesRotation, STARCDCoordinateRotation, and EulerCoordinateRotation.
Referenced by coordinateRotation::uniform().