37 #ifndef restrainedHarmonicSpring_H 38 #define restrainedHarmonicSpring_H 46 namespace tetherPotentials
61 scalar springConstant_;
69 TypeName(
"restrainedHarmonicSpring");
A list of keyword definitions, which are a keyword followed by a number of values (eg...
~restrainedHarmonicSpring()
Destructor.
TypeName("restrainedHarmonicSpring")
Runtime type information.
bool read(const dictionary &tetherPotentialProperties)
Read dictionary.
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for expressions::valueTypeCode::INVALID.
A class for handling words, derived from Foam::string.
A Vector of values with scalar precision, where scalar is float/double depending on the compilation f...
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