38 #ifndef energyScalingFunction_H 39 #define energyScalingFunction_H 129 virtual void scaleEnergy(scalar&
e,
const scalar r)
const = 0;
declareRunTimeSelectionTable(autoPtr, energyScalingFunction, dictionary,(const word &name, const dictionary &energyScalingFunctionProperties, const pairPotential &pairPot),(name, energyScalingFunctionProperties, pairPot))
const pairPotential & pairPot_
static autoPtr< energyScalingFunction > New(const word &name, const dictionary &energyScalingFunctionProperties, const pairPotential &pairPot)
Return a reference to the selected viscosity model.
A list of keyword definitions, which are a keyword followed by a number of values (eg...
virtual void scaleEnergy(scalar &e, const scalar r) const =0
energyScalingFunction(const energyScalingFunction &)=delete
No copy construct.
const dimensionedScalar e
Elementary charge.
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for INVALID.
const dictionary & energyScalingFunctionProperties() const
A class for handling words, derived from Foam::string.
dictionary energyScalingFunctionProperties_
TypeName("energyScalingFunction")
Runtime type information.
virtual ~energyScalingFunction()=default
Destructor.
void operator=(const energyScalingFunction &)=delete
No copy assignment.
virtual bool read(const dictionary &energyScalingFunctionProperties)=0
Read energyScalingFunction dictionary.
Pointer management similar to std::unique_ptr, with some additional methods and type checking...
Macros to ease declaration of run-time selection tables.