phipict.meshing.connect

Block connections found from the geometry.

Two block faces are connected when their vertex grids coincide, in any relative orientation; periodic connections when they coincide after a translation. The orientation is turned into the axis codes of Block.ConnectBlock, so nobody has to work those out by hand.

Functions

find_connections(blocks, faces[, rel_tol, ...])

Connections between free faces whose vertices coincide.

match_faces(face_a, face_b, tol[, translation])

The orientation under which two faces coincide, if any.

Classes

Connection(block_a, face_a, block_b, face_b, ...)

A connection of face face_a of block block_a to a face of block_b.

Orientation(perm, flip)

How the in-face axes of one face map onto those of another.

Exceptions

NonConformingInterfaceError

Two block faces touch but their vertices do not coincide.