58
Optimization and Reduced-Order Modeling of Geological Carbon Storage Operations Louis J. Durlofsky Department of Energy Resources Engineering Stanford University 1

Optimization and Reduced-Order Modeling of …helper.ipam.ucla.edu/publications/oilws3/oilws3_14144.pdfBrine Cycling Optimization 25 • Minimize measure of aggregate mobility of CO

  • Upload
    others

  • View
    1

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Optimization and Reduced-Order Modeling of …helper.ipam.ucla.edu/publications/oilws3/oilws3_14144.pdfBrine Cycling Optimization 25 • Minimize measure of aggregate mobility of CO

Optimization and

Reduced-Order Modeling of

Geological Carbon Storage Operations

Louis J. Durlofsky

Department of Energy Resources Engineering

Stanford University1

Page 2: Optimization and Reduced-Order Modeling of …helper.ipam.ucla.edu/publications/oilws3/oilws3_14144.pdfBrine Cycling Optimization 25 • Minimize measure of aggregate mobility of CO

• David Cameron (optimization of carbon

storage operations)

• Z. Larry Jin (ROM for CO2 injection,

building on work by Jincong He)

• Sumeet Trehan (ROM for oil/water)

Key Collaborators on Work Presented

Page 3: Optimization and Reduced-Order Modeling of …helper.ipam.ucla.edu/publications/oilws3/oilws3_14144.pdfBrine Cycling Optimization 25 • Minimize measure of aggregate mobility of CO

Carbon Capture and Storage

3

https://energy.gov/fe/science-innovation/carbon-capture-and-storage-

research/overview-carbon-storage-research

Capture / compress Transport Inject Monitor / remediate

Page 4: Optimization and Reduced-Order Modeling of …helper.ipam.ucla.edu/publications/oilws3/oilws3_14144.pdfBrine Cycling Optimization 25 • Minimize measure of aggregate mobility of CO

CO2 Trapping Mechanisms

4https://data.geus.dk/nordiccs/terminology.xhtml

http://www.bigskyco2.org/node/127

Page 5: Optimization and Reduced-Order Modeling of …helper.ipam.ucla.edu/publications/oilws3/oilws3_14144.pdfBrine Cycling Optimization 25 • Minimize measure of aggregate mobility of CO

Optimization Problem Statement

• Minimize measure of aggregate mobility of CO2 in target

region (e.g., just below cap rock) over T years:

min𝐲,𝐮𝐽(𝐲, 𝐮) =

1

𝑇

𝑡=0

𝑇

𝑖∈top layer

𝜌𝑔𝑘𝑟𝑔

𝜇𝑔 𝑖

𝑑𝑡

𝐲: well placement variables, 𝐮: injection rate variables

5

• With uncertainty, min 𝐸 𝐽(𝐲, 𝐮) ≈ 1 𝑁𝑘 1𝑁𝑘 𝐽𝑘(𝐲, 𝐮,𝐦𝑘)

• Could define J in terms of pressure buildup, well costs, …

• Related work: Shamshiri & Jafarpour (2012), Petvipusit et al.

(2014), Babaei et al. (2015, 2016)

Page 6: Optimization and Reduced-Order Modeling of …helper.ipam.ucla.edu/publications/oilws3/oilws3_14144.pdfBrine Cycling Optimization 25 • Minimize measure of aggregate mobility of CO

Basic Pattern Search

Local search

Naturally

parallelizable

Convergence theory

based on stencil

reduction

Mesh adaptive

direct search

(MADS) uses

oriented stencil(Kolda et al., 2003;

slide from Obi Isebor)

Optimization in R2

6

∆𝒌𝒑

∆𝒌𝒑

Page 7: Optimization and Reduced-Order Modeling of …helper.ipam.ucla.edu/publications/oilws3/oilws3_14144.pdfBrine Cycling Optimization 25 • Minimize measure of aggregate mobility of CO

Particle Swarm Optimization (PSO)

Global stochastic search

Solutions are particles in a swarm

Solution update given by:

2

1

1

2

1 2 2

1

( 1) ( ) ( 1)

( 1) ( )

( ) ( ( )

- , , ; ( ), ( )

( ))

( ) (

~ (0,

( ) ( ))

1)

pbest

i

nb

i

i

est

i

i i

i i

i

c D k k

k k k t

k k

c D

c c D k D k U

k k

k

k

x

x

x

x v

v v

x

x

PSO Parameters

(inertial)

(cognitive)

(social)

xi(k+1)

vi(k)

x2

x1

xi(k)

xinbest(k)

xi pbest(k)

PSO parameters:

Can globally explore solution space; no guarantees of convergence

7

(Eberhart and Kennedy, 1995)

Page 8: Optimization and Reduced-Order Modeling of …helper.ipam.ucla.edu/publications/oilws3/oilws3_14144.pdfBrine Cycling Optimization 25 • Minimize measure of aggregate mobility of CO

PSO-MADS Hybrid Algorithm*

x2

x1

8*Isebor, Echeverría Ciaurri, Durlofsky (2014a,b)

Page 9: Optimization and Reduced-Order Modeling of …helper.ipam.ucla.edu/publications/oilws3/oilws3_14144.pdfBrine Cycling Optimization 25 • Minimize measure of aggregate mobility of CO

Aquifer Simulation Model

Grid: 39x39x8

Large boundary volume to

provide pressure support

Relative permeability

hysteresis included; no

mineralization or pc(x)

232 km

9

Page 10: Optimization and Reduced-Order Modeling of …helper.ipam.ucla.edu/publications/oilws3/oilws3_14144.pdfBrine Cycling Optimization 25 • Minimize measure of aggregate mobility of CO

Simulation & Optimization Variables

( i, j ) locations of 4 horizontal injection wells

(prescribed to be in the bottom layer)

Rates in each well in 6 control periods (inject

5x106 tonnes CO2 per year for 30 years)

Corresponds to 2.5% of storage aquifer PV

Nv = 30 optimization variables (no brine cycling),

~22–30 PSO particles

10

Page 11: Optimization and Reduced-Order Modeling of …helper.ipam.ucla.edu/publications/oilws3/oilws3_14144.pdfBrine Cycling Optimization 25 • Minimize measure of aggregate mobility of CO

11

Minimize CO2 Mobility (PSO)

best run

Tim

e-a

vera

ge t

op la

yer

CO

2m

obili

ty

Page 12: Optimization and Reduced-Order Modeling of …helper.ipam.ucla.edu/publications/oilws3/oilws3_14144.pdfBrine Cycling Optimization 25 • Minimize measure of aggregate mobility of CO

12

Well Locations and CO2 Mobility

Default Optimal

Injection wells – bottom layer; CO2 – top layer

Page 13: Optimization and Reduced-Order Modeling of …helper.ipam.ucla.edu/publications/oilws3/oilws3_14144.pdfBrine Cycling Optimization 25 • Minimize measure of aggregate mobility of CO

• W4 injects for 15 years; W1 injects more at late times

13

Optimal Injection Rates

Page 14: Optimization and Reduced-Order Modeling of …helper.ipam.ucla.edu/publications/oilws3/oilws3_14144.pdfBrine Cycling Optimization 25 • Minimize measure of aggregate mobility of CO

14

Mobile CO2 in Top Layer

Page 15: Optimization and Reduced-Order Modeling of …helper.ipam.ucla.edu/publications/oilws3/oilws3_14144.pdfBrine Cycling Optimization 25 • Minimize measure of aggregate mobility of CO

Brine Cycling Strategies in CCS

• Related strategies proposed by Leonenko & Keith (2008),

Nghiem et al. (2009, 2010), Anchliya (2012)

15

Brine injector

Brine producer

CO2 injector

Page 16: Optimization and Reduced-Order Modeling of …helper.ipam.ucla.edu/publications/oilws3/oilws3_14144.pdfBrine Cycling Optimization 25 • Minimize measure of aggregate mobility of CO

16

Brine Cycling Process (illustration)

CO2 injector

Page 17: Optimization and Reduced-Order Modeling of …helper.ipam.ucla.edu/publications/oilws3/oilws3_14144.pdfBrine Cycling Optimization 25 • Minimize measure of aggregate mobility of CO

17

Brine Cycling Process

CO2 injector

Mobile CO2

Page 18: Optimization and Reduced-Order Modeling of …helper.ipam.ucla.edu/publications/oilws3/oilws3_14144.pdfBrine Cycling Optimization 25 • Minimize measure of aggregate mobility of CO

18

Brine Cycling Process

CO2 injector

Mobile CO2

Page 19: Optimization and Reduced-Order Modeling of …helper.ipam.ucla.edu/publications/oilws3/oilws3_14144.pdfBrine Cycling Optimization 25 • Minimize measure of aggregate mobility of CO

19

Brine Cycling Process

t = 30 yrs

CO2 injector

Mobile CO2

Page 20: Optimization and Reduced-Order Modeling of …helper.ipam.ucla.edu/publications/oilws3/oilws3_14144.pdfBrine Cycling Optimization 25 • Minimize measure of aggregate mobility of CO

20

Brine Cycling Process

t = 60 yrs

CO2 injector

Mobile CO2

Page 21: Optimization and Reduced-Order Modeling of …helper.ipam.ucla.edu/publications/oilws3/oilws3_14144.pdfBrine Cycling Optimization 25 • Minimize measure of aggregate mobility of CO

21

Brine Cycling Process

CO2 injector

Mobile CO2

Brine injector

Brine producer

Page 22: Optimization and Reduced-Order Modeling of …helper.ipam.ucla.edu/publications/oilws3/oilws3_14144.pdfBrine Cycling Optimization 25 • Minimize measure of aggregate mobility of CO

22

Brine Cycling Process

CO2 injector

Mobile CO2

Page 23: Optimization and Reduced-Order Modeling of …helper.ipam.ucla.edu/publications/oilws3/oilws3_14144.pdfBrine Cycling Optimization 25 • Minimize measure of aggregate mobility of CO

23

Brine Cycling Process

CO2 injector

Mobile CO2

Page 24: Optimization and Reduced-Order Modeling of …helper.ipam.ucla.edu/publications/oilws3/oilws3_14144.pdfBrine Cycling Optimization 25 • Minimize measure of aggregate mobility of CO

24

Brine Cycling Process

CO2 injector

Mobile CO2

Page 25: Optimization and Reduced-Order Modeling of …helper.ipam.ucla.edu/publications/oilws3/oilws3_14144.pdfBrine Cycling Optimization 25 • Minimize measure of aggregate mobility of CO

Brine Cycling Optimization

25

• Minimize measure of aggregate mobility of CO2 in top or

target layer over T years:

min𝐲,𝐮1,𝐮2

𝐽(𝐲, 𝐮1, 𝐮2) =1

𝑇

𝑡=0

𝑇

𝑖∈top layer

𝜌𝑔𝑘𝑟𝑔

𝜇𝑔 𝑖

𝑑𝑡

𝐲: well placement variables

𝐮1: injection rate variables

𝐮2: times and volumes for 3 brine cycling events,

subject to specified total brine PV cycled

• Determine total of Nv = 47 optimization variables

Page 26: Optimization and Reduced-Order Modeling of …helper.ipam.ucla.edu/publications/oilws3/oilws3_14144.pdfBrine Cycling Optimization 25 • Minimize measure of aggregate mobility of CO

Brine Cycling Optimization Results

26

Default (0.03 PVcr)

Opt (0.03 PVcr)

Pore volume as fraction of

15x15x8 core region

(0.03 PV of core region

~0.01 PV of storage aquifer)

Page 27: Optimization and Reduced-Order Modeling of …helper.ipam.ucla.edu/publications/oilws3/oilws3_14144.pdfBrine Cycling Optimization 25 • Minimize measure of aggregate mobility of CO

Optimization under Geological Uncertainty

27

• Minimize expected value of time-averaged

mobility over Nk prior realizations mk:

𝐽𝑘(𝐲, 𝐮,𝐦𝑘) =1

𝑇

𝑡=0

𝑇

𝑖∈𝑡𝑘

𝜌𝑔𝑘𝑟𝑔

𝜇𝑔 𝑖

𝑑𝑡

𝐸 𝐽(𝐲, 𝐮) ≈1

𝑁𝑘

𝑘=1

𝑁𝑘

𝐽𝑘(𝐲, 𝐮,𝐦𝑘)

tk: target layer in model mk

• No brine cycling in these examples

Page 28: Optimization and Reduced-Order Modeling of …helper.ipam.ucla.edu/publications/oilws3/oilws3_14144.pdfBrine Cycling Optimization 25 • Minimize measure of aggregate mobility of CO

Optimization under Geological Uncertainty

28

• Expected value of time-averaged mobility over

Nk = 10 prior (Gaussian) realizations

Default (6900) Optimized (5300)

Page 29: Optimization and Reduced-Order Modeling of …helper.ipam.ucla.edu/publications/oilws3/oilws3_14144.pdfBrine Cycling Optimization 25 • Minimize measure of aggregate mobility of CO

Optimization under Geological Uncertainty

(5 new true models)

29

Model Default A priori opt. rates

& locs

Opt. rates with

a priori opt. loc

Deterministic

optimization

True 1 6080 4890 4670 3270

True 2 6150 5370 4840 3440

True 3 6380 4660 4500 4500

True 4 9020 7670 7280 6220

True 5 7760 5710 4940 4290

Average 7080 5660 5250 4340

Improvement from a priori

optimization ~20%

Page 30: Optimization and Reduced-Order Modeling of …helper.ipam.ucla.edu/publications/oilws3/oilws3_14144.pdfBrine Cycling Optimization 25 • Minimize measure of aggregate mobility of CO

Optimization under Geological Uncertainty

(5 new true models)

30

Model Default A priori opt. rates

& locs

Opt. rates with

a priori opt. locs

Deterministic

optimization

True 1 6080 4890 4670 3270

True 2 6150 5370 4840 3440

True 3 6380 4660 4500 4500

True 4 9020 7670 7280 6220

True 5 7760 5710 4940 4290

Average 7080 5660 5250 4340

Maximum additional improvement

from closed-loop, ~7%

Page 31: Optimization and Reduced-Order Modeling of …helper.ipam.ucla.edu/publications/oilws3/oilws3_14144.pdfBrine Cycling Optimization 25 • Minimize measure of aggregate mobility of CO

Optimization under Geological Uncertainty

(5 new true models)

31

Model Default A priori opt. rates

& locs

Opt. rates with

a priori opt. locs

Deterministic

optimization

True 1 6080 4890 4670 3270

True 2 6150 5370 4840 3440

True 3 6380 4660 4500 4500

True 4 9020 7670 7280 6220

True 5 7760 5710 4940 4290

Average 7080 5660 5250 4340

Additional improvement from

knowledge of m, ~23%

Page 32: Optimization and Reduced-Order Modeling of …helper.ipam.ucla.edu/publications/oilws3/oilws3_14144.pdfBrine Cycling Optimization 25 • Minimize measure of aggregate mobility of CO

POD-based Reduced-Order Models for

Reservoir Simulation (partial list)

32

POD only: van Doren, Markovinovic, Jansen (2006);

Cardoso et al. (2009)

POD-DEIM: Ghasemi, Yang, Gildin, Efendiev, Calo

(2015); Yang, Gildin, Efendiev, Calo (2017); Yoon,

Alghareeb, Williams (2016)

POD-TPWL: Cardoso & Durlofsky (2010); He et al.

(2011,2014,2015); Fragoso, Horowitz, Rodrigues (2015)

POD-TPWQ: Trehan & Durlofsky (2016)

ROMs for optimization: Jansen & Durlofsky (2017)

Page 33: Optimization and Reduced-Order Modeling of …helper.ipam.ucla.edu/publications/oilws3/oilws3_14144.pdfBrine Cycling Optimization 25 • Minimize measure of aggregate mobility of CO

33

Use states and derivative matrices generated and saved

during training run(s) to represent new solutions

Proper Orthogonal Decomposition and

Trajectory Piecewise Linearization (POD-TPWL)

Basic idea

• Run training simulations (𝐠(𝐱, 𝐮) = 0)

• Record states, Jacobian matrices, etc. (𝐱𝑖, 𝜕𝐠𝑖 𝜕𝐱𝑖)

• Represent new solutions (𝐱𝑛+1) as expansions around

saved states (𝐱𝑖, 𝐱𝑖+1)

• Map into low-dim reduced space 𝝃 using POD (𝐱 = 𝚽𝝃)

Approach

TPWL: Rewienski & White (2003); Vasilyev et al. (2003); Qu & Chapman (2006), …

Page 34: Optimization and Reduced-Order Modeling of …helper.ipam.ucla.edu/publications/oilws3/oilws3_14144.pdfBrine Cycling Optimization 25 • Minimize measure of aggregate mobility of CO

Gas – Water Flow Equations

• Mass balance equations for j = gas, water

𝑺𝒋 - phase saturation, 𝒑 - pressure

𝝀𝒋(𝑺𝒋) - phase mobility, 𝐤 - permeability tensor, 𝒒𝒋 - source

• Discretize: x - states (p, Sw ), u - controls (pwell ),

O(104 - 106) grid blocks (nb )

• Newton’s method:

𝜙𝜕𝑆𝑗

𝜕𝑡− 𝛻 ∙ 𝜆𝑗𝐤 ∙ 𝛻𝑝 + 𝑞𝑗=0

𝐠(𝐱𝑛+1, 𝐱𝑛 , 𝐮𝑛+1) = 𝐀(𝐱𝑛+1, 𝐱𝑛) + 𝐅(𝐱𝑛+1) + 𝐐(𝐱𝑛+1, 𝐮𝑛+1) = 𝟎

𝑱𝛅 = −𝐠 , 𝑱 = 𝜕𝐠 𝜕𝐱34

Page 35: Optimization and Reduced-Order Modeling of …helper.ipam.ucla.edu/publications/oilws3/oilws3_14144.pdfBrine Cycling Optimization 25 • Minimize measure of aggregate mobility of CO

35

TPWL for Reservoir Flow Equations

Discretized flow equations:

Linearized representation for new state 𝐱𝑛+1:

x: states (p, S) u: controls (BHPs)

training run: (𝑖, 𝑖 + 1) test run: (𝑛, 𝑛 + 1)

𝐠𝑛+1 = 𝟎 ≈ 𝐠𝑖+1 +𝜕𝐠𝑖+1

𝜕𝐱𝑖+1𝐱𝑛+1 − 𝐱𝑖+1 +

𝜕𝐠𝑖+1

𝜕𝐱𝑖𝐱𝑛 − 𝐱𝑖 +

𝜕𝐠𝑖+1

𝜕𝐮𝑖+1𝐮𝑛+1 − 𝐮𝑖+1

𝐠𝑛+1 = 𝐀𝑛+1 + 𝐅𝑛+1 + 𝐐𝑛+1 = 𝟎

Page 36: Optimization and Reduced-Order Modeling of …helper.ipam.ucla.edu/publications/oilws3/oilws3_14144.pdfBrine Cycling Optimization 25 • Minimize measure of aggregate mobility of CO

36

Expansion around Saved States + POD

• Linearized representation (note 𝑱𝑖+1 = 𝜕𝐠𝑖+1 𝜕𝐱𝑖+1 ):

• Introduce POD basis (𝐱 = 𝚽𝛏, with𝚽 ϵ ℛ2𝑛𝑏×𝑙 from

SVDs of training-run snapshots):

• Now have over-determined system of 2nb equations

in 𝒍 unknowns (𝑙 << 2nb)

Page 37: Optimization and Reduced-Order Modeling of …helper.ipam.ucla.edu/publications/oilws3/oilws3_14144.pdfBrine Cycling Optimization 25 • Minimize measure of aggregate mobility of CO

37

Constraint Reduction for Low-Order System

• Petrov-Galerkin approach: 𝚿𝑖+1 = 𝑱𝑖+1𝚽 ϵ ℛ2𝑛𝑏×𝑙

𝚿𝑖+1𝑇𝑱𝑖+1𝚽 𝝃𝒏+𝟏 − 𝝃𝒊+𝟏

= − 𝚿𝑖+1𝑇 𝜕𝐠𝑖+1

𝜕𝐱𝑖𝚽 𝝃𝒏 − 𝝃𝒊 +

𝜕𝐠𝑖+1

𝜕𝐮𝑖+1𝐮𝑛+1 − 𝐮𝑖+1

• Solving for 𝝃𝑛+1 (linear, 𝑙-dimensional system):

𝝃𝑛+1 = 𝝃𝑖+1 − 𝑱𝒓𝑖+1 −1

𝜕𝐠𝑖+1

𝜕𝐱𝑖𝑟

𝝃𝑛 − 𝝃𝑖 +𝜕𝐠𝑖+1

𝜕𝐮𝑖+1𝑟

𝐮𝑛+1 − 𝐮𝑖+1

𝑱𝒓𝑖+1 = 𝚿𝑖+1

𝑇𝑱𝑖+1𝚽

𝜕𝐠𝑖+1

𝜕𝐱𝑖𝑟

= 𝚿𝑖+1𝑇 𝜕𝐠𝑖+1

𝜕𝐱𝑖𝚽

𝜕𝐠𝑖+1

𝜕𝐮𝑖+1𝑟

= 𝚿𝑖+1𝑇 𝜕𝐠𝑖+1

𝜕𝐮𝑖+1

Page 38: Optimization and Reduced-Order Modeling of …helper.ipam.ucla.edu/publications/oilws3/oilws3_14144.pdfBrine Cycling Optimization 25 • Minimize measure of aggregate mobility of CO

POD-TPWL with Multiple Derivatives

38

All trainings provide derivatives and snapshots

More general ‘point selection’ criteria required

i0 = 4

i1 = 6 i0 =7

u0

u2

p

zc

u1

i1 = 5

n = 4

n = 5n = 6 n = 7

Page 39: Optimization and Reduced-Order Modeling of …helper.ipam.ucla.edu/publications/oilws3/oilws3_14144.pdfBrine Cycling Optimization 25 • Minimize measure of aggregate mobility of CO

POD-TPWL Flowchart

39

Test controls POD-TPWL Primary Output

Reduced derivatives:

{𝐉𝑟𝑖 }1, {𝐉𝑟

𝑖 }2, …, {𝐉𝑟𝑖 }5

Training states for POD:

{𝐱𝑖}1, {𝐱𝑖}2, …, {𝐱𝑖}5

Training controls

Online Process

Offline Process

Multiple

Derivatives

Flash

Secondary Output

Post Processing

AD-GPRS (HFS)

Page 40: Optimization and Reduced-Order Modeling of …helper.ipam.ucla.edu/publications/oilws3/oilws3_14144.pdfBrine Cycling Optimization 25 • Minimize measure of aggregate mobility of CO

Problem Setup

40

log kz Full model

Gaussian log-permeability, low-perm at layer 7

Full model: 43 km x 43 km x 150 m

Storage aquifer: 2.8 km x 2.8 km x 150 m

Storage aquifer model: 35 x 35 x 15 blocks

4 horizontal wells

Page 41: Optimization and Reduced-Order Modeling of …helper.ipam.ucla.edu/publications/oilws3/oilws3_14144.pdfBrine Cycling Optimization 25 • Minimize measure of aggregate mobility of CO

Training and Test Injection Rates

41

Training Well 2 Test Well 2

Field injection rate: 0.3 million tonnes of CO2 per year

Page 42: Optimization and Reduced-Order Modeling of …helper.ipam.ucla.edu/publications/oilws3/oilws3_14144.pdfBrine Cycling Optimization 25 • Minimize measure of aggregate mobility of CO

Test Case: BHPs for Well 2

42

Single derivative Multiple derivatives

Time (years)Time (years)

Inje

ctio

n B

HP

(p

sia

)

Inje

ctio

n B

HP

(p

sia

)

Single derivative uses snapshots from 5 trainings

POD-TPWL speed up ~100-150x

Page 43: Optimization and Reduced-Order Modeling of …helper.ipam.ucla.edu/publications/oilws3/oilws3_14144.pdfBrine Cycling Optimization 25 • Minimize measure of aggregate mobility of CO

CO2 Molar Fractions at Target Layer

(after 20 years)

43

Training (HFS) Test (HFS)

Page 44: Optimization and Reduced-Order Modeling of …helper.ipam.ucla.edu/publications/oilws3/oilws3_14144.pdfBrine Cycling Optimization 25 • Minimize measure of aggregate mobility of CO

POD-TPWL Accuracy for Test Run

44

Multiple derivativesSingle derivative

|TPWL – HFS||TPWL – HFS|

Page 45: Optimization and Reduced-Order Modeling of …helper.ipam.ucla.edu/publications/oilws3/oilws3_14144.pdfBrine Cycling Optimization 25 • Minimize measure of aggregate mobility of CO

Optimization Methodology

45

MADS algorithm Number of iterations

Ob

jective

fu

nctio

n

Validation with

high-fidelity

Minimize aggregate CO2 at target layer

Combine MADS (NOMAD) with POD-TPWL

Use of multiple derivatives avoids re-training

Page 46: Optimization and Reduced-Order Modeling of …helper.ipam.ucla.edu/publications/oilws3/oilws3_14144.pdfBrine Cycling Optimization 25 • Minimize measure of aggregate mobility of CO

Optimization Setup

46

log kx full model

Channelized aquifer derived from Stanford VI

Fixed field injection rate, inject for 20 years (2.8%

of total PV), 4 control periods, 12 opt. variables)

5 training runs (multiple derivatives) for POD-TPWL

4 horizontal wells

Page 47: Optimization and Reduced-Order Modeling of …helper.ipam.ucla.edu/publications/oilws3/oilws3_14144.pdfBrine Cycling Optimization 25 • Minimize measure of aggregate mobility of CO

Optimization Results

47

Number of simulations

Full-order: 0.98

Best POD-TPWL: 0.96

Ag

gre

ga

te C

O2

Page 48: Optimization and Reduced-Order Modeling of …helper.ipam.ucla.edu/publications/oilws3/oilws3_14144.pdfBrine Cycling Optimization 25 • Minimize measure of aggregate mobility of CO

CO2 Plume Locations (Cross Sections)

48

Initial guess, Well 3

Optimized solution, Well 3

Initial guess, Well 1

Optimized solution, Well 1

W3W1

Page 49: Optimization and Reduced-Order Modeling of …helper.ipam.ucla.edu/publications/oilws3/oilws3_14144.pdfBrine Cycling Optimization 25 • Minimize measure of aggregate mobility of CO

Accuracy of POD-TPWL Solution

49

|TPWL – HFS|, Well 3

|TPWL – HFS|, Well 1

Page 50: Optimization and Reduced-Order Modeling of …helper.ipam.ucla.edu/publications/oilws3/oilws3_14144.pdfBrine Cycling Optimization 25 • Minimize measure of aggregate mobility of CO

Second-Order Treatment for Oil-Water Systems

50

𝐠𝑛+1 = 𝟎 ≈ 𝐠𝑖+1 +𝜕𝐠𝑖+1

𝜕𝐱𝑖+1𝐱𝑛+1 − 𝐱𝑖+1 +

𝜕𝐠𝑖+1

𝜕𝐱𝑖𝐱𝑛 − 𝐱𝑖 +

𝜕𝐠𝑖+1

𝜕𝐮𝑖+1𝐮𝑛+1 − 𝐮𝑖+1 +

1

2

𝜕

𝜕𝐱𝑖+1𝜕𝐠𝑖+1

𝜕𝐱𝑖+1𝐱𝑛+1 − 𝐱𝑖+1 𝐱𝑛+1 − 𝐱𝑖+1 + …

• Quadratic representation for new state 𝐱𝑛+1 now

includes Hessian-type terms

• Introduce POD basis: 𝐱 =𝚽𝛏

• Apply constraint reduction: pre-multiply by 𝚿𝑖+1𝑇

• Resulting ROM is low-dimensional but nonlinear; solve

using Newton’s method

Page 51: Optimization and Reduced-Order Modeling of …helper.ipam.ucla.edu/publications/oilws3/oilws3_14144.pdfBrine Cycling Optimization 25 • Minimize measure of aggregate mobility of CO

Simulation Results using POD-TPWQ

51

2D oil-water simulation

3 injectors, 3 producers

Consider large BHP perturbation

relative to training run

High-fidelity

test solution

POD-TPWQ

Training solution

POD-TPWL

(well P1)

Wate

r ra

te (

bb

l/d

)

Page 52: Optimization and Reduced-Order Modeling of …helper.ipam.ucla.edu/publications/oilws3/oilws3_14144.pdfBrine Cycling Optimization 25 • Minimize measure of aggregate mobility of CO

P1 Oil & Water Rates – Larger BHP Perturbations

52

POD-TPWQ

Training solutionPOD-TPWL

High-fidelity

test solution

POD-TPWL

High-fidelity

test solution

POD-TPWQ

Oil r

ate

(b

bl/

d)

Wate

r ra

te (

bb

l/d

)

Page 53: Optimization and Reduced-Order Modeling of …helper.ipam.ucla.edu/publications/oilws3/oilws3_14144.pdfBrine Cycling Optimization 25 • Minimize measure of aggregate mobility of CO

Multifidelity ROM-based Optimization

53

Perform preprocessing

HFS (training) runs

Construct POD-TPWL &

POD-TPWQ models

Optimize using

POD-TPWL model

Use POD-TPWQ as error

estimator; retrain with HFS

as required

Validate optimized

solution via HFS

• HFS: expensive

• POD-TPWL, POD-TPWQ –

inexpensive ROMs

• POD-TPWQ as error estimator

Page 54: Optimization and Reduced-Order Modeling of …helper.ipam.ucla.edu/publications/oilws3/oilws3_14144.pdfBrine Cycling Optimization 25 • Minimize measure of aggregate mobility of CO

54

Optimization Problem Setup

2D oil-water simulation, maximize NPV

2 injectors, 3 producers

8 control steps per well 40 optimization variables

Numerical gradients from ROM

Economic parameters – oil: $80/bbl, water cost: $6/bbl

Page 55: Optimization and Reduced-Order Modeling of …helper.ipam.ucla.edu/publications/oilws3/oilws3_14144.pdfBrine Cycling Optimization 25 • Minimize measure of aggregate mobility of CO

55

Optimization Results

~13,000 POD-TPWL runs, 37 POD-TPWQ runs

Elapsed time, 12 processors: ~20THFS (~50 speedup)

Ne

t P

rese

nt V

alu

e (

$)

Inner Iteration

Optimization with HFS

gives nearly identical NPV,

requires ~940THFS

Page 56: Optimization and Reduced-Order Modeling of …helper.ipam.ucla.edu/publications/oilws3/oilws3_14144.pdfBrine Cycling Optimization 25 • Minimize measure of aggregate mobility of CO

Summary

Applied computational optimization to minimize risk

in carbon storage problems

Well locations and time-varying injection rates

Brine cycling to further reduce risk

Optimization under uncertainty

Leak detection with PCA representation of geology

Developed ROM for CO2 problems (injection stage)

Showed benefit of multiple-derivative treatment

Employed POD-TPWL in MADS-based optimization

56

Page 57: Optimization and Reduced-Order Modeling of …helper.ipam.ucla.edu/publications/oilws3/oilws3_14144.pdfBrine Cycling Optimization 25 • Minimize measure of aggregate mobility of CO

Acknowledgments

Stanford Smart Fields Consortium

DOE National Energy Technology Laboratory and

Battelle Memorial Institute

Srikanta Mishra (Battelle)

Jincong He (now at Chevron)

Stanford Center for Computational Earth &

Environmental Sciences (CEES)

57

Page 58: Optimization and Reduced-Order Modeling of …helper.ipam.ucla.edu/publications/oilws3/oilws3_14144.pdfBrine Cycling Optimization 25 • Minimize measure of aggregate mobility of CO

Main References

58

• Cameron, D.A., Durlofsky, L.J. Optimization and data assimilation for geological carbon

storage. Computational Models for CO2 Sequestration and Compressed Air Energy

Storage, pp. 357-388, R. Al-Khoury and J. Bundschuh, eds., Taylor & Francis

Group/CRC Press (2014).

• Cameron, D.A., Durlofsky, L.J. Optimization of well placement, CO2 injection rates, and

brine cycling for geological carbon sequestration. International Journal of Greenhouse

Gas Control, 10, 100-112 (2012).

• Cameron, D.A., Durlofsky, L.J., Benson, S.M. Use of above-zone pressure data to

locate and quantify leaks during carbon storage operations. International Journal of

Greenhouse Gas Control, 52, 32-43 (2016).

• Zin, Z.L., Durlofsky, L.J. Reduced-order modeling of CO2 storage operations, in review.

• Trehan, S., Durlofsky, L.J., Trajectory piecewise quadratic reduced-order model for

subsurface flow, with application to PDE-constrained optimization. Journal of

Computational Physics, 326, 446-473 (2016).

• He, J., Durlofsky, L.J. Reduced-order modeling for compositional simulation by use of

trajectory piecewise linearization. SPE Journal, 19, 858-872 (2014).