36 Foam::coordinateSystem::New
38 const word& modelType,
39 const dictionary&
dict,
40 IOobjectOption::readOption readOrigin,
41 const objectRegistry* obrPtr
47 if (modelType.empty())
49 return autoPtr<coordinateSystem>
51 new coordSystem::cartesian(
dict, readOrigin)
59 auto* ctorPtr = registryConstructorTable(modelType);
63 return autoPtr<coordinateSystem>
65 ctorPtr(*obrPtr,
dict, readOrigin)
74 auto* ctorPtr = dictionaryConstructorTable(modelType);
83 *dictionaryConstructorTablePtr_
87 return autoPtr<coordinateSystem>(ctorPtr(
dict, readOrigin));
92 Foam::coordinateSystem::New
94 const dictionary&
dict,
97 const objectRegistry* obrPtr
132 else if (finder.isStream())
134 const word csName(finder.stream());
140 <<
"--> FOAM IOWarning :" <<
nl 141 <<
" Ignoring '" << coordinateSystem::typeName
142 <<
"' as a keyword. Perhaps you meant this instead?" <<
nl 144 <<
" type " << coordSystem::indirect::typeName
146 <<
" name " << csName <<
';' <<
nl 173 return coordinateSystem::New
184 Foam::coordinateSystem::NewIfPresent
186 const dictionary&
dict,
188 const objectRegistry* obrPtr
206 return coordinateSystem::New
219 Foam::coordinateSystem::New
225 const word csName(is);
232 auto cs = coordinateSystem::New(modelType,
dict, readOrigin);
240 Foam::coordinateSystem::New
242 const word& modelType,
248 return New(modelType,
dict, readOrigin, &obr);
253 Foam::coordinateSystem::New
255 const word& modelType,
260 return New(modelType,
dict, readOrigin,
nullptr);
265 Foam::coordinateSystem::New
278 Foam::coordinateSystem::New
290 Foam::coordinateSystem::NewIfPresent
302 Foam::coordinateSystem::NewIfPresent
errorManipArg< error, int > exit(error &err, const int errNo=1)
A list of keyword definitions, which are a keyword followed by a number of values (eg...
dict_pointer dictPtr() const noexcept
Pointer to the found entry as a dictionary, nullptr otherwise.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)...
constexpr char nl
The newline '\n' character (0x0a)
const word dictName("faMeshDefinition")
Ostream & endl(Ostream &os)
Add newline and flush stream.
tmp< DimensionedField< TypeR, GeoMesh > > New(const tmp< DimensionedField< TypeR, GeoMesh >> &tf1, const word &name, const dimensionSet &dimensions, const bool initCopy=false)
Global function forwards to reuseTmpDimensionedField::New.
const dictionary & subDict(const word &keyword, enum keyType::option matchOpt=keyType::REGEX) const
Find and return a sub-dictionary.
static bool warnAboutAge(const int version) noexcept
Test if an age warning should be emitted.
static bool master(const label communicator=-1)
Like Pstream::master but with a Pstream::parRun guard in case Pstream has not yet been initialised...
A class for handling words, derived from Foam::string.
Reading is optional [identical to LAZY_READ].
bool readIfPresent(const word &keyword, T &val, enum keyType::option matchOpt=keyType::REGEX) const
Find an entry if present, and assign to T val. FatalIOError if it is found and the number of tokens i...
static readOption lazierRead(readOption opt) noexcept
Downgrade readOption optional (LAZY_READ), leaves NO_READ intact.
const_searcher csearch(const word &keyword, enum keyType::option matchOpt=keyType::REGEX) const
Search dictionary for given keyword.
Registry of regIOobjects.
#define FatalIOErrorInLookup(ios, lookupTag, lookupName, lookupTable)
Report an error message using Foam::FatalIOError.
const dictionary * findDict(const word &keyword, enum keyType::option matchOpt=keyType::REGEX) const
Find and return a sub-dictionary pointer if present (and it is a dictionary) otherwise return nullptr...
IOerror FatalIOError
Error stream (stdout output on all processes), with additional 'FOAM FATAL IO ERROR' header text and ...
readOption
Enumeration defining read preferences.