pc_curve_from_mio

pc_curve_from_mio(sizes, im=None, sigma=0.072, theta=180, voxel_size=1, stepped=True)[source]

Produces a Pc-Snwp curve from the output of porosimetry

Parameters
  • sizes (ndarray) – The image of invasion sizes returned from porosimetry

  • im (ndarray) – The voxel image of the porous media. It not provided then the void space is assumed to be im = ~(sizes == 0).

  • sigma (float) – The surface tension of the fluid-fluid system of interest

  • theta (float) – The contact angle measured through the invading phase in degrees

  • voxel_size (float) – The voxel resolution of the image

  • stepped (boolean) – If True (default) the returned data has steps between each point instead of connecting points directly with sloped lines.

Returns

pc_curve – A custom object with the following data added as named attributes:

’pc’

The capillary pressure, computed using the Washburn equation with the given fluid properties

’snwp’

the fraction of void space filled by non-wetting phase.

If stepped was set to True then the values include the corners of the steps, which may be helpful for plotting.

Return type

Results object