discretize.base.BaseRectangularMesh.shape_edges_x#

property BaseRectangularMesh.shape_edges_x#

Number of x-edges along each axis direction.

This property returns a tuple containing the number of x-edges along each axis direction. The length of the tuple is equal to the dimension of the mesh; i.e. 1, 2 or 3.

Returns:
(dim) tuple of int

Number of x-edges along each axis direction

  • 1D mesh: (n_cells_x)

  • 2D mesh: (n_cells_x, n_nodes_y)

  • 3D mesh: (n_cells_x, n_nodes_y, n_nodes_z)

Notes

Property also accessible as using the shorthand vnEx