39 const dictionary& sigmaDict = surfaceTensionModel::sigmaDict(dict);
41 word surfaceTensionModelType(sigmaDict.
lookup(
"type"));
43 Info<<
"Selecting surfaceTensionModel " 44 << surfaceTensionModelType <<
endl;
46 dictionaryConstructorTable::iterator cstrIter =
47 dictionaryConstructorTablePtr_->find(surfaceTensionModelType);
49 if (cstrIter == dictionaryConstructorTablePtr_->end())
52 <<
"Unknown surfaceTensionModelType type " 53 << surfaceTensionModelType << endl << endl
54 <<
"Valid surfaceTensionModel types are : " << endl
55 << dictionaryConstructorTablePtr_->sortedToc()
59 return cstrIter()(sigmaDict,
mesh);
errorManipArg< error, int > exit(error &err, const int errNo=1)
A list of keyword definitions, which are a keyword followed by any number of values (e...
#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)
bool isDict(const word &) const
Check if entry is a sub-dictionary.
Uniform constant surface tension model.
A class for handling words, derived from string.
Mesh data needed to do the Finite Volume discretisation.
ITstream & lookup(const word &, bool recursive=false, bool patternMatch=true) const
Find and return an entry data stream.