sarkas.tools.observables.calc_diff_flux_acf#

sarkas.tools.observables.calc_diff_flux_acf(vel, sp_num, sp_conc, sp_mass)[source]#

Calculate the diffusion fluxes and their autocorrelations functions in each direction.

Parameters
  • vel (numpy.ndarray) – Particles’ velocities. Shape = (dimensions, no_dumps, total_num_ptcls)

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

  • sp_conc (numpy.ndarray) – Concentration of each species.

  • sp_mass (numpy.ndarray) – Particle’s mass of each species.

Returns

  • J_flux (numpy.ndarray) – Diffusion fluxes. Shape = ( (num_species - 1), dimensions , no_dumps)

  • jr_acf (numpy.ndarray) – Relative Diffusion flux autocorrelation function. Shape = ( (num_species - 1) x (num_species - 1), no_dim + 1, no_dumps)