Go to the documentation of this file.
33 namespace tetherPotentials
43 restrainedHarmonicSpring,
57 restrainedHarmonicSpringCoeffs_
59 tetherPotentialProperties.
subDict(typeName +
"Coeffs")
63 readScalar(restrainedHarmonicSpringCoeffs_.lookup(
"springConstant"))
67 readScalar(restrainedHarmonicSpringCoeffs_.lookup(
"rR"))
111 restrainedHarmonicSpringCoeffs_ =
112 tetherPotentialProperties.
subDict(typeName +
"Coeffs");
114 restrainedHarmonicSpringCoeffs_.
lookup(
"springConstant") >> springConstant_;
115 restrainedHarmonicSpringCoeffs_.lookup(
"rR") >> rR_;
A class for handling words, derived from string.
scalar energy(const vector r) const
vector force(const vector r) const
restrainedHarmonicSpring(const word &name, const dictionary &tetherPotentialProperties)
Construct from components.
ITstream & lookup(const word &, bool recursive=false, bool patternMatch=true) const
Find and return an entry data stream.
dimensioned< scalar > mag(const dimensioned< Type > &)
virtual bool read(const dictionary &tetherPotentialProperties)=0
Read tetherPotential dictionary.
A list of keyword definitions, which are a keyword followed by any number of values (e....
Macros for easy insertion into run-time selection tables.
bool read(const dictionary &tetherPotentialProperties)
Read dictionary.
defineTypeNameAndDebug(harmonicSpring, 0)
bool readScalar(const char *buf, doubleScalar &s)
Read whole of buf as a scalar. Return true if succesful.
addToRunTimeSelectionTable(tetherPotential, harmonicSpring, dictionary)
const dictionary & subDict(const word &) const
Find and return a sub-dictionary.
dimensioned< scalar > magSqr(const dimensioned< Type > &)
word name(const complex &)
Return a string representation of a complex.