Giter VIP home page Giter VIP logo

mrst-pytorch's Introduction

README

GPU accelerated for MRST (proof of concept)

I started today (Dec 5) work on the evaluation and Proof of Concept to port the Matlab Reservoir Simulator MRST to PyTorch for GPU acceleration.

Part of the work requires the Eclipse datasets from SPE papers for testing. MRST. I have uploaded most important datasets to its own repository. See references below.

Since PyTorch has built-in functionality to work with Graphics Processing Units or GPUs, we expect demonstrating that PyTorch GPU-based tensors could significantly reduce compute time in reservoir simulation. That is the idea in a nutshell.

Background

A handful of scientists have already ported some of their computational physics work to such ML frameworks but do not address specifically reservoir simulation.

Strategy

  1. Test the Partial Differential Equations (PDE) that constitute the core of the MRST solvers. Test the running times of the solvers using Matlab and Octave. Some code for performance testing available in latest book An Introduction to Reservoir Simulation Using MATLAB, Octave by Knut-Andreas Lie (see Appendix).
  2. Replicate the functionality in Python using PyTorch for GPUs. Convert the Matlab code to PyTorch; measure the compute time of MRST solvers.

If GPU compute times are 10 to 100 faster in PyTorch, then proceed with converting more Matlab code to PyTorch tensor based calculations. Thanks Lukas Mosser for the brainstorming.

Update

Already have some scripts running the basics of the Partial Differential Equations (PDE) required for proving that an experimental reservoir simulation tool can run using machine learning libraries such as PyTorch and TensorFlow

Scripts in Matlab/Octave, Python.

Started by testing Jacobians with TensorFlow. See references for code.

Posts

Post (1/n)

https://www.linkedin.com/posts/alfonsorreyes_f0nziereservoirdatasets-activity-6608176122876264448-gwST

image-20191222110513683

Post (2/n)

https://www.linkedin.com/posts/alfonsorreyes_mrst-pde-reservoirsimulation-activity-6609474020737941504-8GaW

image-20191222110339257

Post (3/n)

https://www.linkedin.com/posts/alfonsorreyes_mrst-matlab-pytorch-activity-6613066657558556672-wQYA

image-20191222104821690

References

Tags

#petroleumengineering #spe #oilandgas #reservoirengineering #computationalphysics

mrst-pytorch's People

Contributors

f0nzie avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.