33 namespace tetherPotentials
59 tetherPotentialProperties.subDict(typeName +
"Coeffs")
63 harmonicSpringCoeffs_.template lookup<scalar>(
"springConstant")
72 return 0.5*springConstant_*
magSqr(r);
78 return -springConstant_*r;
86 harmonicSpringCoeffs_ =
89 harmonicSpringCoeffs_.
lookup(
"springConstant") >> springConstant_;
Macros for easy insertion into run-time selection tables.
A list of keywords followed by any number of values (e.g. words and numbers) or sub-dictionaries.
ITstream & lookup(const word &, bool recursive=false, bool patternMatch=true) const
Find and return an entry data stream.
const dictionary & subDict(const word &) const
Find and return a sub-dictionary.
virtual bool read(const dictionary &tetherPotentialProperties)=0
Read tetherPotential dictionary.
const dictionary & tetherPotentialProperties() const
scalar energy(const vector r) const
bool read(const dictionary &tetherPotentialProperties)
Read dictionary.
harmonicSpring(const word &name, const dictionary &tetherPotentialProperties)
Construct from components.
vector force(const vector r) const
A class for handling words, derived from string.
defineTypeNameAndDebug(harmonicSpring, 0)
addToRunTimeSelectionTable(tetherPotential, harmonicSpring, dictionary)
word name(const LagrangianState state)
Return a string representation of a Lagrangian state enumeration.
void magSqr(LagrangianPatchField< scalar > &f, const LagrangianPatchField< Type > &f1)