kwant.plotter.
interpolate_current
(syst, current, relwidth=None, abswidth=None, n=9)[source]¶Interpolate currents in a system onto a regular grid.
The system graph together with current intensities defines a “discrete” current density field where the current density is nonzero only on the straight lines that connect sites that are coupled by a hopping term.
To make this vector field easier to visualize and interpret at different
length scales, it is smoothed by convoluting it with the bellshaped bump
function f(r) = max(1  (2*r / width)**2, 0)**2
. The bump width is
determined by the relwidth and abswidth parameters.
This routine samples the smoothed field on a regular (square or cubic) grid.
Parameters:  syst : A finalized system
current : ‘1D array of float’
relwidth : float or None
abswidth : float or None
n : int


Returns:  field : nd arraylike of float
box : sequence of 2sequences of float
