33 namespace energyScalingFunctions
53 const dictionary& energyScalingFunctionProperties,
58 rCut_(pairPot.rCut()),
59 e_at_rCut_(pairPot.unscaledEnergy(rCut_)),
60 de_dr_at_rCut_(pairPot.energyDerivative(rCut_, false))
68 e -= ( e_at_rCut_ + de_dr_at_rCut_ * (r - rCut_) );
Macros for easy insertion into run-time selection tables.
A list of keyword definitions, which are a keyword followed by any number of values (e....
const dictionary & energyScalingFunctionProperties() const
virtual bool read(const dictionary &energyScalingFunctionProperties)=0
Read energyScalingFunction dictionary.
bool read(const dictionary &energyScalingFunctionProperties)
Read dictionary.
void scaleEnergy(scalar &e, const scalar r) const
shiftedForce(const word &name, const dictionary &energyScalingFunctionProperties, const pairPotential &pairPot)
Construct from components.
A class for handling words, derived from string.
addToRunTimeSelectionTable(energyScalingFunction, doubleSigmoid, dictionary)
defineTypeNameAndDebug(doubleSigmoid, 0)
word name(const bool)
Return a word representation of a bool.