discretize.base.BaseTensorMesh.cell_centers_z#
- property BaseTensorMesh.cell_centers_z#
Return z-coordinates of the cell centers along the z-direction.
For 3D meshes, this property returns a 1D vector containing the z-coordinate values of the cell centers along the z-direction. For instances of
TensorMesh
orCylindricalMesh
, this is equivalent to the cell center positions which define the tensor along the z-axis. For instances ofTreeMesh
however, this property returns the z-coordinate values of the cell centers along the z-direction for the underlying tensor mesh .- Returns:
- (
n_cells_z
)numpy.ndarray
of
float
orNone
A 1D array containing the z-coordinates of the cell centers along the z-direction. Returns None for 1D and 2D meshes.
- (