41 word modelType(sootModels::noSoot::typeName);
42 if (dict.
found(sootModel::typeName))
44 dict.
lookup(sootModel::typeName) >> modelType;
45 Info<<
"Selecting soot model " << modelType <<
endl;
49 const wordList cmpts(basicThermo::splitThermoName(modelType, 3));
50 if (cmpts.
size() == 3)
55 <<
"Template parameters are no longer required when selecting a " 56 << sootModel::typeName <<
". This information is now " 57 <<
"obtained directly from the thermodynamics. Actually selecting " 58 <<
"combustion model " << modelType <<
"." <<
endl;
61 typename dictionaryConstructorTable::iterator cstrIter =
62 dictionaryConstructorTablePtr_->find(modelType);
64 if (cstrIter == dictionaryConstructorTablePtr_->end())
67 <<
"Unknown " << sootModel::typeName <<
" type " 68 << modelType <<
nl <<
nl 69 <<
"Valid " << sootModel::typeName <<
" types are:" <<
nl 70 << dictionaryConstructorTablePtr_->sortedToc()
bool found(const word &, bool recursive=false, bool patternMatch=true) const
Search dictionary for given keyword.
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 size(const label)
Override size to be inconsistent with allocated storage.
Ostream & endl(Ostream &os)
Add newline and flush stream.
A class for handling words, derived from string.
static autoPtr< sootModel > New(const dictionary &dict, const fvMesh &mesh)
Selector.
#define WarningInFunction
Report a warning using Foam::Warning.
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.