grids.core.GenericGrid.ghost_zones#

property GenericGrid.ghost_zones: ndarray#

Number of ghost cells on either side of each axis.

Ghost zones are extra layers of points added beyond the physical domain to facilitate finite-difference stencils or boundary conditions.

Returns:

A (2, ndim) array where the first row is the number of ghost cells on the “left” (lower) side of each axis, and the second row is for the “right” (upper) side.

Return type:

np.ndarray