OpenMPCD
Public Member Functions | List of all members
MPCDAnalysis.PairPotentials.FENE.FENE Class Reference

Public Member Functions

def __init__ (self, K, l_0, R)
 
def getK (self)
 
def get_l_0 (self)
 
def getR (self)
 
def getPotential (self, r)
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ __init__()

def MPCDAnalysis.PairPotentials.FENE.FENE.__init__ (   self,
  K,
  l_0,
  R 
)
    The constructor.

    @throw TypeError
           Throws if `K`, `l_0`, or `R` are neither `int` nor `float`.
    @throw ValueError
           Throws if `R` is `0` or negative.

    @param[in] K
               The \f$ K \f$ potential parameter.
    @param[in] l_0
               The \f$ l_0 \f$ potential parameter.
    @param[in] R
               The \f$ R \f$ potential parameter, which must be positive.

Definition at line 24 of file FENE.py.

Member Function Documentation

◆ get_l_0()

def MPCDAnalysis.PairPotentials.FENE.FENE.get_l_0 (   self)
    Returns the \f$ l_0 \f$ potential parameter as a `float`.

Definition at line 52 of file FENE.py.

◆ getK()

def MPCDAnalysis.PairPotentials.FENE.FENE.getK (   self)
    Returns the \f$ K \f$ potential parameter as a `float`.

Definition at line 43 of file FENE.py.

◆ getPotential()

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.

◆ getR()

def MPCDAnalysis.PairPotentials.FENE.FENE.getR (   self)
    Returns the \f$ R \f$ potential parameter as a `float`.

Definition at line 61 of file FENE.py.


The documentation for this class was generated from the following file: