36 const dictionary&
dict,
40 if (
dict.isDict(
"sigma"))
42 const dictionary& sigmaDict = surfaceTensionModel::sigmaDict(
dict);
44 const word modelType(sigmaDict.get<word>(
"type"));
46 Info<<
"Selecting surfaceTensionModel " << modelType <<
endl;
48 auto* ctorPtr = dictionaryConstructorTable(modelType);
55 "surfaceTensionModel",
57 *dictionaryConstructorTablePtr_
61 return ctorPtr(sigmaDict,
mesh);
64 return autoPtr<surfaceTensionModel>
66 new surfaceTensionModels::constant(
dict,
mesh)
static autoPtr< surfaceTensionModel > New(const dictionary &dict, const phasePair &pair)
errorManipArg< error, int > exit(error &err, const int errNo=1)
Ostream & endl(Ostream &os)
Add newline and flush stream.
messageStream Info
Information stream (stdout output on master, null elsewhere)
Pointer management similar to std::unique_ptr, with some additional methods and type checking...
#define FatalIOErrorInLookup(ios, lookupTag, lookupName, lookupTable)
Report an error message using Foam::FatalIOError.
IOerror FatalIOError
Error stream (stdout output on all processes), with additional 'FOAM FATAL IO ERROR' header text and ...