An Overview of the Multiscale Mixed Finite-Element Method SINTEF - - PowerPoint PPT Presentation

an overview of the multiscale mixed finite element method
SMART_READER_LITE
LIVE PREVIEW

An Overview of the Multiscale Mixed Finite-Element Method SINTEF - - PowerPoint PPT Presentation

An Overview of the Multiscale Mixed Finite-Element Method SINTEF ICT, Department of Applied Mathematics Multiscale Workshop, Dr. Holms, Geilo, Dec 5, 2008 Applied Mathematics 05/12/2008 1/63 Multiscale Pressure Solvers Efficient flow


slide-1
SLIDE 1

An Overview of the Multiscale Mixed Finite-Element Method

SINTEF ICT, Department of Applied Mathematics Multiscale Workshop, Dr. Holms, Geilo, Dec 5, 2008

Applied Mathematics 05/12/2008 1/63

slide-2
SLIDE 2

Multiscale Pressure Solvers

Efficient flow solution on complex grids – without upscaling

Basic idea: Upscaling and downscaling in one step Pressure on coarse grid (subresolution near wells) Velocity with subgrid resolution everywhere Example: Layer 36 from SPE 10

Applied Mathematics 05/12/2008 2/63

slide-3
SLIDE 3

Multiscale Pressure Solvers

Two main contenders...

Multiscale mixed finite elements Developed by SINTEF Main focus on complex grids Corner-point grids in 3D Triangular/nonuniform/PEBI Automated coarsening

+ Stokes–Brinkman, wells, black-oil Applications: history match, optimization

Multiscale finite volumes Developed by Jenny/Lee/Tchelepi/.. Focus on flow physics Gravity and capillarity Black-oil Compressibility Complex wells Only for Cartesian grids, so far.

Applied Mathematics 05/12/2008 3/63

slide-4
SLIDE 4

Geological Models as Direct Input to Simulation

Complex reservoir geometries

Challenges: 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 The combination of high aspect and anisotropy ratios can give very large condition numbers

Corner point: Tetrahedral: PEBI:

Applied Mathematics 05/12/2008 4/63

slide-5
SLIDE 5

The MsMFE Method in a Nutshell

From upscaling to multiscale methods

Standard upscaling:

Coarse grid blocks:

Flow problems:

Applied Mathematics 05/12/2008 5/63

slide-6
SLIDE 6

The MsMFE Method in a Nutshell

From upscaling to multiscale methods

Standard upscaling:

Coarse grid blocks:

⇓ ⇑

Flow problems:

Applied Mathematics 05/12/2008 5/63

slide-7
SLIDE 7

The MsMFE Method in a Nutshell

From upscaling to multiscale methods

Standard upscaling:

⇓ ⇑

Coarse grid blocks:

⇓ ⇑

Flow problems:

Applied Mathematics 05/12/2008 5/63

slide-8
SLIDE 8

The MsMFE Method in a Nutshell

From upscaling to multiscale methods

Standard upscaling:

⇓ ⇑

Coarse grid blocks:

⇓ ⇑

Flow problems:

Applied Mathematics 05/12/2008 5/63

slide-9
SLIDE 9

The MsMFE Method in a Nutshell

From upscaling to multiscale methods

Standard upscaling:

⇓ ⇑

Coarse grid blocks:

⇓ ⇑

Flow problems: Multiscale method:

Coarse grid blocks:

Flow problems:

Applied Mathematics 05/12/2008 5/63

slide-10
SLIDE 10

The MsMFE Method in a Nutshell

From upscaling to multiscale methods

Standard upscaling:

⇓ ⇑

Coarse grid blocks:

⇓ ⇑

Flow problems: Multiscale method:

Coarse grid blocks:

⇓ ⇑

Flow problems:

Applied Mathematics 05/12/2008 5/63

slide-11
SLIDE 11

The MsMFE Method in a Nutshell

From upscaling to multiscale methods

Standard upscaling:

⇓ ⇑

Coarse grid blocks:

⇓ ⇑

Flow problems: Multiscale method:

⇓ ⇑

Coarse grid blocks:

⇓ ⇑

Flow problems:

Applied Mathematics 05/12/2008 5/63

slide-12
SLIDE 12

The MsMFE Method in a Nutshell

Mixed formulation for incompressible flow

Mixed formulation: Find (v, p) ∈ H1,div × L2 such that

  • (λK)−1u · v dx −
  • p∇ · u dx = 0,

∀u ∈ H1,div ,

  • ℓ∇ · v dx =
  • qℓ dx,

∀ℓ ∈ L2. Multiscale discretization: Seek solutions in low-dimensional subspaces in which local fine-scale properties are incorporated into the basis functions

Applied Mathematics 05/12/2008 6/63

slide-13
SLIDE 13

The MsMFE Method in a Nutshell

Linear system and basis functions

Discretisation matrices: B C CT v p

  • =

f g

  • ,

bij =

ψi

  • λK

−1ψj dx, cik =

φk∇ · ψi dx Raviart–Thomas: Multiscale basis function:

Applied Mathematics 05/12/2008 7/63

slide-14
SLIDE 14

The MsMFE Method in a Nutshell

Grids and basis functions

We assume we are given a fine grid with permeability and porosity attached to each fine-grid block.

Applied Mathematics 05/12/2008 8/63

slide-15
SLIDE 15

The MsMFE Method in a Nutshell

Grids and basis functions

We assume we are given a fine grid with permeability and porosity attached to each fine-grid block. We construct a coarse grid, and choose the discretisation spaces V and Ums such that:

Applied Mathematics 05/12/2008 8/63

slide-16
SLIDE 16

The MsMFE Method in a Nutshell

Grids and basis functions

We assume we are given a fine grid with permeability and porosity attached to each fine-grid block. T

i

We construct a coarse grid, and choose the discretisation spaces V and Ums such that: For each coarse block Ti, there is a basis function φi ∈ V .

Applied Mathematics 05/12/2008 8/63

slide-17
SLIDE 17

The MsMFE Method in a Nutshell

Grids and basis functions

We 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 V and Ums such that: For each coarse block Ti, there is a basis function φi ∈ V . For each coarse edge Γij, there is a basis function ψij ∈ Ums.

Applied Mathematics 05/12/2008 8/63

slide-18
SLIDE 18

The MsMFE Method in a Nutshell

Local flow problems

For each coarse edge Γij, define a basis function with unit flux through Γij and no flow across ∂(Ti ∪ Tj). Local flow problem: ψij = −λK∇φij, ∇ · ψij =

  • wi(x),

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

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

Applied Mathematics 05/12/2008 9/63

slide-19
SLIDE 19

The MsMFE Method in a Nutshell

Automated generation of coarse grids

The MsMFE method allows fully automated coarse gridding strategies: grid blocks need to be connected, but can have arbitrary shapes Corner-point grids: the coarse blocks are logically Cartesian in index space

Applied Mathematics 05/12/2008 10/63

slide-20
SLIDE 20

The MsMFE Method in a Nutshell

Workflow with automated upgridding in 3D

1) Coarsen grid by uniform partitioning in index space for corner-point grids

44 927 cells ↓ 148 blocks 9 different coarse blocks

3) Compute basis functions ∇·ψij = ( wi(x), −wj(x), for all pairs of blocks 2) Detect all adjacent blocks 4) Block in coarse grid: component for building global solution

Applied Mathematics 05/12/2008 11/63

slide-21
SLIDE 21

The MsMFE Method in a Nutshell

Computational efficiency: order-of-magnitude argument, 128 × 128 × 128 grid

Multigrid more efficient when computing pressure once. Why bother with multiscale pressure solvers? Full simulation: O(102) time steps. Basis functions need not 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 05/12/2008 12/63

slide-22
SLIDE 22

The MsMFE Method in a Nutshell

Example: 10th SPE Comparative Solution Project

SPE 10, Model 2:

Producer A Producer B Producer C Producer D Injector Tarbert Upper Ness

Fine grid: 60 × 220 × 85 Coarse grid: 5 × 11 × 17 2000 days production 4M + streamlines: 2 min 22 sec on 2.4 GHz desktop PC Water-cut curves at the four producers

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, 4M/streamlines, fine grid

Applied Mathematics 05/12/2008 13/63

slide-23
SLIDE 23

Implementation Details for MsMFE

There are certain choices....

Choice of weighting function in definition of basis functions Boundary conditions (overlap and global information) Assembly of linear system Fine-grid discretization Generation of coarse grids

Applied Mathematics 05/12/2008 14/63

slide-24
SLIDE 24

Implementation Details for MsMFE

Choice of the weight function

Interpretation of the weight function: (∇ · v)|Ti =

  • j

wi∇ · (vijψij) = wi

  • j

vij = wi

  • ∂Ti

v · nds = wi

  • Ti

∇ · v That is, wi distributes ∇ · v among the cells in the coarse grid Different roles: Incompressible flow: ∇ · v = q Compressible flow: ∇ · v = q − ct∂tp −

j cjvj · ∇p

Applied Mathematics 05/12/2008 15/63

slide-25
SLIDE 25

Implementation Details for MsMFE

Weight function: incompressible flow

For incompressible flow, we have that (∇ · v)|Ti = wi

  • j

vij,

  • j

vij =

  • 0,

if

  • Ti qdx = 0,
  • Ti qdx,
  • therwise

Thus

  • Ti

qdx = 0 ⇒ ∇ · v = 0, ∀wi > 0

  • Ti

qdx = 0 ⇒ ∇ · v = q, if wi = q

  • Ti qdx

Applied Mathematics 05/12/2008 16/63

slide-26
SLIDE 26

Implementation Details for MsMFE

Choice of weight function: uniform

Uniform source: wi(x) = 1 |Ti|

v

h

v

l l

k k

h

  • ij

p=1 p=0

j

T

i

T Ω Ω Ω Ω

1 2 3 4

low (kl) and high (kh) permeability streamlines from basis function

Applied Mathematics 05/12/2008 17/63

slide-27
SLIDE 27

Implementation Details for MsMFE

Choice of weight function: scaled

Scaled source: wi(x) = trace(K(x))

  • Ti trace(K(ξ)) dξ

2 x 2 x 2 4 x 4 x 3 4 x 4 x 4 5 x 5 x 3 5 x 5 x 4 5 x 5 x 6 8 x 8 x 5 8 x 8 x 6 1 x 1 x 6 1 x 1 x 1 2 0.2 0.4 0.6 0.8 1 Relative error in energy−norm Scaled source Constant source

Applied Mathematics 05/12/2008 18/63

slide-28
SLIDE 28

Implementation Details for MsMFE

Choice of weight function: compressible flow

Compressible flow: (∇ · v)|Ti = wi

  • j

vij,

  • j

vij =

  • Ti
  • q − ct

∂p ∂t +

  • cαvα · ∇p
  • dx

Ideas from incompressible flow do not apply directly: wi ∝ q concentrates compressibility effects where q = 0 wi ∝ K overestimates ∇ · v in high-permeable zones and underestimates in low-permeable zones Better choice: wi =

φ R

Ti φdx

Motivation: ct∂tp ∝ φ

Applied Mathematics 05/12/2008 19/63

slide-29
SLIDE 29

Domain of Support Basis Functions

Here with overlap (green region)

Ωi Ωj Ωij

Applied Mathematics 05/12/2008 20/63

slide-30
SLIDE 30

Domain of Support Basis Functions

Here with overlap (green region)

Ωi Ωk

i

wk

Applied Mathematics 05/12/2008 20/63

slide-31
SLIDE 31

Domain of Support Basis Functions

Strategies for handeling wells in the MsMFE method

Strategy Standard: Use initial partitioning as is

Applied Mathematics 05/12/2008 21/63

slide-32
SLIDE 32

Domain of Support Basis Functions

Strategies for handeling wells in the MsMFE method

Strategy Adapted: Initial partition altered to put wells near block center

Applied Mathematics 05/12/2008 21/63

slide-33
SLIDE 33

Domain of Support Basis Functions

Strategies for handeling wells in the MsMFE method

Strategy Refined: Altered partition further sub-divided near wells

Applied Mathematics 05/12/2008 21/63

slide-34
SLIDE 34

Domain of Support Basis Functions

Strategies for handeling wells in the MsMFE method

Strategy Well oversampling: Support domain for well/block enlarged to include additional cells about well trajectory

Applied Mathematics 05/12/2008 21/63

slide-35
SLIDE 35

Domain of Support Basis Functions

Strategies for handeling wells in the MsMFE method

Strategy Well & block oversampling: Well oversampling + inclusion of additional cells about coarse blocks

Applied Mathematics 05/12/2008 21/63

slide-36
SLIDE 36

Implementation Details for MsMFE

Discretization on real geometries

Corner-point grids: 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 05/12/2008 22/63

slide-37
SLIDE 37

Implementation Details for MsMFE

Cell geometries are challenging from a discretization point-of-view

Skewed and deformed grid blocks: Non-matching cells: Very high aspect ratios (and centroid outside the cell):

Dimensions: 800 m × 800 m × 0.25 m Applied Mathematics 05/12/2008 23/63

slide-38
SLIDE 38

Implementation Details for MsMFE

The mimetic finite difference method

Mimetic finite-difference methods may be interpreted as a finite-volume counterpart of mixed finite-element methods. Key features: Applicable for models with general polyhedral grid-cells. Allow easy treatment of non-conforming grids with complex grid-cell geometries (including curved faces). Generic implementation: same code applies to all grids (e.g., corner-point/PEBI, matching/non-matching, ...).

Applied Mathematics 05/12/2008 24/63

slide-39
SLIDE 39

Implementation Details for MsMFE

The mimetic finite difference method, Brezzi et al., 2005

Express fluxes v = (v1, v2, . . . , vn)T as: v = −T (p − p0), where p = (p1, p2, . . . , pn)T.

Applied Mathematics 05/12/2008 25/63

slide-40
SLIDE 40

Implementation Details for MsMFE

The mimetic finite difference method, Brezzi et al., 2005

Express fluxes v = (v1, v2, . . . , vn)T as: v = −T (p − p0), where p = (p1, p2, . . . , pn)T. Impose exactness for any linear pressure field p = xTa + c (which gives velocity equal to −Ka): vi = −AinT

i Ka

pi − p0 = (xi − x0)Ta.

Applied Mathematics 05/12/2008 25/63

slide-41
SLIDE 41

Implementation Details for MsMFE

The mimetic finite difference method, Brezzi et al., 2005

Express fluxes v = (v1, v2, . . . , vn)T as: v = −T (p − p0), where p = (p1, p2, . . . , pn)T. Impose exactness for any linear pressure field p = xTa + c (which gives velocity equal to −Ka): vi = −AinT

i Ka

pi − p0 = (xi − x0)Ta. As a result, T must satisfy where C(i, :) = (xi − x0)T and N(i, :) = AinT

i

Applied Mathematics 05/12/2008 25/63

slide-42
SLIDE 42

Implementation Details for MsMFE

The mimetic finite difference method, Brezzi et al., 2005

Express fluxes v = (v1, v2, . . . , vn)T as: v = −T (p − p0), where p = (p1, p2, . . . , pn)T. Impose exactness for any linear pressure field p = xTa + c (which gives velocity equal to −Ka): vi = −AinT

i Ka

pi − p0 = (xi − x0)Ta. As a result, T must satisfy where C(i, :) = (xi − x0)T and N(i, :) = AinT

i

Family of valid solutions: T = 1 |E|NKN T + T 2, where T 2 is such that T is s.p.d. and T 2C = O.

Applied Mathematics 05/12/2008 25/63

slide-43
SLIDE 43

Implementation Details for MsMFE

The mimetic finite difference method, Brezzi et al., 2005

Express fluxes v = (v1, v2, . . . , vn)T as: v = −T (p − p0), where p = (p1, p2, . . . , pn)T. Impose exactness for any linear pressure field p = xTa + c (which gives velocity equal to −Ka): vi = −AinT

i Ka

pi − p0 = (xi − x0)Ta. As a result, T must satisfy where C(i, :) = (xi − x0)T and N(i, :) = AinT

i

Family of valid solutions: T = 1 |E|NKN T + T 2, where T 2 is such that T is s.p.d. and T 2C = O. Imposing continuity across edges/faces and conservation yields a hybrid system:

@ B C D CT O O DT O O 1 A @ v p π 1 A = RHS

⇓ Reduces to s.p.d. system for face pressures π.

Applied Mathematics 05/12/2008 25/63

slide-44
SLIDE 44

Treating Wells as Boundary Conditions

Discrete system still amenable to schur complement reduction

Discrete Pressure System       B C D Bw Cw Dw CT CT

w

DT DT

w

            v −qw −p π pw       =       −qw,tot       Well Model, Peaceman −qk

i = −λt(ski)WI k i (pEki − pwk),

i = 1, . . . , nk qk

tot = nk

  • i=1

qk

i .

Applied Mathematics 05/12/2008 26/63

slide-45
SLIDE 45

Implementation Details for MsMFE

Mimetic: 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 two-point method Streamlines with mimetic method

Applied Mathematics 05/12/2008 27/63

slide-46
SLIDE 46

Implementation Details for MsMFE

Mimetic: the role of the inner product

There is freedom in choosing the inner product (T2), so that e.g., MFDM coincides with TPFA on Cartesian grids MFDM coincides with MFEM on Cartesian grids Positive definite system is guaranteed. Monotonicity properties are similar as for MPFA. Challenge: Local adjustment of the inner product to reduce the condition number (and appearance of cycles) on complex grids.

Applied Mathematics 05/12/2008 28/63

slide-47
SLIDE 47

Implementation Details for MsMFE

Automated generation of coarse grids

(Unique) grid flexibility: Given a method that can solve local flow problems on the subgrid, the MsMFE method can be formulated on any coarse grid in which the coarse blocks consist of a connected collection of fine-grid cells

Applied Mathematics 05/12/2008 29/63

slide-48
SLIDE 48

Implementation Details for MsMFE

Automated generation of coarse grids

(Unique) grid flexibility: Given a method that can solve local flow problems on the subgrid, the MsMFE method can be formulated on any coarse grid in which the coarse blocks consist of a connected collection of fine-grid cells

Applied Mathematics 05/12/2008 29/63

slide-49
SLIDE 49

Implementation Details for MsMFE

Coarse grid generation

Problems occur when a basis function tries to force flow through a flow barrier problem no problem Can be detected automatically through the indicator vij = ψij · (λK)−1ψij If vij(x) > C for some x ∈ Ti, then split Ti and generate basis functions for the new faces

Applied Mathematics 05/12/2008 30/63

slide-50
SLIDE 50

Implementation Details for MsMFE

Coarse grid generation

Problems if there is a strong bi-directional flow over a coarse-grid interface fine grid multiscale Can be detected automatically through the indicator |

  • Γij

v · n ds| ≪

  • Γij

|v · n| ds, c ≤

  • Γij

|v · n| ds If so, split Ti and generate basis functions for the new faces.

Applied Mathematics 05/12/2008 31/63

slide-51
SLIDE 51

Implementation Details for MsMFE

Coarse grid generation

Problems if there is a strong bi-directional flow over a coarse-grid interface fine grid multiscale Can be detected automatically through the indicator |

  • Γij

v · n ds| ≪

  • Γij

|v · n| ds, c ≤

  • Γij

|v · n| ds If so, split Ti and generate basis functions for the new faces.

Applied Mathematics 05/12/2008 31/63

slide-52
SLIDE 52

Implementation Details for MsMFE

Simple guidelines for choosing good coarse grids

1

Minimize bidirectional flow over interfaces: Avoid unnecessary irregularity (Γ6,7 and Γ3,8) Avoid single neighbors (T4) Ensure that there are faces transverse to flow direction (T5)

2

Blocks and faces should follow geological layers (T3 and T8)

3

Blocks should adapt to flow obstacles whenever possible

4

For efficiency: minimize the number of connections

5

Avoid having too many small blocks

1 2 3 4 5 6 7 8

Flow direction Flow direction Flow direction Flow direction Flow direction Flow direction

1 3 2 5 6 7 8

Flow direction Flow direction

Applied Mathematics 05/12/2008 32/63

slide-53
SLIDE 53

Implementation Details for MsMFE

Example: adaption to flow obstacles

Applied Mathematics 05/12/2008 33/63

slide-54
SLIDE 54

The Latest News About the MsMFE Method

Four new developments

Four new developments in the last year: Extension of the MsMFE method to compressible three-phase flow A prototype implementation in FrontSim, applied to fractured media Extension of the MsMFE method to the Stokes-Brinkman equations to model flow in vuggy and naturally-fractured porous media Combination of the MsMFE method and the flow-based nonuniform coarsening method to give a very efficient solver

Applied Mathematics 05/12/2008 34/63

slide-55
SLIDE 55

MsMFE for Compressible Black-Oil Models

Fine-grid formulation

Semi-discrete pressure equation

ct pn

ν − pn−1

∆t + ∇ · un

ν − ζn ν−1

un

ν−1 · K−1

un

ν = q,

  • un

ν = −Kλ∇pn ν

Discretization using a mimetic method

uE = λT E(pE − πE), T E = |E|−1N EKEN T

E + ˜

T E N E: face normals, XE: vector from face to cell centroids, ˜ T E chosen arbitrarily provided ˜ T EXE = 0.

Hybrid system:

  B C D CT − V T

ν−1

P DT     uν −pν πν   =   P pn−1 + q   ,

Applied Mathematics 05/12/2008 35/63

slide-56
SLIDE 56

MsMFE for Compressible Black-Oil Models

Coarse-grid formulation

  ΨTBfΨ ΨTCfI ΨTDfJ IT(Cf − V f)TΨ ITP fI J TDT

f Ψ

    u −p π   =   ITP fpn

f

  Ψ – velocity basis functions Φ – pressure basis functions I – prolongation from blocks to cells J – prolongation from block faces to cell faces New feature: fine-scale pressure

pf ≈ Ip + ΦDλu, Dλ = diag(λ0

i/λi)

Applied Mathematics 05/12/2008 36/63

slide-57
SLIDE 57

MsMFE for Compressible Black-Oil Models

Example 1: tracer transport in gas (Lunati&Jenny 2006)

20 40 60 80 100 1 2 4 6 8 10 L / 100 p [Bar] Reference MsMFEM 20 40 60 80 100 1 2 4 6 8 10 L/100 p [Bar] Reference MsMFEM

Applied Mathematics 05/12/2008 37/63

slide-58
SLIDE 58

MsMFE for Compressible Black-Oil Models

Example 2: block with a single fault

100 200 300 400 500 20 40 60 80 100 −5 5 10 15 20 25 30 P(t=2.50e+02) −− Reference 100 200 300 400 500 20 40 60 80 100 −5 5 10 15 20 25 30 Sw(t=2.50e+02) −− Reference 100 200 300 400 500 20 40 60 80 100 −5 5 10 15 20 25 30 P(t=2.50e+02) −− Multiscale 100 200 300 400 500 20 40 60 80 100 −5 5 10 15 20 25 30 Sw(t=2.50e+02) −− Multiscale

Applied Mathematics 05/12/2008 38/63

slide-59
SLIDE 59

MsMFE for Compressible Black-Oil Models

Example 3: a model with five faults

500 1000 1500 2000 100 200 300 400 500 −25 −20 −15 −10 −5 5 10 15 20 0.5 1 1.5 2 2.5 500 1000 1500 200 400 600 800 1000 1200 1400 1600 1800 Days of Production m3/Day Producer Fluxes P1ref P2ref P1ms P2ms 500 1000 1500 0.1 0.2 0.3 0.4 0.5 0.6 0.7 Days of Production Producer Water Cuts P1ref P2ref P1ms P2ms

Applied Mathematics 05/12/2008 39/63

slide-60
SLIDE 60

MsMFE Prototype Solver in FrontSim

Example: a dense system of fracture corridors

800 × 800 80 × 80 upscaled 80 × 80 multiscale

Applied Mathematics 05/12/2008 40/63

slide-61
SLIDE 61

MsMFE Prototype Solver in FrontSim

Example: SPE 10 with fracture corridors

x-y permeability saturation, reference saturation, multiscale

Applied Mathematics 05/12/2008 41/63

slide-62
SLIDE 62

MsMFE Prototype Solver in FrontSim

Example: SPE 10 with fracture corridors

field oil-production rate field water cut water cut in P1 water cut in P8 Applied Mathematics 05/12/2008 42/63

slide-63
SLIDE 63

MsMFE for the Stokes–Brinkman Equations

Model equations: Darcy–Stokes vs Stokes–Brinkman

Standard approach:

Porous region (Darcy): µK−1 uD + ∇pD = f, ∇ · uD = q. Free-flow region (Stokes): −µ∇· ` ∇ uS+∇ uT

S

´ +∇pS = f, ∇· uS = q Problem: requires interface conditions and explicit geometry

Stokes–Brinkman (following Popov et al.) µK−1 u + ∇p − ˜ µ∆ u = f, ∇ · u = q Here: seamless transition from Darcy to Stokes (with µ = ˜ µ)

Applied Mathematics 05/12/2008 43/63

slide-64
SLIDE 64

MsMFE for the Stokes–Brinkman Equations

Basis functions

Local flow problems discretized using Taylor–Hood elements

µK−1 ψij + ∇ϕij − ˜ µ∆ ψij = 0, ∇ · ψij = 8 > < > : wi( x), if x ∈ Ωi, −wj( x), if x ∈ Ωj, 0,

  • therwise,

Applied Mathematics 05/12/2008 44/63

slide-65
SLIDE 65

MsMFE for the Stokes–Brinkman Equations

Coarse-scale hybrid mixed system

   (A−1)

TΨTBf DΨA−1

C D CT DT      uc −pc λc   =   qc   A – matrix with face areas Ψ – matrix with basis functions Bf

D – fine-scale Darcy TH-discretization

Fine-scale flux reconstructed as uf = Ψuc

20 40 60 80 100 120 140 20 40 60 80 100 120 140 nz = 588

Applied Mathematics 05/12/2008 45/63

slide-66
SLIDE 66

MsMFE for the Stokes–Brinkman Equations

Example 1: Model 2 of the 10th SPE Comparative Solution Project

10 20 30 40 50 60 70 80 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1 3x11 6x22 12x44

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

Tarbert (1–35) Upper Ness (36–85) Applied Mathematics 05/12/2008 46/63

slide-67
SLIDE 67

MsMFE for the Stokes–Brinkman Equations

Example 1: Layer 20 of SPE10

Applied Mathematics 05/12/2008 47/63

slide-68
SLIDE 68

MsMFE for the Stokes–Brinkman Equations

Example 1: Layer 60 of SPE10 (worst case with injector in low-permeable block)

Applied Mathematics 05/12/2008 48/63

slide-69
SLIDE 69

MsMFE for the Stokes–Brinkman Equations

Example 2: Vuggy reservoir (short correlation)

Fine-scale model consists of 200 × 200 cells 26 random vugs of sizes 1.8–10.4 m2 Permeability in vugs is 107 higher than in matrix

Applied Mathematics 05/12/2008 49/63

slide-70
SLIDE 70

MsMFE for the Stokes–Brinkman Equations

Example 3: Fractured reservoir (long correlation)

Fine-scale model consists of 200 × 200 cells 14 random fractures of varying length Permeability in fractures is 107 higher than in matrix

Applied Mathematics 05/12/2008 50/63

slide-71
SLIDE 71

MsMFE for the Stokes–Brinkman Equations

Example 4: Vuggy and fractured reservoir (short and long correlation)

Applied Mathematics 05/12/2008 51/63

slide-72
SLIDE 72

MsMFE for the Stokes–Brinkman Equations

Example 4: Vuggy and fractured reservoir (short and long correlation)

Basis functions in x−direction Basis functions in y−direction Permeability and velocity vectors Applied Mathematics 05/12/2008 51/63

slide-73
SLIDE 73

Flow-Based Nonuniform Coarsening

Fast saturation solver

Task: Given the ability to model velocity on geomodels and transport on coarse grids: Find a suitable coarse grid that best resolves fluid transport and minimizes loss of accuracy. Idea (Aarnes & Efendiev): Use flow velocities to make a nonuniform grid in which each cell has approximately the same total flow

Applied Mathematics 05/12/2008 52/63

slide-74
SLIDE 74

Flow-Based Nonuniform Coarsening

Algorithm

1

Segment the domain according to ln | v|

2

Combine small blocks

3

Split blocks with too large flow

4

Combine small blocks SPE 10, Layer 37

Applied Mathematics 05/12/2008 53/63

slide-75
SLIDE 75

Flow-Based Nonuniform Coarsening

Algorithm (for Layer 68 of SPE 10)

Step 1: Segment ln |v| into N level sets

Robust choice: N = 10 Step 1: 1411 cells

Applied Mathematics 05/12/2008 54/63

slide-76
SLIDE 76

Flow-Based Nonuniform Coarsening

Algorithm (for Layer 68 of SPE 10)

Step 1: Segment ln |v| into N level sets

Robust choice: N = 10 Step 1: 1411 cells

Step 2: Combine small blocks (|B| < c) with a neighbour

Merge B and B′ if

1 |B|

  • B ln |v| ≈

1 |B′|

  • B′ ln |v|

Step 2: 94 cells

Applied Mathematics 05/12/2008 54/63

slide-77
SLIDE 77

Flow-Based Nonuniform Coarsening

Algorithm (for Layer 68 of SPE 10)

Step 3: Refine blocks with too much flow (

  • B ln |v|dx > C)

Build B′ inwards from ∂B Restart with B = B \ B′ Step 3: 249 cells

Applied Mathematics 05/12/2008 55/63

slide-78
SLIDE 78

Flow-Based Nonuniform Coarsening

Algorithm (for Layer 68 of SPE 10)

Step 3: Refine blocks with too much flow (

  • B ln |v|dx > C)

Build B′ inwards from ∂B Restart with B = B \ B′ Step 3: 249 cells

Step 4: Combine small blocks with a neighbouring block

Step 2 repeated Step 4: 160 cells

Applied Mathematics 05/12/2008 55/63

slide-79
SLIDE 79

Flow-Based Nonuniform Coarsening

Example 1: Layer 68, SPE10, 5-spot well pattern

10 20 30 40 50 60 70 80 0.05 0.1 0.15 0.2

e(w) Layer Water−cut error for each of the 85 layers in the SPE10 model

10 20 30 40 50 60 70 80 0.1 0.2 0.3 0.4 0.5

e(S) Layer Saturation error for each of the 85 layers in the SPE10 model

Non−uniform coarsening Uniform coarsening Non−uniform coarsening Uniform coarsening

Geomodel: 60×220 = 13 200 Uniform: 15 × 44 = 660 Non-uniform: 619–734 blocks

Observations: First 35 layers: ⇒ uniform grid adequate. Last 50 layers: ⇒ uniform grid inadequate. Non-uniform grid gives consistent results for all layers.

Applied Mathematics 05/12/2008 56/63

slide-80
SLIDE 80

Flow-Based Nonuniform Coarsening

Example 1: Layer 68, SPE10, 5-spot well pattern

Geomodel: 13200 cells Coarse grid: 660 cells Coarse grid: 649 cells Coarse grid: 264 cells Coarse grid: 257 cells

Applied Mathematics 05/12/2008 57/63

slide-81
SLIDE 81

Flow-Based Nonuniform Coarsening

Example 2: real-field model

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

Pore volume injected Water−cut curves

Reference solution 1648 blocks 891 blocks 469 blocks 236 blocks 121 blocks

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

Pore volume injected Water−cut curves

Reference solution 1581 blocks 854 blocks 450 blocks 239 blocks 119 blocks

Applied Mathematics 05/12/2008 58/63

slide-82
SLIDE 82

Flow-Based Nonuniform Coarsening

Example 2: real-field model

Applied Mathematics 05/12/2008 59/63

slide-83
SLIDE 83

MsMFEM and Nonuniform Coarsening

A perfect companionship?

Both methods fast by themselves, but not optimal if they communicate via fine grid. Saturation piecewise constant on coarse saturation grid. Saturation-solver only requires fine-grid fluxes over coarse-grid interfaces. → Compute coarse mappings as a preprocessing step

Applied Mathematics 05/12/2008 60/63

slide-84
SLIDE 84

MsMFEM and Nonuniform Coarsening

Multiscale pressure system:   ΨTBf(Isn−1)Ψ C D CT DT     un −pn λn   =   −DDπn

D

vn

N

  Coarse-scale transport: sn = sn−1 + ∆tITΛφ,fI

  • ITV (vn

f )If(sn) + ITq+

  • Reducing computational complexity

rewrite time-dependent block of matrix ΨTBf(Isn−1)Ψ =

Np

  • k=1

ΨTBf(Ieksn−1

k

)Ψ, where λ(sn−1

k

)ΨTBf(Ieksn−1

k

)Ψ is time-independent need only store ITV (vn

f )I on coarse-grid interfaces

Applied Mathematics 05/12/2008 61/63

slide-85
SLIDE 85

MsMFEM and Nonuniform Coarsening

Example: Water-flooding optimization (45 000 cells, real-field model)

p: 4 × 9 × 2, S: 136 blocks p: 4 × 9 × 2, S: 291 blocks p: 4 × 9 × 2, S: 800 blocks

Simulation time (20 time-steps) using simple MATLAB implementation

  • n standard work-station:

80 sec if updating fine system for every step < 5 sec if using precomputed coarse mappings

Applied Mathematics 05/12/2008 62/63

slide-86
SLIDE 86

The GeoScale Project Portfolio

Research funded mainly by the Research Council of Norway Flow Physics Geological representation

Coarse Detailed Simple Complex “GeoScale” technology Commercial simulators Fast reservoir simulator Super-fast lightweight simulation

  • Split fine / coarse scales
  • Very fast
  • Near-well modeling

Large-scale simulation

  • Parallelization
  • Multimillion

reservoir cells

  • Support for time-critical

processes

  • Optimal model reduction for

tradeoff between time and accuracy

Applied Mathematics 05/12/2008 63/63