phipict.meshing.boundary

Named boundary patches and their conditions.

A Patch names a set of block faces ("inlet", "walls") and carries the condition the faces get when the mesh becomes a domain:

inlet = pm.Patch("inlet", pm.Inflow((1.0, 0.0)))
walls = pm.Patch("walls", pm.Wall())
block = pm.make_box((0, 0), (4, 1), cells=(64, 16),
               patches=pm.FacePatches(x_minus=inlet, y_minus=walls, y_plus=walls))

Imported meshes carry the patch names of the file; their conditions are set with Mesh.set_bc. Conditions of further fields (passive scalar, electric potential) are given as extra specs of phipict.bc.

Functions

apply_boundary(spec, block, face)

Set up a face of a solver block with a condition.

Classes

FacePatches([x_minus, x_plus, y_minus, ...])

The patch of each face of a block; None for faces without one.

FreeSlip([extra])

Free-slip wall or symmetry plane (OpenBoundary).

Inflow(velocity[, extra])

Prescribed inflow velocity.

Outflow([velocity, extra])

Outflow with a varying velocity.

Patch(name[, bc, kind])

A named group of boundary faces with a condition.

Wall([velocity, extra])

No-slip wall, optionally moving (CloseBoundary).