Using Python with Eclipse and OPM

Using Python with Eclipse and OPM

Classification: Internal ? Statoil ASA

17 oktober 20

Content

1. Python and Eclipse output files 1. Installing the libecl Python bindings 2. The Eclipse binary format 3. The different classes 4. Some examples

2. Sunbeam: Python wrappers for OPM-parser 1. Build and install 2. Examples

2 Classification: Internal

17 oktober 2017

? Statoil ASA

Installation

bash% git clone git@:Statoi/libecl bash% cd libecl bash% mkdir build ; cd build bash% cmake .. ?DBUILD_PYTHON=ON ?DCMAKE_INSTALL_PREFIX=$prefix bash% make ; make install

bash% export PYTHONPATH=$prefix/lib/python2.7/{site|dist}packages bash% pydoc ecl.ecl.EclGrid

3 Classification: Internal

17 oktober 2017

? Statoil ASA

The ECLIPSE binary format

PRESSURE 32156 REAL 256.78 256.09 255.08 254.07 253.67 251.05 254.56 256.78 ... SWAT____ 32156 REAL 0.91 0.90 0.93 0.97 0.92 0.89 0.91 0.96 ...

1. Name: 8 character string 2. Data size: integer 3. Data type: 4 character string

1. Fortran IO with embedded block sizes.

2. Endian swapping

Data in blocks.

EclKW

4 Classification: Internal

17 oktober 2017

? Statoil ASA

Small libecl binary utilities

convert.x: Will convert an ECLIPSE output file back and forth between binary and ASCII represenetation. Will consider file name extension to determine the desired conversion

bash% convert.x CASE.UNRST => CASE.FUNRST

ecl_pack.x / ecl_unpack.x Will convert ECLIPSE summary and restart files between the unifed and multiple file formats

bash% ecl_pack.x CASE.X* => CASE.UNRST

kw_list.x Will list all the keyword headers from an ECLIPSE output file:

bash% ecl_pack.x CASE.X* => CASE.UNRST

5 Classification: Internal

17 oktober 2017

? Statoil ASA

................
................

In order to avoid copyright disputes, this page is only a partial summary.

Google Online Preview   Download