Go to the documentation of this file.
30 template<
class CloudType>
38 const word modelType(
dict.lookup(
"injectionModel"));
40 Info<<
"Selecting injection model " << modelType <<
endl;
42 typename dictionaryConstructorTable::iterator cstrIter =
43 dictionaryConstructorTablePtr_->find(modelType);
45 if (cstrIter == dictionaryConstructorTablePtr_->end())
48 <<
"Unknown injection model type "
49 << modelType <<
nl <<
nl
50 <<
"Valid injection model types are:" <<
nl
51 << dictionaryConstructorTablePtr_->sortedToc() <<
exit(
FatalError);
58 template<
class CloudType>
63 const word& modelName,
64 const word& modelType,
68 Info<<
"Selecting injection model " << modelType <<
endl;
70 typename dictionaryConstructorTable::iterator cstrIter =
71 dictionaryConstructorTablePtr_->find(modelType);
73 if (cstrIter == dictionaryConstructorTablePtr_->end())
76 <<
"Unknown injection model type "
77 << modelType <<
nl <<
nl
78 <<
"Valid injection model types are:" <<
nl
79 << dictionaryConstructorTablePtr_->sortedToc() <<
exit(
FatalError);
A class for handling words, derived from string.
Ostream & endl(Ostream &os)
Add newline and flush stream.
Templated base class for dsmc cloud.
A list of keyword definitions, which are a keyword followed by any number of values (e....
errorManipArg< error, int > exit(error &err, const int errNo=1)
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
static autoPtr< InjectionModel< CloudType > > New(const dictionary &dict, CloudType &owner)
Selector with lookup from dictionary.