dimensionality#

dimensionality(network)[source]#

Determines whether a network is 1D, 2D or 3D, and in which dimensions

Parameters:

network (dict) – The OpenPNM network of interest

Returns:

dims – A 3 x 1 array of booleans with True indicating if any dimensionality exists on each axis.

Return type:

boolean mask

Notes

This function looks at the coordinates of each pore and if any axes all have the same values that axis is considered non-dimensional.