spheres_and_cylinders¶
- openpnm.models.geometry.conduit_lengths.spheres_and_cylinders(target, 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
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.
pore_diameter (str) – Name of the dictionary key on
target
where the array containing pore diameter values is storedthroat_diameter (str) – Name of the dictionary key on
target
where the array containing pore diameter values is stored
- Returns
lengths – Array (Nt by 3) containing conduit length values for each element of the pore-throat-pore conduits. The array is formatted as
[pore1, throat, pore2]
.- Return type
ndarray