38 word modelType(
"none");
40 if (dict.
found(
"sootModel"))
42 dict.
lookup(
"sootModel") >> modelType;
44 Info<<
"Selecting sootModel " << modelType <<
endl;
47 dictionaryConstructorTable::iterator cstrIter =
48 dictionaryConstructorTablePtr_->find(modelType);
50 if (cstrIter == dictionaryConstructorTablePtr_->end())
53 <<
"Unknown sootModel type " 54 << modelType <<
nl <<
nl 55 <<
"Valid sootModel types are :" <<
nl 56 << dictionaryConstructorTablePtr_->sortedToc() <<
exit(
FatalError);
59 const label tempOpen = modelType.find(
'<');
61 const word className = modelType(0, tempOpen);
bool found(const word &, bool recursive=false, bool patternMatch=true) const
Search dictionary for given keyword.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
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.
static autoPtr< sootModel > New(const dictionary &dict, const fvMesh &mesh)
Selector.
Ostream & endl(Ostream &os)
Add newline and flush stream.
A class for handling words, derived from string.
Mesh data needed to do the Finite Volume discretisation.
ITstream & lookup(const word &, bool recursive=false, bool patternMatch=true) const
Find and return an entry data stream.