sarkas.potentials.force_pm.create_k_arrays
sarkas.potentials.force_pm.create_k_arrays#
- sarkas.potentials.force_pm.create_k_arrays(mesh_sizes, non_zero_box_lengths)[source]#
Calculate the reciprocal space arrays.
- Parameters
non_zero_box_lengths (numpy.ndarray) – Length of simulation’s box in each direction. Note that no element should be equal to 0.0. If the dimensionality of the problem is lower than 3, then use 1.0 as the box length for those dimensions. Example: 2D non_zero_box_lengths = [Lx, Ly, 1.0].
mesh_sizes (numpy.ndarray) – Number of mesh points in x,y,z.
- Returns
kx_v (numpy.ndarray) – Array of reciprocal space vectors along the x-axis
ky_v (numpy.ndarray) – Array of reciprocal space vectors along the y-axis
kz_v (numpy.ndarray) – Array of reciprocal space vectors along the z-axis