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),
143 degrees_(
dict.getOrDefault(
"degrees", true))
164 os <<
"starcd-angles(" << (degrees_ ?
"deg" :
"rad") <<
"): " << angles_;
174 os.beginBlock(keyword);
176 os.writeEntry(
"type",
type());
177 os.writeEntry(
"angles", angles_);
180 os.writeEntry(
"degrees",
"false");
A templated (3 x 3) tensor of objects of <T> derived from MatrixSpace.
A class for handling words, derived from Foam::string.
static constexpr const zero Zero
dimensionedScalar sin(const dimensionedScalar &ds)
Unit conversion functions.
const Cmpt & component(const direction) const
virtual void writeEntry(const word &keyword, Ostream &os) const
A coordinateRotation defined by the STAR-CD convention.
User specification of a coordinate rotation.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
OBJstream os(runTime.globalPath()/outputName)
Macros for easy insertion into run-time selection tables.
addNamedToRunTimeSelectionTable(coordinateRotation, axes, dictionary, axes)
PtrList< volScalarField > & Y
constexpr scalar degToRad(const scalar deg) noexcept
virtual void write(Ostream &os) const
fileName::Type type(const fileName &name, const bool followLink=true)
List< ReturnType > get(const UPtrList< T > &list, const AccessOp &aop)
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
Tensor< scalar > tensor
Tensor of scalars, i.e. Tensor<scalar>.
static tensor rotation(const vector &angles, bool degrees)
dimensionedScalar cos(const dimensionedScalar &ds)