equivalent_diameter#

equivalent_diameter(network, pore_volume='pore.volume', pore_shape='sphere')[source]#

Calculate the diameter of a sphere or edge-length of a cube with same volume as the pore.

Parameters:

network (OpenPNM Network object)

pore_volumestr

Name of the dictionary key on network containing the ndarray of pore volume values.

pore_shapestr

The shape of the pore body to assume when back-calculating from volume. Options are ‘sphere’ (default) or ‘cube’.

Returns:

diameters – A number ndarray containing pore diameter values

Return type:

ndarray