satn_to_seq¶
- satn_to_seq(satn, im, residual=None, mode='drainage')[source]¶
Converts a saturaiton map to a sequence map
- Parameters:
satn (ndarray) – A Numpy array with the value in each voxel indicating the global saturation at the point it was invaded. -1 indicates a voxel that not invaded, and 0 indicates solid phase.
im (ndarray) – A Numpy array with
True
values indicating the void space.residual (ndarray) – An ndarray with True values indicating the locations of any residual phase. If this is not provided, it will be assumed that no residual was present, which will result in an incorrect conversion to sequence if this assumption is not correct.
mode (str) –
Controls how the saturations are converted to sequence. The options are:
mode
Description
’drainage’
Non-wetting fluid displaces wetting fluid
’imbibition’
Wetting fluid dispalces the non-wetting fluid
- Returns:
seq – A Numpy array the same shape as satn with each voxel value indicating the sequence in which it was invaded, according to the specified mode. Solid voxels are indicated by 0 and uninvaded by -1.
- Return type:
ndarray
Examples
Click here to view online example.