discretize.base.BaseTensorMesh.shape_cells

property BaseTensorMesh.shape_cells

The number of cells in each coordinate direction.

For meshes of class TensorMesh, CylindricalMesh or CurvilinearMesh, shape_cells returns the number of cells along each coordinate axis direction. For mesh of class TreeMesh, shape_cells returns the number of underlying tensor mesh cells along each coordinate direction.

Returns
(dim) tuple of int

the number of cells in each coordinate direcion

Notes

Property also accessible as using the shorthand vnC