37 namespace coordinateRotations
91 angles_(crot.angles_),
92 degrees_(crot.degrees_)
98 const vector& rotZrotXrotY,
103 angles_(rotZrotXrotY),
117 angles_(rotZ, rotX, rotY),
126 degrees_(
dict.getOrDefault(
"degrees", true))
147 os <<
"starcd-angles(" << (degrees_ ?
"deg" :
"rad") <<
"): " << angles_;
157 os.beginBlock(keyword);
159 os.writeEntry(
"type",
type());
160 os.writeEntry(
"angles", angles_);
163 os.writeEntry(
"degrees",
"false");
List< ReturnType > get(const UPtrList< T > &list, const AccessOp &aop)
List of values generated by applying the access operation to each list item.
User specification of a coordinate rotation.
virtual tensor R() const
The rotation tensor calculated for the specified STARCD angles.
A list of keyword definitions, which are a keyword followed by a number of values (eg...
virtual void write(Ostream &os) const
Write information.
starcd()
Default construct - an identity transform.
Macros for easy insertion into run-time selection tables.
fileName::Type type(const fileName &name, const bool followLink=true)
Return the file type: DIRECTORY or FILE, normally following symbolic links.
static tensor rotation(const vector &angles, bool degrees)
Rotation tensor calculated for the specified STARCD angles interpreted as rotate-Z, rotate-X, rotate-Y.
A class for handling words, derived from Foam::string.
addAliasToRunTimeSelectionTable(coordinateRotation, axes, dictionary, axes, axesRotation, 1806)
An Ostream is an abstract base class for all output systems (streams, files, token lists...
A Vector of values with scalar precision, where scalar is float/double depending on the compilation f...
OBJstream os(runTime.globalPath()/outputName)
virtual void clear()
Reset specification.
A coordinateRotation defined by the STAR-CD convention.
virtual void writeEntry(const word &keyword, Ostream &os) const
Write dictionary entry.
static tensor rotation(const vector &angles, bool degrees=false)
Rotation tensor calculated for the intrinsic Euler angles in z-x-z order.
addNamedToRunTimeSelectionTable(coordinateRotation, axes, dictionary, axes)
Tensor of scalars, i.e. Tensor<scalar>.
static constexpr const zero Zero
Global zero (0)