spheres_and_cylinders#
- spheres_and_cylinders(network, pore_diameter='pore.diameter', throat_diameter='throat.diameter')[source]#
Calculates conduit lengths in the network assuming pores are spheres and throats are cylinders.
A conduit is defined as ( 1/2 pore - full throat - 1/2 pore ).
- Parameters:
network (OpenPNM Network object)
- pore_diameterstr
Name of the dictionary key on
network
containing the ndarray of pore diameter values.- throat_diameterstr
Name of the dictionary key on
network
containing the ndarray of throat diameter values.
- Returns:
lengths – Array (Nt by 3) containing conduit values for each element of the pore-throat-pore conduits. The array is formatted as
[pore1, throat, pore2]
.- Return type:
ndarray