phipict.meshing.Patch

class phipict.meshing.Patch(name: str, bc: Wall | FreeSlip | Inflow | Outflow | None = None, kind: str | None = None)[source]

A named group of boundary faces with a condition.

Patches are compared by identity; a mesh keeps one patch per name.

name

Name of the patch.

Type:

str

bc

Condition of the faces. None until set, e.g. for imported patches.

Type:

BoundarySpec or None

kind

Type of the patch in the file it was read from ("wall", "patch", …), for information.

Type:

str or None

__init__(name: str, bc: Wall | FreeSlip | Inflow | Outflow | None = None, kind: str | None = None) → None

Methods

__init__(name[, bc, kind])

Attributes

bc

kind

name