37 const word potentialType(propDict.
lookup(
"pairPotential"));
39 Info<<
nl <<
"Selecting intermolecular pair potential " 40 << potentialType <<
" for " 41 << name <<
" interaction." <<
endl;
43 dictionaryConstructorTable::iterator cstrIter =
44 dictionaryConstructorTablePtr_->find(potentialType);
46 if (cstrIter == dictionaryConstructorTablePtr_->end())
49 <<
"Unknown pairPotential type " 50 << potentialType <<
nl <<
nl 51 <<
"Valid pairPotentials are:" <<
nl 52 << dictionaryConstructorTablePtr_->sortedToc()
errorManipArg< error, int > exit(error &err, const int errNo=1)
static autoPtr< pairPotential > New(const word &name, const dictionary &pairPotentialProperties)
Return a reference to the selected viscosity model.
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.
A class for handling words, derived from string.
word name(const complex &)
Return a string representation of a complex.
ITstream & lookup(const word &, bool recursive=false, bool patternMatch=true) const
Find and return an entry data stream.