Go to the documentation of this file.
61 <<
"--> FOAM IOWarning :" <<
nl
62 <<
" Found [v1806] 'degrees' keyword in dictionary \""
184 if (
dict.getOrDefault(
"degrees",
false))
195 if (
dict.getOrDefault(
"degrees",
false))
236 vector ax2(global - origin_);
239 ax2 -= ((ax1 & ax2) * ax1);
241 const scalar magAxis2(
mag(ax2));
244 if (magAxis2 < SMALL)
253 rotTensor.
col<0>(ax2);
254 rotTensor.
col<1>(ax1^ax2);
280 const label len = local.size();
283 auto& result = tresult.ref();
285 for (label i=0; i<len; ++i)
318 const label len = global.size();
324 auto& result = tresult.
ref();
326 for (label i=0; i<len; ++i)
const Cmpt & x() const
Access to the vector x component.
static vector fromCartesian(const vector &v)
Convert from Cartesian (to Cylindrical)
A class for handling words, derived from Foam::string.
A class for managing temporary objects.
A special purpose coordinateRotation that is generally for use in combination with a cylindricalCS wh...
static const cylindrical null
Global (identity) cylindrical coordinate system.
dimensionedScalar sin(const dimensionedScalar &ds)
dimensionedScalar atan2(const dimensionedScalar &x, const dimensionedScalar &y)
const word dictName("faMeshDefinition")
Ostream & endl(Ostream &os)
Add newline and flush stream.
const Cmpt & z() const
Access to the vector z component.
dimensionedScalar hypot(const dimensionedScalar &x, const dimensionedScalar &y)
static void warnCompatDegrees(const Foam::dictionary &dict)
cylindrical()
Default construct. This is an identity coordinate system.
fileName relativeName(const bool caseTag=false) const
The dictionary name relative to the case.
User specification of a coordinate rotation.
virtual vector localToGlobal(const vector &local, bool translate) const
virtual vector globalToLocal(const vector &global, bool translate) const
A cylindrical coordinate system (r-theta-z). The coordinate system angle theta is always in radians.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Macros for easy insertion into run-time selection tables.
virtual vector globalToLocal(const vector &global, bool translate) const
Vector< scalar > vector
A scalar version of the templated Vector.
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
const Cmpt & y() const
Access to the vector y component.
defineTypeName(cartesian)
Templated 3D Vector derived from VectorSpace adding construction from 3 components,...
dimensioned< typename typeOfMag< Type >::type > mag(const dimensioned< Type > &dt)
static bool master(const label communicator=-1)
static tmp< T > New(Args &&... args)
Construct tmp of T with forwarding arguments.
static const word null
An empty word.
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for INVALID.
virtual vector localToGlobal(const vector &local, bool translate) const
T getOrDefault(const word &keyword, const T &deflt, enum keyType::option matchOpt=keyType::REGEX) const
Vector< Cmpt > col() const
Extract vector for given column.
addToRunTimeSelectionTable(coordinateSystem, cartesian, dictionary)
static vector toCartesian(const vector &v)
Convert to Cartesian (from Cylindrical)
Base class for coordinate system specification, the default coordinate system type is cartesian .
virtual const tensor & R() const
Return const reference to the rotation tensor.
dimensionedScalar cos(const dimensionedScalar &ds)