A local coordinate rotation. More...


Public Member Functions | |
| TypeName ("cylindrical") | |
| Runtime type information. More... | |
| cylindrical (const vector &axis, const point &origin, const UList< vector > &points) | |
| Construct from components for list of points. More... | |
| cylindrical (const dictionary &) | |
| Construct from dictionary. More... | |
| cylindrical (const dictionary &, const UList< vector > &points) | |
| Construct from dictionary. More... | |
| virtual autoPtr< coordinateRotation > | clone () const |
| Return clone. More... | |
| virtual | ~cylindrical () |
| Destructor. More... | |
| virtual void | updatePoints (const UList< vector > &points) |
| Update the rotation for a list of points. More... | |
| virtual const tensor & | R () const |
| Return local-to-global 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 vector | axis () const |
| Return local Cartesian z-axis in global coordinates. More... | |
| virtual bool | uniform () const |
| Return if the rotation is uniform. More... | |
| virtual vector | transform (const vector &v) const |
| Transform vector using 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 label cmptI) const |
| Transform vector using transformation tensor for component. More... | |
| virtual vector | invTransform (const vector &v) const |
| Inverse transform vector using transformation tensor. More... | |
| virtual tmp< vectorField > | invTransform (const vectorField &vf) const |
| Inverse transform vectorField using transformation tensor field. More... | |
| virtual vector | invTransform (const vector &v, const label cmptI) const |
| Inverse transform vector using transformation tensor for component. More... | |
| virtual tensor | transformTensor (const tensor &t) const |
| Transform tensor using transformation tensorField. More... | |
| virtual tmp< tensorField > | transformTensor (const tensorField &tf) const |
| Transform tensor field using transformation tensorField. More... | |
| virtual symmTensor | transformVector (const vector &v) const |
| Transform vector using transformation tensor and return. More... | |
| virtual tmp< symmTensorField > | transformVector (const vectorField &vf) const |
| Transform vectorField using transformation tensorField 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, dictionary,(const dictionary &dict),(dict)) | |
| declareRunTimeSelectionTable (autoPtr, coordinateRotation, points,(const dictionary &dict, const UList< vector > &points),(dict, points)) | |
| virtual | ~coordinateRotation () |
| Destructor. More... | |
Additional Inherited Members | |
Static Public Member Functions inherited from coordinateRotation | |
| 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 inherited from coordinateRotation | |
| symmTensor | transformPrincipal (const tensor &, const vector &) const |
| Transform principal. More... | |
A local coordinate rotation.
The rotational field can be created in two ways:
dir and axis) where dir = point - origin and axis is the rotation axis. Per each point an axesRotation type of rotation is created (cylindrical coordinates). For example: cylindrical
{
type localAxes;
axis (0 0 1);
}Definition at line 65 of file cylindrical.H.
| cylindrical | ( | const vector & | axis, |
| const point & | origin, | ||
| const UList< vector > & | points | ||
| ) |
Construct from components for list of points.
Definition at line 80 of file cylindrical.C.
Referenced by cylindrical::clone(), and cylindrical::cylindrical().

| cylindrical | ( | const dictionary & | dict | ) |
Construct from dictionary.
Definition at line 94 of file cylindrical.C.
References cylindrical::cylindrical().

| cylindrical | ( | const dictionary & | dict, |
| const UList< vector > & | points | ||
| ) |
Construct from dictionary.
Definition at line 108 of file cylindrical.C.
|
inlinevirtual |
Destructor.
Definition at line 120 of file cylindrical.H.
References cylindrical::updatePoints().

| TypeName | ( | "cylindrical" | ) |
Runtime type information.
|
inlinevirtual |
Return clone.
Implements coordinateRotation.
Definition at line 113 of file cylindrical.H.
References cylindrical::cylindrical().

Update the rotation for a list of points.
Implements coordinateRotation.
Definition at line 121 of file cylindrical.C.
References forAll, cylindrical::R(), UList< T >::size(), and cylindrical::transform().
Referenced by cylindrical::~cylindrical().


|
inlinevirtual |
Return local-to-global transformation tensor.
Implements coordinateRotation.
Definition at line 130 of file cylindrical.H.
References NotImplemented, and VectorSpace< Tensor< scalar >, scalar, Mrows *Ncols >::zero.
Referenced by cylindrical::transformVector(), and cylindrical::updatePoints().

|
inlinevirtual |
Return local Cartesian x-axis in global coordinates.
Implements coordinateRotation.
Definition at line 137 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 144 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 151 of file cylindrical.H.
|
inlinevirtual |
Return local Cartesian z-axis in global coordinates.
Definition at line 157 of file cylindrical.H.
Referenced by cylindrical::write().

Return if the rotation is uniform.
Reimplemented from coordinateRotation.
Definition at line 163 of file cylindrical.H.
References cylindrical::invTransform(), tf, cylindrical::transform(), cylindrical::transformTensor(), cylindrical::transformVector(), and cylindrical::write().

|
virtual |
Transform vector using transformation tensor.
Implements coordinateRotation.
Definition at line 157 of file cylindrical.C.
References NotImplemented, and Foam::Zero.
Referenced by cylindrical::uniform(), and cylindrical::updatePoints().

|
virtual |
Transform vectorField using transformation tensor field.
Implements coordinateRotation.
Definition at line 142 of file cylindrical.C.
References Foam::abort(), Foam::FatalError, FatalErrorInFunction, and List< T >::size().

|
virtual |
Transform vector using transformation tensor for component.
Definition at line 165 of file cylindrical.C.
References cylindrical::invTransform().

|
virtual |
Inverse transform vector using transformation tensor.
Implements coordinateRotation.
Definition at line 190 of file cylindrical.C.
References NotImplemented, and Foam::Zero.
Referenced by cylindrical::transform(), and cylindrical::uniform().

|
virtual |
Inverse transform vectorField using transformation tensor field.
Implements coordinateRotation.
Definition at line 175 of file cylindrical.C.
References Foam::abort(), Foam::FatalError, FatalErrorInFunction, List< T >::size(), and Foam::T().

|
virtual |
Inverse transform vector using transformation tensor for component.
Definition at line 198 of file cylindrical.C.
References Foam::T(), and cylindrical::transformTensor().

|
virtual |
Transform tensor using transformation tensorField.
Implements coordinateRotation.
Definition at line 223 of file cylindrical.C.
References NotImplemented, cylindrical::transformVector(), and Foam::Zero.
Referenced by cylindrical::invTransform(), cylindrical::transformTensor(), and cylindrical::uniform().


|
virtual |
Transform tensor field using transformation tensorField.
Implements coordinateRotation.
Definition at line 208 of file cylindrical.C.
References Foam::abort(), Foam::FatalError, FatalErrorInFunction, List< T >::size(), Foam::T(), and cylindrical::transformTensor().

|
virtual |
Transform vector using transformation tensor and return.
symmetrical tensor
Implements coordinateRotation.
Definition at line 257 of file cylindrical.C.
References NotImplemented, and Foam::Zero.
Referenced by cylindrical::transformTensor(), cylindrical::transformVector(), and cylindrical::uniform().

|
virtual |
Transform vectorField using transformation tensorField and return.
symmetrical tensorField
Implements coordinateRotation.
Definition at line 233 of file cylindrical.C.
References Foam::abort(), Foam::FatalError, FatalErrorInFunction, fld(), forAll, cylindrical::R(), tmp< T >::ref(), List< T >::size(), coordinateRotation::transformPrincipal(), and cylindrical::transformVector().

|
virtual |
Write.
Implements coordinateRotation.
Definition at line 266 of file cylindrical.C.
References cylindrical::axis(), and Foam::writeEntry().
Referenced by cylindrical::uniform().

