34 const bool registerObject
37 const word virtualMassModelType(modelDict.
lookup(
"type"));
40 << virtualMassModelType;
44 dictionaryConstructorTable::iterator cstrIter =
45 dictionaryConstructorTablePtr_->find(virtualMassModelType);
47 if (cstrIter == dictionaryConstructorTablePtr_->end())
50 <<
"Unknown virtualMassModel type "
51 << virtualMassModelType <<
endl <<
endl
52 <<
"Valid virtualMassModel types are : " <<
endl
53 << dictionaryConstructorTablePtr_->sortedToc()
69 return New(modelSubDict<virtualMassModel>(subDicts), interface,
true);
bool & registerObject()
Register object created from this IOobject with registry if true.
A templated 1D list of pointers to objects of type <T>, where the size of the array is known and used...
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
A list of keywords followed by any number of values (e.g. words and numbers) or sub-dictionaries.
ITstream & lookup(const word &, bool recursive=false, bool patternMatch=true) const
Find and return an entry data stream.
Class to represent an interface between phases. Derivations can further specify the configuration of ...
virtual word name() const
Name.
Enables the printing of a dictionary and subsequently looked-up defaulted entries.
Template function which returns the un-mangled name of a given type. Useful for types which do not ha...
static autoPtr< virtualMassModel > New(const dictionary &subDicts, const phaseInterface &interface, const bool registerObject=false)
A class for handling words, derived from string.
#define FatalIOErrorInFunction(ios)
Report an error message using Foam::FatalIOError.
errorManipArg< error, int > exit(error &err, const int errNo=1)
Ostream & endl(Ostream &os)
Add newline and flush stream.
Ostream & indentOrNl(Ostream &os)
Indent stream or add newline if indent level == 0.
tmp< DimensionedField< TypeR, GeoMesh, Field > > New(const tmp< DimensionedField< TypeR, GeoMesh, Field >> &tdf1, const word &name, const dimensionSet &dimensions)