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");
Macros for easy insertion into run-time selection tables.
#define addAliasToRunTimeSelectionTable(baseType, thisType, argNames, lookup, other, ver)
Add lookup alias for runTime selection.
#define addNamedToRunTimeSelectionTable(baseType, thisType, argNames, lookupName)
Add to construction table with 'lookupName' as the key.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
User specification of a coordinate rotation.
static tensor rotation(const vector &angles, bool degrees=false)
Rotation tensor calculated for the intrinsic Euler angles in z-x-z order.
A coordinateRotation defined by the STAR-CD convention.
starcd()
Default construct - an identity transform.
virtual tensor R() const
The rotation tensor calculated for the specified STARCD angles.
virtual void write(Ostream &os) const
Write information.
virtual void writeEntry(const word &keyword, Ostream &os) const
Write dictionary entry.
virtual void clear()
Reset specification.
static tensor rotation(const vector &angles, bool degrees)
Rotation tensor calculated for the specified STARCD angles interpreted as rotate-Z,...
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
A class for handling words, derived from Foam::string.
#define defineTypeName(Type)
Define the typeName.
OBJstream os(runTime.globalPath()/outputName)
Namespace for coordinate system rotations.
fileName::Type type(const fileName &name, const bool followLink=true)
Return the file type: DIRECTORY or FILE, normally following symbolic links.
static constexpr const zero Zero
Global zero (0).