graphlow.core.MeshTopology#
- class graphlow.core.MeshTopology(mesh: TensorMesh[T])#
Topology API for fixed-connectivity meshes.
This class provides:
Access to basic connectivity and cell type information from
pvmesh.Lazy construction and caching of incidence/adjacency skeletons (SciPy sparse) and their backend-materialized counterparts.
Block views (fixed-length vs jagged) for vectorized geometry/topology operations.
Mapping operations between point-, face-, and cell-associated fields.
All topology-derived host-side data is backend-neutral and cached. Backend materialization is delegated to
graphlow.core.cache.BackendCache.Notes
Caches assume that connectivity does not change. If connectivity changes, call
invalidate().
Attributes
Methods
|
Materialize cell adjacency (CC). |
|
Return cell block for specified cell type. |
Cell connectivity array (VTK-style flattened connectivity). |
|
|
Materialize cell degree matrix. |
|
Materialize cell-face incidence (CF). |
|
Materialize cell Laplacian matrix. |
Cell offsets array (VTK-style). |
|
|
Materialize cell-point incidence (CP). |
(n_cell, 4)-shaped cell connectivity array for tet cells. |
|
Cell types array (VTK cell type IDs). |
|
Degree of cell to cell. |
|
Degree of cell to face. |
|
Degree of cell to point. |
|
Degree of face to cell. |
|
Degree of face to point. |
|
Degree of point to cell. |
|
Degree of point to face. |
|
Degree of point to point. |
|
|
Return face block for specified face type. |
|
Materialize face-cell incidence (FC). |
|
Materialize face-point incidence (FP). |
Build or return the cached face registry for a volume mesh. |
|
|
Free backend sparse. |
|
Free host skeletons. |
|
Get or build derived skeleton (Laplacian, Degree, etc.). |
|
Get or build basic skeleton (CP, PC, CC, PP, FC, CF, FP, PF). |
Drop all topology caches. |
|
|
Map cell field to face. |
|
Map cell field to point. |
|
Map face field to cell. |
|
Map face field to point. |
|
Map point field to cell. |
|
Map point field to face. |
|
Compute median among n-hop cell neighbors. |
|
Compute median among n-hop point neighbors. |
|
Maximum topological dimension present in the mesh. |
|
Materialize normalized cell adjacency. |
|
Materialize normalized point adjacency. |
|
Materialize point adjacency (PP). |
|
Materialize point-cell incidence (PC). |
|
Materialize point degree matrix. |
|
Materialize point-face incidence (PF). |
|
Materialize point Laplacian matrix. |
Unique cell type IDs present in the mesh. |