discretize.CylindricalMesh.cell_volumes#
- property CylindricalMesh.cell_volumes#
Volumes of all mesh cells.
This property returns a 1D vector containing the volumes of all cells in the mesh. When computing the volume of each cell, we take into account curvature. Thus a cell lying within radial distance \(r_1\) and \(r_2\), with height \(h_z\) and with azimuthal width \(\Delta \phi\), the volume is given by:
\[V = \frac{\Delta \phi \, h_z}{2} (r_2^2 - r_1^2)\]- Returns:
- (
n_cells
numpy.ndarray
Volumes of all mesh cells
- (