38 const word scalingType(propDict.
lookup(
"energyScalingFunction"));
40 Info<<
"Selecting energy scaling function " 41 << scalingType <<
" for " 42 << name <<
" potential energy." <<
endl;
44 dictionaryConstructorTable::iterator cstrIter =
45 dictionaryConstructorTablePtr_->find(scalingType);
47 if (cstrIter == dictionaryConstructorTablePtr_->end())
50 <<
"Unknown energyScalingFunction type " 51 << scalingType <<
nl <<
nl 52 <<
"Valid energyScalingFunctions are:" <<
nl 53 << dictionaryConstructorTablePtr_->sortedToc()
static autoPtr< energyScalingFunction > New(const word &name, const dictionary &energyScalingFunctionProperties, const pairPotential &pairPot)
Return a reference to the selected viscosity model.
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.
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.