60 rCut_(pairPot.rCut()),
61 e_at_rCut_(pairPot.unscaledEnergy(rCut_)),
62 de_dr_at_rCut_(pairPot.energyDerivative(rCut_, false))
70 e -= ( e_at_rCut_ + de_dr_at_rCut_ * (r - rCut_) );
Macros for easy insertion into run-time selection tables.
#define addToRunTimeSelectionTable(baseType, thisType, argNames)
Add to construction table with typeName as the key.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
const dictionary & energyScalingFunctionProperties() const
virtual bool read(const dictionary &energyScalingFunctionProperties)=0
Read energyScalingFunction dictionary.
energyScalingFunction(const energyScalingFunction &)=delete
No copy construct.
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 Foam::string.
#define defineTypeNameAndDebug(Type, DebugSwitch)
Define the typeName and debug information.
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for expressions::valueTypeCode::INVALID.