sarkas.tools.observables.calc_elec_current#

sarkas.tools.observables.calc_elec_current(vel, sp_charge, sp_num)[source]#

Calculate the total electric current and electric current of each species.

Parameters
  • vel (numpy.ndarray) – Particles’ velocities.

  • sp_charge (numpy.ndarray) – Charge of each species.

  • sp_num (numpy.ndarray) – Number of particles of each species.

Returns

  • Js (numpy.ndarray) – Electric current of each species. Shape = (no_species, no_dim, no_dumps)

  • Jtot (numpy.ndarray) – Total electric current. Shape = (no_dim, no_dumps)