Slide 1

Slide 1 text

open source simulations and inversions in geophysics Lindsey Heagy with Rowan Cockett, Seogi Kang, Doug Oldenburg, Gudni Rosenkaer, Dom Fournier, et al Geophysical Inversion Facility University of British Columbia

Slide 2

Slide 2 text

● Context: an applied EM problem ○ An example: steel casing ● Big picture: simulations and inversions in geophysics ○ What are the pieces? ● Framework & Toolbox ○ How do we implement this? ● Building in the open ○ What can I do with it? ○ Collaborative development ● Interactive geophysics ○ Teaching with numerical simulations outline

Slide 3

Slide 3 text

em? Electrical conductivity can be diagnostic for…

Slide 4

Slide 4 text

em + steel casing This is a problem. Want to characterize this (SEG Abstract: Heagy et al, 2015) Physical Properties ● highly conductive ● significant (variable) magnetic permeability Geometry ● cylindrical ● thin compared to length

Slide 5

Slide 5 text

● Fields magnetic flux density current density ● Physical Properties ● Fluxes Constitutive Relations Maxwell’s Equations (quasi-static) electric field magnetic field electrical conductivity magnetic permeability Time Frequency math!

Slide 6

Slide 6 text

primary magnetic flux density Interpolate secondary source current density Casing 3D Geology Data Simulate

Slide 7

Slide 7 text

grounded electric Physics: Maxwell’s Equations Physical Properties electrical conductivity magnetic permeability anisotropy... Meshes 2D Cylindrical Sources inductive loop primary-secondary Data & Sensitivities … and Time Frequency 3D custom pieces: simulation

Slide 8

Slide 8 text

inverse problems

Slide 9

Slide 9 text

No content

Slide 10

Slide 10 text

No content

Slide 11

Slide 11 text

Magnetics Gravity DC resistivity Magnetotellurics Seismic Geophysics!

Slide 12

Slide 12 text

simulations and inversions

Slide 13

Slide 13 text

simulations and inversions

Slide 14

Slide 14 text

building for researchers ● Flexibility to experiment ● Integration of information ○ Geologic ○ Multiple physics ● Reproducible and transparent

Slide 15

Slide 15 text

● Modular: building blocks ○ organized in a framework ○ pieces available to manipulation ● Declarative: express intent ○ write what you mean ○ looks like the math ● Extensible: new research ○ quantitative communication ○ built in feedback loops ● Open: for the future ○ reproducible ○ opportunities for collaboration building for researchers

Slide 16

Slide 16 text

building for researchers ● Modular: building blocks ○ organized in a framework ○ pieces available to manipulation ● Declarative: express intent ○ write what you mean ○ looks like the math ● Extensible: new research ○ quantitative communication ○ built in feedback loops ● Open: for the future ○ reproducible ○ opportunities for collaboration

Slide 17

Slide 17 text

framework

Slide 18

Slide 18 text

Implemented in Python! framework

Slide 19

Slide 19 text

forward simulation Survey: Data collection and geometry Problem: Physics

Slide 20

Slide 20 text

finite volume

Slide 21

Slide 21 text

create a mesh

Slide 22

Slide 22 text

● Fields ● Fluxes ● Physical Properties discretize electric field magnetic field magnetic flux density current density electrical conductivity magnetic permeability

Slide 23

Slide 23 text

solve continuous discrete

Slide 24

Slide 24 text

framework

Slide 25

Slide 25 text

Data Misfit Regularization Inverse Problem inversion elements

Slide 26

Slide 26 text

inversion as optimization

Slide 27

Slide 27 text

For second order optimization techniques, need data: And sensitivities: sensitivities

Slide 28

Slide 28 text

forward simulation & sensitivities

Slide 29

Slide 29 text

Forward Inverse

Slide 30

Slide 30 text

No content

Slide 31

Slide 31 text

?

Slide 32

Slide 32 text

Model & Physical Properties: What should we invert for? (SEG Abstract: Kang et al, 2015) Derivatives using chain rule: or : ● Active reservoir layer ● Parametric representation ● ... inversion model physical properties

Slide 33

Slide 33 text

?

Slide 34

Slide 34 text

grounded electric inductive loop point dipole (electric or magnetic) fields from a primary problem natural source Sources: How do we excite the Earth?

Slide 35

Slide 35 text

?

Slide 36

Slide 36 text

Solve 2nd order system Solve E-B, H-J ? or and compute derivative Physics: How do we solve Maxwell’s equations

Slide 37

Slide 37 text

?

Slide 38

Slide 38 text

compute fields everywhere: what we solved for from source derivative Fields: How do we calculate the EM fields and fluxes? from source from physics

Slide 39

Slide 39 text

?

Slide 40

Slide 40 text

... Data: Receivers: What, and where, do we measure?

Slide 41

Slide 41 text

Plug in the pieces

Slide 42

Slide 42 text

Sensitivities

Slide 43

Slide 43 text

How do we know it works? Testing! ● Taylor series

Slide 44

Slide 44 text

for example: casing & sensitivities What is the sensitivity with respect to the… ● conductivity of the ○ Block? ○ Layer? ○ Background? ● Depth and thickness of the layer? ● Location and widths of the block? Heagy et al. 2016 - in review

Slide 45

Slide 45 text

for example: casing & sensitivities What is the sensitivity with respect to the… ● conductivity of the ○ Block? ○ Layer? ○ Background? ● Depth and thickness of the layer? ● Location and widths of the block?

Slide 46

Slide 46 text

for example: casing & sensitivities

Slide 47

Slide 47 text

for example: casing & sensitivities

Slide 48

Slide 48 text

data

Slide 49

Slide 49 text

sensitivities ● Need background model ● Collect data away from the

Slide 50

Slide 50 text

sensitivities ● Need background model ● Collect data away from the source (up to ~1 km away)

Slide 51

Slide 51 text

summary ● Modular, composable pieces ○ Compartmentalize concerns ○ All pieces available to manipulation → extensible ● Testing! ○ Test pieces ○ Test composite http://www.flickr.com/photos/13403905@N03/2080281038/

Slide 52

Slide 52 text

Building in the open

Slide 53

Slide 53 text

Heagy et al. 2016 - in review

Slide 54

Slide 54 text

Heagy et al. 2016 - in review

Slide 55

Slide 55 text

Magnetics Gravity DC resistivity Magnetotellurics Seismic Geophysics!

Slide 56

Slide 56 text

DC Resistivity

Slide 57

Slide 57 text

Potential Fields: Gravity & Magnetics

Slide 58

Slide 58 text

Airborne Time Domain EM Inversion Figure above shows plan views of (a) the true conductivity model and (b) the recovered model, and section views of (c) the true and (d) the recovered conductivity models. Figure to the left shows observed and predicted data. Core cell size: 50×50×20 m, The number of cell: 50×50×48 = 120,000; Reference model: Half-space model with conductivity value, 0.005 S/m; Inexact Gauss-Newton: 13 iterations; Cpu time: 48hrs; Maximum memory usage: 51.2GB; Cpu:Intel(R)Xeon(R) CPU 2.80 GHz; Ram: 64 GB

Slide 59

Slide 59 text

SimPEG MT: Magnetotellurics Rosenkjær et al 2015

Slide 60

Slide 60 text

Fluid Flow in the Vadose Zone: Richards Equation Cockett & Haber (2016)

Slide 61

Slide 61 text

Exploring Model Spaces Saltwater intrusions Kang et al (2015)

Slide 62

Slide 62 text

● Creating a toolbox and framework for geophysics ● Focusing on flexibility and speed for the researcher ● Starting to build a community

Slide 63

Slide 63 text

BIRS 2016

Slide 64

Slide 64 text

strategies for open, collaborative development

Slide 65

Slide 65 text

communicating: slack testing: TravisCI organizing: version control docs: sphinx, rtfd licensing: MIT

Slide 66

Slide 66 text

using numerical tools in education

Slide 67

Slide 67 text

& Education!

Slide 68

Slide 68 text

& Education!

Slide 69

Slide 69 text

& Education!

Slide 70

Slide 70 text

No content

Slide 71

Slide 71 text

thank you! simpeg.xyz geosci.xyz [email protected] @

Slide 72

Slide 72 text

No content

Slide 73

Slide 73 text

Discretization (1D, 2D, 3D, Cyl) Solve for x Ax = b Sample x → data

Slide 74

Slide 74 text

Lindsey Heagy with : Geophysical Inversion Facility University of British Columbia

Slide 75

Slide 75 text

about me ● Grad studies in geophysics ○ Computational