26 #include "surfaceTensionModel.H" 34 const dictionary& dict,
38 word surfaceTensionModelType(dict.lookup(
"type"));
40 Info<<
"Selecting surfaceTensionModel for " 41 << pair <<
": " << surfaceTensionModelType <<
endl;
43 dictionaryConstructorTable::iterator cstrIter =
44 dictionaryConstructorTablePtr_->find(surfaceTensionModelType);
46 if (cstrIter == dictionaryConstructorTablePtr_->end())
49 <<
"Unknown surfaceTensionModelType type " 50 << surfaceTensionModelType << endl << endl
51 <<
"Valid surfaceTensionModel types are : " << endl
52 << dictionaryConstructorTablePtr_->sortedToc()
56 return cstrIter()(
dict, pair,
true);
errorManipArg< error, int > exit(error &err, const int errNo=1)
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
Ostream & endl(Ostream &os)
Add newline and flush stream.
static autoPtr< surfaceTensionModel > New(const dictionary &dict, const fvMesh &mesh)