discretize.TreeMesh.h

property TreeMesh.h

Cell widths along each axis direction

The widths of the cells along each axis direction are returned as a tuple of 1D arrays; e.g. (hx, hy, hz) for a 3D mesh. The lengths of the 1D arrays in the tuple are given by shape_cells. Ordering begins at the bottom southwest corner. These are the cell widths used when creating the mesh.

Returns
(dim) tuple of numpy.ndarray

Cell widths along each axis direction. This depends on the mesh class:

  • TensorMesh: cell widths along the x , [y and z ] directions

  • CylindricalMesh: cell widths along the r, \(\phi\) and z directions

  • TreeMesh: cells widths of the underlying tensor mesh along the x , y [and z ] directions