Coder Social home page Coder Social logo

abv-hub / pygrdecl Goto Github PK

View Code? Open in Web Editor NEW

This project forked from binwang0213/pygrdecl

0.0 0.0 0.0 47.15 MB

Visualize Eclipse/Petrel outputs Grid File (GRDECL) using Paraview(VTK)

License: BSD 3-Clause "New" or "Revised" License

Batchfile 0.01% Jupyter Notebook 97.00% Python 3.00%

pygrdecl's Introduction

PyGRDECL: A Python-based GRDECL Visualization Library

Bin Wang ([email protected]), Craft and Hawkins Department of Petroleum Engineering, Louisiana State University, Baton Rouge, US

PyGRDECL is a light-weight open source library for converting a Eclipse/Petrel grid with properties to a vtu-file. (to be opened in ParaView for example).

Install & Usage

Anaconda 5.3 (https://www.anaconda.com/download/), vtk(https://anaconda.org/anaconda/vtk) and Shapely 1.5 (https://anaconda.org/scitools/shapely) is required. The library works on both Windows and Linux.

After downloading and unzipping the current repository, navigate to the library directory and run a simple example contained in Example_GettingStart.ipynb:

Following install script can be used for creating a seperate virtual env

#Windows
conda create -n pyGRDECL
activate pyGRDECL
conda install pandas numpy matplotlib jupyter notebook scipy 
conda install shapely vtk

#Linux
conda create -n pyGRDECL
source activate pyGRDECL
conda install pandas numpy matplotlib jupyter notebook scipy 
conda install shapely vtk

Getting Start

from GRDECL2VTK import * 

#Read GRDECL File
Model=GeologyModel(filename='./ExampleData/dome.grdecl')

#Convert ECLIPSE grdecl format into VTK
Model.GRDECL2VTK()

#Decompose the model into sub-volumes in terms of faults automatically (this function requires shapely library)
Model.decomposeModel()

#Output to VTK format
Model.Write2VTU()

#Load a custom new keyword from file
TempData=Model.LoadCellData(varname="TEMP",filename='./ExampleData/dome_Temperature.txt')

#Update model and output to VTK format
Model.Update()
Model.Write2VTU()

License

This code is released under the terms of the BSD license, and thus free for commercial and research use. Feel free to use the code into your own project with a PROPER REFERENCE.

B. Wang, PyGRDECL A Python-based GRDECL Visualization Library, (2018), GitHub repository, https://github.com/BinWang0213/PyGRDECL

pygrdecl's People

Contributors

binwang0213 avatar leytzher 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.