Go to the documentation of this file.
38 namespace coordinateRotations
53 void Foam::coordinateRotations::axisAngle::checkSpec()
55 if (
mag(angle_) < VSMALL ||
mag(axis_) < SMALL)
71 if (
mag(angle) < VSMALL ||
mag(axis) < SMALL)
96 degrees_(crot.degrees_)
140 dict.getOrDefault(
"degrees", true)
156 return rotation(axis_, angle_, degrees_);
162 os <<
"rotation axis: " << axis_
163 <<
" angle(" << (degrees_ ?
"deg" :
"rad") <<
"): " << angle_;
173 os.beginBlock(keyword);
175 os.writeEntry(
"type",
type());
176 os.writeEntry(
"axis", axis_);
177 os.writeEntry(
"angle", angle_);
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
virtual void writeEntry(const word &keyword, Ostream &os) const
addToRunTimeSelectionTable(coordinateRotation, axisAngle, dictionary)
A coordinateRotation specified by a rotation axis and a rotation angle about that axis.
Unit conversion functions.
Quaternion class used to perform rotations in 3D space.
static tensor rotation(const vector &axis, const scalar angle, bool degrees=false)
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)
virtual void write(Ostream &os) const
Macros for easy insertion into run-time selection tables.
Vector< scalar > vector
A scalar version of the templated Vector.
constexpr scalar degToRad(const scalar deg) noexcept
dimensioned< typename typeOfMag< Type >::type > mag(const dimensioned< Type > &dt)
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,...
static const SphericalTensor I