Models the FENE potential, which is given by
\f[ V_{\textrm{FENE}}(r) = - 0.5 K R^2 \log (1 - (\frac{r - l_0}{R})^2) \f]
Definition at line 6 of file FENE.py.
def MPCDAnalysis.PairPotentials.FENE.FENE.getPotential |
( |
|
self, |
|
|
|
r |
|
) |
| |
Returns the potential for an input value of \f$ r \f$.
@throw TypeError
Throws if `r` is neither `int` nor `float` or `Vector3DReal`.
@throw ValueError
Throws if `r` is negative.
@throw ValueError
Throws if `r` is such that, in combination with the used
potential parameters, the result is undefined.
@param[in] r
The input value. It may be either an `int` or `float`, in
which case it must be non-negative. Alternatively, it may be
of type `Vector3DReal`, which is then euqivalent to calling
`getPotential(r.getLength())` instead.
Definition at line 84 of file FENE.py.