sarkas.particles.Particles.uniform_no_reject#

Particles.uniform_no_reject(mins, maxs)[source]#

Randomly distribute particles along each direction.

Parameters
  • mins (float) – Minimum value of the range of a uniform distribution.

  • maxs (float) – Maximum value of the range of a uniform distribution.

Returns

numpy.ndarray – Particles’ property, e.g. pos, vel. Shape = (total_num_ptcls, 3).