dcmri.res_plug#

dcmri.res_plug(T, t)[source]#

Residue function of a plug flow system.

See section Plug flow 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.

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

Returns:

residue function as a 1D array.

Return type:

numpy.ndarray

Example

>>> import dcmri as dc
>>> t = [0,3,4,6]
>>> dc.res_plug(5,t)
array([1.00000000e+00, 1.00000000e+00, 8.33333333e-01, 1.11022302e-16])