Go to the documentation of this file.
33 namespace tetherPotentials
59 tetherPotentialProperties.
subDict(typeName +
"Coeffs")
61 springConstant_(
readScalar(harmonicSpringCoeffs_.lookup(
"springConstant")))
A class for handling words, derived from string.
ITstream & lookup(const word &, bool recursive=false, bool patternMatch=true) const
Find and return an entry data stream.
harmonicSpring(const word &name, const dictionary &tetherPotentialProperties)
Construct from components.
bool read(const dictionary &tetherPotentialProperties)
Read dictionary.
virtual bool read(const dictionary &tetherPotentialProperties)=0
Read tetherPotential dictionary.
vector force(const vector r) const
dictionary harmonicSpringCoeffs_
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.
defineTypeNameAndDebug(harmonicSpring, 0)
bool readScalar(const char *buf, doubleScalar &s)
Read whole of buf as a scalar. Return true if succesful.
const dictionary & tetherPotentialProperties() const
scalar energy(const vector r) const
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.