phipict.meshing.quality

Cell quality measures of structured blocks.

All functions take block vertices [dims, (nz + 1,) ny + 1, nx + 1] and return one value per cell, [(nz,) ny, nx].

Functions

aspect_ratio(coords)

Longest over shortest mean edge length of each cell.

cell_volumes(coords)

Signed cell volumes (areas in 2D), from the Jacobian at the cell centre.

non_orthogonality(coords)

Largest non-orthogonality angle of a cell's inner faces, in degrees.

scaled_jacobian(coords)

Smallest normalised corner Jacobian of each cell, in [-1, 1].

Classes

MeshReport(n_blocks, n_cells, min_volume, ...)

Quality summary of a mesh, from Mesh.check.