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