60 R_(const_cast<coordinateRotation*>(&cs.
R()))
74 R_(const_cast<coordinateRotation*>(&cr))
133 if (entryPtr && !entryPtr->
isDict())
138 const label index = lst.findIndex(key);
143 <<
"Using global coordinate system: " 144 << key <<
"=" << index <<
endl;
150 <<
"could not find coordinate system: " << key <<
nl 151 <<
"available coordinate systems: " << lst.toc() <<
nl <<
nl 157 operator=(lst[index]);
191 dict.
add(
"name", name_);
194 if (!ignoreType &&
type() != typeName_())
202 dict.
add(
"note", note_);
205 dict.
add(
"origin", origin_);
206 dict.
add(
"e1", R_->e1());
207 dict.
add(
"e3", R_->e3());
221 return (R_->transform(local)) + origin_;
225 return R_->transform(local);
238 return (R_->transform(local)) + origin_;
242 return R_->transform(local);
255 return R_->invTransform(global - origin_);
259 return R_->invTransform(global);
272 return R_->invTransform(global - origin_);
276 return R_->invTransform(global);
327 rhs.
lookup(
"origin") >> origin_;
342 Pout<<
"coordinateSystem::operator=" 344 "const dictionary&, " 345 "const objectRegistry&" 347 <<
"assign from " << rhs <<
endl;
350 rhs.
lookup(
"origin") >> origin_;
370 || a.
R().
R() != b.
R().
R()
371 || a.type() != b.type()
381 os.
check(
"Ostream& operator<<(Ostream&, const coordinateSystem&");
Base class for other coordinate system specifications.
A class for handling keywords in dictionaries.
Abstract base class for coordinate rotation.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
Ostream & indent(Ostream &os)
Indent stream.
const entry * lookupEntryPtr(const word &, bool recursive, bool patternMatch) const
Find and return an entry data stream pointer if present.
errorManipArg< error, int > exit(error &err, const int errNo=1)
A list of keyword definitions, which are a keyword followed by any number of values (e...
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
virtual bool check(const char *operation) const
Check IOstream status for given operation.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)...
Provides a centralized coordinateSystem collection.
Ostream & endl(Ostream &os)
Add newline and flush stream.
const point & origin() const
Return origin.
virtual ~coordinateSystem()
Destructor.
virtual vector localToGlobal(const vector &, bool translate) const
Convert from local coordinate system to the global Cartesian system.
Macros for easy insertion into run-time selection tables.
virtual void clear()
Reset origin and rotation to an identity coordinateSystem.
bool add(entry *, bool mergeEntry=false)
Add a new entry.
coordinateSystem()
Construct null. This is equivalent to an identity coordinateSystem.
const dictionary & subDict(const word &) const
Find and return a sub-dictionary.
Templated 3D SphericalTensor derived from VectorSpace adding construction from 1 component, element access using th ii() member function and the inner-product (dot-product) and outer-product operators.
static const Identity< scalar > I
const dimensionedScalar & b
Wien displacement law constant: default SI units: [m K].
A class for handling words, derived from string.
bool readIfPresent(const word &, T &, bool recursive=false, bool patternMatch=true) const
Find an entry if present, and assign to T.
virtual bool isDict() const
Return true if this entry is a dictionary.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
virtual vector globalToLocal(const vector &, bool translate) const
Convert from global Cartesian system to the local coordinate system.
defineRunTimeSelectionTable(reactionRateFlameArea, dictionary)
defineTypeNameAndDebug(combustionModel, 0)
Ostream & decrIndent(Ostream &os)
Decrement the indent level.
void writeEntry(Ostream &os, const HashTable< T, Key, Hash > &ht)
virtual const tensor & R() const =0
Return local-to-global transformation tensor.
static const coordinateSystems & New(const objectRegistry &)
Return previously registered or read construct from "constant".
static autoPtr< coordinateRotation > New(const dictionary &dict, const objectRegistry &obr)
Select constructed from dictionary and objectRegistry.
prefixOSstream Pout(cout, "Pout")
Ostream & operator<<(Ostream &, const ensightPart &)
fileType type(const fileName &, const bool checkVariants=true, const bool followLink=true)
Return the file type: directory or file.
A class representing the concept of 0 used to avoid unnecessary manipulations for objects that are kn...
A coordinate rotation specified using global axis.
A class for managing temporary objects.
Registry of regIOobjects.
virtual ITstream & stream() const =0
Return token stream if this entry is a primitive entry.
bool operator!=(const particle &, const particle &)
Ostream & incrIndent(Ostream &os)
Increment the indent level.
virtual dictionary dict(bool ignoreType=false) const
Return as dictionary of entries.
void init(const dictionary &)
Init from dict and obr.
void writeDict(Ostream &, bool subDict=true) const
Write dictionary.
virtual void write(Ostream &) const
Write.
static const Vector< scalar > zero
A keyword and a list of tokens is an 'entry'.
ITstream & lookup(const word &, bool recursive=false, bool patternMatch=true) const
Find and return an entry data stream.
const coordinateRotation & R() const
Return const reference to co-ordinate rotation.
#define InfoInFunction
Report an information message using Foam::Info.