dcmri.flux_trap#

dcmri.flux_trap(J)[source]#

Indicator flux out of a trap.

See section Trap for more detail.

Parameters:

J (array_like) – the indicator flux entering the trap.

Returns:

outflux as a 1D array.

Return type:

numpy.ndarray

Example

>>> import dcmri as dc
>>> J = [1,2,3,3,2]
>>> dc.flux_trap(J, dt=2.0)
array([0., 0., 0., 0., 0.])