[Paper Review] The Dune FoamGrid implementation for surface and network grids
This paper presents FoamGrid, a Dune-based C++ grid implementation for one- and two-dimensional surface and network grids in arbitrary-dimensional physical spaces. It supports non-manifold topologies (e.g., T-junctions, touching points), adaptive non-conforming refinement with parametrized elements, and dynamic grid growth via runtime element insertion/removal—enabling simulations of foams, fracture networks, and growing biological systems like root systems with full compatibility to Dune’s finite element infrastructure.
We present FoamGrid, a new implementation of the DUNE grid interface. FoamGrid implements one- and two-dimensional grids in a physical space of arbitrary dimension, which allows for grids for curved domains. Even more, the grids are not expected to have a manifold structure, i.e., more than two elements can share a common facet. This makes FoamGrid the grid data structure of choice for simulating structures such as foams, discrete fracture networks, or network flow problems. FoamGrid implements adaptive non-conforming refinement with element parametrizations. As an additional feature it allows removal and addition of elements in an existing grid, which makes FoamGrid suitable for network growth problems. We show how to use FoamGrid, with particular attention to the extensions of the grid interface needed to handle non-manifold topology and grid growth. Three numerical examples demonstrate the possibilities offered by FoamGrid.
Motivation & Objective
- To address the lack of general-purpose grid data structures for non-manifold surface and network grids in finite element simulations.
- To support complex geometries such as T-junctions and touching points common in foams and discrete fracture networks.
- To enable dynamic grid growth and remodeling, crucial for simulating biological network development.
- To provide a reusable, standards-compliant Dune grid interface that integrates with existing Dune finite element and assembler tools.
- To eliminate the need for ad hoc, non-portable grid implementations in network and surface PDE simulations.
Proposed method
- FoamGrid implements the Dune grid interface for 1D and 2D simplex grids embedded in Rw, allowing arbitrary physical dimensionality.
- It supports non-manifold topologies by allowing more than two elements to share a common facet, with extended data structures to manage such connectivity.
- Adaptive non-conforming refinement is supported, where refining a triangle produces four coplanar sub-triangles, preserving planarity.
- Elements are parameterized via maps from reference elements to physical space, enabling curved or nonlinear embeddings.
- Runtime grid growth is enabled through insertElement and insertVertex operations, with support for variable data transfer during growth.
- The implementation integrates with Dune’s ecosystem, including DuMux for finite volume discretization and grid managers for dynamic simulation.
Experimental results
Research questions
- RQ1Can a Dune-compliant grid interface be designed to natively support non-manifold topologies in surface and network grids?
- RQ2How can adaptive, non-conforming refinement be implemented for 1D and 2D grids in arbitrary-dimensional physical spaces?
- RQ3Can dynamic grid growth with element insertion and data transfer be achieved without invalidating the grid structure?
- RQ4To what extent can existing Dune finite element and assembler code be reused with a new grid implementation for network and surface problems?
- RQ5How efficiently can such a grid handle complex, evolving geometries like growing root systems or foam structures?
Key findings
- FoamGrid successfully supports non-manifold topologies such as T-junctions and touching points, enabling simulation of complex networks and foams.
- The grid allows adaptive refinement with four-child refinement per triangle, preserving planarity and enabling high-resolution surface approximation.
- Runtime element insertion and removal are supported without requiring a coarser parent element, enabling dynamic grid growth.
- Data transfer between old and new grid degrees of freedom is achieved via a persistent variable map and reconstruction after growth.
- A root system simulation with dynamic branching shows that pressure distribution adjusts dynamically as new root segments are added, maintaining consistent transpiration demand.
- The implementation enables full reuse of Dune’s finite element and assembler infrastructure, significantly reducing development overhead for network and surface PDE problems.
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.