35 #ifndef pairPotential_H 36 #define pairPotential_H 52 class energyScalingFunction;
104 (name, pairPotentialProperties)
140 inline scalar
rMin()
const;
142 inline scalar
dr()
const;
144 inline scalar
rCut()
const;
148 scalar
energy (
const scalar r)
const;
150 scalar
force (
const scalar r)
const;
165 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.
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.
scalar energyDerivative(const scalar r, const bool scaledEnergyDerivative=true) const
bool writeEnergyAndForceTables(Ostream &os) const
List< Pair< scalar > > forceTable() const
scalar energy(const scalar r) const
energyScalingFunction * esfPtr_
List< scalar > energyLookup_
pairPotential(const word &name, const dictionary &pairPotentialProperties)
Construct from components.
List< scalar > forceLookup_
A class for handling words, derived from string.
void operator=(const pairPotential &)=delete
Disallow default bitwise assignment.
scalar force(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...
word name(const complex &)
Return a string representation of a complex.
virtual ~pairPotential()
Destructor.
List< Pair< scalar > > energyTable() const
dictionary pairPotentialProperties_
void scaleEnergy(scalar &e, const scalar r) const
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...
const doubleScalar e
Elementary charge.
Macros to ease declaration of run-time selection tables.
scalar scaledEnergy(const scalar r) const