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