discretize.TensorMesh.cell_volumes

property TensorMesh.cell_volumes

Return cell volumes

Calling this property will compute and return the volumes of the tensor mesh cells.

Returns
(n_cells) numpy.ndarray

The quantity returned depends on the dimensions of the mesh:

  • 1D: Returns the cell widths

  • 2D: Returns the cell areas

  • 3D: Returns the cell volumes