porespy.generators.faces#
- porespy.generators.faces(shape, inlet: int = None, outlet: int = None)#
Generate an image with
Truevalues on the specifiedinletandoutletfaces- Parameters:
shape (list) – The
[x, y, z (optional)]shape to generate. This will likely be obtained fromim.shapewhereimis the image for which an array of faces is required.inlet (int) – The axis where the faces should be added (e.g.
inlet=0will putTruevalues on thex=0face). A value ofNonebypasses the addition of inlets.outlet (int) – Same as
inletexcept for the outlet face. This is optional. It can be be applied at the same time asinlet, instead ofinlet(ifinletis set toNone), or ignored (ifoutlet = None).
- Returns:
faces – A boolean image of the given
shapewithTruevalues on the specifiedinletand/oroutletface(s).- Return type:
ndarray
Examples
Click here to view online example.