spheres_and_cylinders#
- spheres_and_cylinders(network, pore_diameter='pore.diameter', throat_diameter='throat.diameter', throat_centroid='throat.centroid')[source]#
Computes the endpoints of throats when pores are spherical.
The endpoints lie inside the sphere, defined by the lens formed between the intersection of the sphere and cylinder.
- 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.- throat_centroidstr
Name of the dictionary key on
network
containing the ndarray of throat centroid coordinate values.
- Returns:
endpoints – An array containing the Nt-2-3 coordinates of the end points of each throat.
- Return type:
ndarray