 Research
 Open access
 Published:
Numerical simulation for twophase flow in a porous medium
Boundary Value Problems volume 2015, Article number: 7 (2015)
Abstract
In this paper, we introduce a numerical study of the hydrocarbon system used for petroleum reservoir simulations. This system is a simplified model which describes a twophase flow (oil and gas) with mass transfer in a porous medium, which leads to fluid compressibility. This kind of flow is modeled by a system of parabolic degenerated nonlinear convectiondiffusion equations. Under certain hypotheses, such as the validity of Darcy’s law, incompressibility of the porous medium, compressibility of the fluids, mass transfer between the oil and the gas, and negligible gravity, the global pressure formulation of Chavent (Mathematical Models and Finite Elements for Reservoir Simulation: Single Phase, Multiphase and Multicomponent Flows Through Porous Media, 1986) is formulated. This formulation allows the establishment of theoretical results on the existence and uniqueness of the solution (Gasmi and Nouri in Appl. Math. Sci. 7(42):20552064, 2013). Furthermore, different numerical schemes have been considered by many authors, among others we can refer the reader to (Chen in Finite element methods for the black oil model in petroleum reservoirs, 1994; Chen in Reservoir Simulation: Mathematical Techniques in Oil Recovery, 2007) and (Gagneux et al. in Rev. Mat. Univ. Complut. Madr. 2(1):119148, 1989). Here we make use of a scheme based on the finite volume method and present numerical results for this simplified system.
1 Introduction
The fluids flow within porous media has an important role in various domains, such as geothermal studies, geotechnics (the mechanics of soils), chemical engineering, ground water storage, hydrocarbon exploitation (see references [1] and [2]), etc. In some cases, there are two or more fluids with different characteristics. We are concerned with the simulation of the displacement of a fluid by another one, within a porous medium, while the displacing fluid is immiscible with the fluid being displaced. Different numerical techniques, mainly based on finite elements, have been used by many authors to solve such problems, for example see [3] and [4].
In this paper we introduce a finite volume method for solving the hydrocarbon system model often used for petroleum reservoir simulations. To prevent consistency defects in the scheme, we propose to modify the mesh where the discontinuity occurs, because of the porous media. We propose to design our new scheme, called the ‘diamond meshes scheme’ (DMS), whose convergence is proved, and which can be used to solve the nonlinear discrete equations. Finally, numerical simulations confirm that the DMS is significantly useful for such difficult problems taking into account their physical properties.
In this case, there are only two chemical species, or components, gas and oil, where this last component may exist in both phases (gas and oil), that is to say, the heavy residual component in the oil phase and the light volatile component in the gas phase. In order to reduce confusion, we need to distinguish carefully between the ‘oil component’ and the ‘oil phase’. This model, called a hydrocarbon system, is a simplified compositional model describing twophase flow in a porous medium with mass interchange between them. Therefore it can predict compressibility and mass transfer effects, in the sense that it is assumed that there is mass transfer between the oil and the gas phase. In this model the ‘oil component’ (also called stocktank oil) is the residual liquid at atmospheric pressure left after a differential vaporization, while the ‘gas component’ is the remaining fluid.
2 Mathematical model
One of the fluids wets the porous medium more than the other; we refer to this as the wetting phase fluid and we refer to the other as the nonwetting phase fluid. In an oilgas system, oil is the wetting phase. Let us consider a bounded connex open Ω of \(R^{d}\) (\(d=2\mbox{ or }3\)), describing the porous medium (the reservoir), with a Lipchitz boundary Γ, and let t be the time variable t in \([0,T[\), \(T <\infty\). Let \(C_{Gg}\) be the mass fraction of the gas component in the gas phase, \(C_{Og}\) the mass fraction of the oil component (the light component) in the gas phase, and \(C_{Oo}\) the mass fraction of the oil component (the heavy component) in the oil phase which is equal to 1. While this distribution of the hydrocarbon components between the oil and gas phases plays an important role in a steam drive process, we cannot say that the mass of each phase is conserved because of the possibility of transfer of the oil component between the two phases. Instead, we observe that the total mass of each component must be conserved.
Then the mass flux of the oil and the gas components are
The oil and gas mass components are
Then, for each fluid, we can write the conservation equations as
where (\(i=o,g \)) \(S_{i}\), \(U_{i}\), \(\rho_{i}\) represent the saturation, the velocity, and the density of the phase i, respectively. The parameter ϕ is the porosity of the medium. We have
where \(P_{o}\) and \(P_{g}\) are the oil and gaz pressure respectively.
We consider compressible fluids, with constant dynamic viscosities and where the gravity effect is neglected. Under these hypotheses, Darcy’s law combined with the mass conservation equations for each one of the component leads to the following system of partial differential equations of parabolic convectiondiffusion type:
where (\(i=o,g\)) \(P_{i}\), \(\mu_{i}\), \(k_{ri}\) represent the pressure, the viscosity, and the relative permeability of the phase i, respectively. The parameter K is the absolute permeability of the medium and \(\omega_{o}^{c}\), \(c=h,l\) is the mass fraction of the component c, denoted by h for the heavy component and by l for the light component in the oil phase. We have
Furthermore, we shall use the subscript S to indicate standard conditions, i.e. appropriate conditions for the temperature and the pressure of medium.
Let \(\rho_{OS}\), \(\rho_{GS}\) be the density (measured at standard conditions) of the oil and the gas components, respectively. The gas formation volume factor, denoted by \(B_{G}\), is the ratio of the volume of free gas (all of which is gas component), measured at the reservoir conditions, to the volume of the same gas measured at standard conditions. Thus
Let \(W_{G}\) be the weight of free gas, since \(V_{G}=\frac{W_{G}}{\rho_{g}}\) and \(V_{GS}=\frac{W_{G}}{\rho_{gS}}\), then
so that the volatility of the oil in the gas is expressed by the ratio
The mass fractions of the two components in the gas phase are
By adding the last two equations and noting that \(C_{Gg}+C_{Og}=1\), we obtain
The substitution of these mass fractions and densities into (1) gives, for the gas and the oil components,
We suppose that it is a saturated regime and is expressed by
The capillary pressure is given by
where
We define the mobility of each phase by the formula
and the total mobility λ by
To simplify, we set
Let us now introduce the new unknowns, namely the reduced saturation and the global pressure in the following way: if we denote by \(S_{i,m}\) and \(S_{i,M}\), the residual and the maximum saturations of the fluid \(i=o,g\), respectively; the reduced saturation is given by
The ‘global pressure’ was first introduced by Chavent and Jaffre [1] in the following form:
with
Hence
where
is the capillary diffusion. Therefore, our model is given by the following simplified system:
where \(\phi(x)=\varphi(x)(1S_{o,m}S_{o,g})\).
3 Weak formulations
First we introduce the following spaces:
The weak formulation of problem (22)(25) is written as
where \((\cdot,\cdot)_{\Omega}\) is the inner product defined on \(W ( \Omega ) \). A theoretical study of the existence and uniqueness of the weak solution was done and the details of the results can be found in [5].
4 Finite volume approximation
In this section we study the approximation of solutions to our model in the discrete finite volume framework. This family of schemes allows very general meshes and deals with the main properties of the physical features of the treated problems. The time interval \([ 0,T [ \) is divided into finite subintervals \([ t_{n},t_{n+1} [ \) of length \(\Delta t_{n}\), \(n=0,\ldots,M\) with \(t_{0}=0\) and \(t_{M}=T\). The space domain (the reservoir Ω) is discretized by a nonstructured stitching \(T_{h}\).
4.1 Notations
We introduce the following notation:

Let \(\vert K\vert \) denote the cell K surface, \(N(K)\) the set of triangles having a common side with the cell K.

Let \(e_{K,L}\) be the common side of the triangles K and L and \(\overrightarrow{\eta}_{K,L}\) be the normal oriented from K towards L.

\(\overrightarrow{\eta}_{e_{i}}\) is the external normal corresponding to the part of \(e_{i}\) at the boundary Γ.

Let \(S_{h}\) be the set of sides of the stitching \(T_{h}\) and \(S_{h}^{\ast} \) be the set of the interior sides.

For a given side e, let us denote by S and N the extremities e, by W and E the two triangles where \(e=\bar{W}\cap\bar{E}\); by \(\chi _{e}\) the diamond cell associated with e given by connecting the centers of gravities of the cells W and E with the extremities N and S of e.

\(( ( \varepsilon_{_{i}} ) _{i=1,4} ) \) are the four segments forming the border of \(\chi_{e}\).

\(\overrightarrow{\eta}_{\varepsilon}=\frac{1}{\vert \varepsilon _{_{i}}\vert } ( \mu_{x_{i}},\mu_{y_{i}} ) \) is the normal on \(\varepsilon_{_{i}}\) outgoing of \(\chi_{e}\).

For a given node, \(V ( N ) \) is the set of triangles with this node in common.
For the numerical resolution of problem (22)(25), the first two equations will be discretized separately. For more details on finite volume methods, see for example [6] and [7].
4.2 Discretization of the first equation
Let C be a cell of the stitching \(T_{h}\), at time \(t_{n}\); we integrate (28) on C to get
Therefore we obtain
This implies that
where \((\rho_{o,C}^{h,n})^{\prime} \) is the space derivative of \((\rho _{o,C}^{h,n})\), and \(F_{C,e}^{n}\) and \(F_{D,e}^{n}\) are the numerical flows of convection and diffusion, which are approximated by
where e is a side of the stitching, \(\overrightarrow{\eta}_{e}\) is the normal of e outgoing from C; \(K_{e}\), \(\rho_{o,e}^{h,n}\), and \(\lambda _{o,e}^{n}\) denote the interpolations on e of the functions K, \(\rho _{o}^{h}\), and \(\lambda_{o}\), respectively, while \(\nabla_{e}P^{n}\) is the approximation of the gradient of the pressure on the side e. The construction of the approached gradient on e is done by the socalled GreenGauss method. It consists of approaching the gradient by its means on a covolume in the form of a diamond constructed around the side e. We write
and
where \(\chi_{e}\) is the diamond cell associated with e, and \(N_{1} ( \varepsilon ) \) and \(N_{2} ( \varepsilon ) \) are the extremities of ε, one of the four segments forming \(\partial \chi_{e}\) (the boundary of \(\chi_{e}\)) and \(\overrightarrow{\eta }_{e}\) is the unit normal vector. The values of P at the centers W and E are \(P_{W}\) and \(P_{E}\), while the values at nodes N and S are interpolated on the boundary and denoted by \(P_{N}\) and \(P_{S}\). For convenience, we omit the indication η. Hence at each node N we have
where \(V ( N ) \) is the set of triangles sharing the node N, \(P_{K}\) is the value of P at the center of the cell K and \(y_{K} ( N ) \) are the interpolation weights. The gradient of the saturation is given by
with
4.3 Discretization of the second equation
In the same way, integration of (29) implies
where \(G_{C,e}^{n}\) and \(G_{D,e}^{n}\) are the numerical flows of the convection and diffusion approximated by
with
where e is a side of the stitching that limits the cell C, \(\nabla _{e}P^{n}\) is given by (42) and (44), and \(\nabla_{e}S^{n}\) is given by (43) and (45).
5 Numerical experiments
The problem given in (22)(25) was said not to be typical of a hydrocarbon system simulation, but it can be designed to test the resolution capabilities of the numerical method for problems involving sharp fronts.
The numerical tests are done on a homogeneous \(isotropic \) reservoir. The physical setting in 2D was as follows. A horizontal rectangular reservoir \(\Omega=\,]0,300[\,\times\,]0,60[\), discretized with a structured mesh made up of \(3{,}000\) cells, with an intrinsic permeability of 0.001 was initially filled with a mixture of gas and oil, their residual saturations are 0.02 and 0.03, respectively. The initial fluid (oil) distribution was taken to be uniform on the whole reservoir surface, and it had an associated initial pressure \(P_{0}=2{,}000~\mbox{bar}\). The porosity is \(\Phi=0.02\). The mobilities and the capillary pressure are given by \(P_{c}=(s^{2}1)/2\), \(\lambda _{o}=0.5\), \(\lambda_{g}= 0.2\), and \(\mu_{w}=1\), and \(\mu_{o}=3\), the time step is \(\Delta t=10~\mbox{s}\). These tests were carried out using the free and opensource simulator for flow and transport processes in porous media, based on the Distributed and Unified Numerics Environment DUNE (see www.dumux.org).
5.1 Results and discussion
The numerical results shown in Figures 13 give the pressure for the wetting and nonwetting fluid, and the saturation for the nonwetting one. Because of the complexity of the problem, we have introduced new unknowns, namely the global pressure and the reduced saturation, in order to reduce the number of unknowns from six to two (for more details see [5]). An explicit nonstructured finite volume scheme has been used to solve this simplified problem with the new unknowns, and because of the nonstructured meshes, we proposed a method based on ‘diamond cells’ to approximate the gradient. These results show that the scheme is very stable.
6 Conclusion
In this paper we proposed a new scheme based on the finite volume method for solving the displacement of a fluid by another one, within a porous medium, while the displacing fluid is immiscible with the fluid being displaced. This gives the hydrocarbon system model often used for petroleum reservoir simulations. To prevent consistency defects in the scheme, we suggested to modify the mesh where the discontinuity occurs, because of the porous media. This convergent scheme, called the ‘diamond meshes scheme’ (DMS) was designed, to solve the associated nonlinear discrete equations. Finally, the numerical results, which are linked to our theoretical ones in [5], confirm that the DMS is significantly useful for such difficult problems (see Figures 13).
References
Chavent, G, Jaffre, J: Mathematical Models and Finite Elements for Reservoir Simulation: Single Phase, Multiphase and Multicomponent Flows Through Porous Media, pp. 140. Elsevier, Amsterdam (1986)
Gagneux, G, Lefevere, AM, MadauneTort, M: Analyse mathématique de modèles variationnels en simulation pétrolière: le cas du modèle blackoil pseudocompositionnel standard isotherme. Rev. Mat. Univ. Complut. Madr. 2(1), 119148 (1989)
Chen, Z: Finite element methods for the black oil model in petroleum reservoirs, pp. 128. I.M.A. Preprint Series #1238 (1994)
Chen, Z: Reservoir Simulation: Mathematical Techniques in Oil Recovery. SIAM, Philadelphia (2007)
Gasmi, S, Nouri, FZ: A study of a biphasic flow problem in porous media. Appl. Math. Sci. 7(42), 20552064 (2013)
Afif, M, Amaziane, B: On convergence of finite volume schemes for onedimensional twophase flow in porous media. J. Comput. Appl. Math. 145, 3148 (2002)
Boyer, F, Hubert, F: Finite volume method for 2D linear and nonlinear elliptic problems with discontinuities. SIAM J. Numer. Anal. 43(6), 30323070 (2008)
Acknowledgements
This work was financially supported by the national research project (PNR08/23/997, 20112013). The authors are very grateful to the referees for their valuable and helpful comments, remarks and suggestions.
Author information
Authors and Affiliations
Corresponding author
Additional information
Competing interests
The authors declare that they have no competing interests.
Authors’ contributions
All authors contributed equally to the writing of this paper. All authors read and approved the final manuscript.
Rights and permissions
Open Access This is an Open Access article distributed under the terms of the Creative Commons Attribution License (http://creativecommons.org/licenses/by/4.0), which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly credited.
About this article
Cite this article
Gasmi, S., Nouri, F.Z. Numerical simulation for twophase flow in a porous medium. Bound Value Probl 2015, 7 (2015). https://doi.org/10.1186/s1366101402566
Received:
Accepted:
Published:
DOI: https://doi.org/10.1186/s1366101402566