apply_trapping#

InvasionPercolation.apply_trapping()[source]#

Adjusts the invasion sequence of pores and throats that are trapped.

This method uses the reverse invasion percolation procedure outlined by Masson [1].

Returns:

  • This function does not return anything. It adjusts the

  • 'pore.invasion_sequence' and 'throat.invasion_sequence' arrays

  • on the object by setting trapped pores/throats to ninf. It also puts

  • True values into the 'pore.trapped' and 'throat.trapped'

  • arrays.

Notes

Outlet pores must be specified (using set_outlet_BC or putting True values in alg['pore.bc.outlet']) or else an exception is raised.

References

[1] Masson, Y. https://doi.org/10.1016/j.cageo.2016.02.003