pc_to_satn#

pc_to_satn(pc, im)[source]#

Converts an image of capillary entry pressures to saturation values

Parameters
  • pc (ndarray) – A Numpy array with the value in each voxel indicating the capillary pressure at which it was invaded. In order to accomodateh the possibility of positive and negative capillary pressure values, uninvaded voxels should be indicated by +inf and residual phase by -inf. Solid vs void phase is defined by im which is mandatory.

  • im (ndarray) – A Numpy array with True values indicating the void space

Returns

satn – A Numpy array with each voxel value indicating the global saturation at which it was invaded.

Return type

ndarray

Notes

If any -inf values are present the minimum saturation will start at a value greater than 0 since residual was present. If any +inf values are present the maximum saturation will be less than 1.0 since not all wetting phase was displaced.

Examples

Click here to view online example.