Go to the documentation of this file.
60 modelType == coordinateSystem::typeName_()
61 || modelType == coordSystem::cartesian::typeName_()
81 const auto finder =
dict.csearchCompat
83 "rotation", {{
"coordinateRotation", -1806}},
115 spec_(new coordinateRotations::
identity()),
137 spec_(csys.spec_.clone()),
138 origin_(csys.origin_),
147 spec_(std::move(csys.spec_)),
148 origin_(std::move(csys.origin_)),
149 rot_(std::move(csys.rot_)),
150 name_(std::move(csys.name_)),
151 note_(std::move(csys.note_))
179 spec_(csys.
spec_.clone()),
302 return rotationsImpl(global);
311 return rotationsImpl(global);
317 const point& localCart
395 spec_.reset(std::move(crot));
420 os <<
"origin: " << origin_ <<
' ';
432 const bool subDict = !keyword.empty();
473 rotation(csys.
spec_.clone());
485 name_ = std::move(csys.
name_);
486 note_ = std::move(csys.
note_);
487 spec_ = std::move(csys.
spec_);
static autoPtr< coordinateRotation > New(const dictionary &dict)
Select constructed from dictionary.
string note_
An optional note describing the coordinate system.
static bool isCartesian(const word &modelType)
Is it cartesian?
A class for handling words, derived from Foam::string.
virtual void clear()
Reset origin and rotation to an identity coordinateSystem.
A class for managing temporary objects.
static constexpr const zero Zero
Global zero (0)
defineRunTimeSelectionTable(reactionRateFlameArea, dictionary)
void operator=(const coordinateSystem &csys)
Copy assignment.
static coordinateSystem dummy_
Dummy coordinate system for suppressed manipulation.
const word dictName("blockMeshDict")
virtual Ostream & beginBlock(const keyType &kw)
Write begin block group with the given name.
A coordinateRotation specified using global axes.
dimensionSet transform(const dimensionSet &ds)
Return the argument; transformations do not change the dimensions.
virtual const coordinateRotation & rotation() const
The rotation specification.
bool operator!=(const eddy &a, const eddy &b)
virtual const point & origin() const
Return origin.
Ostream & operator<<(Ostream &, const boundaryPatch &p)
Write boundaryPatch as dictionary entries (without surrounding braces)
const dimensionedScalar b
Wien displacement law constant: default SI units: [m.K].
User specification of a coordinate rotation.
word name(const complex &c)
Return string representation of complex.
const dictionary & subDict(const word &keyword, enum keyType::option matchOpt=keyType::REGEX) const
Find and return a sub-dictionary.
word name_
The name of the coordinate system (optional)
virtual tensor R() const =0
Calculate and return the rotation tensor.
virtual Ostream & endBlock()
Write end block group.
virtual bool check(const char *operation) const
Check IOstream status for given operation.
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.
virtual bool write(const token &tok)=0
Write token to stream or otherwise handle it.
autoPtr< coordinateRotation > spec_
User specification of the coordinate rotation.
virtual vector globalToLocal(const vector &global, bool translate) const
An identity coordinateRotation.
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
tensor rot_
The rotation tensor.
point origin_
The coordinate system origin.
coordinateSystem()
Construct null. This is an identity coordinateSystem.
fileName::Type type(const fileName &name, const bool followLink=true)
Return the file type: DIRECTORY or FILE, normally following symbolic links.
void assign(const dictionary &dict)
Assign from dictionary content.
A 1D vector of objects of type <T>, where the size of the vector is known and can be used for subscri...
labelList identity(const label len, label start=0)
Create identity map of the given length with (map[i] == i)
dimensionSet invTransform(const dimensionSet &ds)
Return the argument; transformations do not change the dimensions.
static const word null
An empty word.
Ostream & writeEntry(const keyType &key, const T &value)
Write a keyword/value entry.
virtual void write(Ostream &os) const
Write.
virtual vector localToGlobal(const vector &local, bool translate) const
A List with indirect addressing.
void assign(Field< Tout > &result, const Field< T1 > &a, const UnaryOp &op)
Populate a field as the result of a unary operation on an input.
point invTransformPoint(const point &global) const
Remove origin offset and inverse transform point.
virtual autoPtr< coordinateRotation > clone() const =0
Construct and return a clone.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
defineTypeNameAndDebug(combustionModel, 0)
point transformPoint(const point &localCart) const
Transform point and add origin offset.
virtual void writeEntry(const word &keyword, Ostream &os) const
Write dictionary entry.
static const Identity< scalar > I
static const SphericalTensor I
Base class for coordinate system specification, the default coordinate system type is cartesian .
A class representing the concept of 0 (zero) that can be used to avoid manipulating objects known to ...
virtual const tensor & R() const
Return const reference to the rotation tensor.