porepy.grids.standard_grids.md_grids_3d module

This file contains utility functions for setting up mixed-dimensional grids for 3d networks. The default is simplex grids, but Cartesian grids are also possible for the simplest geometries. The provided geometries are:

Simple unit square geometries

single_horizontal: Single horizontal plane at z=0.5

single_horizontal(mesh_args=None, x_coords=None, y_coords=None, simplex=True)[source]

Mixed-dimensional grid for a domain with a horizontal rectangular fracture at z=0.5.

Parameters
  • mesh_args

    For triangular grids: Dictionary containing at least “mesh_size_frac”. If

    the optional values of “mesh_size_bound” and “mesh_size_min” are not provided, these are set by utils.set_mesh_sizes.

    For cartesian grids: ndarray containing number of cells in x, y and z

    direction.

  • x_coords (list) – Contains the two x coordinates of the four fracture corner points. If not, the coordinates will be set to [0, 1].

  • y_coords (list) – Contains the two y coordinates of the four fracture corner points. If not, the coordinates will be set to [0, 1].

Returns

Mixed-dimensional grid for the domain.