halomod.profiles.Constant.populate

Constant.populate(n, m, c=None, centre=None)

Populate a halo with the current halo profile of mass m with n tracers.

Parameters
  • n (int) – Number of tracers to place down

  • m (float) – Mass of the halo.

  • c (float, optional) – Concentration of the halo. Will be calculated if not given.

  • centre (3-array) – (x,y,z) co-ordinates of centre of halo. Default is zero.

Returns

pos – Array of positions of the tracers, centred around (0,0,0).

Return type

(N,3)-array