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