A Multiscale Mixed Finite-Element Solver for Compressible Black-Oil - - PowerPoint PPT Presentation

a multiscale mixed finite element solver for compressible
SMART_READER_LITE
LIVE PREVIEW

A Multiscale Mixed Finite-Element Solver for Compressible Black-Oil - - PowerPoint PPT Presentation

A Multiscale Mixed Finite-Element Solver for Compressible Black-Oil Flow S. Krogstad, K.-A. Lie , J.R. Natvig, H.M. Nilsen, B. Skaflestad, J.E. Aarnes, SINTEF 2009 SPE Reservoir Simulation Symposium 1 / 1 Multiscale Pressure Solvers Two-level


slide-1
SLIDE 1

A Multiscale Mixed Finite-Element Solver for Compressible Black-Oil Flow

  • S. Krogstad, K.-A. Lie, J.R. Natvig, H.M. Nilsen,
  • B. Skaflestad, J.E. Aarnes, SINTEF

2009 SPE Reservoir Simulation Symposium

1 / 1

slide-2
SLIDE 2

Multiscale Pressure Solvers

Two-level methods for equations: with a near-elliptic behavior with strongly heterogeneous coefficients without scale separations Aim: describe global flow patterns on coarse grid accurately account for fine-scale structures Provide a mechanism to recover approximate fine-scale solutions

2 / 1

slide-3
SLIDE 3

The Multiscale Mixed Finite Element (MsMFE) Method

The algorithm in a nutshell

1) Generate coarse grid (automatically)

44 927 cells ↓ 148 blocks 9 different coarse blocks 3 / 1

slide-4
SLIDE 4

The Multiscale Mixed Finite Element (MsMFE) Method

The algorithm in a nutshell

1) Generate coarse grid (automatically)

44 927 cells ↓ 148 blocks 9 different coarse blocks

2) Detect all adjacent blocks

3 / 1

slide-5
SLIDE 5

The Multiscale Mixed Finite Element (MsMFE) Method

The algorithm in a nutshell

1) Generate coarse grid (automatically)

44 927 cells ↓ 148 blocks 9 different coarse blocks

3) Compute basis functions

Solve flow problem for all pairs of blocks

2) Detect all adjacent blocks

3 / 1

slide-6
SLIDE 6

The Multiscale Mixed Finite Element (MsMFE) Method

The algorithm in a nutshell

1) Generate coarse grid (automatically)

44 927 cells ↓ 148 blocks 9 different coarse blocks

3) Compute basis functions

Solve flow problem for all pairs of blocks

2) Detect all adjacent blocks 4) Build global solution

Basis functions: building blocks for global solution 3 / 1

slide-7
SLIDE 7

The Mixed Finite Element (MsMFE) Method

Computation of multiscale basis functions

Ωi Ωj Ωij

Each cell Ωi: pressure basis φi Each face Γij: velocity basis ψij

  • ψij = −λK∇φij

∇ · ψij =      wi(x), x ∈ Ωi −wj(x), x ∈ Ωj 0,

  • therwise

4 / 1

slide-8
SLIDE 8

The Mixed Finite Element (MsMFE) Method

Computation of multiscale basis functions

Ωi Ωj Ωij

Each cell Ωi: pressure basis φi Each face Γij: velocity basis ψij

  • ψij = −λK∇φij

∇ · ψij =      wi(x), x ∈ Ωi −wj(x), x ∈ Ωj 0,

  • therwise

Homogeneous K: Heterogeneous K:

4 / 1

slide-9
SLIDE 9

The Mixed Finite Element (MsMFE) Method

Interpretation of the weight function

The weight function distributes ∇ · v on the coarse blocks: (∇ · v)|Ωi =

  • j

∇ · (vijψij) = wi

  • j

vij = wi

  • ∂Ωi

v · n ds = wi

  • Ωi

∇ · v dx Different roles: Incompressible flow: ∇ · v = q Compressible flow: ∇ · v = q − ct∂tp −

j cjvj · ∇p

5 / 1

slide-10
SLIDE 10

The Mixed Finite Element (MsMFE) Method

Choice of weight function, wi = θ(x)/ R

Ωi θ(x) dx

Incompressible flow:

  • Ωi

qdx = 0, θ(x) = trace(K(x))

  • Ωi

qdx = 0, θ(x) = q(x)

6 / 1

slide-11
SLIDE 11

The Mixed Finite Element (MsMFE) Method

Choice of weight function, wi = θ(x)/ R

Ωi θ(x) dx

Incompressible flow:

  • Ωi

qdx = 0, θ(x) = trace(K(x))

  • Ωi

qdx = 0, θ(x) = q(x) Compressible flow: θ ∝ q: compressibility effects concentrated where q = 0 θ ∝ K: ∇ · v over/underestimated for high/low K Another choice motivated by physics: θ(x) = φ(x), Motivation: ct ∂p ∂t ∝ φ

6 / 1

slide-12
SLIDE 12

The Mixed Finite Element (MsMFE) Method

Key to effiency: reuse of computations

Computational cost consists of: basis functions (fine grid) global problem (coarse grid) High efficiency for multiphase flows: Elliptic decomposition Reuse basis functions Easy to parallelize Example: 1283 grid

# operations versus upscaling factor

8x8x8 16x16x16 32x32x32 64x64x64

1 2 3 4 5 6 7 8 x 10

7

Basis functions Global system Fine scale solution (AMG) O(n ) 1.2

7 / 1

slide-13
SLIDE 13

The Mixed Finite Element (MsMFE) Method

Recap from 2007 SPE RSS: million-cell models in minutes

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 25 time steps

multiscale + streamlines: 142 sec on a 2.4 GHz 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, multiscale, fine grid

8 / 1

slide-14
SLIDE 14

MsMFE for Complex Grids

Challenges posed by grids from real-life models

Unstructured grids: (Very) high aspect ratios:

800 × 800 × 0.25 m

Skewed and degenerate cells: Non-matching cells:

9 / 1

slide-15
SLIDE 15

MsMFE for Complex Grids

Applicable to general unstructured grids

Coarse blocks: (arbitrary) connected collection of cells − → fully automated coarsening strategies

Coarse blocks: logically Cartesian in index space

10 / 1

slide-16
SLIDE 16

MsMFE for Complex Grids

Applicable to general unstructured grids

Coarse blocks: (arbitrary) connected collection of cells − → fully automated coarsening strategies

Coarse blocks: logically Cartesian in index space

10 / 1

slide-17
SLIDE 17

MsMFE for Complex Grids

Applicable to general unstructured grids

Coarse blocks: (arbitrary) connected collection of cells − → fully automated coarsening strategies

10 / 1

slide-18
SLIDE 18

MsMFE for Complex Grids

Fine-grid formulation

Discretization using a mimetic method (Brezzi et al): 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: arbitrarily such that ˜ T EXE = 0 Key features: Applicable for general polyhedral cells Non-conforming grids treated as conforming polyhedral Generic implementation for all grid types Monotonicity as for MPFA

11 / 1

slide-19
SLIDE 19

MsMFE for Complex Grids

Example: single phase, homogeneous K, linear pressure drop

Grid TPFA MFDM MsMFEM+TPFA MsMFEM + MFDM

12 / 1

slide-20
SLIDE 20

MsMFE for Compressible Black-Oil Models

Fine-grid formulation

Pressure equation: c∂p ∂t + ∇ · u − ζ u · K−1 u = q,

  • u = −Kλ∇p

Time-discretization and linearization: cν−1 pn

ν − pn−1

∆t + ∇ · un

ν − ζn ν−1

un

ν−1 · K−1

un

ν = q

Hybrid system:   B C D CT − V T

ν−1

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

13 / 1

slide-21
SLIDE 21

MsMFE for Compressible Black-Oil Models

Coarse-grid formulation

   ΨTBΨ ΨTCI ΨTDJ

  • C

T

ITP I J TDTΨ      u −p π   =   ITP pn

f

  Ψ – velocity basis functions Φ – pressure basis functions I – prolongation from blocks to cells J – prolongation from block faces to cell faces

  • C = ΨT(C − V )I − DλΦTP I

New feature: fine-scale pressure

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

i /λi)

14 / 1

slide-22
SLIDE 22

MsMFE for Compressible Black-Oil Models

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

constant K lognormal K p(0, t) = 1 bar, p(x, 0) = 10 bar, coarse grid: 5 blocks, fine grid: 100 cells

15 / 1

slide-23
SLIDE 23

MsMFE for Compressible Black-Oil Models

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

constant K lognormal K p(0, t) = 1 bar, p(x, 0) = 10 bar, coarse grid: 5 blocks, fine grid: 100 cells

Remedy: correction functions (Lunati, Jenny et al; Nordbotten)

15 / 1

slide-24
SLIDE 24

MsMFE for Compressible Black-Oil Models

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

Approximate residual equation by ˆ u =

  • Ωi⊂Ω

ˆ ui, ˆ p =

  • Ωi⊂Ω

ˆ pi, such that u ≈ ums + ˆ u and p ≈ pms + ˆ p. Local problems: (ˆ ui, ˆ pi) solves residual equation locally in

  • Ωi such that

Zero right-hand-side in Ωi \ Ωi Zero flux BCs on ∂ Ωi

16 / 1

slide-25
SLIDE 25

MsMFE for Compressible Black-Oil Models

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

Non-overlapping correction:

pressure flux

17 / 1

slide-26
SLIDE 26

MsMFE for Compressible Black-Oil Models

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

Overlapping O(H/2) correction:

pressure flux

18 / 1

slide-27
SLIDE 27

MsMFE for Compressible Black-Oil Models

Example 2: block with a single fault

pressure saturation

100 200 300 400 500 20 40 60 80 100 −5 5 10 15 20 25 30 100 200 300 400 500 20 40 60 80 100 −5 5 10 15 20 25 30 w

fine scale

100 200 300 400 500 20 40 60 80 100 −5 5 10 15 20 25 30 100 200 300 400 500 20 40 60 80 100 −5 5 10 15 20 25 30 w

MsMFE Fine grid: 90 × 10 × 16 cells. Coarse grid: 6 × 2 × 4 blocks. 1000 m3/day water injected into compressible oil at 205 bar (pbh of 200 bar).

19 / 1

slide-28
SLIDE 28

Conclusions and Outlook

The MsMFE method: is flexible with respect to grids allows automated coarsening requires correction functions for compressible flow Future research: adaptivity of basis/correction functions parallelization error estimation (via VMS framework)?

20 / 1