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 keywords followed by any number of values (e.g. words and numbers) or sub-dictionaries.
A class for managing temporary objects.
A class for handling words, derived from string.
defineTypeNameAndDebug(cartesian, 0)
addToRunTimeSelectionTable(coordinateSystem, cartesian, dictionary)
dimensionedScalar sin(const dimensionedScalar &ds)
Field< scalar > scalarField
Specialisation of Field<T> for scalar.
tmp< DimensionedField< typename outerProduct< Type, Type >::type, GeoMesh, Field >> sqr(const DimensionedField< Type, GeoMesh, PrimitiveField > &df)
Vector< scalar > vector
A scalar version of the templated Vector.
Field< vector > vectorField
Specialisation of Field<T> for vector.
word name(const LagrangianState state)
Return a string representation of a Lagrangian state enumeration.
tmp< DimensionedField< scalar, GeoMesh, Field > > atan2(const DimensionedField< scalar, GeoMesh, PrimitiveField1 > &dsf1, const DimensionedField< scalar, GeoMesh, PrimitiveField2 > &dsf2)
void sqrt(LagrangianPatchField< scalar > &f, const LagrangianPatchField< scalar > &f1)
dimensionedScalar cos(const dimensionedScalar &ds)