Go to the documentation of this file.
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);
A class for handling words, derived from string.
Ostream & endl(Ostream &os)
Add newline and flush stream.
static autoPtr< sootModel > New(const dictionary &dict, const fvMesh &mesh)
Selector.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
A list of keyword definitions, which are a keyword followed by any number of values (e....
Mesh data needed to do the Finite Volume discretisation.
errorManipArg< error, int > exit(error &err, const int errNo=1)
#define FatalErrorInFunction
Report an error message using Foam::FatalError.