Go to the documentation of this file.
37 namespace coordinateRotations
81 const scalar cx =
cos(
x);
const scalar sx =
sin(
x);
82 const scalar cy =
cos(
y);
const scalar sy =
sin(
y);
83 const scalar cz =
cos(z);
const scalar sz =
sin(z);
88 cy*cz - sx*sy*sz, -cx*sz, sx*cy*sz + sy*cz,
89 cy*sz + sx*sy*cz, cx*cz, sy*sz - sx*cy*cz,
108 angles_(crot.angles_),
109 degrees_(crot.degrees_)
115 const vector& rotZrotXrotY,
120 angles_(rotZrotXrotY),
134 angles_(rotZ, rotX, rotY),
142 angles_(
dict.getCompat<
vector>(
"angles", {{
"rotation", 1806}})),
143 degrees_(
dict.getOrDefault(
"degrees",
true))
164 os <<
"starcd-angles(" << (degrees_ ?
"deg" :
"rad") <<
"): " << angles_;
const Cmpt & component(const direction) const
A class for handling words, derived from Foam::string.
static constexpr const zero Zero
Global zero (0)
dimensionedScalar sin(const dimensionedScalar &ds)
virtual tensor R() const
The rotation tensor calculated for the specified STARCD angles.
Unit conversion functions.
virtual Ostream & beginBlock(const keyType &kw)
Write begin block group with the given name.
virtual void clear()
Reset specification.
virtual void writeEntry(const word &keyword, Ostream &os) const
Write dictionary entry.
A coordinateRotation defined by the STAR-CD convention.
User specification of a coordinate rotation.
virtual Ostream & endBlock()
Write end block group.
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.
addNamedToRunTimeSelectionTable(coordinateRotation, axes, dictionary, axes)
PtrList< volScalarField > & Y
constexpr scalar degToRad(const scalar deg) noexcept
Conversion from degrees to radians.
virtual void write(Ostream &os) const
Write information.
fileName::Type type(const fileName &name, const bool followLink=true)
Return the file type: DIRECTORY or FILE, normally following symbolic links.
Ostream & writeEntry(const keyType &key, const T &value)
Write a keyword/value entry.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
starcd()
Construct null - an identity transform.
Tensor< scalar > tensor
Tensor of scalars, i.e. Tensor<scalar>.
static tensor rotation(const vector &angles, bool degrees)
dimensionedScalar cos(const dimensionedScalar &ds)