Abstract
The objective of the ComPASS project is to develop a parallel multiphase Darcy flow simulator adapted to general unstructured polyhedral meshes (in a general sense with possibly non-planar faces) and to the parallelization of advanced finite volume discretizations with various choices of the degrees of freedom such as cell centres, vertices, or face centres. The main targeted applications are the simulation of CO2 geological storage, nuclear waste repository, and reservoir simulations.
Introduction
Simulating fluid movement in the Earth's subsurface—known as Darcy flow—is essential for critical environmental and industrial tasks such as carbon sequestration, nuclear waste management, and oil recovery. However, geological formations are inherently complex, featuring faults, fractures, and erosion patterns that traditional structured "brick-like" grids fail to represent accurately.
While advanced Finite Volume (FV) schemes have been developed to manage these geometries, scaling them to high-performance computing (HPC) environments remains a significant challenge. This difficulty arises because the "degrees of freedom" (the points where pressure or saturation are calculated) can vary significantly between schemes—sometimes residing at cell centers, sometimes at vertices, or on faces. ComPASS (Computing Parallel Architecture for Subsurface Simulations) was developed to provide a flexible, parallel architecture capable of handling these diverse schemes on massive, irregular 3D grids.
Mesh Flexibility and Discretization
ComPASS is built to handle general polyhedral meshes, including those with non-planar faces, which are often necessary to capture complex geological features.
A key feature of the framework is its support for the Vertex Approximate Gradient (VAG) scheme. This specific FV discretization utilizes both cell and vertex unknowns. To optimize performance, ComPASS employs a "Schur complement" technique to eliminate cell unknowns locally, significantly reducing the size of the global linear system that must be solved in parallel.
Implementation and Parallel Strategy
The authors developed ComPASS using Fortran 90 and MPI, opting to build a custom mesh management system to maintain granular control over memory and connectivity. The parallel strategy relies on several core components:
- Domain Decomposition: The mesh is partitioned using the METIS library. Each processor is assigned a set of cells plus a "ghost layer" of neighboring cells. This overlap allows the complex assembly of physics equations to occur entirely in parallel without inter-processor communication.
- Deterministic Synchronization: To prevent deadlocks during execution, the framework utilizes a strict message-ordering algorithm for point-to-point MPI communications.
- Solver Integration: ComPASS integrates with the PETSc library to solve resulting sparse linear systems using parallel Krylov methods, such as GMRES.
Performance Evaluation
The framework was evaluated using synthetic benchmarks, including a topologically Cartesian grid of approximately 2 million cells and a randomly perturbed grid designed to test the robustness of polyhedral discretization. Tests conducted on the Aix-Marseille University cluster (up to 500 processes) yielded several key insights:
- Local Assembly Efficiency: The "transmissivity" calculations (the geometric portion of the flow equations) achieved perfect linear speedup because they require zero inter-process communication.
- The 50,000-Cell Rule: For implicit solvers to maintain high efficiency, each process should handle at least 50,000 mesh cells. Below this threshold, communication overhead begins to dominate computation time.
- Robustness: The tool demonstrated consistent performance across both regular and highly distorted polyhedral grids, validating the underlying mathematics for non-planar faces in a parallel environment.
Conclusion and Future Work
While ComPASS demonstrates strong scalability for problems up to 500 processes, the authors identified a current bottleneck: a single master process handles initial mesh reading and partitioning. Future iterations will require parallel mesh loading to support "extreme-scale" simulations involving billions of cells. Additionally, while this work validates the framework on parabolic problems, future development will focus on implementing full, non-linear multiphase Darcy flow and parallelizing the post-processing pipeline.
Summary updated