phipict.meshing.FacePatches
- class phipict.meshing.FacePatches(x_minus: Patch | None = None, x_plus: Patch | None = None, y_minus: Patch | None = None, y_plus: Patch | None = None, z_minus: Patch | None = None, z_plus: Patch | None = None)[source]
The patch of each face of a block; None for faces without one.
Faces without a patch are connected to other blocks, or made periodic.
- __init__(x_minus: Patch | None = None, x_plus: Patch | None = None, y_minus: Patch | None = None, y_plus: Patch | None = None, z_minus: Patch | None = None, z_plus: Patch | None = None) None
Methods
__init__([x_minus, x_plus, y_minus, y_plus, ...])as_list()One entry per face, in
Faceorder.from_faces(patches)From one entry per face, in
Faceorder.items()The faces that have a patch, with their patch.
set(face, patch)A copy with the patch of one face replaced.
uniform(patch, ndims)Every face of an
ndimsblock with the same patch.Attributes
x_minusx_plusy_minusy_plusz_minusz_plus