33 namespace pairPotentials
57 exponentialRepulsionCoeffs_
61 rm_(exponentialRepulsionCoeffs_.template lookup<scalar>(
"rm")),
62 epsilon_(exponentialRepulsionCoeffs_.template lookup<scalar>(
"epsilon"))
72 return epsilon_ *
exp(-r/rm_);
80 exponentialRepulsionCoeffs_ =
83 exponentialRepulsionCoeffs_.
lookup(
"rm") >> rm_;
84 exponentialRepulsionCoeffs_.
lookup(
"epsilon") >> epsilon_;
Macros for easy insertion into run-time selection tables.
A list of keyword definitions, which are a keyword followed by any number of values (e....
ITstream & lookup(const word &, bool recursive=false, bool patternMatch=true) const
Find and return an entry data stream.
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.
scalar unscaledEnergy(const scalar r) const
A class for handling words, derived from string.
defineTypeNameAndDebug(azizChen, 0)
addToRunTimeSelectionTable(pairPotential, azizChen, dictionary)
dimensionedScalar exp(const dimensionedScalar &ds)
word name(const bool)
Return a word representation of a bool.