35 #ifndef pairPotential_H 36 #define pairPotential_H 52 class energyScalingFunction;
110 (name, pairPotentialProperties)
143 inline scalar
rMin()
const;
145 inline scalar
dr()
const;
147 inline scalar
rCut()
const;
151 scalar
energy (
const scalar r)
const;
153 scalar
force (
const scalar r)
const;
168 const bool scaledEnergyDerivative =
true
TypeName("pairPotential")
Runtime type information.
static autoPtr< pairPotential > New(const word &name, const dictionary &pairPotentialProperties)
Return a reference to the selected viscosity model.
const double e
Elementary charge.
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.
List< Pair< scalar > > energyTable() const
pairPotential(const pairPotential &)
Disallow copy construct.
energyScalingFunction * esfPtr_
List< Pair< scalar > > forceTable() const
List< scalar > energyLookup_
List< scalar > forceLookup_
bool writeEnergyAndForceTables(Ostream &os) const
A class for handling words, derived from string.
scalar scaledEnergy(const scalar r) const
scalar energyDerivative(const scalar r, const bool scaledEnergyDerivative=true) const
void scaleEnergy(scalar &e, const scalar r) const
const dictionary & pairPotentialProperties() const
declareRunTimeSelectionTable(autoPtr, pairPotential, dictionary,(const word &name, const dictionary &pairPotentialProperties),(name, pairPotentialProperties))
An Ostream is an abstract base class for all output systems (streams, files, token lists...
scalar force(const scalar r) const
void operator=(const pairPotential &)
Disallow default bitwise assignment.
word name(const complex &)
Return a string representation of a complex.
virtual ~pairPotential()
Destructor.
dictionary pairPotentialProperties_
virtual scalar unscaledEnergy(const scalar r) const =0
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
Macros to ease declaration of run-time selection tables.
scalar energy(const scalar r) const