33 namespace pairPotentials
57 lennardJonesCoeffs_(pairPotentialProperties.
subDict(typeName +
"Coeffs")),
58 sigma_(lennardJonesCoeffs_.template lookup<scalar>(
"sigma")),
59 epsilon_(lennardJonesCoeffs_.template lookup<scalar>(
"epsilon"))
70 scalar ir2 = (sigma_/r)*(sigma_/r);
73 scalar ir6 = ir2*ir2*ir2;
75 return 4.0 * epsilon_*(ir6*(ir6 - 1.0));
83 lennardJonesCoeffs_ = pairPotentialProperties.
subDict(typeName +
"Coeffs");
85 lennardJonesCoeffs_.
lookup(
"sigma") >> sigma_;
86 lennardJonesCoeffs_.
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.
Macros for easy insertion into run-time selection tables.
const dictionary & subDict(const word &) const
Find and return a sub-dictionary.
A class for handling words, derived from string.
lennardJones(const word &name, const dictionary &pairPotentialProperties)
Construct from components.
scalar unscaledEnergy(const scalar r) const
defineTypeNameAndDebug(azizChen, 0)
addToRunTimeSelectionTable(pairPotential, azizChen, dictionary)
bool read(const dictionary &pairPotentialProperties)
Read dictionary.
ITstream & lookup(const word &, bool recursive=false, bool patternMatch=true) const
Find and return an entry data stream.