spheres_and_cylinders¶
- openpnm.models.geometry.throat_length.spheres_and_cylinders(target, pore_diameter='pore.diameter', throat_diameter='throat.diameter')[source]¶
Finds throat length assuming pores are spheres and throats are cylinders.
- 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 throat diameter values is stored
- Returns
lengths – A numpy ndarray containing throat length values
- Return type
ndarray