sarkas.potentials.force_pp.create_cells_array#

sarkas.potentials.force_pp.create_cells_array(box_lengths, cutoff)[source]#

Calculate the number of cells per dimension and their lengths.

Parameters
  • box_lengths (numpy.ndarray) – Length of each box side.

  • cutoff (float) – Short range potential cutoff

Returns

  • cells_per_dim (numpy.ndarray, numba.int32) – No. of cells per dimension. There is only 1 cell for the non-dimension.

  • cell_lengths_per_dim (numpy.ndarray, numba.float64) – Length of each cell per dimension.