36 const word potentialType(propDict.
lookup(
"tetherPotential"));
38 Info<<
nl <<
"Selecting tether potential " << potentialType
39 <<
" for " << name <<
endl;
41 dictionaryConstructorTable::iterator cstrIter =
42 dictionaryConstructorTablePtr_->find(potentialType);
44 if (cstrIter == dictionaryConstructorTablePtr_->end())
47 <<
"Unknown tetherPotential type " 48 << potentialType <<
nl <<
nl 49 <<
"Valid tetherPotentials are:" <<
nl 50 << dictionaryConstructorTablePtr_->sortedToc()
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< tetherPotential > New(const word &name, const dictionary &tetherPotentialProperties)
Return a reference to the selected viscosity model.
A class for handling words, derived from string.
word name(const complex &)
Return a string representation of a complex.
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
ITstream & lookup(const word &, bool recursive=false, bool patternMatch=true) const
Find and return an entry data stream.