Go to the documentation of this file.
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()
A class for handling words, derived from string.
ITstream & lookup(const word &, bool recursive=false, bool patternMatch=true) const
Find and return an entry data stream.
static autoPtr< energyScalingFunction > New(const word &name, const dictionary &energyScalingFunctionProperties, const pairPotential &pairPot)
Return a reference to the selected viscosity model.
Ostream & endl(Ostream &os)
Add newline and flush stream.
A list of keyword definitions, which are a keyword followed by any number of values (e....
errorManipArg< error, int > exit(error &err, const int errNo=1)
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
word name(const complex &)
Return a string representation of a complex.