37 #ifndef harmonicSpring_H 38 #define harmonicSpring_H 46 namespace tetherPotentials
61 scalar springConstant_;
TypeName("harmonicSpring")
Runtime type information.
scalar energy(const vector r) const
A list of keyword definitions, which are a keyword followed by a number of values (eg...
bool read(const dictionary &tetherPotentialProperties)
Read dictionary.
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for INVALID.
A class for handling words, derived from Foam::string.
A Vector of values with scalar precision, where scalar is float/double depending on the compilation f...
~harmonicSpring()
Destructor.
vector force(const vector r) const
const dictionary & tetherPotentialProperties() const
harmonicSpring(const word &name, const dictionary &tetherPotentialProperties)
Construct from components.