def spherical(geometry, pore_diameter='pore.diameter', **kwargs):
    r"""
    Calculate cross-sectional area assuming the pore body is a sphere

    Parameters
    ----------
    geometry : OpenPNM Geometry Object
        The Geometry object which this model is associated with. This controls
        the length of the calculated array, and also provides access to other
        necessary geometric properties.

    pore_diameter : string
        The dictionary key of the array on the Geometry object containing the
        pore diameter values necessary to find the area.

    """
    diams = geometry[pore_diameter]
    value = _sp.constants.pi/4*(diams)**2
    return value
dataset/ETHPy150Open PMEAL/OpenPNM/OpenPNM/Geometry/models/pore_area.py/spherical/original