dcmri.prop_plug#

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

Propagator or transit time distribution 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 propagator 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.prop_plug(5,t)
array([0.        , 0.        , 0.33333333, 0.5       ])