faces
¶
A quick way to generate an image with 2 opposing faces set to True
, which is used throughout PoreSpy to indicate inlets and outlets
import porespy as ps
import matplotlib.pyplot as plt
import numpy as np
import inspect
[03:07:16] ERROR PARDISO solver not installed, run `pip install pypardiso`. Otherwise, _workspace.py:56 simulations will be slow. Apple M chips not supported.
The arguments and default values of the function can be found as follows:
inspect.signature(ps.generators.faces)
<Signature (shape, inlet: int = None, outlet: int = None)>
shape
¶
This would be the same shape as the actual image under study. Let’s say we have an image of blobs
:
inlet
and outlet
¶
These indicate which axis the True
values should be placed, with inlets
placed at the start of the axis, and outlets
placed at the end: