pore_to_pore#

pore_to_pore(network)[source]#

Calculates throat vector as straight path between connected pores.

Parameters:

network (OpenPNM Network object) –

Returns:

unit_vec – A [Nt-by-3] numpy ndarray containing pore-to-pore unit vectors

Return type:

ndarray

Notes

There is an important impicit assumption here: the positive direction is taken as the direction from the pore with the lower index to the higher. This corresponds to the pores in the 1st and 2nd columns of the ‘throat.conns’ array as stored on the network.