discretize.TreeMesh.cell_volumes

TreeMesh.cell_volumes

Return cell volumes

Calling this property will compute and return a 1D array containing the volumes of mesh cells.

Returns
(n_cells) numpy.ndarray

The quantity returned depends on the dimensions of the mesh:

  • 2D: Returns the cell areas

  • 3D: Returns the cell volumes