sarkas.tools.observables.calc_vacf
sarkas.tools.observables.calc_vacf#
- sarkas.tools.observables.calc_vacf(vel, sp_num)[source]#
Calculate the velocity autocorrelation function of each species and in each direction.
- Parameters
vel (numpy.ndarray) – Particles’ velocities stored in a 3D array with shape = (D x Np x Nt). D = cartesian dimensions, Np = Number of particles, Nt = number of dumps.
sp_num (numpy.ndarray) – Number of particles of each species.
- Returns
vacf (numpy.ndarray) – Velocity autocorrelation functions. Shape= (No_species, D + 1, Nt)