sarkas.particles.Particles.gaussian#

Particles.gaussian(mean, sigma, size)[source]#

Initialize particles’ velocities according to a normalized Maxwell-Boltzmann (Normal) distribution. It calls numpy.random.Generator.normal()

Parameters
  • size (tuple) – Size of the array to initialize. (no. of particles, dimensions).

  • mean (float) – Center of the normal distribution.

  • sigma (float) – Scale of the normal distribution.

Returns

numpy.ndarray – Particles property distributed according to a Normal probability density function.