34 namespace coordinateSystems
44 Foam::vector Foam::coordinateSystems::cylindrical::localToGlobal
50 const scalar theta = local.
y();
54 vector(local.x()*
cos(theta), local.x()*
sin(theta), local.z()),
77 Foam::vector Foam::coordinateSystems::cylindrical::globalToLocal
91 atan2(lc.y(), lc.x()),
108 tmp<vectorField> tresult(
new vectorField(lc.size()));
Macros for easy insertion into run-time selection tables.
void replace(const direction, const UList< cmptType > &)
Replace a component field of the field.
Abstract base class for coordinate rotation.
Base class for other coordinate system specifications.
virtual vector globalToLocal(const vector &, bool translate) const
Convert from global Cartesian system to the local coordinate system.
virtual vector localToGlobal(const vector &, bool translate) const
Convert from local coordinate system to the global Cartesian system.
Cylindrical coordinate system.
cylindrical(const word &name, const point &origin, const coordinateRotation &)
Construct from origin and rotation.
virtual ~cylindrical()
Destructor.
A list of keyword definitions, which are a keyword followed by any number of values (e....
A class for managing temporary objects.
A class for handling words, derived from string.
defineTypeNameAndDebug(cartesian, 0)
addToRunTimeSelectionTable(coordinateSystem, cartesian, dictionary)
dimensionedSymmTensor sqr(const dimensionedVector &dv)
word name(const bool)
Return a word representation of a bool.
dimensionedScalar sin(const dimensionedScalar &ds)
Field< scalar > scalarField
Specialisation of Field<T> for scalar.
dimensionedScalar atan2(const dimensionedScalar &x, const dimensionedScalar &y)
Vector< scalar > vector
A scalar version of the templated Vector.
dimensionedScalar sqrt(const dimensionedScalar &ds)
Field< vector > vectorField
Specialisation of Field<T> for vector.
dimensionedScalar cos(const dimensionedScalar &ds)