24
Geocritical Reservoir Flow Simulation and Display using Open Porous Medium Code John Rugis, Peter Leary, Peter Malin and Justin Pogacnik New Zealand Geothermal Workshop 2013

Geocritical Reservoir Flow Simulation and Display using ...john-rugis/pdf... · Council 36th Annual Conference, Reno NV, 30 September – 3 October 2 2012. • Leary PC, Malin PE,

  • Upload
    others

  • View
    0

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Geocritical Reservoir Flow Simulation and Display using ...john-rugis/pdf... · Council 36th Annual Conference, Reno NV, 30 September – 3 October 2 2012. • Leary PC, Malin PE,

Geocritical Reservoir Flow Simulation and Display using Open Porous Medium Code

John Rugis, Peter Leary, Peter Malin and Justin Pogacnik

New Zealand Geothermal Workshop 2013

Page 2: Geocritical Reservoir Flow Simulation and Display using ...john-rugis/pdf... · Council 36th Annual Conference, Reno NV, 30 September – 3 October 2 2012. • Leary PC, Malin PE,

•  Geocriticality

•  Modelling Porosity and Permeability

•  Open Porous Media (OPM) Initiative

•  Simulation with OPM

•  Visualisation of Results

Outline

Page 3: Geocritical Reservoir Flow Simulation and Display using ...john-rugis/pdf... · Council 36th Annual Conference, Reno NV, 30 September – 3 October 2 2012. • Leary PC, Malin PE,

•  NZGW 2013

Peter Leary et al, Prospects for Enhanced Single-Well Heat Extraction

•  Leary P.C. & F. Al-Kindy, 2002. Power-law scaling of spatially correlated porosity and log(permeability) sequences from north-central North Sea Brae oilfield well core, Geophysical Journal International 148, 426-442.

•  Leary, PC (2002) Fractures and physical heterogeneity in crustal rock, in Heterogeneity of the Crust and Upper Mantle – Nature, Scaling and Seismic Properties, J. A. Goff, & K. Holliger (eds.), Kluwer Academic/Plenum Publishers, NewYork, 155-186.

•  Leary, PC (2002) Fractures and physical heterogeneity in crustal rock, in Heterogeneity of the Crust and Upper Mantle – Nature, Scaling and Seismic Properties, J. A. Goff, & K. Holliger (eds.), Kluwer Academic/Plenum Publishers, NewYork, 155-186.Stimulation, Proceedings Geothermal Resources Council 36th Annual Conference, Reno NV, 30 September – 3 October 2 2012.

•  Leary PC, Malin PE, Ryan GA, Lorenzo C & Flores M (2013) Lognormally distributed K/Th/U concentrations – Evidence for geocritical fracture flow, Los Azufres geothermal field, MX, Proceedings Geothermal Resources Council 36th Annual Conference, 29 Sep – 3 Oct, Las Vegas NV.

Geocriticality (References)

Page 4: Geocritical Reservoir Flow Simulation and Display using ...john-rugis/pdf... · Council 36th Annual Conference, Reno NV, 30 September – 3 October 2 2012. • Leary PC, Malin PE,

MatLab (modelling)

OPM (simulation)

Voreen (visualisation)

ParaView (visualisation)

Exploring Geocriticality

Software toolset and workfow:

Page 5: Geocritical Reservoir Flow Simulation and Display using ...john-rugis/pdf... · Council 36th Annual Conference, Reno NV, 30 September – 3 October 2 2012. • Leary PC, Malin PE,

0.1 0.15 0.2 0.25 0.3 0.350

2000

4000

6000

8000

10000

phi

Porosity

cube: 64x64x64 value: 0.1 – 0.3 spatial distribution: ! = 1 population distribution: normal

Modelling Porosity and Permeability Create synthetic porosity cube (MatLab, Voreen).

Page 6: Geocritical Reservoir Flow Simulation and Display using ...john-rugis/pdf... · Council 36th Annual Conference, Reno NV, 30 September – 3 October 2 2012. • Leary PC, Malin PE,

Permeability

cube: 64x64x64 population distribution: lognormal proportionality constant: 10 " = 3

Modelling Porosity and Permeability Derive synthetic permeability cube (MatLab, Voreen).

7 8 9 10 11 12 13 140

2000

4000

6000

8000

10000

12000

k x 1000 mD

Page 7: Geocritical Reservoir Flow Simulation and Display using ...john-rugis/pdf... · Council 36th Annual Conference, Reno NV, 30 September – 3 October 2 2012. • Leary PC, Malin PE,

Modelling Porosity and Permeability Collection of permeability cubes (MatLab, Voreen).

0 5 10 15 20 25 300

2000

4000

6000

8000

10000

12000

14000

k x 1000 mD7 8 9 10 11 12 13 14

0

2000

4000

6000

8000

10000

12000

k x 1000 mD

population distribution: lognormal proportionality constant: 10 " = 3

population distribution: lognormal proportionality constant: 10 " = 10

Page 8: Geocritical Reservoir Flow Simulation and Display using ...john-rugis/pdf... · Council 36th Annual Conference, Reno NV, 30 September – 3 October 2 2012. • Leary PC, Malin PE,

Modelling Porosity and Permeability Collection of permeability cubes (MatLab, Voreen).

population distribution: lognormal proportionality constant: 10 " = 20

population distribution: lognormal proportionality constant: 10 " = 30

0 10 20 30 40 50 60 70 800

0.5

1

1.5

2x 104

k x 1000 mD0 50 100 150 200 250 300

0

1

2

3

4

5x 104

k x 1000 mD

Page 9: Geocritical Reservoir Flow Simulation and Display using ...john-rugis/pdf... · Council 36th Annual Conference, Reno NV, 30 September – 3 October 2 2012. • Leary PC, Malin PE,

•! Launched in June 2009 at Statoil Research Center, Norway.

•! Supported by six research groups and several industry partners in Norway and Germany.

•! Current officially funded OPM development is focused on oil reservoir engineering, enhanced oil recovery and CO2 sequestration.

•! Contributions aimed at different fields are encouraged

•! The entire software suite is open-source, available under the terms of the GNU General Public License (GPL) version 3.

•! All of the OPM source code is hosted in GitHub public repositories.

Open Porous Media (OPM) Initiative

Page 10: Geocritical Reservoir Flow Simulation and Display using ...john-rugis/pdf... · Council 36th Annual Conference, Reno NV, 30 September – 3 October 2 2012. • Leary PC, Malin PE,

Simulation with OPM

porosity permeability

pressure field velocity field

inflow outflow

•  Simulate steady-state pressure and velocity fields:

–  Start with given synthetic porosity and permeability fields.

–  64x64x64 cubic metres simulation space.

–  “Point” injection and extraction.

–  Inject and extract incompressible fluid (water) at equal rates of ten litres per second.

Page 11: Geocritical Reservoir Flow Simulation and Display using ...john-rugis/pdf... · Council 36th Annual Conference, Reno NV, 30 September – 3 October 2 2012. • Leary PC, Malin PE,

•  OPM is an extension module to the Distributed Unified Numerics Environment (DUNE), a software toolbox for solving partial differential equations using grid based methods.

•  Both OPM and DUNE are written in the C++ language and make use of an object oriented programming style.

•  The extensive OPM application programming interface (API) documentation takes the form of formatted HTML pages suitable for viewing in a web browser.

Simulation with OPM Code development and modifications.

Page 12: Geocritical Reservoir Flow Simulation and Display using ...john-rugis/pdf... · Council 36th Annual Conference, Reno NV, 30 September – 3 October 2 2012. • Leary PC, Malin PE,

•  OPM / DUNE Code Modifications:

1) Input model data directly from MatLab files.

2) Extend basic simulation class with additional features.

3) Add simulation output values to VTK files.

Simulation with OPM Code development and modifications.

Page 13: Geocritical Reservoir Flow Simulation and Display using ...john-rugis/pdf... · Council 36th Annual Conference, Reno NV, 30 September – 3 October 2 2012. • Leary PC, Malin PE,

Simulation with OPM Code development and modifications.

class IncompPropertiesBasic : public IncompPropertiesInterface!{! public:! IncompPropertiesBasic(const int num_phases,! const SaturationPropsBasic::RelPermFunc& relpermfunc,! const std::vector<double>& rho,! const std::vector<double>& mu,! const double porosity,! const double permeability,! const int dim,! const int num_cells);! ...! virtual void setPorosity(const std::vector<double>& porosity);! virtual void setPermeability(const std::vector<double>& permeability); ! ...!}!!!

Page 14: Geocritical Reservoir Flow Simulation and Display using ...john-rugis/pdf... · Council 36th Annual Conference, Reno NV, 30 September – 3 October 2 2012. • Leary PC, Malin PE,

Simulation with OPM Code development and modifications.

// read variable phi from MatLab file! matvar_t *mat_phi;! mat_phi = Mat_VarRead(matfp,"phi");! if(mat_phi == NULL) {! cout << "Variable phi not in MAT file." << endl;! exit(1);! }! . . .!! // set porosity from MatLab variable! std::vector<double> phi(num_cells, 0.5);! double *ptr = (double *) mat_phi->data;! unsigned n = 0;! for(int l = 0; l < nz; l++) {! for(int j = 0; j < ny; j++) {! for(int i = 0; i < nx; i++) {! phi[n++] = *(ptr++);! }! }! }! Mat_VarFree(mat_phi);! props.setPorosity(phi);!!

Page 15: Geocritical Reservoir Flow Simulation and Display using ...john-rugis/pdf... · Council 36th Annual Conference, Reno NV, 30 September – 3 October 2 2012. • Leary PC, Malin PE,

Simulation with OPM Steady state solution

Velocity Field

cube: 64x64x64 α = 3

7 8 9 10 11 12 13 140

2000

4000

6000

8000

10000

12000

k x 1000 mD

Velocity Field: cross-section (ParaView)

Page 16: Geocritical Reservoir Flow Simulation and Display using ...john-rugis/pdf... · Council 36th Annual Conference, Reno NV, 30 September – 3 October 2 2012. • Leary PC, Malin PE,

Simulation with OPM Steady state solution

Velocity Field

cube: 64x64x64 α = 10

Velocity Field: cross-section (ParaView)

0 5 10 15 20 25 300

2000

4000

6000

8000

10000

12000

14000

k x 1000 mD

Page 17: Geocritical Reservoir Flow Simulation and Display using ...john-rugis/pdf... · Council 36th Annual Conference, Reno NV, 30 September – 3 October 2 2012. • Leary PC, Malin PE,

Simulation with OPM Steady state solution

Velocity Field

cube: 64x64x64 α = 20

Velocity Field: cross-section (ParaView)

0 10 20 30 40 50 60 70 800

0.5

1

1.5

2x 104

k x 1000 mD

Page 18: Geocritical Reservoir Flow Simulation and Display using ...john-rugis/pdf... · Council 36th Annual Conference, Reno NV, 30 September – 3 October 2 2012. • Leary PC, Malin PE,

Simulation with OPM Steady state solution

Velocity Field

cube: 64x64x64 α = 30

Velocity Field: cross-section (ParaView)

0 50 100 150 200 250 3000

1

2

3

4

5x 104

k x 1000 mD

Page 19: Geocritical Reservoir Flow Simulation and Display using ...john-rugis/pdf... · Council 36th Annual Conference, Reno NV, 30 September – 3 October 2 2012. • Leary PC, Malin PE,

Example:

•! Streamlines

–! A family of curves tangent to the velocity vector field.

–! Show fluid element flow paths.

–! ParaView stream tracer:

•! seed type, size and count

•! integrator type

•! etc

Data Processing with Paraview

Not just for visualisation. Computation and analysis “filters” as well.

Page 20: Geocritical Reservoir Flow Simulation and Display using ...john-rugis/pdf... · Council 36th Annual Conference, Reno NV, 30 September – 3 October 2 2012. • Leary PC, Malin PE,

Simulation with OPM & ParaView Steady state solution

Velocity Field

cube: 64x64x64 α = 3

7 8 9 10 11 12 13 140

2000

4000

6000

8000

10000

12000

k x 1000 mD

Velocity Field: streamlines (ParaView)

Page 21: Geocritical Reservoir Flow Simulation and Display using ...john-rugis/pdf... · Council 36th Annual Conference, Reno NV, 30 September – 3 October 2 2012. • Leary PC, Malin PE,

Simulation with OPM & ParaView Steady state solution

Velocity Field

cube: 64x64x64 α = 10

Velocity Field: streamlines (ParaView)

0 5 10 15 20 25 300

2000

4000

6000

8000

10000

12000

14000

k x 1000 mD

Page 22: Geocritical Reservoir Flow Simulation and Display using ...john-rugis/pdf... · Council 36th Annual Conference, Reno NV, 30 September – 3 October 2 2012. • Leary PC, Malin PE,

Simulation with OPM & ParaView Steady state solution

Velocity Field

cube: 64x64x64 α = 20

Velocity Field: streamlines (ParaView)

0 10 20 30 40 50 60 70 800

0.5

1

1.5

2x 104

k x 1000 mD

Page 23: Geocritical Reservoir Flow Simulation and Display using ...john-rugis/pdf... · Council 36th Annual Conference, Reno NV, 30 September – 3 October 2 2012. • Leary PC, Malin PE,

Simulation with OPM & ParaView Steady state solution

Velocity Field

cube: 64x64x64 α = 30

Velocity Field: streamlines (ParaView)

0 50 100 150 200 250 3000

1

2

3

4

5x 104

k x 1000 mD

Page 24: Geocritical Reservoir Flow Simulation and Display using ...john-rugis/pdf... · Council 36th Annual Conference, Reno NV, 30 September – 3 October 2 2012. • Leary PC, Malin PE,

Questions, Further Work, Discussion?