discretize.TensorMesh.cell_centers_x#

property TensorMesh.cell_centers_x#

Return x-coordinates of the cell centers along the x-direction.

For 1D, 2D and 3D meshes, this property returns a 1D vector containing the x-coordinate values of the cell centers along the x-direction. For instances of TensorMesh or CylindricalMesh, this is equivalent to the cell center positions which define the tensor along the x-axis. For instances of TreeMesh however, this property returns the x-coordinate values of the cell centers along the x-direction for the underlying tensor mesh.

Returns:
(n_cells_x) numpy.ndarray of float

A 1D array containing the x-coordinates of the cell centers along the x-direction.