A local coordinate rotation. The cell based rotational field can be created in two ways: 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... | |
cylindrical (const cylindrical &) | |
Construct as copy. More... | |
autoPtr< coordinateRotation > | 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. More... | |
virtual const vector | e2 () const |
Return local Cartesian y-axis. More... | |
virtual const vector | e3 () const |
Return local Cartesian z-axis. 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... | |
![]() | |
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... | |
Private Member Functions | |
void | init (const objectRegistry &obr, const List< label > &cells=List< label >()) |
Init transformation tensor field. More... | |
Private Attributes | |
autoPtr< tensorField > | Rptr_ |
AutoPtr to transformation tensor. More... | |
point | origin_ |
Origin of the coordinate system. More... | |
vector | e3_ |
Rotation axis. More... | |
Additional Inherited Members | |
![]() | |
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... | |
![]() | |
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:
1) Each rotational tensor is defined with two vectors (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)
cylindrical { type localAxes; e3 (0 0 1); }
2) The rotational tensor field is provided at construction
Definition at line 63 of file cylindrical.H.
cylindrical | ( | const dictionary & | dict, |
const objectRegistry & | obr | ||
) |
Construct from dictionary and objectRegistry.
Definition at line 96 of file cylindrical.C.
References dict.
Referenced by cylindrical::clone().
cylindrical | ( | const objectRegistry & | obr, |
const vector & | axis, | ||
const point & | origin | ||
) |
Construct from components for all cells.
Definition at line 119 of file cylindrical.C.
cylindrical | ( | const objectRegistry & | obr, |
const vector & | axis, | ||
const point & | origin, | ||
const List< label > & | cells | ||
) |
Construct from components for list of cells.
Definition at line 134 of file cylindrical.C.
References cells.
cylindrical | ( | const dictionary & | dict | ) |
Construct from dictionary.
Definition at line 149 of file cylindrical.C.
References Foam::exit(), FatalErrorInFunction, and Foam::FatalIOError.
cylindrical | ( | const tensorField & | R | ) |
Construct from tensor Field.
Definition at line 165 of file cylindrical.C.
References cylindrical::R(), and cylindrical::Rptr_.
cylindrical | ( | const cylindrical & | r | ) |
Construct as copy.
Definition at line 175 of file cylindrical.C.
|
inlinevirtual |
Destructor.
Definition at line 133 of file cylindrical.H.
|
private |
Init transformation tensor field.
Definition at line 55 of file cylindrical.C.
References cells, forAll, Foam::mag(), mesh, axesRotation::R(), and R.
TypeName | ( | "cylindrical" | ) |
Runtime type information.
|
inlinevirtual |
Return clone.
Implements coordinateRotation.
Definition at line 126 of file cylindrical.H.
References cylindrical::cylindrical().
|
virtual |
Reset rotation to an identity rotation.
Implements coordinateRotation.
Definition at line 186 of file cylindrical.C.
Update the rotation for a list of cells.
Implements coordinateRotation.
Definition at line 196 of file cylindrical.C.
References primitiveMesh::cellCentres(), cells, forAll, Foam::mag(), mesh, axesRotation::R(), and R.
|
inlinevirtual |
Return local-to-global transformation tensor.
Implements coordinateRotation.
Definition at line 146 of file cylindrical.H.
References NotImplemented, and Tensor::zero.
Referenced by cylindrical::cylindrical().
|
inlinevirtual |
Return global-to-local transformation tensor.
Implements coordinateRotation.
Definition at line 153 of file cylindrical.H.
References NotImplemented, and Tensor::zero.
|
inlinevirtual |
Return local Cartesian x-axis.
Implements coordinateRotation.
Definition at line 160 of file cylindrical.H.
References NotImplemented, and Vector< scalar >::zero.
|
inlinevirtual |
Return local Cartesian y-axis.
Implements coordinateRotation.
Definition at line 167 of file cylindrical.H.
References NotImplemented, and Vector< scalar >::zero.
|
inlinevirtual |
Return local Cartesian z-axis.
Implements coordinateRotation.
Definition at line 174 of file cylindrical.H.
References cylindrical::e3_.
|
inlinevirtual |
Return local-to-global transformation tensor.
Implements coordinateRotation.
Definition at line 179 of file cylindrical.H.
References cylindrical::Rptr_.
|
virtual |
Transform vectorField using transformation tensor field.
Implements coordinateRotation.
Definition at line 216 of file cylindrical.C.
References Foam::abort(), Foam::FatalError, and FatalErrorInFunction.
|
virtual |
Transform vector using transformation tensor.
Implements coordinateRotation.
Definition at line 231 of file cylindrical.C.
References NotImplemented, and Vector< scalar >::zero.
|
virtual |
Transform vector using transformation tensor for component.
Definition at line 239 of file cylindrical.C.
|
virtual |
Inverse transform vectorField using transformation tensor field.
Implements coordinateRotation.
Definition at line 249 of file cylindrical.C.
References Foam::T().
|
virtual |
Inverse transform vector using transformation tensor.
Implements coordinateRotation.
Definition at line 257 of file cylindrical.C.
References NotImplemented, and Vector< scalar >::zero.
|
virtual |
Inverse transform vector using transformation tensor for component.
Definition at line 265 of file cylindrical.C.
References Foam::T().
|
inlinevirtual |
Return if the rotation is uniform.
Reimplemented from coordinateRotation.
Definition at line 203 of file cylindrical.H.
|
virtual |
Transform tensor field using transformation tensorField.
Implements coordinateRotation.
Definition at line 275 of file cylindrical.C.
References Foam::abort(), Foam::FatalError, FatalErrorInFunction, Foam::T(), and tf.
|
virtual |
Transform tensor using transformation tensorField.
Implements coordinateRotation.
Definition at line 290 of file cylindrical.C.
References NotImplemented, and Tensor::zero.
|
virtual |
Transform tensor sub-field using transformation tensorField.
Implements coordinateRotation.
Definition at line 301 of file cylindrical.C.
References Foam::abort(), Foam::FatalError, FatalErrorInFunction, forAll, R, List::size(), and tf.
|
virtual |
Transform vectorField using transformation tensorField and return.
symmetrical tensorField
Implements coordinateRotation.
Definition at line 328 of file cylindrical.C.
References Foam::abort(), Foam::FatalError, FatalErrorInFunction, fld(), forAll, and R.
|
virtual |
Transform vector using transformation tensor and return.
symmetrical tensor (R & st & R.T())
Implements coordinateRotation.
Definition at line 352 of file cylindrical.C.
References NotImplemented, and SymmTensor< scalar >::zero.
|
virtual |
Write.
Implements coordinateRotation.
Definition at line 361 of file cylindrical.C.
References token::END_STATEMENT, Foam::nl, and Ostream::writeKeyword().
|
private |
AutoPtr to transformation tensor.
Definition at line 70 of file cylindrical.H.
Referenced by cylindrical::cylindrical(), and cylindrical::Tr().
|
private |
Origin of the coordinate system.
Definition at line 73 of file cylindrical.H.
|
private |
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.