sarkas.tools.observables.calc_vk
sarkas.tools.observables.calc_vk#
- sarkas.tools.observables.calc_vk(pos_data, vel_data, k_list)[source]#
Calculate the instantaneous longitudinal and transverse velocity fluctuations.
- Parameters
pos_data (numpy.ndarray) – Particles’ position. Shape = (
no_dumps, 3,tot_no_ptcls)vel_data (numpy.ndarray) – Particles’ velocities. Shape = (
no_dumps, 3,tot_no_ptcls)k_list (list) – List of \(k\) indices in each direction with corresponding magnitude and index of
ka_counts. Shape=(no_ka_values, 5)
- Returns
vkt (numpy.ndarray) – Array containing longitudinal velocity fluctuations.
vkt_i (numpy.ndarray) – Array containing transverse velocity fluctuations in the \(x\) direction.
vkt_j (numpy.ndarray) – Array containing transverse velocity fluctuations in the \(y\) direction.
vkt_k (numpy.ndarray) – Array containing transverse velocity fluctuations in the \(z\) direction.