Go to the documentation of this file.
33 namespace tetherPotentials
59 tetherPotentialProperties.
subDict(typeName +
"Coeffs")
61 mu_(
readScalar(pitchForkRingCoeffs_.lookup(
"mu"))),
62 alpha_(
readScalar(pitchForkRingCoeffs_.lookup(
"alpha"))),
63 rOrbit_(
readScalar(pitchForkRingCoeffs_.lookup(
"rOrbit")))
71 scalar
p =
sqrt(r.
x()*r.
x() + r.
y()*r.
y());
76 -0.5 *
mu_ * pMinusRSqr
77 + 0.25 * pMinusRSqr * pMinusRSqr
84 scalar
p =
sqrt(r.
x()*r.
x() + r.
y()*r.
y());
90 (
mu_ -
sqr(pMinusR)) * pMinusR * r.
x()/(
p + VSMALL),
91 (
mu_ -
sqr(pMinusR)) * pMinusR * r.
y()/(
p + VSMALL),
A class for handling words, derived from string.
dictionary pitchForkRingCoeffs_
ITstream & lookup(const word &, bool recursive=false, bool patternMatch=true) const
Find and return an entry data stream.
scalar energy(const vector r) const
virtual bool read(const dictionary &tetherPotentialProperties)=0
Read tetherPotential dictionary.
pitchForkRing(const word &name, const dictionary &tetherPotentialProperties)
Construct from components.
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.
Vector< scalar > vector
A scalar version of the templated Vector.
vector force(const vector r) const
bool read(const dictionary &tetherPotentialProperties)
Read dictionary.
dimensionedSymmTensor sqr(const dimensionedVector &dv)
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
dimensionedScalar sqrt(const dimensionedScalar &ds)
addToRunTimeSelectionTable(tetherPotential, harmonicSpring, dictionary)
const dictionary & subDict(const word &) const
Find and return a sub-dictionary.
word name(const complex &)
Return a string representation of a complex.