sarkas.tools.observables.calc_nkt#

sarkas.tools.observables.calc_nkt(fldr, slices, dump_step, species_np, k_list, verbose)[source]#

Calculate density fluctuations \(n(k,t)\) of all species.

\[n_{A} ( k, t ) = \sum_i^{N_A} \exp [ -i \mathbf k \cdot \mathbf r_{i}(t) ]\]

where \(N_A\) is the number of particles of species \(A\).

Parameters
  • fldr (str) – Name of folder containing particles data.

  • slices (tuple, int) – Initial, final step number of the slice, total number of slice steps.

  • dump_step (int) – Snapshot interval.

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

  • k_list (list) – List of :math: k vectors.

Returns

nkt (numpy.ndarray, complex) – Density fluctuations. Shape = ( no_species, no_dumps, no_ka_values)