grids.base.GridBase.ncells#

property GridBase.ncells: DomainDimensions#

Number of computational cells (excluding ghost zones).

  • For cell-centered grids: same as dd.

  • For vertex-centered grids: one fewer than the number of vertices.

Returns:

The number of active computational cells along each axis.

Return type:

DomainDimensions