febid.heat_transfer.subdivide_list#

subdivide_list(grid, i=0, j=0, axis=2)[source]#

Extract start and end indexes of the non-zero sections in the array.

This function virtually prevents zeros from appearing in a solution matrix by extracting the ‘solid’ cells along the slice.

Parameters:
  • grid – 1D array

  • i – first index of the current slice

  • j – second index of the current slice

  • axis – axis along which the slice was taken

Returns: