37namespace 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");
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.
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 writeEntry(const word &keyword, Ostream &os) const
Write dictionary entry.
virtual void clear()
Reset specification.
virtual const coordinateRotation & rotation() const
The rotation specification.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
virtual bool write()
Write the output fields.
A class for handling words, derived from Foam::string.
#define defineTypeName(Type)
Define the typeName.
OBJstream os(runTime.globalPath()/outputName)
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)