35 #ifndef restrainedHarmonicSpring_H
36 #define restrainedHarmonicSpring_H
44 namespace tetherPotentials
59 scalar springConstant_;
67 TypeName(
"restrainedHarmonicSpring");
A list of keyword definitions, which are a keyword followed by any number of values (e....
const dictionary & tetherPotentialProperties() const
scalar energy(const vector r) const
~restrainedHarmonicSpring()
Destructor.
TypeName("restrainedHarmonicSpring")
Runtime type information.
bool read(const dictionary &tetherPotentialProperties)
Read dictionary.
vector force(const vector r) const
restrainedHarmonicSpring(const word &name, const dictionary &tetherPotentialProperties)
Construct from components.
A class for handling words, derived from string.
word name(const bool)
Return a word representation of a bool.