Parallel multi-stage preconditioners with adaptive setup for the black oil model

Li Zhao, Chunsheng Feng, Chen-Song Zhang, Shi Shu · DOI

Introduction

Reservoir simulation is a cornerstone of the energy industry, enabling engineers to predict the movement of oil, water, and gas through complex subsurface rock formations. However, these simulations are computationally intensive, often requiring days to complete on high-performance clusters. This paper introduces significant optimizations for the linear solvers used in these simulations, specifically targeting the "black oil model" under the Fully Implicit Method (FIM). By introducing an adaptive setup for preconditioners and a novel parallel smoother, the authors achieve up to a 9.5x speedup on modern hardware.

The Computational Bottleneck

In a typical reservoir simulation, the FIM ensures numerical stability but necessitates solving massive, non-linear systems of equations at every timestep. These systems are linearized into Jacobian systems, which must be solved iteratively. As shown in the general workflow (Figure 1), the "Solve" phase is a recurring and dominant part of the process.

Figure 1: Flowchart of the reservoir simulation process, highlighting the iterative linear solver phase.

Empirical data suggests that these linear calculations can consume over 80% of total simulation time. The primary challenges are twofold: the high cost of setting up preconditioners like Constrained Pressure Residual (CPR) and the inherently sequential nature of traditional "smoothers" like Gauss-Seidel, which limits their effectiveness on parallel architectures like GPUs.

Methodology

Adaptive Setup CPR (ASCPR)

The standard CPR preconditioner is rebuilt from scratch at every iteration of the solver. However, the Jacobian matrix often evolves slowly between steps. The authors propose an Adaptive Setup (ASCPR) strategy: the preconditioner is only updated if the previous step's convergence rate falls below a specific threshold $\mu$. By reusing the existing preconditioner when the system hasn't changed significantly, the solver bypasses the expensive and often poorly parallelized setup phase without compromising final accuracy.

Parallel Gauss-Seidel (PGS-SCM)

To address the sequential nature of the Gauss-Seidel smoother, the authors developed a Parallel Gauss-Seidel based on a Strong Connection Matrix (PGS-SCM). This method utilizes algebraic multi-coloring to group nodes that can be processed simultaneously.

Figure 3: Comparison of (a) two-color and (b) four-color grid schemes used for parallelizing smoothers.

Unlike traditional grid-based coloring (e.g., red-black checkerboards), PGS-SCM is purely algebraic. It analyzes the "strength" of connections within the matrix itself. By ignoring weak connections (below a threshold $\theta$), the algorithm can reduce the total number of colors required. Fewer colors result in larger sets of independent nodes, maximizing parallel granularity and efficiency on multi-core CPUs and GPUs. Crucially, this method maintains the exact convergence properties of the sequential version.

Experimental Results

The proposed methods were validated using the industry-standard SPE10 benchmark. For a three-phase model with 3.28 million degrees of freedom, the ASCPR strategy reduced the number of setup calls from 178 to just 24.

Performance benchmarks demonstrated significant scalability:

  • CPU Parallelism: Using OpenMP with 16 threads, the solver achieved a 6.5x speedup.
  • GPU Acceleration: On an NVIDIA Tesla T4 using CUDA, the speedup reached 9.5x.

When compared against tNavigator, a leading commercial simulator, the authors' implementation showed superior total simulation times as the degree of parallelism increased, proving its viability for real-world industrial applications.

Conclusion

The integration of adaptive setup logic and algebraic multi-coloring represents a major step forward in high-performance reservoir simulation. By mitigating the "setup bottleneck" and enabling efficient parallel smoothing, these techniques allow for faster, more detailed simulations of complex energy resources. Future work will focus on extending these methods to distributed-memory systems using MPI to support even larger "giant" reservoir models.

Summary updated

BibTeX
@inproceedings{zhao2022parallel,
  author = {Li Zhao and Chunsheng Feng and Chen-Song Zhang and Shi Shu},
  title = {{Parallel multi-stage preconditioners with adaptive setup for the black oil model}},
  booktitle = {Computers},
  year = {2022},
  doi = {10.1016/j.cageo.2022.105230},
}
Figure