discretize.CurvilinearMesh.cell_centers

property CurvilinearMesh.cell_centers

Gridded cell center locations (staggered grid)

For 2D or 3D curvilinear meshes, this property returns a numpy array of shape (n_cells, dim) containing the gridded cell center locations. The bottom-front-leftmost cell is the first cell.

Returns
(n_cells, dim) numpy.ndarray of float

The shape of the output array is the number of cells by the dimension.