33 namespace diameterModels
47 const populationBalanceModel& popBal,
48 const dictionary& dict
51 Info<<
"Selecting drift model for " 52 << popBal.name() <<
": " << type <<
endl;
54 dictionaryConstructorTable::iterator cstrIter =
55 dictionaryConstructorTablePtr_->find(type);
57 if (cstrIter == dictionaryConstructorTablePtr_->end())
60 <<
"Unknown drift model type " 62 <<
"Valid drift model types : " << endl
63 << dictionaryConstructorTablePtr_->sortedToc()
67 return autoPtr<driftModel>(cstrIter()(popBal,
dict));
75 const populationBalanceModel& popBal,
76 const dictionary& dict
errorManipArg< error, int > exit(error &err, const int errNo=1)
virtual void precompute()
Precompute diameter independent expressions.
driftModel(const populationBalanceModel &popBal, const dictionary &dict)
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
Ostream & endl(Ostream &os)
Add newline and flush stream.
static autoPtr< driftModel > New(const word &type, const populationBalanceModel &popBal, const dictionary &dict)
defineRunTimeSelectionTable(reactionRateFlameArea, dictionary)
defineTypeNameAndDebug(combustionModel, 0)
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...