Abstract
We propose a \(\mathbb P_1\) finite-element scheme with mass-lumping for a model of two incompressible and immiscible phases in a porous media flow. We prove the dissipation of the free energy and the existence of a solution to the nonlinear scheme. We also present numerical simulations to illustrate the behavior of the scheme.
Access provided by Autonomous University of Puebla. Download conference paper PDF
Similar content being viewed by others
Keywords
MSC (2010)
1 Immiscible Two-Phase Flows in Porous Media
We are interested in the numerical approximations of the equations governing an immiscible incompressible two-phase flow in a porous medium. Let \(\varOmega \subset \mathbb {R}^d\) (\(d=2,3\)) be an open bounded polyhedral subset with Lipschitz boundary condition and let \(t_\mathrm{f}>0\) be an arbitrary finite time horizon. Then the conservation of the wetting (subscript \(\mathrm w\)) and non-wetting phases (subscript \(\mathrm n\)) are given by
where the unknowns are the phase saturations \(s_{\alpha }\), which satisfy
and the phase pressures \(p_\alpha \). The porosity \(\phi \in (0,1)\) is given, as well as the intrinsic permeability \(\varvec{\varLambda }\), which is assumed to be symmetric and uniformly elliptic. The mobility \(\eta _{\alpha }: [0,1] \rightarrow \mathbb {R}\) is assumed to be continuous and strictly increasing, with \(\eta _\alpha (0) = 0\) and \(\eta _\alpha (s) >0\) if \(s>0\). They are extended to the whole \(\mathbb {R}\) by \(\eta _\alpha (s)=0\) if \(s<0\) and \(\eta _\alpha (s)=\eta _\alpha (1)\) if \(s>1\). The sources \(q_{\alpha }\) are such that
where \(c_\mathrm{w} \in (0,1]\) and \(c_\mathrm{n} = 1- c_\mathrm{w}\) is the prescribed composition of the injected mixture, and where \(q_\mathrm{inj},q_\mathrm{sink} \in L^\infty (\varOmega )\) are nonnegative, bounded, and such that \(\int _\varOmega q_\mathrm{inj} = \int _\varOmega q_\mathrm{sink}\). The phase pressures are linked by the capillary pressure relation
where \(\gamma \in L^1(0,1)\) is strictly increasing, nonnegative, and blows up as \(s_\mathrm{n}\) tends to 1. This function is extended for \(s<0\) by \(\gamma (s)=\gamma (0)+2s\). We further assume that \(s\mapsto \eta _\mathrm{w}(1-s) \gamma (s)\in L^\infty (0,1)\) and \(s\mapsto \eta _\mathrm{w}(1-s) \gamma '(s) \in L^1(0,1)\). These assumptions are satisfied by the usual models of the literature (see for instance [1]). The system is complemented with no-flux boundary conditions and initial conditions \(s_\alpha ^\mathrm{ini} \in L^\infty (\varOmega ;[0,1])\) that are compatible with (2). Note that since \(\gamma \in L^1(0,1)\), then \( \varGamma : s \mapsto \int _0^s \gamma (a) \mathrm{d}a\) is bounded on [0, 1]. The phase pressures being only defined up to a constant, we enforce additionally that \(\int _\varOmega p_\mathrm{n} = 0.\)
Multiplying (1) by \(p_\alpha \), summing over \(\alpha \in \{{\mathrm{n,w}}\}\), integrating over \(\varOmega \), and using (2) and (4) yields
Following [6], we define the global pressure P by \(P= p_\mathrm{n} - r(s_\mathrm{n})\) with \( r: s_\mathrm{n}\mapsto \int _0^{s_\mathrm{n}} \frac{\eta _\mathrm{w}(1-a)}{\eta _\mathrm{n}(a) + \eta _\mathrm{w}(1-a)} \gamma '(a) \mathrm{d} a\). The definition of P yields
In view of the particular form (3) of the source terms,
with \(k(s_\mathrm{n})=\frac{\eta _\mathrm{w}(1-s_\mathrm{n})}{\eta _\mathrm{w}(1-s_\mathrm{n}) + \eta _\mathrm{n}(s_\mathrm{n})} \gamma (s_\mathrm{n})\). Since \(\eta _\mathrm{w}(1-\cdot ) \gamma ' \in L^1(0,1)\) and \(\eta _\mathrm{w}(1-\cdot ) \gamma \in L^\infty (0,1)\), both r and k are bounded on (0, 1). Moreover, the extensions outside (0, 1) of \(\eta _{\alpha }\) and \(\gamma \) ensure that for all \(\varepsilon >0\), there exists \(C_\varepsilon \) such that
Combining (7) with (6) in (5) together with the uniform ellipticity of \(\varvec{\varLambda }\), \(\eta _\mathrm{n}(s) + \eta _\mathrm{w}(1-s) \ge \delta >0\) for all s, and (8) we get that
This estimate is enough to establish the existence of a weak solution. In this paper, our goal is to show that this stability is still encoded in very natural numerical schemes. For the sake of simplicity, we present our analysis in the framework of \(\mathbb P_1\) finite-elements with mass-lumping, but our approach can be extended to a wide family of schemes having the structure highlighted in [3, Sect. 3]. We show here how to transpose estimate (9) to the discrete setting and to infer the existence of discrete solutions therefrom. A full convergence study will be carried out in a forthcoming contribution. While deeply inspired from [7], the goal of this paper is to exploit more finely the energy estimate which allows to relax some stringent conditions on the anisotropy, on the mesh and the non-linearities presented in [7].
2 An Energy Stable Finite-Element Scheme
We study the problem (1)–(4) using a \(\mathbb P_1\) conforming finite-element scheme with mass-lumping for the space discretization. Let \(\mathscr {T}\) be a conforming simplicial discretization of \(\varOmega \). We denote by \(T \in \mathscr {T}\) a simplex, \(\mathscr {V}_{\mathscr {T}}\) is the set of all the vertices \({\mathbf {a} } \) and \(\mathscr {V}_T \subset \mathscr {V}_{\mathscr {T}}\) the set of the \((d+1)\) vertices \({\mathbf {a} } _0,\ldots ,{\mathbf {a} } _d\) of the simplex T. We also denote by \(V_h=\{u_h \in C(\overline{\varOmega }): u_h|_T \text { is affine for all }T \in \mathscr {T}\}\) the usual conforming \(\mathbb P_1\) finite-element space corresponding to the mesh \(\mathscr {T}\) and by \((\varphi _{{\mathbf {a} } })_{{\mathbf {a} } \in \mathscr {V}_{\mathscr {T}}}\) the basis of \(V_h\). In order to deal with the mass-lumping procedure, for any vertex \({\mathbf {a} } \in \mathscr {V}_{\mathscr {T}}\), we define the set \(\mathfrak {s}_{{\mathbf {a} } }\), the boundary \(\partial \mathfrak {s}_{{\mathbf {a} } }\) of which being defined by the hyperplanes joining the centers of mass of the simplices, edges (and faces if \(d=3\)) sharing \({\mathbf {a} } \) as a vertex. We can now define the functional space \( X_h:=\{u \in L^\infty (\varOmega ):u|_{\mathfrak {s}_{{\mathbf {a} } }}\text { is constant for all }{\mathbf {a} } \in \mathscr {V}_{\mathscr {T}}\}, \) and the linear mappings \(\pi _X:C(\overline{\varOmega }) \rightarrow X_h\) and \(\pi _V:C(\overline{\varOmega }) \rightarrow V_h\) by \(\pi _\ell u({\mathbf {a} } ) = u({\mathbf {a} } )\), for any \({\mathbf {a} } \in \mathscr {V}_{\mathscr {T}}\), for any \(u \in C(\overline{\varOmega })\), \(\ell =X,V\). In order to lighten the notations, for any \(u_h \in V_h\) we write \(\pi _X u_h = \overline{u}_h\). We will use the following Poincaré inequality that can be established as in [2]: there exist \(C_1\), \(C_2>0\) depending only on the mesh regularity such that for any \(u_h \in V_h\),
Before detailing the numerical scheme, we have to define the discrete tensor field \(\varvec{\varLambda }_h:\varOmega \rightarrow \mathbb {R}^{d\times d}\) almost everywhere by \( \varvec{\varLambda }_h(x):=\varvec{\varLambda }_T:=\frac{1}{|T|}\int _T \varvec{\varLambda }\) if \(x \in T\). From there, we define the matrix \({\mathbf{A}_{T}}:=(\alpha _{i,j}^T)_{1\le i,j\le d}\in \mathbb {R}^{d\times d}\) by
and for any \(u_h,v_h \in V_h\) one has,
Following [4], we can prove that there exists \(C_3>0\) depending on the regularity of the mesh and on the anisotropy ratio of \(\varvec{\varLambda }\) and \(C_4 >0\) depending, in addition, on d such that for any \(T\in \mathscr {T}\) the matrix \({\mathbf{A}_{T}}\) satisfies
We are now in a position to give the numerical scheme using a backward Euler scheme for the time discretization. Let \((t^n)_{n=0,\ldots ,N}\) be a partition of the interval \([0,t_\mathrm{f}]\) and for \(n=1,\ldots ,N\) we denote by \(\tau _n= t^n - t^{n-1}\) the time step. We define the discrete initial data by \(s_{\alpha ,h}^0:=\sum _{{\mathbf {a} } \in \mathscr {V}_{\mathscr {T}}} s_{\alpha ,{\mathbf {a} } }^0 \varphi _{\mathbf {a} } \in V_h\) with \(s_{\alpha ,{\mathbf {a} } }^0= \frac{1}{|\mathfrak {s}_{\mathbf {a} } |} \int _{\mathfrak {s}_{\mathbf {a} } } s_\alpha ^\mathrm{ini}\).
Let \(s_{\alpha }^{n-1} \in V_h\) be given, we search for \(s_{\alpha }^n,p_{\alpha }^n \in V_h\) such that for any \(v_{\alpha ,h} \in V_h\) with \(\alpha =(\mathrm{n},\mathrm{w})\) one has,
We have denoted by \(\eta _{\alpha ,h}^n = \pi _V \eta (s_{\alpha ,h}^n)\), \(\gamma _{\mathrm{n},h}^n = \pi _V \gamma (s_{\mathrm{n},h}^n)\) and,
Mimicking the continuous case, we define the discrete global pressure and we can obtain the discrete counterpart of (6).
Proposition 1
Let \(s_{\alpha ,h}^n,p_{\alpha ,h}^n \in V_h\) be a solution to the scheme (13). Then there exists \(C_5>0\) depending on the regularity of the mesh, on the anisotropy ratio of \(\varLambda \), on \(\delta \) and d such that
where \(P_h^n=p_{\mathrm{n},h}^n - \pi _V r(s_{\mathrm{n},h}^n) \in V_h\).
Proof
We define the functions
Then, noting that \(f_\mathrm{n}+f_\mathrm{w} =1\) and using Eq. (13c), for any \(T \in \mathscr {T}\) and for any vertices \({\mathbf {a} } _0,{\mathbf {a} } _i \in \mathscr {V}_T\), there exists \(s_i^n \in \) \([\min ({\mathbf {a} } _0,{\mathbf {a} } _i),\max ({\mathbf {a} } _0,{\mathbf {a} } _i)]\) such that,
Since \(\eta _\alpha \) is strictly increasing, for any \(T\in \mathscr {T}\) with \({\mathbf {a} } _0,\ldots ,{\mathbf {a} } _d\) as vertices
Thus using that \(f_\mathrm{n},f_\mathrm{w} \le 1\) and \(\eta _\mathrm{n}(s) + \eta _\mathrm{w}(1-s) \ge \delta >0\) we obtain,
Since for any \(v_1,v_2,w\) satisfying \(|v_1|^2+|v_2|^2 \ge \mathrm{cond}_2 ({\mathbf{A}_{T}}) |w|^2\) one has
we use equality (11) associated with the fact that the condition number of \({\mathbf{A}_{T}}\) is bounded, cf. (12). Then summing the resulting estimate over \(T\in \mathscr {T}\) and noting that the Lagrange vertex-quadrature formula is exact on \(\mathbb P_1\) (see [5, Remark 2.2]) we obtain the claim. \(\square \)
Proposition 2
Let \(s_{\alpha ,h}^{n-1} \in V_h\) be given and \(s_{\alpha }^n,p_{\alpha }^n \in V_h\) be a solution to the scheme (13). There exists \(C_{6}>0\) depending on the data of the continuous problem but neither on the mesh \(\mathscr {T}\) or nor the time step \(\tau _n\) such that,
Proof
Let us choose \(v_{\alpha ,h}=p_{\alpha ,h}^n\) as test function in Eq. (13a) and then add the resulting equations. Then, since \(\varGamma \) is convex, thanks to relation (13c) we obtain
As for the continuous case, one has
Using the definition of the discrete global pressure \(P_h^n\) and Eq. (13d), combined with the discrete Poincaré inequality (10) and (8) give
Since \(q_\mathrm{inj},q_\mathrm{sink}\in L^\infty (\varOmega )\), the use of the above inequality and of (8) in (16) leads to
whatever \(\varepsilon >0\). Using (18) together with Proposition 1 in (15) provides the expected bound. \(\square \)
Thanks to Eqs. (13b) and (13c) we see that the saturations and the pressures of the wetting and non-wetting phases are linked. Thus we can choose the pressure of the wetting phase and the capillary pressure as main unknowns. Choosing \(v_{\alpha ,h}=\varphi _{\mathbf {a} } \) as test functions in Eq. (13a) we can rewrite the scheme (13) as a nonlinear system of \(2\#\mathscr {V}_{\mathscr {T}}\) algebraic equations \(\mathscr {F}^n((\gamma (s_{\mathrm{n},{\mathbf {a} } }^n),p_{\mathrm{w},{\mathbf {a} } }^n)_{{\mathbf {a} } \in \mathscr {V}_{\mathscr {T}}})=0\). Since \(\gamma (1)=+\infty \), the function \(\mathscr {F}^n\) is continuous but non uniformly continuous. However, we prove in the following lemma that this situation is avoided for a solution to the scheme (13).
Proposition 3
Let \(s_{\alpha ,h}^{n-1}\in V_h\) be such that \(\int _\varOmega \overline{s}_{\mathrm{w},h}^{n-1}\ge 0\) and \(s_\mathrm{\alpha ,h}^n,p_\mathrm{\alpha ,h}^n\in V_h\) be a solution the scheme (13). There exists \(\sigma _{\tau _n,\mathscr {T}}, \varepsilon _{\tau _n,\mathscr {T}}>0\) depending on the data of the continuous problem, \(\mathscr {T}\), \(\tau _n\) and \(s_{\mathrm{n},h}^{n-1}\) such that,
Proof
First of all, thanks to the extension of \(\gamma \) for \(s<0\), the energy estimate given in Proposition 2 yields \( \int _\varOmega ((\overline{s}_{\mathrm{n}, h}^n)^-)^2 \le C^{n-1}, \) which provides the lower bound.
Then we prove a bound on the pressure of the non-wetting phase \(p_{\mathrm{n},h}\). Thanks to inequality (17) and the definition of \(P_h^n\) one has
Now, let us note that proving the upper bound is equivalent to proving that there exists \(\gamma ^\star _{\tau _n,\mathscr {T}}\) such that for any \({\mathbf {a} } \in \mathscr {V}_{\mathscr {T}}\), \( \gamma (s_{\mathrm{n},{\mathbf {a} } }) \le \gamma ^\star _{\tau _n,\mathscr {T}}. \)
We choose \(v_{\mathrm{w},h} = 1\) as test function in Eq. (13a), then since \(q_\mathrm{inj}\) is nonnegative, \(\eta _\mathrm{n}(s) + \eta _\mathrm{w}(1-s) \ge \delta >0\) and \(c_\mathrm{w}>0\) (and so \(\eta _\mathrm{w}(c_\mathrm{w})>0\)), one has
Note that we proved here by induction that \(\int _\varOmega \overline{s}_{\mathrm{w},h}^n \ge 0\). Since \(s \mapsto (s + \eta _\mathrm{w}(s))^{-1}\) is Lipschitz, there exists \({\mathbf {a} } _\mathrm{i} \in \mathscr {V}_{\mathscr {T}}\) such that \(s_{\mathrm{w},{\mathbf {a} } _\mathrm{i}}^n>0\) that is there exists \({\mathbf {a} } _\mathrm{i} \in \mathscr {V}_{\mathscr {T}}\) such that \(s_{\mathrm{n}, {\mathbf {a} } _\mathrm{i}}^n<1\).
Let \({\mathbf {a} } _\mathrm{f} \in \mathscr {V}_{\mathscr {T}}\) be arbitrary and \(({\mathbf {a} } _q)_{q=0,\cdots ,\ell }\) be a path from \({\mathbf {a} } _\mathrm{i}\) to \({\mathbf {a} } _\mathrm{f}\). Let \(q \in \{0,\ldots ,\ell -1\}\). Using the property (12) of the matrix \({\mathbf{A}_{T}}\) and since the quadrature formula is exact on \(\mathbb P_1\), Proposition 2 gives
We assume by induction that there exists \(\varepsilon _{\tau _n,\mathscr {T}}>0\) such that \(s_{\mathrm{n},{\mathbf {a} } _q}^n < 1 - \varepsilon _{\tau _n,\mathscr {T}}\) that is \(s_{\mathrm{w},{\mathbf {a} } _q}^n > \varepsilon _{\tau _n,\mathscr {T}}\). Thus, if T is a simplex with \({\mathbf {a} } _q,{\mathbf {a} } _{q+1}\) as vertices, the definition (14) of \(\eta _{\mathrm{w},T}^n\) yields \(\eta _{\mathrm{w},T}^n \ge \frac{\eta (s_{\mathrm{w},{\mathbf {a} } _q}^n)}{d+1} \ge \varepsilon '_{\tau _n,\mathscr {T}}\). Thanks to Eqs. (13c) and (19) it follows that,
We conclude the proof by induction along the path. \(\square \)
The bound on the saturation associated with the definition (14) on \(\eta _{\mathrm{w},T}^n\) yields \(\eta _{\mathrm{w},T}^n\ge \eta _\mathrm{w}(\varepsilon _{\tau _n,\mathscr {T}})\). This, combined with the Poincaré inequality (10) and since \(\gamma (s_{\mathrm{n},{\mathbf {a} } }^n)\le \gamma (1-\varepsilon _{\tau _n,\mathscr {T}})\) for any \({\mathbf {a} } \in \mathscr {V}_{\mathscr {T}}\), allows us to obtain a discrete bound on the pressure.
Proposition 4
There exists \(p^\star _{\tau _n,\mathscr {T}}>0\) depending on the data of the continuous problem, \(\mathscr {T}\), \(\tau _n\) and \(s_{\mathrm{n},h}^{n-1}\) such that \( \int _\varOmega | p_{\mathrm{w},h}^n |^2 \le p^\star _{\tau _n,\mathscr {T}}. \)
Thanks to the material introduced above, it is possible to prove the existence of a solution to the discrete problem using the topological degree theory.
Theorem 1
(Existence of a solution) Let \(s_{\mathrm{n},h}^{n-1}\in V_h\) be given, there exists at least one solution to the scheme (13).
3 Numerical Results
We present here numerical results obtained with the software FreeFem [8] in the two-dimension case by choosing as main unknowns the saturation of the non-wetting phase and the pressure of the wetting phase. To solve the nonlinear system we use a Newton method with a stopping criteria on the \(\ell ^{\infty }\)-norm between two successive iterations. The computational domain is the unit square \(\varOmega =[0,1]^2\) and the mesh is made up of triangles whose mesh size is approximately equal to 0.028. The final time is \(t_\mathrm{f}=0.015\) and the time step is constant \(\tau _n=10^{-3}\). We choose the porosity \(\phi =0.3\), the permeability tensor field \(\varvec{\varLambda }=\begin{pmatrix} 1 &{} 0 \\ 0 &{} 100 \end{pmatrix}\) and \(c_\mathrm{w}=0.2\). For \(s\in [0,1]\) we define the mobility functions by \(\eta _\mathrm{n}(s)=s^2\) and \(\eta _\mathrm{w}(s)=2s\), the capillary pressure by \(\gamma (s)=\frac{1}{\sqrt{1-s}}\) and the source functions are defined by \(q_\mathrm{inj} = 40.1_{[0,0.2]\times [0.8,1]}\) and \(q_\mathrm{sink} = 40.1_{[0.8,1]\times [0,0.2]}\). We plot in Fig. 1 the approximate saturation of the non-wetting phase.
One observes from the outset of the simulation the influence on the injection well \(q_\mathrm{inj}\) and of the anisotropy ratio in the longitudinal direction. Moreover we can see that the maximum does not exceed \(c_\mathrm{n} = 0.8\).
References
Bear, J., Bachmat, Y.: Introduction to Modeling of Transport Phenomena in Porous Media. Kluwer Academic Publishers, Dordrecht, The Netherlands (1990)
Brenner, K., Masson, R.: Convergence of a vertex centered discretization of two-phase darcy flows on general meshes. Int. J. Finite 10, 1–37 (2013)
Cancès, C.: Energy stable numerical methods for porous media flow type problems. Oil Gas Sci. Technol.-Rev. IFPEN 73, 1–18 (2018)
Cancès, C., Guichard, C.: Numerical analysis of a robust free energy diminishing finite volume scheme for parabolic equations with gradient structure. Found. Comput. Math. 17(6), 1525–1584 (2017)
Cancès, C., Nabet, F., Vohralík, M.: Convergence and a posteriori error analysis for energy-stable finite element approximations of degenerate parabolic equations (2018). HAL: hal-01894884
Chavent, G., Jaffré, J.: Mathematical Models and Finite Elements for Reservoir Simulation, vol. 17, stud. math. appl. edn. North-Holland, Amsterdam (1986)
Eymard, R., Herbin, R., Michel, A.: Mathematical study of a petroleum-engineering scheme. M2AN Math. Model. Numer. Anal. 37(6), 937–972 (2003)
Hecht, F.: New development in FreeFem++. J. Numer. Math. 20(3–4), 251–265 (2012)
Acknowledgements
This work was supported by the French National Research Agency (ANR) through Grant ANR-13-JS01-0007-01 (GEOPOR project). Clément Cancès acknowledges the support of Labex CEMPI (ANR-11-LABX-0007).
Author information
Authors and Affiliations
Corresponding author
Editor information
Editors and Affiliations
Rights and permissions
Copyright information
© 2020 The Editor(s) (if applicable) and The Author(s), under exclusive license to Springer Nature Switzerland AG
About this paper
Cite this paper
Cancès, C., Nabet, F. (2020). Energy Stable Discretization for Two-Phase Porous Media Flows. In: Klöfkorn, R., Keilegavlen, E., Radu, F.A., Fuhrmann, J. (eds) Finite Volumes for Complex Applications IX - Methods, Theoretical Aspects, Examples. FVCA 2020. Springer Proceedings in Mathematics & Statistics, vol 323. Springer, Cham. https://doi.org/10.1007/978-3-030-43651-3_18
Download citation
DOI: https://doi.org/10.1007/978-3-030-43651-3_18
Published:
Publisher Name: Springer, Cham
Print ISBN: 978-3-030-43650-6
Online ISBN: 978-3-030-43651-3
eBook Packages: Mathematics and StatisticsMathematics and Statistics (R0)