pc_curve¶
- pc_curve(im, pc, seq=None)[source]¶
Produces a Pc-Snwp curve given a map of meniscus radii or capillary pressures at which each voxel was invaded
- Parameters:
im (ndarray) – The voxel image of the porous media with
True
values indicating the void spacepc (ndarray) – An image containing the capillary pressures at which each voxel was invaded during an invasion experiment. This image can be produced using size_to_pc if not available.
seq (ndarray, optional) – An image containing invasion sequence values, such as that returned from the
ibip
function. The curve is generated by scanning from lowest to highest values and computing the corresponding saturation.
- Returns:
pc_curve – A custom object with the following data added as named attributes:
Attribute
Description
pc
The capillary pressure, either as given in
pc
or computed fromsizes
(see Notes).snwp
The fraction of void space filled by non-wetting phase at each pressure in
pc
- Return type:
Results object
Examples
Click here to view online example.