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