phipict.meshing.BlockMesh

class phipict.meshing.BlockMesh(merge_tol: float = 1e-09)[source]

Builds a Mesh from block corners, edges, cells and gradings.

Parameters:

merge_tol (float, optional) – Corners closer than this, relative to the size of the mesh, are merged. Default is 1e-9.

__init__(merge_tol: float = 1e-09) → None[source]

Methods

__init__([merge_tol])

add(spec)

Add a block and return its index.

add_edge(start, end, edge)

Give the edge between two corners a shape and/or grading.

add_periodic(patch_a, patch_b)

Make the faces of two patches periodic partners (OpenFOAM cyclic).

build([rel_tol])

Discretise the blocks and connect them.

resolve()

The blocks with merged corners, inferred cells, gradings and shared edges.

Attributes

blocks

The block specifications.

periodic

The periodic patch pairs.