Cylindrical coordinate system. More...
#include <meshTools/cylindricalCS.H>
Cylindrical coordinate system.
Definition at line 50 of file cylindricalCS.H.
Public Member Functions | |
TypeName ("cylindrical") | |
Runtime type information.
| |
cylindricalCS (const bool inDegrees=true) | |
Construct null.
| |
cylindricalCS (const coordinateSystem &, const bool inDegrees=true) | |
Construct copy.
| |
cylindricalCS (const word &name, const coordinateSystem &, const bool inDegrees=true) | |
Construct copy with a different name.
| |
cylindricalCS (const word &name, const point &origin, const coordinateRotation &, const bool inDegrees=true) | |
Construct from origin and rotation.
| |
cylindricalCS (const word &name, const point &origin, const vector &axis, const vector &dirn, const bool inDegrees=true) | |
Construct from origin and 2 axes.
| |
cylindricalCS (const word &name, const dictionary &) | |
Construct from dictionary.
| |
bool | inDegrees () const |
Are angles in degrees?
| |
bool & | inDegrees () |
Non-const access to inDegrees.
| |
Protected Member Functions | |
virtual vector | localToGlobal (const vector &, bool translate) const |
Convert from local coordinate system to the global Cartesian system.
| |
virtual tmp< vectorField > | localToGlobal (const vectorField &, bool translate) const |
Convert from local coordinate system to the global Cartesian system.
| |
virtual vector | globalToLocal (const vector &, bool translate) const |
Convert from global Cartesian system to the local coordinate system.
| |
virtual tmp< vectorField > | globalToLocal (const vectorField &, bool translate) const |
Convert from global Cartesian system to the local coordinate system.
|
cylindricalCS | ( | const bool | inDegrees = true
) |
Construct null.
Definition at line 45 of file cylindricalCS.C.
cylindricalCS | ( | const coordinateSystem & | cs, |
const bool | inDegrees = true
|
||
) |
Construct copy.
Definition at line 53 of file cylindricalCS.C.
cylindricalCS | ( | const word & | name, |
const coordinateSystem & | cs, | ||
const bool | inDegrees = true
|
||
) |
Construct copy with a different name.
Definition at line 64 of file cylindricalCS.C.
cylindricalCS | ( | const word & | name, |
const point & | origin, | ||
const coordinateRotation & | cr, | ||
const bool | inDegrees = true
|
||
) |
Construct from origin and rotation.
Definition at line 76 of file cylindricalCS.C.
cylindricalCS | ( | const word & | name, |
const point & | origin, | ||
const vector & | axis, | ||
const vector & | dirn, | ||
const bool | inDegrees = true
|
||
) |
Construct from origin and 2 axes.
Definition at line 89 of file cylindricalCS.C.
cylindricalCS | ( | const word & | name, |
const dictionary & | dict | ||
) |
Construct from dictionary.
Definition at line 103 of file cylindricalCS.C.
Foam::vector localToGlobal | ( | const vector & | local, |
bool | translate | ||
) | const [protected, virtual]
|
Convert from local coordinate system to the global Cartesian system.
with optional translation for the origin
Reimplemented from coordinateSystem.
Definition at line 128 of file cylindricalCS.C.
References Foam::cos(), coordinateSystem::localToGlobal(), Foam::mathematicalConstant::pi(), Foam::sin(), Vector< Cmpt >::x(), Vector< Cmpt >::y(), and Vector< Cmpt >::z().
Foam::tmp< Foam::vectorField > localToGlobal | ( | const vectorField & | local, |
bool | translate | ||
) | const [protected, virtual]
|
Convert from local coordinate system to the global Cartesian system.
with optional translation for the origin
Reimplemented from coordinateSystem.
Definition at line 147 of file cylindricalCS.C.
References Field< Type >::component(), Foam::cos(), coordinateSystem::localToGlobal(), Foam::mathematicalConstant::pi(), Field< Type >::replace(), Foam::sin(), List< T >::size(), Vector< Cmpt >::X, Vector< Cmpt >::Y, and Vector< Cmpt >::Z.
Foam::vector globalToLocal | ( | const vector & | global, |
bool | translate | ||
) | const [protected, virtual]
|
Convert from global Cartesian system to the local coordinate system.
with optional translation for the origin
Reimplemented from coordinateSystem.
Definition at line 169 of file cylindricalCS.C.
References Foam::atan2(), coordinateSystem::globalToLocal(), Foam::mathematicalConstant::pi(), Foam::sqr(), Foam::sqrt(), Vector< Cmpt >::x(), Vector< Cmpt >::y(), and Vector< Cmpt >::z().
Foam::tmp< Foam::vectorField > globalToLocal | ( | const vectorField & | global, |
bool | translate | ||
) | const [protected, virtual]
|
Convert from global Cartesian system to the local coordinate system.
with optional translation for the origin
Reimplemented from coordinateSystem.
Definition at line 190 of file cylindricalCS.C.
References Foam::atan2(), Field< Type >::component(), coordinateSystem::globalToLocal(), Foam::mathematicalConstant::pi(), Field< Type >::replace(), List< T >::size(), Foam::sqr(), Foam::sqrt(), Vector< Cmpt >::X, Vector< Cmpt >::Y, and Vector< Cmpt >::Z.
TypeName | ( | "cylindrical" | ) |
Runtime type information.
bool inDegrees | ( | ) | const |
Are angles in degrees?
Definition at line 115 of file cylindricalCS.C.
bool & inDegrees | ( | ) |
Non-const access to inDegrees.
Definition at line 121 of file cylindricalCS.C.