dcmri.res_chain#

dcmri.res_chain(T, D, t)[source]#

Residue function of a chain system.

See section Chain for more detail.

Parameters:
  • T (float) – mean transit time of the system. Any non-negative value is allowed, including \(T=0\) and \(T=\infty\), in which case the system is a trap.

  • D (float) – dispersion of the system. Values must be between 0 (no dispersion) and 1 (maximal dispersion).

  • t (array_like) – time points where the residue function is calculated, in the same units as T.

Returns:

propagator as a 1D array.

Return type:

numpy.ndarray

Example

>>> import dcmri as dc
>>> t = [0,3,4,6]
>>> dc.res_chain(5, 0.5, t)
array([1.        , 0.78314017, 0.64624667, 0.42994366])