sphere

openpnm.models.geometry.pore_cross_sectional_area.sphere(target, pore_diameter='pore.diameter')[source]

Calculate cross-sectional area assuming the pore body is a sphere

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 stored

Returns

areas – A numpy ndarry containing pore cross-sectional area values

Return type

ndarray