33 namespace pairPotentials
57 exponentialRepulsionCoeffs_
59 exponentialRepulsion.
subDict(typeName +
"Coeffs")
61 rm_(
readScalar(exponentialRepulsionCoeffs_.lookup(
"rm"))),
62 epsilon_(
readScalar(exponentialRepulsionCoeffs_.lookup(
"epsilon")))
72 return epsilon_ *
exp(-r/rm_);
80 exponentialRepulsionCoeffs_ =
81 exponentialRepulsion.
subDict(typeName +
"Coeffs");
83 exponentialRepulsionCoeffs_.
lookup(
"rm") >> rm_;
84 exponentialRepulsionCoeffs_.
lookup(
"epsilon") >> epsilon_;
A list of keyword definitions, which are a keyword followed by any number of values (e...
virtual bool read(const dictionary &pairPotentialProperties)=0
Read pairPotential dictionary.
scalar unscaledEnergy(const scalar r) const
const dictionary & subDict(const word &) const
Find and return a sub-dictionary.
exponentialRepulsion(const word &name, const dictionary &pairPotentialProperties)
Construct from components.
bool read(const dictionary &pairPotentialProperties)
Read dictionary.
Macros for easy insertion into run-time selection tables.
dimensionedScalar exp(const dimensionedScalar &ds)
A class for handling words, derived from string.
bool readScalar(const char *buf, doubleScalar &s)
Read whole of buf as a scalar. Return true if succesful.
defineTypeNameAndDebug(azizChen, 0)
addToRunTimeSelectionTable(pairPotential, azizChen, dictionary)
ITstream & lookup(const word &, bool recursive=false, bool patternMatch=true) const
Find and return an entry data stream.