numerical approximations of riemann solutions to ... · initial value problem (1)-(2)....

6
Numerical approximations of Riemann solutions to multiphase flows used in petroleum engineering KATARINA JEGDI ´ C University of Houston - Downtown Department of Computer and Mathematical Sciences One Main Street, Houston, TX 77002 USA [email protected] Abstract: We study two one-dimensional systems of hyperbolic conservation laws that are used to model the multiphase flowin the process of secondary oil recovery. We compute approximate solutions for several examples using a spacetime discontinuous Galerkin (SDG) method based on causal spacetime triangulations and a piecewise constant Galerkin basis. Even though convergence of the SDG method was shown only in the case of strictly hyperbolic genuinely nonlinear Temple class systems, numerical solutions presented in this paper show that the SDG method could be effectively used for approximating solutions to more general problems. Key–Words: Secondary oil recovery, spacetime discontinuous Galerkin, Riemann problems, conservation laws 1 Introduction After an underground source of oil is tapped, initially oil flows out due to high pressure in the reservoir. When this flow stops, usually there is still a large amount of oil left in the reservoir and the method of “secondary oil recovery” is used. This process as- sumes that water and gas are injected into some wells of the oil field to displace oil to the producing well. We consider two models in one spatial dimension in which oil, in a long tube of porous medium of rock or sand, is displaced by water and gas pumped at one end. We study systems of conservation laws, describ- ing these two models, and we compute approximate solutions to several initial value problems using a spacetime discontinuous Galerkin method with causal spacetime triangulations and the piecewise constant Galerkin basis. For more details on multiphase flows in porous media and computational techniques used in petroleum engineering, see [1] by Chen, Huan & Ma and references therein. 2 Definition of a spacetime discontin- uous Galerkin method In this paper we consider systems of conservation laws in one spatial dimension t u + x f (u)=0, (t, x) [0, ) × R, (1) with initial data u(0,x)= u 0 (x), x R. (2) Here, u : [0, ) × R →D⊆ R n denotes densities of conserved variables, f : D→ R n is the spatial flux, and u 0 : R →D is a function of bounded to- tal variation. Let Df denote the gradient matrix of f and let λ i denote the i-th eigenvalue of Df . If λ 1 (u),...,λ n (u) are real for all u ∈D, the system is hyperbolic in the domain of conservation states D. Moreover, if λ 1 (u),...,λ n (u) are real and distinct for all u ∈D, the system is strictly hyperbolic in D. If there are states u ∈D, such that the matrix Df (u) possesses complex eigenvalues, the system is either elliptic of mixed hyperbolic-elliptic there. Discontinuous Galerkin (DG) methods for con- servation laws have been studied extensively during the past two decades (for more details, see [3] by Cockburn, Karniadakis & Shu). They are based on the elementwise representation of the solution and en- force the conservation law locally. The Runge-Kutta DG methods use finite element discretizations of the spatial domain and a Runge-Kutta technique to march the solution in time (see [2] by Cockburn). The spacetime discontinuous Galerkin (SDG) method that we consider here is based on spacetime triangulations of the spacetime domain [0, ) × R. The Galerkin basis consists of functions which are polynomials of degree p 0 within each element, while the values on adjacent elements are coupled through the Godunov flux. The SDG method is closely related to the method proposed by Lowrie in [10], which is based on uniform layered triangula- tions and which uses an approximation of the Go- Proc. of the 9th WSEAS Int. Conf. on Mathematical and Computational Methods in Science and Engineering, Trinidad and Tobago, November 5-7, 2007 39

Upload: others

Post on 01-Nov-2019

4 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Numerical approximations of Riemann solutions to ... · initial value problem (1)-(2). SDGapproximations for Riemann problems with solutions containing singu-lar and transitional

Numerical approximations of Riemann solutions tomultiphase flows used in petroleum engineering

KATARINA JEGDICUniversity of Houston - Downtown

Department of Computer and Mathematical SciencesOne Main Street, Houston, TX 77002

[email protected]

Abstract: We study two one-dimensional systems of hyperbolic conservation laws that are used to model themultiphase flow in the process of secondary oil recovery. We compute approximate solutions for several examplesusing a spacetime discontinuous Galerkin (SDG) method based on causal spacetime triangulations and a piecewiseconstant Galerkin basis. Even though convergence of the SDG method was shown only in the case of strictlyhyperbolic genuinely nonlinear Temple class systems, numerical solutions presented in this paper show that theSDG method could be effectively used for approximating solutions to more general problems.

Key–Words: Secondary oil recovery, spacetime discontinuous Galerkin, Riemann problems, conservation laws

1 IntroductionAfter an underground source of oil is tapped, initiallyoil flows out due to high pressure in the reservoir.When this flow stops, usually there is still a largeamount of oil left in the reservoir and the method of“secondary oil recovery” is used. This process as-sumes that water and gas are injected into some wellsof the oil field to displace oil to the producing well.

We consider two models in one spatial dimensionin which oil, in a long tube of porous medium of rockor sand, is displaced by water and gas pumped at oneend. We study systems of conservation laws, describ-ing these two models, and we compute approximatesolutions to several initial value problems using aspacetime discontinuous Galerkin method with causalspacetime triangulations and the piecewise constantGalerkin basis. For more details on multiphase flowsin porous media and computational techniques used inpetroleum engineering, see [1] by Chen, Huan & Maand references therein.

2 Definition of a spacetime discontin-uous Galerkin method

In this paper we consider systems of conservationlaws in one spatial dimension

∂tu + ∂xf(u) = 0, (t, x) ∈ [0,∞) × R, (1)with initial data

u(0, x) = u0(x), x ∈ R. (2)

Here, u : [0,∞) × R → D ⊆ Rn denotes densities

of conserved variables, f : D → Rn is the spatial

flux, and u0 : R → D is a function of bounded to-tal variation. Let Df denote the gradient matrix off and let λi denote the i-th eigenvalue of Df . Ifλ1(u), . . . , λn(u) are real for all u ∈ D, the systemis hyperbolic in the domain of conservation states D.Moreover, if λ1(u), . . . , λn(u) are real and distinct forall u ∈ D, the system is strictly hyperbolic in D. Ifthere are states u ∈ D, such that the matrix Df(u)possesses complex eigenvalues, the system is eitherelliptic of mixed hyperbolic-elliptic there.

Discontinuous Galerkin (DG) methods for con-servation laws have been studied extensively duringthe past two decades (for more details, see [3] byCockburn, Karniadakis & Shu). They are based onthe elementwise representation of the solution and en-force the conservation law locally. The Runge-KuttaDG methods use finite element discretizations of thespatial domain and a Runge-Kutta technique to marchthe solution in time (see [2] by Cockburn).

The spacetime discontinuous Galerkin (SDG)method that we consider here is based on spacetimetriangulations of the spacetime domain [0,∞) × R.The Galerkin basis consists of functions which arepolynomials of degree p ≥ 0 within each element,while the values on adjacent elements are coupledthrough the Godunov flux. The SDG method isclosely related to the method proposed by Lowrie in[10], which is based on uniform layered triangula-tions and which uses an approximation of the Go-

Proc. of the 9th WSEAS Int. Conf. on Mathematical and Computational Methods in Science and Engineering, Trinidad and Tobago, November 5-7, 2007 39

Page 2: Numerical approximations of Riemann solutions to ... · initial value problem (1)-(2). SDGapproximations for Riemann problems with solutions containing singu-lar and transitional

dunov flux on certain element faces. The SDG methodwas introduced by Palaniappan, Haber & Jerrard in[12] with several numerical examples for scalar one-dimensional hyperbolic conservation laws, includingthe Buckley-Leverett equation which models a two-phase flow in oil recovery. It was also shown numer-ically that the SDG method is of the order p + 1, andwhen p ≥ 1, certain slope and compact limiters areused in order to avoid oscillations in the regions wherethe solutions are discontinuous. Analysis of the SDGmethod in the case p ≥ 1 is rather challenging dueto its spacetime format. As in [4, 5] by Jegdic andJegdic & Jerrard, where convergence of the methodwas shown for certain strictly hyperbolic systems, weassume p = 0, i.e., we assume that the Galerkin ba-sis consists of piecewise constant functions. Givena spacetime triangulation Th (h stands for the maxi-mal diameter of a triangle in the considered triangula-tion), we denote the corresponding Galerkin basis byPh. We also assume that the triangulations are causal,meaning that for each edge Γ of an element T withthe outward unit spacetime normal ν = (νt, νx), werequire

either (1, λi(u)) · ν < 0 or (1, λi(u)) · ν > 0,

for every i ∈ {1, . . . , n} and all u ∈ D. Given anedge Γ of an element T with the outward spacetimenormal ν, if (1, λi(u)) · ν is negative (positive) for alli ∈ {1, . . . , n} and all u ∈ D, than the edge Γ is saidto be inflow (outflow) for the element T . Therefore,the formulation of the causal spacetime discontinuousGalerkin method is:

Given a causal spacetime triangulation Th of thedomain [0,∞) × R, find uh ∈ Ph such that

∂T−

(u−

h , f(u−

h )) · ν dH1

+

∂T+

(uh, f(uh)) · ν dH1 = 0,

holds on each element T ∈ Th, where ∂T− (∂T+)stands for the inflow (outflow) part of the boundary∂T , u−

h denotes the value of the approximate solutionalong ∂T− which is computed on an adjacent meshelement, and H1 denotes the one-dimensional Haus-dorff measure.

In the case of strictly hyperbolic systems of con-servation laws, we show in [4, 5] that given a causalspacetime triangulation Th, if an approximation uh ∈Ph exists, then uh satisfies certain discrete entropy in-equalities. Also, in the case of strictly hyperbolic gen-uinely nonlinear Temple class systems, we show thatgiven a sequence of causal spacetime triangulations{Th}, the corresponding sequence {uh} of approx-imations exists and is precompact in L1

loc([0,∞) ×

R; Rn). Moreover, we show that any limit of any con-vergent subsequence of {uh} is a weak solution to theinitial value problem (1)-(2). SDG approximations forRiemann problems with solutions containing singu-lar and transitional shocks were computed in [6] byJegdic, showing that the SDG method could be suc-cessfully used for approximating solutions to moregeneral problems. In this paper, we further confirmthis claim by studying systems of conservation lawsused in petroleum engineering.

3 Numerical simulations for an im-miscible three-phase flow

The first model we study was considered by March-esin & Plohr in [11]. They consider the idealized flowof water, gas and oil in a homogeneous linear core,neglecting gravity, compressibility, heterogeneity andthe mass transfer among the phases, they assume thatthe displacement is immiscible and ignore fingeringeffects. Governing equations are given by

∂tsw + ∂xfw(sw, sg) = Dw,∂tsg + ∂xfg(sw, sg) = Dg,

(3)

where (t, x) ∈ [0,∞) × R, sw, sg : [0,∞) × R →[0, 1] stand for water and gas saturations, respectively,oil saturation is defined by so = 1 − sw − sg, and fw

and fg are fractional flow functions given, in terms ofrelative permeability functions kw, kg and ko and thefluid viscosities µw, µg and µo, by

fw(sw, sg) =kw/µw

kw/µw + kg/µg + ko/µo

and

fg(sw, sg) =kg/µg

kw/µw + kg/µg + ko/µo.

The diffusion terms, Dw and Dg, represent the effectof capillary pressure differences among fluids. As in[11] we assume that each permeability function de-pends only on its fluid saturation. More precisely,

kw = s2w, kg = s2

g and ko = s2o = (1−sw−sg)

2,

and µw = 0.5, µg = 0.3 and µo = 1. In this pa-per, we also assume Dw = Dg = 0. For each stateS := (sw, sg) within the saturation triangle, definedby D := {(sw, sg) : 0 ≤ sw, sg ≤ 1, sw + sg ≤ 1},the Jacobian matrix

[

∂fw/∂sw ∂fw/∂sg

∂fg/∂sw ∂fg/∂sg

]

Proc. of the 9th WSEAS Int. Conf. on Mathematical and Computational Methods in Science and Engineering, Trinidad and Tobago, November 5-7, 2007 40

Page 3: Numerical approximations of Riemann solutions to ... · initial value problem (1)-(2). SDGapproximations for Riemann problems with solutions containing singu-lar and transitional

has two real nonnegative eigenvalues, denoted by λ1

and λ2, implying that the system (3) is hyperbolic. Wegraph (λ1−λ2)(sw, sg) for 0 ≤ sw, sg ≤ 1 in Figure 1and we note that the two eigenvalues coincide for ex-actly one point inside the saturation triangle D. Thispoint is called an “umbilic point”. On each edge ofthe saturation triangle, the saturation of one of the flu-ids is zero, and the flow is described by the Buckley-Leverett equation for the two fluids.

1.00.75

0.5 sw0.25

1.0

0.0

sg

0.75 0.5

0.5

0.25 0.00.0

1.0

1.5

2.0

0.40.3

0.2 sw0.1

0.3

0.0

0.2

sg

0.5

0.1

1.0

1.5

0.00.0

2.0

Figure 1: Graphs of λ1 − λ2.

In the two Riemann problems we consider next,the right state corresponds to almost pure oil and theleft state corresponds to the mixture of water and gas

at the injection well. We compute the approximate so-lutions for system (3) using the causal SDG method.We consider a layered spacetime triangulation withthe time step ∆t = 0.002 and the diameter of the ele-ments in spatial direction ∆x ∈ (0.01, 0.02).

Example 1. We consider Riemann data given by

S(0, x) :=

{

SL = (0.613, 0.387) if x < 0,SR = (0.05, 0.15) if x ≥ 0,

which models injection of water (61.3%) and gas(38.7%). The saturation of oil changes from 0% atthe left side of the core to 80% at the right side ofcore. The approximate saturations of water, gas andoil at time t = 2 are depicted in Figure 2. The so-lution has a classical wave structure, consisting of aslow and a fast wave groups. The slow wave groupconsists of a “compound wave” (a rarefaction waveand an adjacent shock wave) connecting the left stateto an intermediate state, and the fast wave group isrepresented by a Buckley-Leverett shock (i.e., an oilbank) from this intermediate state to the right state.

Example 2. The Riemann initial data is given by

S(0, x) :=

{

SL = (0.721, 0.279) if x < 0,SR = (0.05, 0.15) if x ≥ 0,

which models injection of water (72.1%) and gas(27.9%). Again, the saturation of oil is 0% at theleft side and 80% at the right side of core. The ap-proximate saturations of water, gas and oil at timet = 2 are plotted in Figure 3. In this case the solutionconsists of three wave groups. Again, the slow wavegroup consists of a rarefaction and an adjacent shockand the fast wave group is represented by a Buckley-Leverett shock. However, between the slow and thefast wave groups, there is a new kind of shock, calleda “transitional shock”.

4 Numerical simulations for a two-phase first-contact miscible flow

The second model we consider was studied by Juanes& Lie in [7, 8] using a front-tracking algorithm. Themain assumptions are: (a) it is a three componentmodel consisting of water, gas and oil, (2) the in-jection gas, called “solvent”, and the resident oil mixand form a hydrocarbon phase h which is immisciblewith water, (3) the fluids are incompressible, and (4)gravity, capillary forces and viscous fingering are ne-glected. Hence, this is a two-phase model consistingof water and a hydrocarbon phase. For front-tracking

Proc. of the 9th WSEAS Int. Conf. on Mathematical and Computational Methods in Science and Engineering, Trinidad and Tobago, November 5-7, 2007 41

Page 4: Numerical approximations of Riemann solutions to ... · initial value problem (1)-(2). SDGapproximations for Riemann problems with solutions containing singu-lar and transitional

0 1 2 3 4 50

0.1

0.2

0.3

0.4

0.5

0.6

0.7

0.8

0.9

1

x

satu

ratio

n of

wat

er

0 1 2 3 4 50

0.1

0.2

0.3

0.4

0.5

0.6

0.7

0.8

0.9

1

x

satu

ratio

n of

gas

0 1 2 3 4 50

0.1

0.2

0.3

0.4

0.5

0.6

0.7

0.8

0.9

1

x

satu

ratio

n of

oil

Figure 2: Approximate saturations at t = 2.

0 1 2 3 4 50

0.1

0.2

0.3

0.4

0.5

0.6

0.7

0.8

0.9

1

x

satu

ratio

n of

wat

er

0 1 2 3 4 50

0.1

0.2

0.3

0.4

0.5

0.6

0.7

0.8

0.9

1

x

satu

ratio

n of

gas

0 1 2 3 4 50

0.1

0.2

0.3

0.4

0.5

0.6

0.7

0.8

0.9

1

x

satu

ratio

n of

oil

Figure 3: Approximate saturations at t = 2.

Proc. of the 9th WSEAS Int. Conf. on Mathematical and Computational Methods in Science and Engineering, Trinidad and Tobago, November 5-7, 2007 42

Page 5: Numerical approximations of Riemann solutions to ... · initial value problem (1)-(2). SDGapproximations for Riemann problems with solutions containing singu-lar and transitional

simulations of an immiscible three-phase flow, we re-fer to [9] by Lie & Juanes. Let sw and sh denote satu-rations of water and the hydrocarbon phase (sw+sh =1), and let χo and χg denote the mass fractions of oiland gas in the hydrocarbon phase (χo+χg = 1). Thenthe governing equations are given by

∂tsw + vT ∂xfw = 0,∂t((1 − sw)χg) + vT ∂x((1 − fw)χg) = 0,

where fw is a fractional flow function given by

fw =kw/µw

kw/µw + kh/µh,

kw and kh are relative permeability functions, µw andµh denote viscosities, and vT = vw+vh is the total ve-locity. After rescaling of the time variable to eliminatevT , and using the notation s := sw, c := (1 − sw)χg,χ := χg, f := fw and g := (1 − fw)χg , we obtain

∂ts + ∂xf(s, c) = 0,∂tc + ∂xg(s, c) = 0,

(4)

where s and c stand for water saturation and solventconcentration, respectively, relative permeabilities arespecified by

kw =

(

s − swc

1 − swc

)2

if s < swc,

and kw = 0, otherwise, and

kh = 0.11 − s − shc

1 − shc+ 0.9

(

1 − s − shc

1 − shc

)2

if 1 − s > shc, and kh(s) = 0, otherwise. Further,swc = shc = 0.2, and viscosities are given by µw = 1,µg = 0.4, µo = 4 and

µh(χ) =

(

1 − χ

µ1/4o

µ1/4g

)

−4

.

For each state U := (s, c) within the saturation trian-gle D := {(s, c) : 0 ≤ s, c ≤ 1, s + c ≤ 1}, wecompute the eigenvalues λ1 and λ2 of the Jacobianmatrix

[

∂f/∂s ∂f/∂c∂g/∂s ∂g/∂c

]

.

We depict the graphs of |λ1 − λ2| in Figure 4. Wenote that the system is hyperbolic, but not everywherestrictly hyperbolic. The two eigenvalues λ1 and λ2 co-incide along a curve (called a “transition curve”, sinceλ1 < λ2 on the left, and λ1 > λ2 on the right ofthis curve). We notice this curve for 0.2 ≤ s ≤ 0.8and 0 ≤ c ≤ 1, and we also depict a closer look for0.2 ≤ s ≤ 0.8 and 0 ≤ c ≤ 0.5.

0.8

1.00 0.6

0.75

10

c

0.5s

20

0.4

0.25

30

0.00.2

0.80

1

0.4 0.6

2

3

s0.2 0.4c

4

0.20.0

Figure 4: Graphs of |λ1 − λ2|.

Example 3. The Riemann initial data we consider forsystem (4) is given by

U(0, x) :=

{

(0.8, 0) if x < 0.5,(0.2, 0.7) if x ≥ 0.5.

We compute the approximate solution at time t = 2using the SDG method and depict the plot for the sat-uration of water in Figure 5.

Proc. of the 9th WSEAS Int. Conf. on Mathematical and Computational Methods in Science and Engineering, Trinidad and Tobago, November 5-7, 2007 43

Page 6: Numerical approximations of Riemann solutions to ... · initial value problem (1)-(2). SDGapproximations for Riemann problems with solutions containing singu-lar and transitional

0 1 2 3 4 50

0.1

0.2

0.3

0.4

0.5

0.6

0.7

0.8

0.9

1

x

S

Figure 5: Saturation of water at t = 2.

5 Conclusion

We note again that convergence of the SDG methodpresented in §2 was so far proved only for a specialclass of strictly hyperbolic systems (Temple systems)using their special geometric properties. In this pa-per we consider two hyperbolic, but not everywherestrictly hyperbolic, systems of conservation laws thatare used to model a process of secondary oil recovery.The SDG solutions for the above examples are consis-tent with analytical solutions in [11] (Examples 1 and2) and front-tracking approximations in [8] (Example3), indicating that the SDG method could be success-fully used for approximating solutions to more generalsystems of hyperbolic conservation laws.

Acknowledgments: This research was supported inpart by the Organized Research Grant, University ofHouston - Downtown.

References:

[1] Z. Chen, G. Huan, Y. Ma, Computational meth-ods for multiphase flows in porous media, SIAMbook, 2006.

[2] B. Cockburn, Devising discontinuous Galerkinmethods for nonlinear hyperbolic conserva-tion laws, J. Comput. Appl. Math. 128, 2001,pp. 187–204.

[3] B. Cockburn, G. E. Karniadakis, C. W. Shu, Dis-continuous Galerkin methods - Theory, compu-tation and applications, Lecture Notes in Comp.Science and Eng. 11, Springer - Verlag, NewYork, 2000.

[4] K. Jegdic, Analysis of a spacetime discontinu-ous Galerkin method for systems of conserva-tion laws, Ph.D. thesis, University of Illinois atUrbana-Champaign, 2004.

[5] K. Jegdic, R. L. Jerrard, Convergence of an im-plicit spacetime Godunov finite volume methodfor a class of hyperbolic systems, SIAM J. Nu-mer. Anal. 44, 2006, pp. 1921–1953.

[6] K. Jegdic, Computation on nonclassical shocksusing a spacetime discontinuous Galerkinmethod, IEEE-CS ACM Digital Library, Pro-ceedings of Richard Tapia Conference onCelebrating Diversity in Computing, ISBN:1-59593-257-7, Albuquerque, 2005, pp. 28-31.

[7] R. Juanes, K. A. Lie, Numerical modeling ofmultiphase first-contact miscible flows. Part 1.Analytical Riemann Solver, Transp. Porous Me-dia 67, 2007, pp. 375–393.

[8] R. Juanes, K. A. Lie, Numerical modeling ofmultiphase first-contact miscible flows. Part 2.Front-tracking / streamline simulation, to appearin Transp. Porous Media.

[9] K. A. Lie, R. Juanes, A front-tracking methodfor the simulation of three-phase flow in porousmedia, Comput. Geosci. 9, 2005, pp. 29–59.

[10] R. B. Lowrie, Compact higher order numericalmethods for hyperbolic conservation laws, Ph.D.thesis, University of Michigan, 1996.

[11] D. Marchesin, B. J. Phlor, Wave Structure inWAG Recovery, SPE 56480, Proceedings of the1999 SPE Annual Technical Conference and Ex-hibition, Houston, 1999.

[12] J. Palaniappan, R. B. Haber, R. L. Jerrard, Aspacetime discontinuous Galerkin method forscalar conservation laws, Computer Methods inApplied Mechanics and Engineering 193, 2004,pp. 3607–3631.

Proc. of the 9th WSEAS Int. Conf. on Mathematical and Computational Methods in Science and Engineering, Trinidad and Tobago, November 5-7, 2007 44