morph_drain#

morph_drain(image, target_saturation=0.1, delta_r=0.05, initial_radius=9999)[source]#

Compute the morphological drainage curve to the target saturation.

Return type:

Tuple[ndarray, ndarray, ndarray]

Parameters:
  • image – A binary image where the pore phase is labeled 1 and the grain phase is labeled 0.

  • target_saturation – The target saturation for the morphological drainage curve. Default = 0.1

  • delta_r – Factor by which the invasion radius is decreased. Default = 0.05

  • initial_radius – Initial guess for the invasion radius. Default = min(initial_radius, maximum Euclidean distance)

Returns:

The invasion radii and their respective wetting saturation. 3D image of the estimated fluid configurations at the target saturation.

Return type:

Tuple[numpy.ndarray, numpy.ndarray, np.ndarray]