61 <<
"--> FOAM IOWarning :" <<
nl
62 <<
" Found [v1806] 'degrees' keyword in dictionary \""
63 <<
dict.relativeName() <<
"\" Ignored, now radians only." <<
nl
193 warnCompatDegrees(dict.subDict(dictName));
197 warnCompatDegrees(dict);
218 const scalar magAxis2(
mag(ax2));
221 if (magAxis2 < SMALL)
230 rotTensor.
col<0>(ax2);
231 rotTensor.
col<1>(ax1^ax2);
257 const label len =
local.size();
260 auto& result = tresult.ref();
262 for (label i=0; i<len; ++i)
295 const label len = global.
size();
301 auto& result = tresult.
ref();
303 for (label i=0; i<len; ++i)
Macros for easy insertion into run-time selection tables.
#define addToRunTimeSelectionTable(baseType, thisType, argNames)
Add to construction table with typeName as the key.
readOption
Enumeration defining read preferences.
Vector< Cmpt > col() const
Extract vector for given column: compile-time check of index.
void size(const label n)
Older name for setAddressableSize.
const Cmpt & x() const noexcept
Access to the vector x component.
const Cmpt & z() const noexcept
Access to the vector z component.
const Cmpt & y() const noexcept
Access to the vector y component.
Vector< Cmpt > & removeCollinear(const Vector< Cmpt > &unitVec)
Inplace removal of components that are collinear to the given unit vector.
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
A cylindrical coordinate system (r-theta-z). The coordinate system angle theta is always in radians.
virtual vector globalToLocal(const vector &global, bool translate) const
From global Cartesian system to the local coordinate system with optional translation for the origin.
virtual vector localToGlobal(const vector &local, bool translate) const
From local coordinate system to the global Cartesian system with optional translation for the origin.
static const cylindrical null
Global (identity) cylindrical coordinate system.
virtual const tensor & R() const
Position-dependent rotation tensors at multiple points.
cylindrical()=default
Default construct. Identity coordinate system.
User specification of a coordinate rotation.
Base class for coordinate system specification, the default coordinate system type is cartesian .
virtual const word & name() const
Return the name.
coordinateSystem(std::nullptr_t)
Construct null, without allocating a coordinateRotation specification.
virtual vector globalToLocal(const vector &global, bool translate) const
From global Cartesian system to the local coordinate system with optional translation for the origin.
virtual vector localToGlobal(const vector &local, bool translate) const
From local coordinate system to the global Cartesian system with optional translation for the origin.
tensor rot_
The rotation tensor.
virtual const point & origin() const
Return origin.
point origin_
The coordinate system origin.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
static bool master(const int communicator=-1)
Like Pstream::master but with a Pstream::parRun guard in case Pstream has not yet been initialised.
A class for managing temporary objects.
static tmp< T > New(Args &&... args)
Construct tmp with forwarding arguments.
T & ref() const
Return non-const reference to the contents of a non-null managed pointer.
A class for handling words, derived from Foam::string.
#define defineTypeName(Type)
Define the typeName.
const word dictName("faMeshDefinition")
Namespace for coordinate systems.
Namespace for coordinate system rotations.
static vector toCartesian(const vector &v)
Convert to Cartesian (from Cylindrical).
dimensionedScalar sin(const dimensionedScalar &ds)
static void warnCompatDegrees(const Foam::dictionary &dict)
dimensionedScalar atan2(const dimensionedScalar &x, const dimensionedScalar &y)
dimensioned< typename typeOfMag< Type >::type > mag(const dimensioned< Type > &dt)
dimensionedScalar hypot(const dimensionedScalar &x, const dimensionedScalar &y)
Field< vector > vectorField
Specialisation of Field<T> for vector.
vector point
Point is a vector.
static vector fromCartesian(const vector &v)
Convert from Cartesian (to Cylindrical).
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for expressions::valueTypeCode::INVALID.
dimensionedScalar cos(const dimensionedScalar &ds)
constexpr char nl
The newline '\n' character (0x0a).