38 const word modelType(
dict.lookup(
"scatterModel"));
40 Info<<
"Selecting scatterModel " << modelType <<
endl;
42 dictionaryConstructorTable::iterator cstrIter =
43 dictionaryConstructorTablePtr_->find(modelType);
45 if (cstrIter == dictionaryConstructorTablePtr_->end())
48 <<
"Unknown scatterModel type "
49 << modelType <<
nl <<
nl
50 <<
"Valid scatterModel types are :" <<
nl
51 << dictionaryConstructorTablePtr_->sortedToc()
57 cstrIter()(
dict.optionalSubDict(modelType +
"Coeffs"),
mesh)
A list of keywords followed by any number of values (e.g. words and numbers) or sub-dictionaries.
Mesh data needed to do the Finite Volume discretisation.
static autoPtr< scatterModel > New(const dictionary &dict, const fvMesh &mesh)
A class for handling words, derived from string.
Foam::fvMesh mesh(Foam::IOobject(regionName, runTime.name(), runTime, Foam::IOobject::MUST_READ), false)
#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.