Go to the documentation of this file.
33 namespace pairPotentials
57 maitlandSmithCoeffs_(
maitlandSmith.subDict(typeName +
"Coeffs")),
58 m_(
readScalar(maitlandSmithCoeffs_.lookup(
"m"))),
59 gamma_(
readScalar(maitlandSmithCoeffs_.lookup(
"gamma"))),
60 rm_(
readScalar(maitlandSmithCoeffs_.lookup(
"rm"))),
61 epsilon_(
readScalar(maitlandSmithCoeffs_.lookup(
"epsilon")))
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.
addToRunTimeSelectionTable(pairPotential, azizChen, dictionary)
maitlandSmith(const word &name, const dictionary &pairPotentialProperties)
Construct from components.
scalar unscaledEnergy(const scalar r) const
bool read(const dictionary &pairPotentialProperties)
Read dictionary.
dimensionedScalar pow(const dimensionedScalar &ds, const dimensionedScalar &expt)
A list of keyword definitions, which are a keyword followed by any number of values (e....
dictionary maitlandSmithCoeffs_
defineTypeNameAndDebug(azizChen, 0)
Foam::pairPotentials::maitlandSmith.
Macros for easy insertion into run-time selection tables.
bool readScalar(const char *buf, doubleScalar &s)
Read whole of buf as a scalar. Return true if succesful.
virtual bool read(const dictionary &pairPotentialProperties)=0
Read pairPotential dictionary.
word name(const complex &)
Return a string representation of a complex.