# fracture_grid: Generate random fracture patterns on a regular raster grid¶

make_frac_grid(frac_spacing, numrows=50, numcols=50, model_grid=None, seed=0)[source]

Create a grid that contains a network of random fractures.

Creates and returns a grid containing a network of random fractures, which are represented as 1’s embedded in a grid of 0’s.

Parameters: frac_spacing : int Average spacing of fractures (in grid cells) numrows : int, optional Number of rows in grid (if model_grid parameter is given, uses values from the model grid instead) numcols : int, optional Number of columns in grid (if model_grid parameter is given, uses values from the model grid instead) model_grid : Landlab RasterModelGrid object, optiona RasterModelGrid to use for grid size seed : int, optional Seed used for random number generator m : Numpy array Array containing fracture grid, represented as 0’s (matrix) and 1’s (fractures). If model_grid parameter is given, returns a 1D array corresponding to a node-based array in the model grid. Otherwise, returns a 2D array with dimensions given by numrows, numcols.