36 const word modelType(
dict.lookup(typeName));
38 Info<<
" Selecting " << typeName <<
" " << modelType <<
endl;
40 dictionaryConstructorTable::iterator cstrIter =
41 dictionaryConstructorTablePtr_->find(modelType);
43 if (cstrIter == dictionaryConstructorTablePtr_->end())
46 <<
"Unknown " << typeName <<
" type "
47 << modelType <<
nl <<
nl
48 <<
"Valid " << typeName <<
" types are:" <<
nl
49 << dictionaryConstructorTablePtr_->sortedToc()
A list of keyword definitions, which are a keyword followed by any number of values (e....
Cell based momentum source which approximates the mean effects of rotor forces on a cylindrical regio...
static autoPtr< trimModel > New(const fv::rotorDisk &rotor, const dictionary &dict)
Return a reference to the selected trim model.
A class for handling words, derived from string.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
errorManipArg< error, int > exit(error &err, const int errNo=1)
Ostream & endl(Ostream &os)
Add newline and flush stream.