33 namespace pairPotentials
57 exponentialRepulsionCoeffs_
59 exponentialRepulsion.
subDict(typeName +
"Coeffs")
61 rm_(exponentialRepulsionCoeffs_.template lookup<scalar>(
"rm")),
62 epsilon_(exponentialRepulsionCoeffs_.template lookup<scalar>(
"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.
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.
const dictionary & subDict(const word &) const
Find and return a sub-dictionary.
dimensionedScalar exp(const dimensionedScalar &ds)
A class for handling words, derived from string.
scalar unscaledEnergy(const scalar r) const
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.