A multilevel preconditioner and its shared memory implementation for a new generation reservoir simulator

Shuhong Wu, Jinchao Xu, Chunsheng Feng, Chen-Song Zhang, Qiaoyun Li, Shi Shu, Baohua Wang, Xiaobo Li, Hua LiPetroleum 2014

Abstract

Modern reservoir simulation demands the solution of massive, complex linear systems to accurately model underground fluid flow. This paper presents a robust numerical framework, HiSim, which implements a Multilevel Subspace Correction (MSC) preconditioner. By leveraging a Block Compressed Sparse Row (BSR) data format and OpenMP-based shared-memory parallelism, the authors demonstrate that million-cell simulations, such as the SPE10 benchmark, can be performed efficiently on standard multicore hardware.

Introduction

The oil and gas industry increasingly requires high-resolution reservoir models with millions of grid cells to predict the movement of oil, water, and gas through porous media. These models result in massive systems of linear equations. Historically, single-core CPU performance improvements have stalled due to the "triple wall" of memory, instruction-level parallelism, and power. Consequently, simulation software must transition to parallel algorithms. However, many standard solvers are sequential, and naive parallelization can degrade convergence rates or significantly increase memory usage.

The HiSim Numerical Framework

The researchers developed the HiSim simulator to address these challenges using several integrated strategies, including the Fully Implicit Method (FIM) for robust discretization and specialized data structures.

Block Compressed Sparse Row (BSR) Format

Unlike the standard Compressed Sparse Row (CSR) format, HiSim utilizes the BSR format. This approach treats the small, dense Jacobian matrices associated with each grid cell as a single block. This significantly improves the efficiency of Sparse Matrix-Vector multiplications (SpMV), which are central to iterative solvers, by reducing index management overhead and improving cache locality.

The transformation of grid-based data into a block-structured matrix format suitable for the MSC preconditioner.

Multilevel Subspace Correction (MSC) Preconditioner

The MSC preconditioner is the framework's primary algorithmic innovation. It employs a "divide and conquer" strategy by decoupling pressure unknowns (which behave like elliptic equations) from saturation unknowns (which behave like hyperbolic equations).

  1. Pressure Block: Solved using Algebraic Multigrid (AMG).
  2. Saturation Block: Solved using Block Gauss-Seidel.

This physics-informed approach is more efficient than treating the system as a generic "black box" matrix because it applies specialized solvers to variables with distinct mathematical properties.

The mapping and operator construction process within the multilevel framework, illustrating the relationship between different subspaces.

Parallel Implementation and Results

The framework uses OpenMP for shared-memory parallelism, specifically optimizing the setup phase of the AMG and SpMV operations. By recognizing the banded nature of the coefficient matrices, the authors developed memory-efficient auxiliary arrays to prevent the memory bloat that often plagues parallel implementations.

Benchmarking with SPE10

The simulator was evaluated using the Tenth SPE Comparative Solution Project (SPE10, Model 2), a benchmark known for its extreme geological heterogeneity across 1.1 million grid cells (approximately 2.2 million degrees of freedom).

  • Execution Speed: On a single thread, HiSim completed the SPE10 benchmark in less than 45 minutes.
  • Parallel Scaling: The solver achieved a 1.52x speedup on a 4-core Intel i7 and a 2.26x speedup on an 8-core Intel Xeon server.
  • Robustness: The MSC preconditioner significantly reduced linear iterations (2,508) compared to simplified versions that skipped global smoothing or saturation decoupling (up to 4,462 iterations).
  • Validation: Production curves for oil rate and water cut generated by HiSim closely matched industry-standard simulators, confirming the physical accuracy of the new solver.

Conclusion

The HiSim framework demonstrates that combining physics-informed preconditioning (MSC) with optimized data structures (BSR) and shared-memory parallelism (OpenMP) makes large-scale reservoir simulation feasible on desktop-class hardware. Future work will focus on reducing sequential bottlenecks to improve parallel efficiency and extending the framework to heterogeneous GPU architectures.

Summary updated

BibTeX
@inproceedings{wu2014multilevel,
  author = {Shuhong Wu and Jinchao Xu and Chunsheng Feng and Chen-Song Zhang and Qiaoyun Li and Shi Shu and Baohua Wang and Xiaobo Li and Hua Li},
  title = {{A multilevel preconditioner and its shared memory implementation for a new generation reservoir simulator}},
  booktitle = {Petroleum},
  year = {2014},
  doi = {10.1007/s12182-014-0370-1},
}
Figure