Mesh Utilities#

Mesh Class#

SGMesh(points, cells[, point_data, ...])

Extended mesh class that inherits from meshio.Mesh.

Node and Element Numbering#

The numbering module provides validation and utilities for node and element numbering.

Validation Functions#

validate_node_ids(node_ids[, n_nodes, format])

Validate node ID numbering according to format requirements.

validate_element_ids(element_ids[, format])

Validate element ID numbering according to format requirements.

Utility Functions#

get_node_id_mapping(mesh)

Extract node ID mapping from mesh.

ensure_element_ids(mesh)

Ensure mesh has element IDs in cell_data.

check_duplicate_ids(ids[, id_type])

Check for duplicate IDs in a list.

check_forbidden_ids(ids[, format, id_type])

Check for forbidden IDs according to format requirements.

Mesh Validation Functions#

check_cell_ordering(mesh)

Check node ordering for supported cell types.

fix_cell_ordering(mesh)

Fix node ordering for supported cell types.

check_isolated_nodes(mesh)

Check if there are isolated/unconnected nodes in the mesh.

renumber_elements(mesh)

Renumber elements sequentially starting from 1.