geoparticle.utils.get_wall_ID

get_wall_ID(i, j, n_ring, smallest_ID=1)[source]

Compute the ID of a cylinder wall based on its ring and axis indices.

Shortest import: from geoparticle import get_wall_ID`

Parameters:
  • i (int) – Index on the ring.

  • j (int) – Index on the axis.

  • n_ring (int) – Number of points per ring.

  • smallest_ID (int) – Starting ID value (default is 1).

Returns:

Computed wall ID.

Return type:

int