Go to the documentation of this file.
61 <<
"--> FOAM IOWarning :" <<
nl
62 <<
" Found [v1806] 'degrees' keyword in dictionary \""
63 <<
dict.
name().c_str() <<
"\" Ignored, now radians only." <<
nl
178 if (
dict.getOrDefault(
"degrees",
false))
189 if (
dict.getOrDefault(
"degrees",
false))
230 vector ax2(global - origin_);
233 ax2 -= ((ax1 & ax2) * ax1);
235 const scalar magAxis2(
mag(ax2));
238 if (magAxis2 < SMALL)
247 rotTensor.
col<0>(ax2);
248 rotTensor.
col<1>(ax1^ax2);
274 const label len = local.size();
277 auto& result = tresult.ref();
279 for (label i=0; i<len; ++i)
312 const label len = global.size();
318 auto& result = tresult.
ref();
320 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)
static bool & parRun()
Test if this a parallel run, or allow modify access.
const word dictName("blockMeshDict")
static bool master(const label communicator=worldComm)
Am I the master process.
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)
const fileName & name() const
The dictionary name.
cylindrical()
Construct null (identity coordinateSystem)
User specification of a coordinate rotation.
word name(const complex &c)
Return string representation of complex.
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 tmp< T > New(Args &&... args)
Construct tmp of T with forwarding arguments.
static const word null
An empty word.
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)
cylindrical(const point &origin, const vector &axis, const vector &dirn)
Construct from origin and two axes.
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)