cic_ma

cosmax.mass_assignment.cic_ma(pos: Array, weight: Array, elements: int, size: float = 1.0) Array

Periodic cloud in a cell mass (CIC) mass assignment.

Position are assumed to be normalized between 0 and 1. Periodic boundary conditions are used.

Parameters:
  • pos – position of the particle

  • weight – weight of the particle

  • elements – number of elements in each dimension

  • size – size of the box in real space

Returns:

The grid with the mass assigned