magpie.grids.grid3d

magpie.grids.grid3d(lengths, ngrids[, mins=[None, None, None], return1d=False])

Returns the mid-point of a uniform grid.

Parameters
lengthsfloat or list[float]

Length of the grid.

ngridsint or list[int]

Number of grid points.

minslist[float], optional

Minimum values of the grid along each axis.

return1dbool, optional

Returns 1d mid-points.

Returns
x3d, y3d, z3d3darray

The uniform 3d grid.

xmid, ymid, zmidarray, optional

The mid-point of the uniform grid.