A local coordinate rotation. More...
Public Member Functions | |
TypeName ("cylindrical") | |
Runtime type information. More... | |
cylindrical (const dictionary &, const objectRegistry &) | |
Construct from dictionary and objectRegistry. More... | |
cylindrical (const objectRegistry &, const vector &axis, const point &origin) | |
Construct from components for all cells. More... | |
cylindrical (const objectRegistry &, const vector &axis, const point &origin, const List< label > &cells) | |
Construct from components for list of cells. More... | |
cylindrical (const dictionary &) | |
Construct from dictionary. More... | |
cylindrical (const tensorField &) | |
Construct from tensor Field. More... | |
autoPtr< cylindrical > | clone () const |
Return clone. More... | |
virtual | ~cylindrical () |
Destructor. More... | |
virtual void | clear () |
Reset rotation to an identity rotation. More... | |
virtual void | updateCells (const polyMesh &mesh, const labelList &cells) |
Update the rotation for a list of cells. More... | |
virtual const tensor & | R () const |
Return local-to-global transformation tensor. More... | |
virtual const tensor & | Rtr () const |
Return global-to-local transformation tensor. More... | |
virtual const vector | e1 () const |
Return local Cartesian x-axis in global coordinates. More... | |
virtual const vector | e2 () const |
Return local Cartesian y-axis in global coordinates. More... | |
virtual const vector | e3 () const |
Return local Cartesian z-axis in global coordinates. More... | |
virtual const tensorField & | Tr () const |
Return local-to-global transformation tensor. More... | |
virtual tmp< vectorField > | transform (const vectorField &tf) const |
Transform vectorField using transformation tensor field. More... | |
virtual vector | transform (const vector &v) const |
Transform vector using transformation tensor. More... | |
virtual vector | transform (const vector &v, const label cmptI) const |
Transform vector using transformation tensor for component. More... | |
virtual tmp< vectorField > | invTransform (const vectorField &vf) const |
Inverse transform vectorField using transformation tensor field. More... | |
virtual vector | invTransform (const vector &v) const |
Inverse transform vector using transformation tensor. More... | |
virtual vector | invTransform (const vector &v, const label cmptI) const |
Inverse transform vector using transformation tensor for component. More... | |
virtual bool | uniform () const |
Return if the rotation is uniform. More... | |
virtual tmp< tensorField > | transformTensor (const tensorField &tf) const |
Transform tensor field using transformation tensorField. More... | |
virtual tensor | transformTensor (const tensor &t) const |
Transform tensor using transformation tensorField. More... | |
virtual tmp< tensorField > | transformTensor (const tensorField &tf, const labelList &cellMap) const |
Transform tensor sub-field using transformation tensorField. More... | |
virtual tmp< symmTensorField > | transformVector (const vectorField &vf) const |
Transform vectorField using transformation tensorField and return. More... | |
virtual symmTensor | transformVector (const vector &v) const |
Transform vector using transformation tensor and return. More... | |
virtual void | write (Ostream &) const |
Write. More... | |
Public Member Functions inherited from coordinateRotation | |
TypeName ("coordinateRotation") | |
Runtime type information. More... | |
declareRunTimeSelectionTable (autoPtr, coordinateRotation, objectRegistry,(const dictionary &dict, const objectRegistry &obr),(dict, obr)) | |
declareRunTimeSelectionTable (autoPtr, coordinateRotation, dictionary,(const dictionary &dict),(dict)) | |
virtual | ~coordinateRotation () |
Destructor. More... | |
Additional Inherited Members | |
Static Public Member Functions inherited from coordinateRotation | |
static autoPtr< coordinateRotation > | New (const dictionary &dict, const objectRegistry &obr) |
Select constructed from dictionary and objectRegistry. More... | |
static autoPtr< coordinateRotation > | New (const dictionary &dict) |
Select constructed from dictionary. More... | |
Protected Member Functions inherited from coordinateRotation | |
symmTensor | transformPrincipal (const tensor &, const vector &) const |
Transform principal. More... | |
A local coordinate rotation.
The cell based rotational field can be created in two ways:
dir
and e3
) where dir = cellC - origin
and e3
is the rotation axis. Per each cell an axesRotation type of rotation is created (cylindrical coordinates). For example: cylindrical { type localAxes; e3 (0 0 1); }
Definition at line 65 of file cylindrical.H.
cylindrical | ( | const dictionary & | dict, |
const objectRegistry & | obr | ||
) |
Construct from dictionary and objectRegistry.
Definition at line 107 of file cylindrical.C.
References dictionary::found(), dictionary::lookup(), and dictionary::parent().
Referenced by cylindrical::clone(), and cylindrical::cylindrical().
cylindrical | ( | const objectRegistry & | obr, |
const vector & | axis, | ||
const point & | origin | ||
) |
Construct from components for all cells.
Definition at line 130 of file cylindrical.C.
References cylindrical::cylindrical().
cylindrical | ( | const objectRegistry & | obr, |
const vector & | axis, | ||
const point & | origin, | ||
const List< label > & | cells | ||
) |
Construct from components for list of cells.
Definition at line 145 of file cylindrical.C.
cylindrical | ( | const dictionary & | dict | ) |
Construct from dictionary.
Definition at line 160 of file cylindrical.C.
References Foam::exit(), FatalErrorInFunction, and Foam::FatalIOError.
cylindrical | ( | const tensorField & | R | ) |
Construct from tensor Field.
Definition at line 176 of file cylindrical.C.
References cylindrical::R().
|
inlinevirtual |
Destructor.
Definition at line 139 of file cylindrical.H.
References cylindrical::clear(), mesh, and cylindrical::updateCells().
TypeName | ( | "cylindrical" | ) |
Runtime type information.
|
inline |
Return clone.
Definition at line 132 of file cylindrical.H.
References cylindrical::cylindrical().
|
virtual |
Reset rotation to an identity rotation.
Implements coordinateRotation.
Definition at line 188 of file cylindrical.C.
References cylindrical::updateCells().
Referenced by cylindrical::~cylindrical().
Update the rotation for a list of cells.
Implements coordinateRotation.
Definition at line 198 of file cylindrical.C.
References primitiveMesh::cellCentres(), forAll, Foam::mag(), cylindrical::R(), and cylindrical::transform().
Referenced by cylindrical::clear(), and cylindrical::~cylindrical().
|
inlinevirtual |
Return local-to-global transformation tensor.
Implements coordinateRotation.
Definition at line 152 of file cylindrical.H.
References NotImplemented, and VectorSpace< Tensor< scalar >, scalar, Mrows *Ncols >::zero.
Referenced by cylindrical::cylindrical(), cylindrical::transformTensor(), cylindrical::transformVector(), and cylindrical::updateCells().
|
inlinevirtual |
Return global-to-local transformation tensor.
Implements coordinateRotation.
Definition at line 159 of file cylindrical.H.
References NotImplemented, and VectorSpace< Tensor< scalar >, scalar, Mrows *Ncols >::zero.
Referenced by cylindrical::transformTensor().
|
inlinevirtual |
Return local Cartesian x-axis in global coordinates.
Implements coordinateRotation.
Definition at line 166 of file cylindrical.H.
References NotImplemented, and VectorSpace< Vector< scalar >, scalar, 3 >::zero.
|
inlinevirtual |
Return local Cartesian y-axis in global coordinates.
Implements coordinateRotation.
Definition at line 173 of file cylindrical.H.
References NotImplemented, and VectorSpace< Vector< scalar >, scalar, 3 >::zero.
|
inlinevirtual |
Return local Cartesian z-axis in global coordinates.
Implements coordinateRotation.
Definition at line 180 of file cylindrical.H.
Referenced by cylindrical::write().
|
inlinevirtual |
Return local-to-global transformation tensor.
Implements coordinateRotation.
Definition at line 185 of file cylindrical.H.
References cylindrical::invTransform(), tf, and cylindrical::transform().
|
virtual |
Transform vectorField using transformation tensor field.
Implements coordinateRotation.
Definition at line 218 of file cylindrical.C.
References Foam::abort(), Foam::FatalError, FatalErrorInFunction, and List< T >::size().
Referenced by cylindrical::Tr(), cylindrical::transform(), and cylindrical::updateCells().
|
virtual |
Transform vector using transformation tensor.
Implements coordinateRotation.
Definition at line 233 of file cylindrical.C.
References NotImplemented, cylindrical::transform(), and Foam::Zero.
|
virtual |
Transform vector using transformation tensor for component.
Definition at line 241 of file cylindrical.C.
References cylindrical::invTransform().
|
virtual |
Inverse transform vectorField using transformation tensor field.
Implements coordinateRotation.
Definition at line 251 of file cylindrical.C.
References Foam::T().
Referenced by cylindrical::invTransform(), cylindrical::Tr(), and cylindrical::transform().
|
virtual |
Inverse transform vector using transformation tensor.
Implements coordinateRotation.
Definition at line 259 of file cylindrical.C.
References cylindrical::invTransform(), NotImplemented, and Foam::Zero.
|
virtual |
Inverse transform vector using transformation tensor for component.
Definition at line 267 of file cylindrical.C.
References Foam::T(), and cylindrical::transformTensor().
|
inlinevirtual |
Return if the rotation is uniform.
Reimplemented from coordinateRotation.
Definition at line 209 of file cylindrical.H.
References cylindrical::transformTensor(), cylindrical::transformVector(), and cylindrical::write().
|
virtual |
Transform tensor field using transformation tensorField.
Implements coordinateRotation.
Definition at line 277 of file cylindrical.C.
References Foam::abort(), Foam::FatalError, FatalErrorInFunction, List< T >::size(), and Foam::T().
Referenced by cylindrical::invTransform(), cylindrical::transformTensor(), and cylindrical::uniform().
|
virtual |
Transform tensor using transformation tensorField.
Implements coordinateRotation.
Definition at line 292 of file cylindrical.C.
References NotImplemented, cylindrical::transformTensor(), and Foam::Zero.
|
virtual |
Transform tensor sub-field using transformation tensorField.
Implements coordinateRotation.
Definition at line 303 of file cylindrical.C.
References Foam::abort(), Foam::FatalError, FatalErrorInFunction, forAll, cylindrical::R(), cylindrical::Rtr(), List< T >::size(), Field< Type >::T(), and cylindrical::transformVector().
|
virtual |
Transform vectorField using transformation tensorField and return.
symmetrical tensorField
Implements coordinateRotation.
Definition at line 329 of file cylindrical.C.
References Foam::abort(), Foam::FatalError, FatalErrorInFunction, fld(), forAll, cylindrical::R(), tmp< T >::ref(), List< T >::size(), and coordinateRotation::transformPrincipal().
Referenced by cylindrical::transformTensor(), and cylindrical::uniform().
|
virtual |
Transform vector using transformation tensor and return.
symmetrical tensor (R & st & R.T())
Implements coordinateRotation.
Definition at line 353 of file cylindrical.C.
References NotImplemented, and Foam::Zero.
|
virtual |
Write.
Implements coordinateRotation.
Definition at line 362 of file cylindrical.C.
References cylindrical::e3(), and Foam::writeEntry().
Referenced by cylindrical::uniform().