get_shape

openpnm.topotools.get_shape(network)[source]

Determine the shape of each axis of a simple cubic network

Parameters

network (OpenPNM network) – The network for which shape is desired

Returns

shape – The shape along each axis in the form of [Nx, Ny, Nz] where N is the number of pores

Return type

ndarray