IORSim: A Mathematical Workflow for Field-Scale Geochemistry Simulations in Porous Media

Felix Feldmann,Oddbjørn Nødland,Jan Sagen,Børre Antonsen,Terje Sira,Jan Ludvig Vinningland,Robert Moe,Aksel Hiorth
DOI: https://doi.org/10.1007/s11242-024-02094-9
IF: 3.6097
2024-06-24
Transport in Porous Media
Abstract:Reservoir modeling consists of two key components: the reproduction of the historical performance and the prediction of the future reservoir performance. Industry-standard reservoir simulators must run fast on enormous and possibly unstructured grids while yet guaranteeing a reasonable representation of physical and chemical processes. However, computational demands limit simulators in capturing involved physical and geochemical mechanisms, especially when chemical reactions interfere with reservoir flow. This paper presents a mathematical workflow, implemented in IORSim , that makes it possible to add geochemical calculations to porous media flow simulators without access to the source code of the original host simulator. An industry-standard reservoir simulator calculates velocity fields of the fluid phases (e.g., water, oil, and gas), while IORSim calculates the transport and reaction of geochemical components. Depending on the simulation mode, the geochemical solver estimates updated relative and/or capillary pressure curves to modify the global fluid flow. As one of the key innovations of the coupling mechanism, IORSim uses a sorting algorithm to permute the grid cells along flow directions. Instead of solving an over-dimensionalized global matrix calling a Newton–Raphson solver, the geochemical software tool treats the species balance as a set of local nonlinear problems. Moreover, IORSim applies basis swapping and splay tree techniques to accelerate geochemical computations in complex full-field reservoir models. The presented work introduces the mathematical IORSim concept, verifies the chemical species advection, and demonstrates the IORSim computation efficiency. After validating the geochemical solver against reference software, IORSim is used to investigate the impact of seawater injection on the NCS Ekofisk reservoir chemistry.
engineering, chemical
What problem does this paper attempt to address?
### Problems the paper attempts to solve The paper aims to solve the challenges faced in geochemical simulation in porous media, especially when chemical reactions interact with reservoir fluid flow. Specifically, the paper proposes a mathematical workflow named IORSim for adding geochemical calculations to porous - media flow simulators without accessing the source code of the original host simulator. The main objectives include: 1. **Improve computational efficiency and numerical stability**: By using the topological sorting algorithm, complex three - dimensional nonlinear problems are decomposed into a series of one - dimensional sub - problems, thereby improving numerical stability and computational efficiency. 2. **Seamlessly integrate existing reservoir models**: Allow seamless integration of geochemical reaction calculations in existing industry - standard reservoir simulators without the need to rebuild the entire geological model. 3. **Handle complex geological structures and long production histories**: Be able to handle full - field reservoir models that contain complex geological structures, a large number of wells, and long production histories. 4. **Verification and application**: Verify the chemical species advection calculation of IORSim by comparison with reference software and demonstrate its application effect in actual oil fields, especially in the study of the impact of seawater injection on reservoir chemistry in the Ekofisk oil field on the Norwegian Continental Shelf (NCS). ### Key innovation points - **Topological sorting algorithm**: IORSim uses the topological sorting algorithm to arrange grid cells along the flow direction, transforming three - dimensional problems into a series of one - dimensional problems, thereby improving computational efficiency and numerical stability. - **Base - exchange and splay - tree techniques**: Combine base - exchange and splay - tree techniques to significantly reduce the geochemical calculation time in complex full - field reservoir models. - **Two - way coupling mechanism**: Provide two specialized coupling mechanisms, one is a one - way high - speed forward simulation mode, and the other is a two - way backward coupling mode. The latter updates the relative permeability curve at each time step to adjust the global fluid flow. ### Application cases The paper demonstrates the capabilities of IORSim through practical applications in the Ekofisk oil field. Research shows that seawater injection has changed the mineral composition of Ekofisk and affected the chemical properties of the produced water. Specifically: - Seawater promotes the dissolution of calcite. - It has led to the precipitation of magnesite and anhydrite. - The surface complexation model shows that sulfate ions are adsorbed on the calcite surface. These results not only verify the effectiveness of IORSim but also provide important scientific basis for understanding the impact of seawater injection on reservoir chemistry.