39 if (entryPtr && !entryPtr->
isDict())
46 if (css.PtrDictionary<coordinateSystem>::found(name))
51 <<
"Using global coordinate system: " << name <<
endl;
54 return css[
name].clone();
59 <<
"could not find coordinate system: " << name <<
nl 60 <<
"available coordinate systems: " << css.toc() <<
nl <<
nl 69 const word coordType = coordDict.
lookup(
"type");
71 dictionaryConstructorTable::iterator cstrIter =
72 dictionaryConstructorTablePtr_->find(coordType);
74 if (cstrIter == dictionaryConstructorTablePtr_->end())
79 ) <<
"Unknown coordinateSystem type " 80 << coordType <<
nl <<
nl 81 <<
"Valid coordinateSystem types are :" <<
nl 82 << dictionaryConstructorTablePtr_->sortedToc()
99 dictionaryConstructorTable::iterator cstrIter =
100 dictionaryConstructorTablePtr_->find(coordType);
102 if (cstrIter == dictionaryConstructorTablePtr_->end())
107 ) <<
"Unknown coordinateSystem type " 108 << coordType <<
nl <<
nl 109 <<
"Valid coordinateSystem types are :" <<
nl 110 << dictionaryConstructorTablePtr_->sortedToc()
Provides a centralised coordinateSystem collection.
autoPtr< CompressibleMomentumTransportModel > New(const volScalarField &rho, const volVectorField &U, const surfaceScalarField &phi, const viscosity &viscosity)
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.
Ostream & endl(Ostream &os)
Add newline and flush stream.
const dictionary & subDict(const word &) const
Find and return a sub-dictionary.
A class for handling words, derived from string.
virtual bool isDict() const
Return true if this entry is a dictionary.
word name(const complex &)
Return a string representation of a complex.
static autoPtr< coordinateSystem > New(const objectRegistry &obr, const dictionary &dict)
Select constructed from dictionary and objectRegistry.
#define FatalIOErrorInFunction(ios)
Report an error message using Foam::FatalIOError.
Registry of regIOobjects.
virtual ITstream & stream() const =0
Return token stream if this entry is a primitive entry.
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.