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