pore_to_pore

openpnm.models.geometry.throat_vector.pore_to_pore(target)[source]

Calculates throat vector as straight path between connected pores.

Parameters

target (OpenPNM Base object) – Object with which this model is associated. This controls the length of the calculated array, and also provides access to other necessary properties.

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.