fem.gmsh.GmshMesh
fem.gmsh.GmshMesh(
points,
cells,
owned,
entity_dim,
num_surface,
num_corner_points,
edge_parents,
max_step,
stats=dict(),
)A Gmsh tet mesh with every node owned — a static record.
Node rows are ordered the way :class:~cadjoint.fem.tetmesh.TetMesh expects them: boundary corners, then interior corners, then (for order 2) the shared midside block, so points[:num_surface] is the boundary and edge_parents describes the trailing rows.
Attributes
| Name | Type | Description |
|---|---|---|
| points | np.ndarray | Node positions (n, 3) as meshed (and snapped). |
| cells | np.ndarray | Connectivity (t, 4) or (t, 10) in meshio order, positive volume. |
| owned | OwnedNodes | The ownership record the node_map kind consumes. |
| entity_dim | np.ndarray | Per node, the dimension of the entity Gmsh gave it to (0 vertex, 1 curve, 2 surface, 3 volume). |
| num_surface | int | Number of leading boundary corner nodes. |
| num_corner_points | int | Number of corner nodes (excludes midsides). |
| edge_parents | np.ndarray | None | (e, 2) corner pairs for the midside block, or None for order 1. |
| max_step | float | The displacement clamp a re-projection should use. |
| stats | dict | Timings and counts — see :func:gmsh_tet_mesh. |