37 const word potentialType(propDict.
lookup(
"pairPotential"));
39 Info<<
nl <<
"Selecting intermolecular pair potential "
40 << potentialType <<
" for "
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()
A list of keyword definitions, which are a keyword followed by any number of values (e....
ITstream & lookup(const word &, bool recursive=false, bool patternMatch=true) const
Find and return an entry data stream.
static autoPtr< pairPotential > New(const word &name, const dictionary &pairPotentialProperties)
Return a reference to the selected viscosity model.
A class for handling words, derived from string.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
errorManipArg< error, int > exit(error &err, const int errNo=1)
Ostream & endl(Ostream &os)
Add newline and flush stream.
word name(const bool)
Return a word representation of a bool.