Abstract
In this work, we study a numerical method to approximate the exact solution of a simple in situ combustion model. To achieve this, we use the mixed nonlinear complementarity method (MNCP), a variation of the Newton method for solving nonlinear systems, incorporating a single Hadamard product in its formulation. The method is based on an implicit finite difference scheme and a mixed nonlinear complementarity algorithm (FDA-MNCP). One of its main advantages is that it ensures global convergence, unlike the finite difference method and the Newton method, which only guarantee local convergence. We apply this theory to an in situ combustion model, reformulating it in terms of mixed complementarity. Additionally, we compare it with the FDA-NCP method, demonstrating that the FDA-MNCP is computationally more efficient when the spatial discretization is refined.
1. Introduction
Several mathematical models in various disciplines, such as engineering, physics, economics and other sciences, involve the study of parabolic-type partial differential equations. These models can lead to mixed complementarity problems [1], as is the case with the in situ combustion model, which is the focus of this work. Other applications of complementarity problems are discussed in [1,2].
Since our objective is to approximate the analytical solution, we develop a numerical method to achieve this goal. This technique is applied to a simplified in situ combustion model, which is reformulated as a mixed complementarity problem.
The model analyzed in this study was initially proposed in [3,4] and later examined in detail in [5]. This model considers the injection of air into a porous medium containing solid fuel and consists of a system of two nonlinear parabolic differential equations. The model is based on the following assumptions: only a small fraction of the available space is occupied by fuel, making porosity changes during the reaction negligible; the solid and gas phases are in local thermal equilibrium, meaning they share the same temperature; heat losses are neglected, which is a reasonable assumption for in situ combustion under field conditions; and finally, pressure variations are assumed to be small compared to the prevailing pressure [6,7].
The main contribution of this work is the study and simulation of a simplified in situ combustion model, applying the Crank–Nicolson method and the FDA-MNCP algorithm [8,9].
We present results demonstrating that the sequence of feasible points generated remains within a feasible region. Additionally, we verify that the directions obtained are feasible and descending for a function associated with the complementarity problem. Furthermore, we provide a proof of global convergence for the FDA-MNCP method, following the approach used for FDA-NCP [10].
We apply the FDA-MNCP method to the in situ combustion problem, describing the discretization procedure using the finite difference technique for the associated mixed complementarity problem. Additionally, we present the numerical results along with the corresponding error analysis, comparing them with the FDA-NCP method. Finally, we provide some conclusions.
2. Physical Problem Modeling
One of the major challenges in extracting fuel from a reservoir is its high viscosity. To reduce the viscosity, techniques such as steam injection or in situ combustion are applied. In situ combustion is an enhanced oil recovery method that involves injecting an oxidizing agent, such as air or oxygen, directly into the reservoir to initiate a combustion reaction. The heat generated by this process reduces the oil’s viscosity, improving its flow toward production wells. In this work, we study a simple model for in situ combustion described in [5]. However, obtaining analytical solutions is impossible, and using the finite difference method in time presents difficulties due to the presence of shock waves [11,12]. To overcome this problem, the system is reformulated as a mixed nonlinear complementarity problem (FDA-MNCP) in time and as a finite difference method in space.
The model examines one-dimensional flows with a combustion wave when an oxidant (air containing oxygen) is injected into a porous medium. Initially, the medium contains a fuel that is essentially immobile, does not vaporize, and has an unlimited supply of oxygen. This scenario applies to solid or liquid fuels with low saturation.
As in [4], we study a simplified model where
- A small part of the available space is occupied by fuel.
- Porosity changes in the reaction are negligible.
- The temperature of the solid and gas are the same (local thermal equilibrium).
- The gas velocity is constant.
- The heat loss is negligible.
- Pressure variations are small compared to the prevailing pressure.
These simplifications are justified by the strong nonlinearity of the Arrhenius factor in the reaction rate, which allows the reaction rate to be neglected as soon as the temperature decreases. This method remains valid as long as most of the reaction occurs at the highest temperatures. One consequence of this assumption is that oxygen is not fully consumed at high temperatures, making its breakthrough possible. In such cases, oxygen comes into contact with fuel downstream of the fast reaction zone, leading to slower reactions in the downstream region. This is the main reason for neglecting reactions at low temperatures, such as in laboratory experiments. However, in field applications, low-temperature oxidation reactions can be relatively fast, while heat losses remain minimal. These factors support the validity of the applied simplifications. For more details, see [3,13].
The model is defined in terms of temporal and spatial coordinates and includes the heat balance equation, the molar balance equation for immobile fuels, and the ideal gas law.
where T [K] is the temperature, is the molar density of the gas, and is the molar concentration of the immobile fuel. The set of parameters along with their typical values are given in Table 1.
Table 1.
Dimensional parameters for in situ combustion and their typical values [4].
As in [4], for simplicity, we assume . This assumption is valid because, in the combustion reaction, moles of immobile fuel react with moles of oxygen, reproducing moles of gaseous products and, potentially, nonreactive solid products, as in the reaction Since the amount of oxygen is unlimited, the reaction rate is defined as
The variables to be determined are the temperature and the molar concentration of the immobile fuel . Since the equations are not yet dimensionless, we follow the approach outlined in [4] to derive their dimensionless form:
where , with the dimensionless constants:
Here, is the Peclet number for thermal diffusion, u represents the dimensionless thermal wave velocity, E is a rescaled activation energy, and is a scaled reservoir temperature. The initial conditions for the reservoir are
and the injection conditions are
3. Description of the FDA-MNCP Method for the Simple In Situ Combustion Model
We now provide a detailed description of the finite difference scheme for the in situ combustion model using the FDA-MNCP method. To achieve this, we employ a mesh and apply the Crank–Nicolson method to approximate the spatial derivatives, taking advantage of its well-known benefits, such as unconditional stability [14]. Thus,
Considering the Dirichlet conditions at point :
and the Neumann conditions at point :
As given in [15], the value at is known at all times, whereas the value at is not. Thus,
The boundary condition at is given by
therefore,
This defines the structure of the FDA-MNCP method:
To derive the discrete form of (14), we substitute (8)–(11) into (14) to obtain
The scheme is valid for at points where the values are unknown. At the boundary points, for , substituting (12) into (16) we obtain
and for , we replace (13) in (16) to obtain
Thus, (16) is valid for all . By combining expressions (17) and (18), we obtain the following inequality for the variable :
where is known at every instant of time.
Furthermore,
where Similarly, to obtain the discrete form of (15), we substitute (8)–(11) into (15) to obtain
The difference scheme is valid for all at points where the values are unknown.
Therefore, (24) is valid for all . By combining expressions (25) and (26), we obtain the following inequality for the variable :
where is known at every instant of time.
Furthermore,
Therefore, the discrete form of (14) and (15) are given by (19) and (27).
and must comply with
Thus, combining (19), (27), (30), and (32) forms a mixed complementarity problem, which can be solved using the FDA-MNCP algorithm.
The numerical results obtained from the implementation of the algorithm in MATLAB R2023b are presented in the following section.
4. Comparison of FDA-MNCP and FDA-NCP Methods
We now present the numerical results of the simulations performed in MATLAB for the FDA-MNCP method. In this simulation, we considered the space and time intervals as and , respectively. The number of subintervals in time was kept constant at ; that is, while the number of subintervals in space was set to . For the FDA-MNCP method, we used an error tolerance of .
The values of the dimensionless parameters in (7) are
Using the previously defined input data, we obtained Figure 1, Figure 2, Figure 3 and Figure 4, which illustrate the results obtained by Algorithm 1 and Algorithm 5 from [4] for the FDA-MNCP and FDA-NCP methods, respectively [10].
| Algorithm 1: implementation FDA-MNCP |
Step 1. and Step 2. To obtain and , we apply the method to solve the mixed complementarity problem. Step 3. If , then END; else , and return to Step 2 |
Figure 1.
Comparison of the FDA-MNCP and FDA-NCP methods for M = 50 at time instants t = 0.000, 0.002, 0.004, 0.006, 0.008, 0.010. The values of are represented by green dots and a solid red line, and the values of are represented by pink dots and a solid blue line.
Figure 2.
Comparison of the FDA-MNCP and FDA-NCP methods for M = 100 at times t = 0.000, 0.002, 0.004, 0.006, 0.008, 0.010. The values of are represented by green dots and a solid red line, and the values of are represented by pink dots and a solid blue line.
Figure 3.
Comparison of the FDA-MNCP and FDA-NCP methods for M = 200 at times t = 0.000, 0.002, 0.004, 0.006, 0.008, 0.010. The values of are represented by green dots and a solid red line, and the values of are represented by pink dots and a solid blue line.
Figure 4.
Comparison of the FDA-MNCP and FDA-NCP methods for M = 400 at times t = 0.000, 0.002, 0.004, 0.006, 0.008, 0.010. The values of are represented by green dots and a solid red line, and the values of are represented by pink dots and a solid blue line.
As shown in Figure 1, Figure 2, Figure 3 and Figure 4, the results obtained using the FDA-MNCP and FDA-NCP methods exhibit a strong agreement, as observed at the time instances indicated in the figures. In Figure 5, the differences between the two methods can be observed.
Figure 5.
Difference between FDA-MNCP and FDA-NCP methods.
The differences between the solutions for and are very small as the number of points increases, demonstrating strong agreement between the FDA-MNCP and FDA-NCP methods [10].
Below, we present four tables comparing the computational time for using the FDA-MNCP method and the FDA-NCP method studied in [4].
As shown in Table 2, the computational time required by the FDA-MNCP method is approximately twice that of the FDA-NCP method when the x -axis is partitioned into 50 points. Additionally, the number of iterations for the FDA-MNCP method at the given time steps is higher than that of the FDA-NCP method. However, as the number of points in the mesh increases, the computational cost decreases. With 200 points, the cost is reduced by approximately , and with 400, it is reduced by approximately .
Table 2.
Comparison of the computational process time with for the FDA-MNCP and FDA-NCP methods. is the time measured in seconds that the method took to find the solution at time t.
In Table 3, we can also observe that the computational time required by the FDA-MNCP method is slightly higher than that of the FDA-NCP method, as is the number of iterations. However, as shown in the following tables, increasing the number of points in the spatial discretization leads to a reduction in the computational cost.
Table 3.
Comparison of the computational process time with for the FDA-MNCP and FDA-NCP methods. t(n) is the time measured in seconds that the method took to find the solution at time t.
In Table 4, we observe that when the number of partitions is increased to 200, the computational time required by the FDA-MNCP method becomes shorter than that of the FDA-NCP method, although the number of iterations remains higher.
Table 4.
Comparison of the computational process time with for the FDA-MNCP and FDA-NCP methods. t(n) is the time measured in seconds that the method took to find the solution at time t.
From Table 5, we observe that as the number of partitions increases significantly, the computational time required by the FDA-MNCP method becomes much lower than that of the FDA-NCP method [10]. This is because, in the FDA-MNCP method, the calculation of requires only half the computations compared to the calculation of in the FDA-NCP method [10], despite the higher number of iterations. Additionally, we note that the number of iterations remains relatively consistent across the previously presented tables.
Table 5.
Comparison of the computational process time with for the FDA-MNCP and FDA-NCP methods. is the time measured in seconds that the method took to find the solution at time t.
5. Error Analysis
In this section, we describe the numerical study of the relative error for the FDA-MNCP method at each time step and for , where . The length of the time subinterval was kept constant at and , and the results were compared with those of the FDA-NCP method [4].
Table 6 and Table 8 present the relative error results for the FDA-MNCP method, while Table 7 and Table 9 show the relative error for the FDA-NCP method. These results are illustrated in Figure 6 and Figure 7.
Table 6.
Relative error for with FDA-MNCP and for the time instants t indicated in the first column.
Table 7.
Relative error for with FDA-NCP and for the time instants t indicated in the first column.
Figure 6.
Time . relative method error. Here, .
Figure 7.
Time . relative method error FDA-NCP. Here, .
As shown in Figure 6 and Figure 7, the relative errors for the FDA-MNCP and FDA-NCP methods are very similar. This is further confirmed by the following tables, which present the relative error for and using .
In Table 6 and Table 7, we see that the relative errors for of both the FDA-MNCP method and the FDA-NCP method are very similar since they are the same in the first three decimal places; that is, the error does not increase, but the computational cost is reduced as the points in the discretization increase.
Similarly, in Table 8 and Table 9 we see that for of both the FDA-MNCP method and the FDA-NCP method are very similar, since the first three decimal places are the same.
Table 8.
Relative error for with FDA-MNCP and for the instants of time t indicated in the first column.
Table 9.
Relative error for with FDA-NCP and for the instants of time t indicated in the first column.
6. Conclusions
- We proposed solving the simple in situ combustion model using a numerical method based on an implicit finite difference scheme and a nonlinear mixed complementarity algorithm. We hypothesize that this approach may also be applicable to parabolic problems, which can be reformulated as mixed complementarity problems, as demonstrated for system (1).
- In this work, we demonstrated that the feasible interior point algorithm FDA-MNCP is an effective technique for numerically solving mixed complementarity problems.
- In the existing literature, the problem is formulated as a complementarity problem using two Hadamard products. However, this approach has the drawback of requiring the solution of large linear systems. In our formulation, only a single Hadamard product is used, resulting in smaller systems and, consequently, lower computational costs. This can be observed in the tables.
- We solved the in situ combustion model (1) using the nonlinear mixed complementarity algorithm and compared it to the FDA-NCP method. The results show that both solutions are very similar, as observed in Figure 1, Figure 2, Figure 3 and Figure 4. This suggests that the method can be applied to both parabolic and hyperbolic problems that can be formulated as mixed complementarity problems.
Author Contributions
Conceptualization, J.C.A.S., A.R.C. and O.R.; methodology, J.C.P.B., J.L.P.B., E.C.M.R. and F.R.-L.; software and visualization, J.C.A.S., A.R.C. and F.R.-L., writing original draft preparation, J.C.P.B., J.L.P.B., E.C.M.R. and F.R.-L.; writing review and editing, A.R.C., J.C.A.S. and O.R. All authors have read and agreed to the published version of the manuscript.
Funding
This research received no external funding.
Data Availability Statement
The original contributions presented in the study are included in the article, further inquiries can be directed to the corresponding author.
Conflicts of Interest
The authors declare no conflict of interest.
References
- Chapiro, G.; Mazorche, S.R.; Herskovits, J.; Roche, J.R. Solution of the Non-linear Parabolic Problems using Nonlinear Complementarity Algorithm. (FDA-NCP). MecŃica Comput. 2010, 29, 2141–2153. [Google Scholar]
- Ferris, M.C.; Pang, J.S. Engineering and Economic Applications of Complementarity Problems; Society for Industrial and Applied Mathematics, SIAM: Philadelphia, PA, USA, 1997; Volume 39. [Google Scholar]
- Chapiro, G.; Mailybaev, A.A.; Souza, A.J.; Marchesin, D.; Bruining, J. Asymptotic approximation of long-time solution for low-temperature filtration combustion. Comput. Geosci. 2012, 16, 799–808. [Google Scholar]
- Ramirez Gutierrez, A. Application of the Nonlinear Complementarity Method for the Study of In Situ Oxygen Combustion. Master’s Thesis, Universidade Federal de Juis de Fora, Juiz de Fora, Brazil, 2013. [Google Scholar]
- Chapiro, G.; Ramirez, G.A.E.; Herkovits, J.; Mazorche, S.R.; Pereira, W.S. Numerical solution of a class of moving boundary problems with a nonlinear complementarity approach. J. Optim. Theory Appl. 2016, 168, 534–550. [Google Scholar]
- Bruining, J.; Marchesin, D.; Duijn, C.V. Steam injection into water-saturated porous rock. Comput. Appl. Math. 2003, 22, 359–395. [Google Scholar]
- Dake, L.P. Fundamentals of Reservoir Engineering; Elsevier: Amsterdam, The Netherlands, 1983. [Google Scholar]
- Burden, R.L.; Faires, J.D. Numerical Analysis, 9th ed.; Brooks/Cole—CENGAGE Learning: Boston, MA, USA, 2010. [Google Scholar]
- Dennis, J.E., Jr.; Schnabel, R.B. Numerical Methods for Unconstrained Optimization and Nonlinear Equations; Prentice-Hall: Hoboken, NJ, USA, 1983. [Google Scholar]
- Herskovits, J.; Mazorche, S. A feasible directions algorithm for nonlinear complementarity problems and applications in mechanics. Struct. Multidiscip. Otimiz. 2009, 37, 435–446. [Google Scholar]
- Serre, D. Systems of Conservation Laws 1. Hyperbolicity, Entropies, Shock Waves; Cambridge University Press: Cambridge, UK, 1999. [Google Scholar]
- Smoller, J. Shock Waves and Reaction-Diffusion Equations, 2nd ed.; Springer: Berlin/Heidelberg, Germany, 1994; 327p. [Google Scholar]
- Zeldovich, Y.B.; Barenblatt, G.I.; Librovich, V.B.; Makhviladze, G.M. The Mathematical Theory of Combustion and Explosion; Consultants Bureau: New York, NY, USA, 1985. [Google Scholar]
- Mayers, D.; Morton, K. Numerical Solution of Partial Differential Equations; Cambridge University Press: Cambridge, UK, 2005. [Google Scholar]
- Tannehill, J.C.; Anderson, D.A.; Pletcher, R.H. Computational Fluid Mechanics and Heat Transfer; Minkowycz, W.J., Sparrow, E.M., Eds.; CRC Press: Boca Raton, FL, USA, 1997. [Google Scholar]
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2025 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (https://creativecommons.org/licenses/by/4.0/).






