26 #include "surfaceTensionModel.H" 34 const dictionary& dict,
35 const phaseInterface& interface,
39 const dictionary& modelDict =
44 const word surfaceTensionModelType(modelDict.lookup(
"type"));
46 Info<<
"Selecting surfaceTensionModel for " 47 << interface.name() <<
": " << surfaceTensionModelType <<
endl;
49 dictionaryConstructorTable::iterator cstrIter =
50 dictionaryConstructorTablePtr_->find(surfaceTensionModelType);
52 if (cstrIter == dictionaryConstructorTablePtr_->end())
55 <<
"Unknown surfaceTensionModelType type " 56 << surfaceTensionModelType << endl << endl
57 <<
"Valid surfaceTensionModel types are : " << endl
58 << dictionaryConstructorTablePtr_->sortedToc()
62 return cstrIter()(modelDict, interface);
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)
surfaceTensionModel(const fvMesh &mesh)