61 <<
"--> FOAM IOWarning :" <<
nl 62 <<
" Found [v1806] 'degrees' keyword in dictionary \"" 79 return vector(v.x()*
cos(v.y()), v.x()*
sin(v.y()), v.z());
212 const vector ax1 = rotTensor.col<2>();
214 vector ax2(global - origin_);
216 ax2.removeCollinear(ax1);
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)
virtual vector globalToLocal(const vector &global, bool translate) const
From global Cartesian system to the local coordinate system with optional translation for the origin...
Base class for coordinate system specification, the default coordinate system type is cartesian ...
User specification of a coordinate rotation.
void size(const label n)
Older name for setAddressableSize.
static const cylindrical null
Global (identity) cylindrical coordinate system.
A cylindrical coordinate system (r-theta-z). The coordinate system angle theta is always in radians...
dimensioned< typename typeOfMag< Type >::type > mag(const dimensioned< Type > &dt)
A list of keyword definitions, which are a keyword followed by a number of values (eg...
T & ref() const
Return non-const reference to the contents of a non-null managed pointer.
virtual vector localToGlobal(const vector &local, bool translate) const
From local coordinate system to the global Cartesian system with optional translation for the origin...
constexpr char nl
The newline '\n' character (0x0a)
const word dictName("faMeshDefinition")
Ostream & endl(Ostream &os)
Add newline and flush stream.
cylindrical()=default
Default construct. Identity coordinate system.
static vector toCartesian(const vector &v)
Convert to Cartesian (from Cylindrical)
Macros for easy insertion into run-time selection tables.
bool found(const word &keyword, enum keyType::option matchOpt=keyType::REGEX) const
Find an entry (const access) with the given keyword.
virtual const tensor & R() const
Return const reference to the rotation tensor.
virtual vector globalToLocal(const vector &global, bool translate) const
From global Cartesian system to the local coordinate system with optional translation for the origin...
dimensionedScalar cos(const dimensionedScalar &ds)
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for expressions::valueTypeCode::INVALID.
static bool master(const label communicator=-1)
Like Pstream::master but with a Pstream::parRun guard in case Pstream has not yet been initialised...
A class for handling words, derived from Foam::string.
static tmp< T > New(Args &&... args)
Construct tmp with forwarding arguments.
virtual vector localToGlobal(const vector &local, bool translate) const
From local coordinate system to the global Cartesian system with optional translation for the origin...
dimensionedScalar sin(const dimensionedScalar &ds)
A Vector of values with scalar precision, where scalar is float/double depending on the compilation f...
dimensionedScalar atan2(const dimensionedScalar &x, const dimensionedScalar &y)
fileName relativeName(const bool caseTag=false) const
The dictionary name relative to the case.
static vector fromCartesian(const vector &v)
Convert from Cartesian (to Cylindrical)
static void warnCompatDegrees(const Foam::dictionary &dict)
Pointer management similar to std::unique_ptr, with some additional methods and type checking...
defineTypeName(cartesian)
A class for managing temporary objects.
addToRunTimeSelectionTable(coordinateSystem, cartesian, dictionary)
Tensor of scalars, i.e. Tensor<scalar>.
dimensionedScalar hypot(const dimensionedScalar &x, const dimensionedScalar &y)
readOption
Enumeration defining read preferences.