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.
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.
void writeDict(Ostream &, bool subDict=true) const
Write dictionary.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)...
Provides a centralized coordinateSystem collection.
const dictionary & subDict(const word &) const
Find and return a sub-dictionary.
virtual bool check(const char *operation) const
Check IOstream status for given operation.
virtual void write(Ostream &) const
Write.
Ostream & endl(Ostream &os)
Add newline and flush stream.
const entry * lookupEntryPtr(const word &, bool recursive, bool patternMatch) const
Find and return an entry data stream pointer if present.
virtual ~coordinateSystem()
Destructor.
const coordinateRotation & R() const
Return const reference to co-ordinate rotation.
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.
virtual vector globalToLocal(const vector &, bool translate) const
Convert from global Cartesian system to the local coordinate system.
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.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
prefixOSstream Pout(cout,"Pout")
defineRunTimeSelectionTable(reactionRateFlameArea, dictionary)
defineTypeNameAndDebug(combustionModel, 0)
Ostream & decrIndent(Ostream &os)
Decrement the indent level.
Ostream & writeKeyword(const keyType &)
Write the keyword followed by an appropriate indentation.
virtual vector localToGlobal(const vector &, bool translate) const
Convert from local coordinate system to the global Cartesian system.
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.
fileName::Type type(const fileName &)
Return the file type: DIRECTORY or FILE.
Ostream & operator<<(Ostream &, const ensightPart &)
A class representing the concept of 0 used to avoid unnecessary manipulations for objects that are kn...
static const Vector< scalar > zero
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.
const point & origin() const
Return origin.
void init(const dictionary &)
Init from dict and obr.
virtual bool isDict() const
Return true if this entry is a dictionary.
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.
#define InfoInFunction
Report an information message using Foam::Info.
virtual dictionary dict(bool ignoreType=false) const
Return as dictionary of entries.