[Paper Review] Support for Non-conformal Meshes in PETSc's DMPlex Interface
This paper presents an extension to PETSc's DMPlex interface that enables native support for non-conformal meshes—such as those from p4est's forests of quadtrees and octrees—by introducing a hierarchical tree structure and a reference tree to encode subset-superset relationships and non-conformal interface types. The method transparently handles hanging-node constraints, allowing existing finite element code for conformal meshes to operate unchanged on non-conformal ones.
PETSc's DMPlex interface for unstructured meshes has been extended to support non-conformal meshes. The topological construct that DMPlex implements---the CW-complex---is by definition conformal, so representing non- conformal meshes in a way that hides complexity requires careful attention to the interface between DMPlex and numerical methods such as the finite element method. Our approach---which combines a tree structure for subset- superset relationships and a "reference tree" describing the types of non-conformal interfaces---allows finite element code written for conformal meshes to extend automatically: in particular, all "hanging-node" constraint calculations are handled behind the scenes. We give example code demonstrating the use of this extension, and use it to convert forests of quadtrees and forests of octrees from the p4est library to DMPlex meshes.
Motivation & Objective
- To enable PETSc’s DMPlex interface to represent non-conformal hierarchical meshes such as forests of quadtrees and octrees.
- To preserve backward compatibility with existing finite element and finite volume code written for conformal meshes.
- To abstract away the complexity of non-conformal interfaces, particularly hanging-node constraints, through data structure extensions.
- To support advanced finite element methods (e.g., H(curl), H(div)) on non-conformal meshes via pullback operations on reference elements.
- To facilitate interoperability between hierarchical mesh frameworks (e.g., p4est) and PETSc’s broader numerical library stack.
Proposed method
- Augment DMPlex’s existing CW-complex representation with a hierarchical tree structure to encode parent-child relationships between mesh entities.
- Introduce a reference tree that describes the geometric and topological types of non-conformal interfaces (e.g., hanging nodes) across element boundaries.
- Use the reference tree to automatically compute constraint matrices for hanging nodes, enabling continuity enforcement without user intervention.
- Leverage pullback operations (e.g., covariant and contravariant Piola transforms) to map finite element functions from physical to reference elements, preserving continuity across non-conformal interfaces.
- Ensure that cell-centric loops in finite element and finite volume solvers remain semantically identical for conformal and non-conformal meshes by hiding mesh hierarchy behind the interface.
- Support conversion of p4est’s forest-of-quadtrees and forest-of-octrees into DMPlex meshes while preserving mesh topology and enabling use with PETSc’s full suite of solvers and preconditioners.
Experimental results
Research questions
- RQ1How can non-conformal hierarchical meshes be represented within PETSc’s DMPlex interface, which is fundamentally based on conformal CW-complexes?
- RQ2What data structures are required to encode parent-child relationships and non-conformal interface types without breaking backward compatibility with existing finite element and finite volume code?
- RQ3Can hanging-node constraints in adaptive mesh refinement be computed automatically using a reference tree and hierarchical metadata, eliminating the need for manual constraint assembly?
- RQ4To what extent can existing finite element and finite volume solvers in PETSc operate unchanged on non-conformal meshes through abstraction of mesh hierarchy?
- RQ5How can the interface support advanced finite elements (e.g., H(curl), H(div)) on non-conformal meshes using pullback operations on reference elements?
Key findings
- The extension successfully enables DMPlex to represent non-conformal meshes such as forests of quadtrees and octrees from the p4est library.
- Hanging-node constraints are computed automatically behind the scenes using the reference tree and hierarchical tree, requiring no changes to finite element code.
- Finite element methods, including those requiring covariant and contravariant Piola transformations, can be applied to non-conformal meshes via pullback to reference elements.
- The method maintains full compatibility with PETSc’s DM API, including support for submesh extraction, mesh partitioning, and integration with PetscFE and PetscFV.
- The finite volume method is being extended to support non-conformal meshes, though challenges remain due to multi-cell supports on facets and flux double-counting.
- The approach enables seamless use of adaptive mesh refinement in multiphysics simulations where finite element and finite volume fields coexist.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.