Reservoir Simulation: From Upscaling to Multiscale Methods - - PDF document

reservoir simulation from upscaling to multiscale methods
SMART_READER_LITE
LIVE PREVIEW

Reservoir Simulation: From Upscaling to Multiscale Methods - - PDF document

Reservoir Simulation: From Upscaling to Multiscale Methods KnutAndreas Lie SINTEF ICT, Dept. Applied Mathematics http://www.math.sintef.no/GeoScale Multiscale Computational Science and Engineering, September 1921, Trondheim, Norway


slide-1
SLIDE 1

Reservoir Simulation: From Upscaling to Multiscale Methods

Knut–Andreas Lie

SINTEF ICT, Dept. Applied Mathematics http://www.math.sintef.no/GeoScale

Multiscale Computational Science and Engineering, September 19–21, Trondheim, Norway

Applied Mathematics 21/09/2007 1/47

Reservoir Simulation

What and why?

Reservoir simulation is the means by which a numerical model of the petrophysical characteristics of a hydrocarbon reservoir is used to analyze and predict fluid behavior in the reservoir over time. Reservoir simulation is used as a basis for decisions regarding development of reservoirs and management during production. To this end, one needs to predict reservoir performance from geological descriptions and constraints, fit geological descriptions to static and dynamic data, assess uncertainty in predictions,

  • ptimize production strategies,

. . .

Applied Mathematics 21/09/2007 2/47

slide-2
SLIDE 2

Reservoir Simulation

What are the challenges today?

Reservoir modelling is a true multiscale discipline: Measurements and models on a large number of scales Large number of models Complex grids with a large number of parameters High degree of uncertainty . . . There is always a need for faster and more accurate simulators that use all available geological information

Applied Mathematics 21/09/2007 3/47

Physical Scales in Porous Media Flow

One cannot resolve them all at once

The scales that impact fluid flow in oil reservoirs range from the micrometer scale of pores and pore channels via dm–m scale of well bores and laminae sediments to sedimentary structures that stretch across entire reservoirs.

− →

Applied Mathematics 21/09/2007 4/47

slide-3
SLIDE 3

Physical Scales in Porous Media Flow

Microscopic: the scale of individual sand grains

Flow in individual pores between sand grains

Applied Mathematics 21/09/2007 5/47

Physical Scales in Porous Media Flow

Geological: the meter scale of layers, depositional beds, etc

Porous sandstones often have repetitive layered structures, but faults and fractures caused by stresses in the rock disrupt flow patterns

Applied Mathematics 21/09/2007 6/47

slide-4
SLIDE 4

Physical Scales in Porous Media Flow

Reservoir: the kilometer scale of sedimentary structures

Applied Mathematics 21/09/2007 7/47

Physical Scales in Porous Media Flow

Choosing a scale for modelling

Applied Mathematics 21/09/2007 8/47

slide-5
SLIDE 5

Geological Models

The knowledge database in the oil company

Geomodels: are articulations of the experts’ perception of the reservoir describe the reservoir geometry (horizons, faults, etc) give rock parameters (e.g., permeability K and porosity φ) that determine the flow In the following: the term “geomodel” will designate a grid model where rock properties have been assigned to each cell

Applied Mathematics 21/09/2007 9/47

Flow Simulation

Model problem: incompressible, single phase

Consider the following model problem Darcy’s law: v = −K (∇p − ρg∇D) , Mass balance: ∇ · v = q in Ω, Boundary conditions: v · n = 0

  • n ∂Ω.

The multiscale structure of porous media enters the equations through the absolute permeability K, which is a symmetric and positive definite tensor with uniform upper and lower bounds. We will refer to p as pressure and v as velocity.

Applied Mathematics 21/09/2007 10/47

slide-6
SLIDE 6

Flow Simulation

The impact of rock properties

Rock properties are used as parameters in flow models Permeability K spans many length scales and have multiscale structure max K/ min K ∼ 103–1010 Details on all scales impact flow

Ex: Brent sequence

Tarbert Upper Ness

Challenges: How much details should one use? Need for good linear solvers, preconditioners, etc.

Applied Mathematics 21/09/2007 11/47

Flow Simulation

Gap in resolution and model sizes

Gap in resolution: High-resolution geomodels may have 106 − 1010 cells Conventional simulators are capable of about 105 − 106 cells Traditional solution: upscaling of parameters

Assume that u satisfies the elliptic PDE: −∇

  • K(x)∇u
  • = f.

Upscaling amounts to finding a new field K∗(¯ x) on a coarser grid such that −∇

  • K∗(¯

x)∇u∗ = ¯ f, u∗ ∼ ¯ u, q∗ ∼ ¯ q .

Applied Mathematics 21/09/2007 12/47

slide-7
SLIDE 7

Upscaling Geological Models

Industry-standard methods

How do we represent fine-scale heterogeneities on a coarse scale? Combinations of arithmetic, geometric, harmonic averaging Power averaging

  • 1

|V |

  • V a(x)p dx

1/p

Equivalent permeabilities ( a∗

xx = −QxLx/∆Px )

V’

p=1 p=0 u=0 u=0

V

p=1 p=0 u=0 u=0

V V’

Lx Ly Applied Mathematics 21/09/2007 13/47

Upscaling Geological Models

Is it necessary and does one want to do it?

There are many difficulties associated with upscaling Bottleneck in the workflow Loss of details Lack of robustness Need for resampling for complex grid models Not obvious how to extend the ideas to 3-phase flows

10 20 30 40 50 60 20 40 60 80 100 120 140 160 180 200 220 2 4 6 8 10 2 4 6 8 10 12 14 16 18 20 22

Need for fine-scale computations? In the future: need for multiphysics on multiple scales?

Applied Mathematics 21/09/2007 14/47

slide-8
SLIDE 8

Fluid Simulations Directly on Geomodels

Research vision: Direct simulation of complex grid models of highly heterogeneous and fractured porous media - a technology that bypasses the need for upscaling. Applications: Huge models, multiple realizations, prescreening, validation,

  • ptimization, data integration, ..

To this end, we seek a methodology that incorporates small-scale effects into coarse-scale system; gives a detailed image of the flow pattern on the fine scale, without having to solve the full fine-scale system; is robust, conservative, accurate, and efficient.

Applied Mathematics 21/09/2007 15/47

Multiscale Pressure Solvers

Efficient flow solution on complex grids – without upscaling

Basic idea: Upscaling and downscaling in one step Pressure varies smoothly and can be resolved on coarse grid Velocity with subgrid resolution

Applied Mathematics 21/09/2007 16/47

slide-9
SLIDE 9

From Upscaling to Multiscale Methods

Standard upscaling:

Coarse grid blocks:

Flow problems:

Multiscale method:

Coarse grid blocks:

Flow problems:

Applied Mathematics 21/09/2007 17/47

From Upscaling to Multiscale Methods

Standard upscaling:

⇓ ⇑

Coarse grid blocks:

⇓ ⇑

Flow problems:

Multiscale method:

⇓ ⇑

Coarse grid blocks:

⇓ ⇑

Flow problems:

Applied Mathematics 21/09/2007 18/47

slide-10
SLIDE 10

The Multiscale Mixed Finite-Element Method

Standard finite-element method (FEM):

Piecewise polynomial approximation to pressure,

  • l∇K∇p dx =
  • lq dx

Mixed finite-element methods (MFEM):

Piecewise polynomial approximations to pressure and velocity

k−1v · u dx −

p ∇ · u dx =

k−1ρg∇D · u dx ∀u ∈ U,

l ∇ · v dx =

ql dx ∀l ∈ V.

Multiscale mixed finite-element method (MsMFEM):

Velocity approximated in a (low-dimensional) space V ms designed to embody the impact of fine-scale structures.

Applied Mathematics 21/09/2007 19/47

Multiscale Mixed Finite Elements

Grids and basis functions

Assume we are given a fine grid with permeability and porosity attached to each fine-grid block:

T

i

T

j

We construct a coarse grid, and choose the discretisation spaces U and V ms such that: For each coarse block Ti, there is a basis function φi ∈ U. For each coarse edge Γij, there is a basis function ψij ∈ V ms.

Applied Mathematics 21/09/2007 20/47

slide-11
SLIDE 11

(Multiscale) Mixed Finite Elements

Discretisation matrices (without hybridization)

Saddle-point problem: B C CT v p

  • =

f g

  • ,

bij =

ψik−1ψj dx, cij =

φj∇ · ψi dx Basis φj for pressure: equal one in cell j, zero otherwise Basis ψi for velocity: 1.order Raviart–Thomas: Multiscale:

Applied Mathematics 21/09/2007 21/47

Multiscale Mixed Finite Elements

Basis for the velocity field

Velocity basis function ψij: unit flow through Γij defined as ∇ · ψij =

  • wi(x),

for x ∈ Ti, −wj(x), for x ∈ Tj, and no flow ψij · n = 0 on ∂(Ti ∪ Tj). Global velocity: v =

ij vijψij, where vij are (coarse-scale) coefficients.

Applied Mathematics 21/09/2007 22/47

slide-12
SLIDE 12

Multiscale Simulation versus Upscaling

10th SPE Comparative Solution Project

Producer A Producer B Producer C Producer D Injector T a r b e r t U p p e r N e s s

Geomodel: 60 × 220 × 85 ≈ 1, 1 million grid cells, max Kx/ min Kx ≈ 107, max Kz/ min Kz ≈ 1011 Simulation: 2000 days of production (2-phase flow)

Commercial (finite-difference) solvers: incapable of running the whole model

Applied Mathematics 21/09/2007 23/47

Multiscale Simulation versus Upscaling

10th SPE Comparative Solution Project

Upscaling results reported by industry

200 400 600 800 1000 1200 1400 1600 1800 2000 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1 Time (days) Watercut Fine Grid TotalFinaElf Geoquest Streamsim Roxar Chevron 200 400 600 800 1000 1200 1400 1600 1800 2000 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1 Time (days) Watercut Fine Grid Landmark Phillips Coats 10x20x10

single-phase upscaling two-phase upscaling

Applied Mathematics 21/09/2007 24/47

slide-13
SLIDE 13

Multiscale Simulation versus Upscaling

10th SPE Comparative Solution Project

500 1000 1500 2000 0.2 0.4 0.6 0.8 1 Time (days) Watercut Producer A 500 1000 1500 2000 0.2 0.4 0.6 0.8 1 Time (days) Watercut Producer B 500 1000 1500 2000 0.2 0.4 0.6 0.8 1 Time (days) Watercut Producer C 500 1000 1500 2000 0.2 0.4 0.6 0.8 1 Time (days) Watercut Producer D Reference MsMFEM Nested Gridding Reference MsMFEM Nested Gridding Reference MsMFEM Nested Gridding Reference MsMFEM Nested Gridding

upscaling/downscaling, MsMFEM/streamlines, fine grid Runtime: 2 min 22 sec on 2.4 GHz desktop PC

Applied Mathematics 21/09/2007 25/47

Robustness

SPE10, Layer 85 (60 × 220 Grid)

Applied Mathematics 21/09/2007 26/47

slide-14
SLIDE 14

Comparison of Multiscale and Upscaling Methods

1

Local-global upscaling (Durlofsky et al) global boundary conditions, iterative improvement (bootstrap) reconstruction of fine-grid velocities

2

Multiscale mixed finite elements (Chen & Hou, . . . ) multiscale basis functions for velocity coarse-scale pressure

3

Multiscale finite-volume method (Jenny, Tchelepi, Lee,. . . ) multiscale basis functions for pressure reconstruction of velocity on fine grid

4

Numerical subgrid upscaling (Arbogast, . . . ) direct decomposition of the solution, V = Vc ⊕ Vf RT0 on fine scale, BDM1 on coarse

Applied Mathematics 21/09/2007 27/47

Comparison of Multiscale and Upscaling Methods

SPE 10, individual layers

Saturation errors at 0.3 PVI on 15 × 55 coarse grid

10 20 30 40 50 60 70 80 90 0.1 0.2 0.3 0.4 0.5 0.6 0.7 Layer # δ(S) MsMFEM MsFVM ALGUNG NSUM

X

Applied Mathematics 21/09/2007 28/47

slide-15
SLIDE 15

Comparison of Multiscale and Upscaling Methods

Velocity errors for Layer 85

MsMFEM: MsFVM:

11 20 22 44 55 110 5 6 10 12 15 20 30 0.5 1 1.5 2 11 20 22 44 55 110 5 6 10 12 15 20 30 10 20 30 40

δ(v) = 0.80 δ(v) = 4.93

ALGUNG: NSUM:

11 20 22 44 55 110 5 6 10 12 15 20 30 0.5 1 1.5 2 2.5 11 20 22 44 55 110 5 6 10 12 15 20 30 1 2 3 4

δ(v) = 1.16 δ(v) = 1.49 Applied Mathematics 21/09/2007 29/47

Comparison of Multiscale and Upscaling Methods

Average saturation errors on Upper Næss formation (Layers 36–85)

Cartesian coarse grids: Multiscale methods give enhanced accuracy when subgrid information is exploited.

5x11 10x22 15x55 30x110 0.2 0.25 0.3 0.35 0.4 0.45 0.5 0.55 MsMFEM MsFVM ALGUNG NSUM PUPNG HANG 5x11 10x22 15x55 30x110 0.1 0.15 0.2 0.25 0.3 0.35 0.4 0.45 0.5 0.55 0.6 MsMFEM MsFVM ALGUNG NSUM PUPNG HANG

Fluid transport: coarse grid Fluid transport: fine grid

Applied Mathematics 21/09/2007 30/47

slide-16
SLIDE 16

Comparison of Multiscale and Upscaling Methods

MsMFEM versus upscaling on complex coarse grids

Complex coarse grid-block geometries: MsMFEM is more accurate than upscaling, also for coarse-grid simulation.

3 x 3 x 3 5 x 5 x 5 10 x 10 x 10 15 x 15 x 15 30 x 30 x 30 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 MsMFEM A−UP G−UP H−UP 3 x 3 x 3 5 x 5 x 5 10 x 10 x 10 15 x 15 x 15 30 x 30 x 30 0.02 0.04 0.06 0.08 0.1 0.12 0.14 0.16 0.18 MsMFEM A−UP G−UP H−UP

Coarse-grid velocity errors Coarse-grid saturation errors Up-gridded 30 × 30 × 333 corner-point grid with layered log-normal permeability

Applied Mathematics 21/09/2007 31/47

Computational Complexity

Order-of-magnitude argument

Assume: Grid model with N = Ns ∗ Nc cells:

Nc number of coarse cells Ns number of fine cells in each coarse cell

Linear solver of complexity O(mα) for m × m system Negligible work for determining local b.c., numerical quadrature, and assembly (can be important, especially for NSUM) Direct solution Nα operations for a two-point finite volume method MsMFEM Computing basis functions: D · Nc · (2Ns)α operations Solving coarse-scale system: (D · Nc)α operations

Applied Mathematics 21/09/2007 32/47

slide-17
SLIDE 17

Computational Complexity

Example: 128 × 128 × 128 fine grid

0.5 1 1.5 2 2.5 3 x 10

8

MsMFEM NSUM MsFVM ALGUNG MsMFEM NSUM MsFVM ALGUNG MsMFEM NSUM MsFVM ALGUNG MsMFEM NSUM MsFVM ALGUNG Nc = 83 Nc = 163 Nc = 323 Nc = 643 Local work Global work Fine scale solution

Comparison with algebraic multigrid (AMG), α = 1.2

Applied Mathematics 21/09/2007 33/47

Computational Complexity

Example: 128 × 128 × 128 fine grid

1 2 3 4 5 x 10

9

MsMFEM NSUM MsFVM ALGUNG MsMFEM NSUM MsFVM ALGUNG MsMFEM NSUM MsFVM ALGUNG MsMFEM NSUM MsFVM ALGUNG Nc = 83 Nc = 163 Nc = 323 Nc = 643 Fine scale solution Local work Global work

Comparison with less efficient solver, α = 1.5

Applied Mathematics 21/09/2007 34/47

slide-18
SLIDE 18

Multiphase Flow

Time-dependent problems: ∇(K(x)λ(S)∇p) = q(S)

Direct solution may be more efficient, so why bother with multiscale? Full simulation: O(102) time steps. Basis functions need not always be recomputed Also: Possible to solve very large problems Easy parallelization

8x8x8 16x16x16 32x32x32 64x64x64 1 2 3 4 5 6 7 8 x 10

7

Computation of basis functions Solution of global system

Fine scale solution

Applied Mathematics 21/09/2007 35/47

Two-Phase Flow

Example: quarter five-spot, Layer 85 from SPE 10, coarse grid: 10 × 22

Water cuts obtained by never updating basis functions:

0.5 1 1.5 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1 PVI Water−Cut Reference MsMFEM (δ(ω) = 0.1551) MsFVM (δ(ω) = 0.0482) Ms−NSUM (δ(ω) = 0.1044)

0.5 1 1.5 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1 PVI Water−Cut Reference MsMFEM (δ(ω) = 0.0077) MsFVM (δ(ω) = 0.0146) Ms−NSUM (δ(ω) = 0.0068)

favorable (M = 0.1) unfavorable (M = 10.0)

Applied Mathematics 21/09/2007 36/47

slide-19
SLIDE 19

Two-Phase Flow

Example: quarter five-spot, Layer 85 from SPE 10, coarse grid: 10 × 22

Improved accuracy by adaptive updating of basis functions:

0.65 0.7 0.75 0.8 0.85 0.9 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 PVI Water−Cut Reference MsMFEM (δ(ω) = 0.1551) MsFVM (δ(ω) = 0.0482) Ms−NSUM (δ(ω) = 0.1044)

0.65 0.7 0.75 0.8 0.85 0.9 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 Water−Cut PVI Reference MsMFEM (δ(ω) = 0.031) Ms−NSUM (δ(ω) = 0.036)

no updating adaptive updating

Applied Mathematics 21/09/2007 37/47

Application: History Matching on Geological Models

Assimilation of production data to calibrate model 1 million cells, 32 injectors, and 69 producers 2475 days ≈ 7 years of water-cut data 6 iterations in data integration method 7 forward simulations, 15 pressure updates each Computation time (on desktop PC): Original method: ∼ 40 min (pressure solver: 30 min) Multiscale method: ∼ 17 min (pressure solver: 7 min)

Applied Mathematics 21/09/2007 38/47

slide-20
SLIDE 20

Geological Models as Direct Input to Simulation

‘Medium-fitted’ grids to model complex reservoir geometries

Another challenge: Industry-standard grids are often nonconforming and contain skewed and degenerate cells There is a trend towards unstructured grids Standard discretization methods produce wrong results on skewed and rough cells

Corner point: Tetrahedral: PEBI:

Applied Mathematics 21/09/2007 39/47

Corner-Point Grids

Industry standard for modelling complex reservoir geology

Specified in terms of: areal 2D mesh of vertical or inclined pillars each volumetric cell is restriced by four pillars each cell is defined by eight corner points, two on each pillar

Applied Mathematics 21/09/2007 40/47

slide-21
SLIDE 21

Discretisation on Corner-Point Grids

Exotic cell geometries from a simulation point-of-view

Skew and deformed grid blocks: Non-matching cells: Can use standard MFEM provided that one has mappings and reference elements Can subdivide corner-point cells into tetrahedra We use mimetic finite differences (recent work by Brezzi, Lipnikov, Shashkov, Simoncini)

Applied Mathematics 21/09/2007 41/47

Discretisation on Corner-Point Grids

Mimetic finite differences, hybrid of MFEM and multipoint FVM

Let u, v be piecewise linear vector functions and u, v be the corresponding vectors of discrete velocities over faces in the grid, i.e., vk = 1 |ek|

  • ek

v(s) · n ds Then the block B in the mixed system satisfies

vT K−1u = vT Bu

  • =
  • E∈Ω

vT

EBEuE

  • The matrices BE define discrete inner products

Mimetic idea: Replace BE with a matrix ME that mimics some properties of the continuous inner product (SPD, globally bounded, Gauss-Green for linear pressure)

Applied Mathematics 21/09/2007 42/47

slide-22
SLIDE 22

Mimetic Finite Difference Methods

General method applicable to general polyhedral cells

Standard method + skew grids = grid-orientation effects

K: homogeneous and isotropic, symmetric well pattern − → symmteric flow

0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1

Water−cut curves for two−point FVM PVI

0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1

Water−cut curves for mimetic FDM PVI

Streamlines with standard method Streamlines with mimetic method

Applied Mathematics 21/09/2007 43/47

Multiscale Mixed Finite Elements

An automated alternative to upscaling?

Coase grid = union of cells from fine grid MsMFEMs allow fully automated coarse gridding strategies: grid blocks need to be connected, but can have arbitrary shapes. Uniform up-gridding: grid blocks are shoe-boxes in index space.

Model is courtesy of Alf B. Rustad, Statoil

Applied Mathematics 21/09/2007 44/47

slide-23
SLIDE 23

Multiscale Mixed Finite Elements

Examples of exotic grids

Applied Mathematics 21/09/2007 45/47

Multiscale Mixed Finite Elements

Ideal for coupling with well models

Fine grid to annulus, one coarse block for each well segment = ⇒ no well model needed.

Applied Mathematics 21/09/2007 46/47

slide-24
SLIDE 24

Summary

Advantages of multiscale mixed/mimetic pressure solvers

Ability to handle industry-standard grids highly skewed and degenerate cells non-matching cells and unstructured connectivities Compatible with current solvers can be built on top of commercial/inhouse solvers can utilize existing linear solvers More efficient than standard solvers faster and requires less memory than fine-grid solvers automated generation of coarse simulation grids easy to parallelize

Applied Mathematics 21/09/2007 47/47