Skip to main content
Log in

Adjoint based optimal control of partially miscible two-phase flow in porous media with applications to CO2 sequestration in underground reservoirs

  • Published:
Optimization and Engineering Aims and scope Submit manuscript

Abstract

With the target of optimizing CO2 sequestration in underground reservoirs, we investigate constrained optimal control problems with partially miscible two-phase flow in porous media. Our objective is to maximize the amount of trapped CO2 in an underground reservoir after a fixed period of CO2 injection, while time-dependent injection rates in multiple wells are used as control parameters. We describe the governing two-phase two-component Darcy flow PDE system, formulate the optimal control problem and derive the continuous adjoint equations. For the discretization we apply a variant of the so-called BOX method, a locally conservative control-volume FE method that we further stabilize by a periodic averaging feature to reduce oscillations. The timestep-wise Lagrange function of the control problem is implemented as a variational form in Sundance, a toolbox for rapid development of parallel FE simulations, which is part of the HPC software Trilinos. We discuss the BOX method and our implementation in Sundance. The MPI parallelized Sundance state and adjoint solvers are linked to the interior point optimization package IPOPT, using limited-memory BFGS updates for approximating second derivatives. Finally, we present and discuss different types of optimal control results.

This is a preview of subscription content, log in via an institution to check access.

Access this article

Price excludes VAT (USA)
Tax calculation will be finalised during checkout.

Instant access to the full article PDF.

Fig. 1
Fig. 2
Fig. 3
Fig. 4
Fig. 5
Fig. 6
Fig. 7
Fig. 8
Fig. 9
Fig. 10
Fig. 11
Fig. 12
Fig. 13
Fig. 14
Fig. 15

Similar content being viewed by others

References

  • Alexe M, Sandu A (2009) On the discrete adjoints of adaptive time stepping algorithms. J Comput Appl Math 233(4):1005–1020

    Article  MATH  MathSciNet  Google Scholar 

  • Allgöwer F, Findeisen R, Ebenbauer C (2003) Nonlinear model predictive control. Encyclopedia for life support systems (EOLSS) article contribution 6.43.16.2

  • Asheim H (1988) Maximization of water sweep efficiency by controlling production and injection rates. SPE paper 18365, presented at SPE European petroleum conference, London

  • Bastian P (1999) Numerical computation of multiphase flows in porous media, Habilitation thesis, Christian-Albrechts-Universität Kiel

  • Ben Gharbia I, Jaffre J (2014) Gas phase appearance and disappearance as a problem with complementarity conditions. Math Comput Simul 99:28–36

    Article  MathSciNet  Google Scholar 

  • Benk J, Mehl M, Ulbrich M (2011) Sundance PDE solvers on Cartesian fixed grids in complex and variable geometries. In: Proceedings of ECCOMAS thematic conference on CFD and optimization, Antalya

  • Bielinski A (2006) Numerical simulation of \(\text{ CO }_2\) sequestration in geological formations. Dissertation, Universität Stuttgart

  • Brandenburg C, Lindemann F, Ulbrich M, Ulbrich S (2009) A continuous adjoint approach to shape optimization for Navier Stokes flow. In: Kunisch K et al (eds) Optimal control of coupled systems of partial differential equations., International Series of Numerical Mathematics. Birkhäuser, Basel, pp 35–56

    Chapter  Google Scholar 

  • Brandenburg C, Lindemann F, Ulbrich M, Ulbrich S (2011) Advanced numerical methods for PDE constrained optimization with application to optimal design in Navier Stokes flow. In: Engell S et al (eds) Constrained optimization and optimal control for partial differential equations. Birkhäuser, Basel, pp 257–275

    Google Scholar 

  • Brooks RH, Corey AT (1964) Hydraulic properties of porous media., Hydrology Papers 3. Colorado State University, Fort Collins

    Google Scholar 

  • Brouwer DR (2004) Dynamic water flood optimization with smart wells using optimal control theory. PhD thesis, Delft University of Technology

  • Brouwer DR, Jansen JD (2004) Dynamic optimization of water flooding with smart wells using optimal control theory. SPE J 9(4):391–402

    Article  Google Scholar 

  • Celia MA, Binning P (1992) A mass-conservative numerical solution for two-phase flow in porous media with application to unsaturated flow. Water Resour Res 28(10):2819–2828

    Article  Google Scholar 

  • Chen Z, Huan G, Ma Y (2006) Computational methods for multiphase flows in porous media, vol 2., Computational science and engineering series. SIAM, Philadelphia

    Book  MATH  Google Scholar 

  • \(\text{CO}_2\) trapping mechanisms.

  • Dolle N, Brouwer DR, Jansen JD (2002) Dynamical optimization of water flooding with multiple injectors and producers using optimal control theory. In: Proceedings of 14th international conference on computational methods in water resources, Delft

  • Enriquez MU (2010)The effects of coupling adaptive time-stepping and adjoint-state methods for optimal control problems. PhD thesis, Rice University, Houston

  • Fischer A (1997) Solution of monotone complementarity problems with locally Lipschitzian functions. Math Program 76(3B):513–532

    MATH  Google Scholar 

  • Gao G, Reynolds AC (2006) An improved implementation of the LBFGS algorithm for automatic history matching. SPE J 11(1):5–17

    Article  Google Scholar 

  • Gockenbach MS, Symes WW (2003) Adaptive simulation, the adjoint state method, and optimization. In: Biegler LT et al (eds) Large scale PDE-constrained optimization. Springer, Berlin/New York, pp 281–297

    Chapter  Google Scholar 

  • Grüne L, Panneck J (2011) Nonlinear model predictive control., Communications and control engineering series. Springer, Berlin/New York

    Book  MATH  Google Scholar 

  • Helmig R (1997) Multiphase flow and transport processes in the subsurface. Springer, Berlin

    Book  Google Scholar 

  • Helmig R, Niessner J, Class H (2006) Recent advances in finite element methods for multiphase flow processes in porous media. Int J Comput Fluid Dyn 20(3):245–252

    Article  MATH  MathSciNet  Google Scholar 

  • Heroux MA, Willenbring JM, Heaphy R (2003) Trilinos developers guide. Sandia National Laboratories, SAND, pp 2003–1898

  • Hinze M, Pinnau R, Ulbrich M, Ulbrich S (2008) Optimization with PDE constraints. Mathematical modelling: theory and applications, vol 23. Springer, New York

    Google Scholar 

  • Hinze M, Sternberg J (2005) A-revolve: an adaptive memory-reduced procedure for calculating adjoints; with an application to computing adjoints of the instationary Navier-Stokes system. Optim Methods Softw 20(6):645–663

    Article  MATH  MathSciNet  Google Scholar 

  • Huber R, Helmig R (1999) Multiphase flow in heterogeneous porous media: a classical finite element method versus an implicit pressure-explicit saturation-based mixed finite element-finite volume approach. Int J Numer Methods Fluids 29(8):899–920

    Article  MATH  MathSciNet  Google Scholar 

  • Jansen JD (2011) Adjoint-based optimization of multi-phase flow through porous media: a review. Comput Fluids 46(1):40–51

    Article  MATH  MathSciNet  Google Scholar 

  • Korounis D, Voskov D, Aziz K (2010) Adjoint methods for multicomponent flow simulations. In: Proceedings of ECMOR XII: European conference on mathematics of oil recovery, Oxford

  • Lauser A, Hager C, Helmig R, Wohlmuth B (2011) A new approach for phase transitions in miscible multi-phase flow in porous media. Adv Water Resour 34(8):957–966

    Article  Google Scholar 

  • Li S, Petzold L (2004) Adjoint sensitivity analysis for time-dependent partial differential equations with adaptive mesh refinement. J Comput Phys 198(1):310–325

    Article  MATH  MathSciNet  Google Scholar 

  • Lindemann F (2012) Theoretical and numerical aspects of shape optimization with Navier-Stokes flows. Dissertation, Technische Universität München

  • Long KR (2003) Sundance rapid prototyping tool for parallel PDE optimization. In: Biegler LT et al (eds) Large scale PDE-constrained optimization. Springer, Berlin/ New York, pp 331–342

    Chapter  Google Scholar 

  • Long KR, Boggs PT, van Bloemen Wanders BG (2012) Sundance: high-level software for PDE-constrained optimization; SAND report

  • Mehos GJ, Ramirez WF (1989) Use of optimal control theory to optimize carbon dioxide miscible-flooding enhanced oil recovery. J Petroleum Sci Eng 2(4):247–260

    Article  Google Scholar 

  • Neitzel I, Tröltzsch F (2008) On convergence of regularization methods for nonlinear parabolic optimal control problems with control and state constraints. Control Cybern 37(4):1013–1043

    MATH  Google Scholar 

  • Neumann R, Bastian P, Ippisch O (2013) Modeling and simulation of two-phase two-component flow with disappearing nonwetting phase. Comput Geosci 17(1):139–149

    Article  MathSciNet  Google Scholar 

  • Oliver DS, Reynolds AC, Liu N (2008) Inverse theory for petroleum reservoir characterization and history matching. Cambridge University Press, Cambridge

    Book  Google Scholar 

  • Peszynska M, Jenkins EW, Wheeler MF (2002) Boundary conditions for fully implicit two-phase flow models. In: Feng X, Schulze TP (eds) Recent advances in numerical methods for partial differential equations and applications, vol 306., Contemporary mathematics series. AMS, Providence, pp 85–106

    Chapter  Google Scholar 

  • Sarma P, Aziz K, Durlofsky LJ (2005) Implementation of adjoint solution for optimal control of smart wells. SPE paper 92864, presented at SPE reservoir simulation symposium, Houston

  • Simon M, Ulbrich M (2013) Optimal control of partially miscible two-phase flow with applications to subsurface \(\text{ CO }_2\) sequestration. In: Bader M et al (eds) Advanced computing (Lecture Notes in Computational Science and Engineering) vol 93. Springer, New York, pp 81–98

  • Sudaryanto B, Yortsos YC (2000) Optimization of fluid front dynamics in porous media using rate control. Phys Fluids 12(7):1656–1670

    Article  Google Scholar 

  • Sudaryanto B, Yortsos YC (2001) Optimization of displacements in porous media using rate control. SPE paper 71509, presented at SPE Annual Technical Conference and Exhibition, New Orleans

  • Ulbrich M (2011) Semismooth Newton methods for variational inequalities and constrained optimization problems in function spaces, vol 11., MOS-SIAM series on optimization. SIAM, Philadelphia

    Book  MATH  Google Scholar 

  • Virnovski GA (1991) Water flooding strategy design using optimal control theory. In: Proceedings of 6th European Symposium on IOR, Stavanger

  • Wächter A, Biegler LT (2006) On the implementation of a primal-dual interior point filter line search algorithm for large-scale nonlinear programming. Math Program 106:25–57

    Article  MATH  MathSciNet  Google Scholar 

  • Zakirov IS, Aanonsen SI, Zakirov ES, Palatnik BM (1996) Optimization of reservoir performance by automatic allocation of well rates. In: Proceedings of ECMOR V: European conference on mathematics of oil recovery, Leoben

  • Zandvliet MJ, Bosgra OH, Jansen JD, van den Hof PMJ, Kraaijewanger JFBM (2007) Bang-bang control and singular arcs in reservoir flooding. J Petroleum Sci Eng 58(1):186–200

    Article  Google Scholar 

  • Zhang Q (2003) A finite difference-streamline diffusion (FDSD) method and its error estimates for two-phase incompressible miscible flow in porous media. Acta Math Appl Sin 26(2):318–327

    MATH  MathSciNet  Google Scholar 

  • Zhu C, Byrd RH, Nocedal J (1997) L-BFGS-B: Algorithm 778: L-BFGS-B, FORTRAN routines for large scale bound constrained optimization. ACM Trans Math Softw 23(4):550–560

    Article  MATH  MathSciNet  Google Scholar 

Download references

Acknowledgments

The support from Award No. UK-C0020, made by King Abdullah University of Science and Technology (KAUST) is gratefully acknowledged. This work was conducted as part of the MAC-KAUST project K1 “Simulating \(\hbox {CO}_2\) Sequestration” within the Munich Centre of Advanced Computing (MAC) at TUM. The computations were performed on a compute cluster that was partially funded by DFG INST 95/919-1 FUGG. Finally, we thank the referees for their valuable suggestions that helped us to improve the quality of the article.

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Michael Ulbrich.

Rights and permissions

Reprints and permissions

About this article

Check for updates. Verify currency and authenticity via CrossMark

Cite this article

Simon, M., Ulbrich, M. Adjoint based optimal control of partially miscible two-phase flow in porous media with applications to CO2 sequestration in underground reservoirs. Optim Eng 16, 103–130 (2015). https://doi.org/10.1007/s11081-014-9270-x

Download citation

  • Received:

  • Accepted:

  • Published:

  • Issue Date:

  • DOI: https://doi.org/10.1007/s11081-014-9270-x

Keywords

Navigation