35 #ifndef restrainedHarmonicSpring_H
36 #define restrainedHarmonicSpring_H
44 namespace tetherPotentials
59 scalar springConstant_;
67 TypeName(
"restrainedHarmonicSpring");
A list of keywords followed by any number of values (e.g. words and numbers) or sub-dictionaries.
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 LagrangianState state)
Return a string representation of a Lagrangian state enumeration.