a front-tracking method for hyperbolic three-phase … · 2014. 11. 17. · a system of saturation...

40
Applied Mathematics A FRONT-TRACKING METHOD FOR HYPERBOLIC THREE-PHASE MODELS ECMOR IX, August 30 – September 2, 2004 Cannes, France Ruben Juanes 1 and Knut-Andreas Lie 2 1 Stanford University, Dept. Petroleum Engineering, USA 2 SINTEF IKT, Dept. Applied Mathematics, Norway

Upload: others

Post on 19-Oct-2020

2 views

Category:

Documents


0 download

TRANSCRIPT

  • Applied Mathematics

    A FRONT-TRACKING METHOD FOR HYPERBOLIC THREE-PHASE MODELS

    ECMOR IX, August 30 – September 2, 2004Cannes, France

    Ruben Juanes1 and Knut-Andreas Lie21 Stanford University, Dept. Petroleum Engineering, USA2 SINTEF IKT, Dept. Applied Mathematics, Norway

  • 2Applied Mathematics

    WHAT DO WE PROPOSE, AND WHY?

    Objective:

    Exceptionally accurate, fast numerical solutionsto realistic three-phase flows in porous media

    Approach:

    Develop analytical solution to the Riemann problem

    Use it as a building block for general 1D problems,via a front-tracking method

    Solve three-phase flow along streamlines

  • 3Applied Mathematics

    MATHEMATICAL MODEL

    Assumptions:

    • Immiscible, incompressible fluids• Multiphase extension of Darcy’s law• Negligible capillary effects

    Equations:

    Pressure equation (elliptic)

    A system of saturation equations (hyperbolic)

    ,0=⋅∇ Tv gowTTT p λλλλφλ ++≡∇−= ,kv

    ,00⎟⎠

    ⎞⎜⎝

    ⎛=⎟⎟⎠

    ⎞⎜⎜⎝

    ⎛∇⋅+⎟⎟

    ⎞⎜⎜⎝

    ⎛∂

    g

    wT

    g

    wt f

    fSS

    v TggTww ff λλλλ / ,/ ==

  • 4Applied Mathematics

    CONDITIONS FOR HYPERBOLICITY

    Essential condition: a positive endpoint slope of therelative permeability of the least wetting phase

    (J. and Patzek: TIPM in press)

  • 5Applied Mathematics

    THE THREE-PHASE RIEMANN PROBLEM

    Riemann problem: find a weak (possibly discontinuous)solution to the 2×2 system of equations

    0 , , >∞

  • 6Applied Mathematics

    SOLUTION OF THE RIEMANN PROBLEM

  • 7Applied Mathematics

    WAVE TYPES (TWO-PHASE FLOW)

    The fractional flow function is S-shaped,with a single inflection point

    The only admissible wave types are:

    Rarefaction (R)

    Shock (S)

    Rarefaction-shock (RS)

  • 8Applied Mathematics

    WAVE TYPES (THREE-PHASE FLOW)

    The fractional flow functions have single, continuousinflection loci (natural generalization of the two-phase case)

    There are 9 admissible wave combinations

    Two separate waves: W1, W2 Each wave may only be of type R, S, or RS

  • 9Applied Mathematics

    WAVE TYPES (THREE-PHASE FLOW)(J. and Patzek: TIPM 2004)

  • 10Applied Mathematics

    THREE-PHASE CAUCHY PROBLEM

    Solution to the Riemann problem is insufficient if: Initial conditions different from constant Variable injection saturations (e.g. WAG)

    u

    x Front-tracking method:

    Piecewise constant approximation of the solution Sequence of Riemann problems

  • 11Applied Mathematics

    FRONT-TRACKING ALGORITHM

    u

    x

    t

  • 12Applied Mathematics

    u

    x

    t

    Slow wave Fast wave Slow wave Fast wave

    FRONT-TRACKING ALGORITHM

  • 13Applied Mathematics

    u

    x

    t

    tcCollision

    New Riemann problem

    FRONT-TRACKING ALGORITHM

  • 14Applied Mathematics

    u

    x

    t

    Slow wave Fast wave

    FRONT-TRACKING ALGORITHM

  • 15Applied Mathematics

    u

    x

    t

    Collision

    New Riemann problem

    tc

    FRONT-TRACKING ALGORITHM

  • 16Applied Mathematics

    EXAMPLE 1

    Riemann problem involving local wave curves

    δu = 0.05

    δu = 0.002

    Saturation path:Exact solution and front-tracking solution

  • 17Applied Mathematics

    EXAMPLE 2: LINEAR WAG

    Initially, reservoir with 80% oil, 20% gas Alternate cycles of water and gas injection

    Front-tracking solution with du = 0.005 Half a million Riemann solves ~ 5 sec on a desktop PC

    t = 0

    t = 0.1

    t = 0.2

    t = 0.5

    t = 1.5

    t = 2.0

  • 18Applied Mathematics

    Basic idea: decouple the three-dimensional transportinto a series of 1D problems along streamlines

    Sequential solution of pressure and saturations (IMPES)

    • Pressure equation (fixed saturations)

    • Compute streamlines for the velocity field vT

    • System of saturation equations (along each streamline)

    pTTT ∇−==⋅∇ φλ kvv ,0

    ∫≡⎟⎠⎞

    ⎜⎝

    ⎛=⎟⎟⎠

    ⎞⎜⎜⎝

    ⎛∂+⎟⎟

    ⎞⎜⎜⎝

    ⎛∂

    s

    Tg

    w

    g

    wt v

    sff

    SS

    0

    d1)( where,00

    ξττ

    STREAMLINE METHODS

  • 19Applied Mathematics

    Permeability field

    Initial saturation

    Resolve pressure

    Trace streamlines

    Propagate saturations

    New time step

    (Figures from Yann Gautier)

  • 20Applied Mathematics

    NUMERICAL SIMULATIONS

    Highly heterogeneous, shallow-marine formation,taken from the SPE10 comparative solution project

    Permeability variations of 6 orders of magnitude Five vertical wells (1 injector, 4 producers)

    Two different injection schemes:(1) Continuous water injection(2) Water-alternating-gas injection (WAG)

    (Lie and J.: CGEOS submitted)

  • 21Applied Mathematics

    FLUID PRODUCTION

    Comparison of fluid recovery predictions against thecommercial reservoir simulator Eclipse® (Schlumberger)

    Oil production rate

    Water-alternating-gas injectionContinuous water injection

  • 22Applied Mathematics

    Gas production rate

    Water-alternating-gas injectionContinuous water injection

  • 23Applied Mathematics

    CPU times:

    2h 13min(dt = 25 days)

    50min(dt = 200 days)

    Streamline

    8h 20min1h 22minECLIPSE

    WAGWater injection

    Water production rate

    Water-alternating-gas injectionContinuous water injection

  • 24Applied Mathematics

    CONCLUSIONS

    The integration of analytical Riemann solvers, the front-tracking method, and streamline simulation,offers the potential for fast and accurate prediction ofthree-phase flow in highly-heterogeneous reservoirs

    FUTURE WORK

    Extend the Riemann solver

    Residual saturations

    Relative permeability hysteresis

    Fluid miscibility and compositional effects

    Extend the streamline simulator

    Gravity, compressibility, and capillary pressure effects

  • 25Applied Mathematics

    PUBLICATIONS

    R. Juanes. Displacement Theory and Multiscale Numerical Modeling ofThree-Phase Flow. PhD Dissertation, University of California, Berkeley, 2003.

    R. Juanes, T.W. Patzek. Relative permeabilities for strictly hyperbolicmodels of three-phase flow in porous media. Transport in Porous Media(accepted, in press).

    R. Juanes, T.W. Patzek. Analytical solution to the Riemann problem ofthree-phase flow in porous media. Transport in Porous Media,55(1):47-70, 2004.

    R. Juanes, T.W. Patzek. Three-phase displacement theory: an improveddescription of relative permeabilities. SPE Journal (accepted, in press).

    R. Juanes, K.-A. Lie, V. Kippe. A front-tracking method for hyperbolicthree-phase models. In Proceedings of ECMOR IX, Cannes, France, 2004.

    K.-A. Lie, R. Juanes. A front-tracking method for the simulation ofthree-phase flow in porous media. Computational Geosciences (in review).

  • 26Applied Mathematics

    Backup foils

  • 27Applied Mathematics

    THE SATURATION SPACE

    ),( gw SS)~,~( gw SS

  • 28Applied Mathematics

    CHARACTER OF THE SYSTEM

    The character of the system of first-order equations

    is determined by the eigenvalues (n1, n2) andeigenvectors (r1, r2) of the Jacobian matrix

    0fu =∂+∂⇔⎟⎠

    ⎞⎜⎝

    ⎛=⎟⎠

    ⎞⎜⎝

    ⎛∂+⎟⎠

    ⎞⎜⎝

    ⎛∂ xtxt gf

    vu

    ,00

    ⎟⎟⎠

    ⎞⎜⎜⎝

    ⎛=′vu

    vu

    ggff

    ,,

    ,,)(uf

    Hyperbolic: the eigenvalues are real andthe Jacobian matrix is diagonalizable

    • Strictly hyperbolic: eigenvalues are distinct, n1 < n2 Elliptic: eigenvalues are complex conjugates

  • 29Applied Mathematics

    CONDITIONS FOR HYPERBOLICITY

    Traditional approach:

    Assume certain behavior ofthe relative permeabilities Infer loss of hyperbolicity

    We use a new approach:

    Infer conditions on therelative permeabilities Enforce hyperbolicity

    (J.: PhD 2003)(J. and Patzek: SPEJ in press)

  • 30Applied Mathematics

    ELLIPTIC REGIONS

    Regions in the saturation triangle, where the system ofequations is elliptic rather than hyperbolic

  • 31Applied Mathematics

    RIEMANN SOLVER ALGORITHM

    1. Given injected (left) and initial (right) states: uL, uR

    2. Set initial guess and trial solution: uMtr, W1tr = R1, W2tr = R2

    3. Solve trial configuration and update wave structure:

    [uM, W1, W2] = WaveStruct (uL, uR, uMtr, W1tr, W2tr)

    4. Check admissibility:If (s1 > s2) { Set new initial guess: uM

    Declare solution invalid: W1tr = W2tr = 0 }

    5. Check convergence:If W1W2 = W1trW2tr StopElse Set W1trW2tr ← W1W2 , uMtr ← uM , Goto 3.

    (J. and Patzek: TIPM 2004)

  • 32Applied Mathematics

    NONLOCAL WAVE CURVES

    Usual construction assumes that wave curves are local

    This construction may be globally inadmissible: s1 ≮ s2

    Reason: shock curves may present detached branches

    Detached branch

  • 33Applied Mathematics

    ROLE OF DETACHED BRANCHES

    Inadmissible solution involving local wave curves: s1 > s2loc

  • 34Applied Mathematics

    ROLE OF DETACHED BRANCHES

    Inadmissible solution involving detached branch: s1 > s2det

  • 35Applied Mathematics

    ROLE OF DETACHED BRANCHES

    Admissible solution involving detached branch: s1 < s2det

  • 36Applied Mathematics

    FRONT-TRACKING IMPLEMENTATION

    If the solution involves discontinuities only,the front-tracking method is exact

    Rarefactions are approximated by a series of (small)jump discontinuities

    Data reduction: Exceedingly small Riemann problemsare discarded to avoid blow-up of number of discontinuities

    u

    x

  • 37Applied Mathematics

    1. If , ignore the Riemann problem

    2. If , approximate the Riemann problem by a single discontinuity with shock speed equal the average of the Rankine–Hugoniot velocity of each component

    3. If , approximate the Riemann problem by a two-shock solution . If , goto 4.

    4. Otherwise solve the full Riemann problem

    1L Ru u δ| − |≤

    1 2L Ru uδ δ

  • 38Applied Mathematics

    DATA REDUCTION

    Left: full resolution of all wave interactions, 5563 in total

    S1/S2: dashed red/magenta lineR1/R2: solid cyan/blue line

    Right: weak wave interactions approximated by shocks, 1833 interactions in total of which 234 fully resolved

    Ratio of runtimes is 4.6 : 1

  • 39Applied Mathematics

    Left: front-tracking solution consisting of 1.6 million Riemann problems.

    The runtimes were approximately equal.

    Right: fully implicit upwind method with 100 grid cells and a Courant number of 1.0

    COMPARISON WITH THE UPWIND FVM

  • 40Applied Mathematics

    WATER SATURATION AFTER 2000 DAYS

    Continuous water injection

    Water-alternating-gas injection