Blog | Tools | Glossary | Search

Support us:
Share:   |  feedback   |  Join us  

How to Convert ECLIPSE Grid To And From Binary/ASCII Format

From petrofaq
Jump to navigation Jump to search


ECLIPSE model can be of Binary or ASCII format (see ECLIPSE grid). Sometimes it's needed to be converted from one format to another.

If you know other ways to convert ECLIPSE grid, feel free to improve the article.


Convert ECLIPSE Grid from Binary to ASCII

  1. Import Eclipse model to Petrel.
  2. Export the grid in ASCII format (GRDECL):

Grid export.pngGrid export2.png


or define and export the Case with grid in ASCII format (GRDECL), later you can take the grid file from exported model.
Petrel grid export3.png


Convert ECLIPSE Grid from ASCII to Binary

1st method. Create binary grid with ECLIPSE run.

Specify keyword GRIDFILE in GRID section of Eclipse model and run simulation. This creates ".GRID" or ".EGRID" file in the same directory as ".DATA" file. You don't have to wait until the calculation is finished - once initialization is done and you noticed ".GRID" or ".EGRID" file - the grid is ready and run can be stopped.

The keyword GRIDFILE controls output of the Grid geometry file.
This keyword contains one or two parameters which are integer number.

First parameter (Control of ".GRID") can be set to:

0 - no GRID file is produced
1 - standard GRID is produced
2 - extended GRID is produced
DEFAULT: 0

Second parameter (Control of ".EGRID") can be set to:

0 - no EGRID file is produced
1 - extensible grid is produced
DEFAULT: 1


For example:

-- extended GRID file only
GRIDFILE
1 0/
-- no GRID file
GRIDFILE
0 0/
-- extensible GRID file only
GRIDFILE
0 1/

or

GRIDFILE
/
-- both standard and extensible GRID files
GRIDFILE
1 1/



2nd method. Export from Petrel.
The same as Convert ECLIPSE Grid from Binary to ASCII, only choose ECLIPSE GRID or EGRID in export options.