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