Go to the documentation of this file.
133 if (entryPtr && !entryPtr->
isDict())
142 Info<<
"coordinateSystem::coordinateSystem"
143 "(const objectRegistry&, const dictionary&):"
144 <<
nl <<
"using global coordinate system: "
145 << key <<
"=" << index <<
endl;
151 <<
"could not find coordinate system: " << key <<
nl
152 <<
"available coordinate systems: " << lst.
toc() <<
nl <<
nl
158 operator=(lst[index]);
195 if (!ignoreType &&
type() != typeName_())
222 return (R_->transform(local)) + origin_;
226 return R_->transform(local);
239 return (R_->transform(local)) + origin_;
243 return R_->transform(local);
256 return R_->invTransform(global - origin_);
260 return R_->invTransform(global);
273 return R_->invTransform(global - origin_);
277 return R_->invTransform(global);
292 os <<
type() <<
" origin: " << origin() <<
nl;
328 rhs.
lookup(
"origin") >> origin_;
343 Pout<<
"coordinateSystem::operator="
345 "const dictionary&, "
346 "const objectRegistry&"
348 <<
"assign from " << rhs <<
endl;
351 rhs.
lookup(
"origin") >> origin_;
371 || a.
R().
R() !=
b.R().R()
372 || a.type() !=
b.type()
382 os.
check(
"Ostream& operator<<(Ostream&, const coordinateSystem&");
A keyword and a list of tokens is an 'entry'.
label findIndex(const keyType &key) const
Find and return index for the first match, return -1 if not found.
A class for handling words, derived from string.
virtual ITstream & stream() const =0
Return token stream if this entry is a primitive entry.
virtual void clear()
Reset origin and rotation to an identity coordinateSystem.
A class for managing temporary objects.
bool readIfPresent(const word &, T &, bool recursive=false, bool patternMatch=true) const
Find an entry if present, and assign to T.
A coordinate rotation specified using global axis.
defineRunTimeSelectionTable(reactionRateFlameArea, dictionary)
wordList toc() const
Return the table of contents (list of all keywords)
ITstream & lookup(const word &, bool recursive=false, bool patternMatch=true) const
Find and return an entry data stream.
Ostream & endl(Ostream &os)
Add newline and flush stream.
const point & origin() const
Return origin.
virtual vector globalToLocal(const vector &, bool translate) const
Convert from global Cartesian system to the local coordinate system.
Ostream & incrIndent(Ostream &os)
Increment the indent level.
void writeDict(Ostream &, bool subDict=true) const
Write dictionary.
virtual vector localToGlobal(const vector &, bool translate) const
Convert from local coordinate system to the global Cartesian system.
Registry of regIOobjects.
A class for handling keywords in dictionaries.
static autoPtr< coordinateRotation > New(const dictionary &dict, const objectRegistry &obr)
Select constructed from dictionary and objectRegistry.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
const dimensionedScalar b
Wien displacement law constant: default SI units: [m.K].
Pre-declare SubField and related Field type.
virtual bool isDict() const
Return true if this entry is a dictionary.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
virtual Ostream & write(const token &)=0
Write next token to stream.
Abstract base class for coordinate rotation.
virtual void write(Ostream &) const
Write.
Ostream & operator<<(Ostream &, const edgeMesh &)
static const sphericalTensor I(1)
bool operator!=(const particle &, const particle &)
virtual bool check(const char *operation) const
Check IOstream status for given operation.
A list of keyword definitions, which are a keyword followed by any number of values (e....
Provides a centralized coordinateSystem collection.
Macros for easy insertion into run-time selection tables.
Ostream & decrIndent(Ostream &os)
Decrement the indent level.
Ostream & indent(Ostream &os)
Indent stream.
virtual ~coordinateSystem()
Destructor.
Templated 3D SphericalTensor derived from VectorSpace adding construction from 1 component,...
errorManipArg< error, int > exit(error &err, const int errNo=1)
const entry * lookupEntryPtr(const word &, bool recursive, bool patternMatch) const
Find and return an entry data stream pointer if present.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
prefixOSstream Pout(cout, "Pout")
coordinateSystem()
Construct null. This is equivalent to an identity coordinateSystem.
Ostream & writeKeyword(const keyType &)
Write the keyword followed by an appropriate indentation.
void clear()
Clear the list, i.e. set size to zero.
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,...
static const coordinateSystems & New(const objectRegistry &)
Return previously registered or read construct from "constant".
fileName::Type type(const fileName &)
Return the file type: DIRECTORY or FILE.
virtual dictionary dict(bool ignoreType=false) const
Return as dictionary of entries.
const dictionary & subDict(const word &) const
Find and return a sub-dictionary.
void init(const dictionary &)
Init from dict and obr.
defineTypeNameAndDebug(combustionModel, 0)
virtual const tensor & R() const =0
Return local-to-global transformation tensor.
word name(const complex &)
Return a string representation of a complex.
bool add(entry *, bool mergeEntry=false)
Add a new entry.
const coordinateRotation & R() const
Return const reference to co-ordinate rotation.
Base class for other coordinate system specifications.
A class representing the concept of 0 used to avoid unnecessary manipulations for objects that are kn...