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...
~restrainedHarmonicSpring()
Destructor.
TypeName("restrainedHarmonicSpring")
Runtime type information.
bool read(const dictionary &tetherPotentialProperties)
Read dictionary.
A class for handling words, derived from string.
word name(const complex &)
Return a string representation of a complex.
scalar energy(const vector r) const
restrainedHarmonicSpring(const word &name, const dictionary &tetherPotentialProperties)
Construct from components.
vector force(const vector r) const
const dictionary & tetherPotentialProperties() const