Reservoir engineering students meeting an input deck for the first time usually open a long text file of capital-letter keywords and slashes, and the Eclipse data file sections are what turn that wall of text into something readable. The format, used by the ECLIPSE simulator and also read by the open-source OPM Flow simulator (Rasmussen et al., 2021), divides the deck into named sections that each describe one part of the model, and knowing what belongs where makes errors far easier to trace.
How a deck is organised
The main input file is conventionally written in capitals with the extension .DATA, and although everything can sit in that one file, it is common to split the input across several files pulled in with INCLUDE keywords (Berg & Slotte, n.d.). Each section begins with a keyword that is its own name, and the sections must appear in the correct order. Lines starting with a double dash are comments, which is where well-written student decks explain their choices.
RUNSPEC GRID EDIT PROPS REGIONS SOLUTION SUMMARY SCHEDULE END
The deck behaves somewhat like a programming language that drives the simulator step by step, as the OPM Flow developers put it (Rasmussen et al., 2021), which is a helpful way to think about why the order matters.
RUNSPEC sets up the run
The first section gives the overall settings, including the title, the grid dimensions, the phases present, the start date, the unit system and the sizes of other parts of the model, such as the number of wells (Berg & Slotte, n.d.). The DIMENS keyword gives the actual size of the grid, which then dictates how many values later keywords need, so a 100 by 1 by 1 model needs 100 porosity values. Keywords such as WELLDIMS and TABDIMS exist for legacy reasons, because older code allocated all its memory at the start of a run, and they are kept for compatibility.
GRID and EDIT describe the rock
The GRID section defines the grid type and geometry along with porosity and permeability for each cell, and the simulator uses it to calculate pore volumes, depths and transmissibilities between cells (Berg & Slotte, n.d.). Simple teaching models often use DX, DY, DZ and TOPS, while models of real structures usually rely on corner-point geometry through COORD and ZCORN, which is almost always generated by software.
EDIT is optional and allows changes to what GRID produced, such as pore volume and transmissibility multipliers, which can be useful in history-matching loops (Berg & Slotte, n.d.). Many of its operations are now available in the GRID section as well, so the authors describe it as increasingly redundant.
PROPS and REGIONS describe the fluids
PROPS holds relative permeability and capillary pressure curves, fluid PVT properties and rock compressibility, and every phase declared in RUNSPEC needs matching flow and fluid data here (Berg & Slotte, n.d.). REGIONS then assigns grid cells to sub-volumes where different properties apply, using keywords such as PVTNUM for fluid property regions, SATNUM for saturation function regions and EQLNUM for initialisation regions.
SOLUTION sets the starting state
The SOLUTION section defines the initial condition of the model, most often gravity equilibrium through the EQUIL keyword, which sets fluid contact depths and a reference pressure (Berg & Slotte, n.d.). The alternatives are to specify pressures and saturations cell by cell or to start from a restart file, and the first of these is seldom used for complex grids because it is hard to set up a model that starts in equilibrium.
SUMMARY and SCHEDULE control the output and the wells
SUMMARY chooses which time-series results, such as field or well rates and pressures, are written to the summary file, while three-dimensional data like pressure and saturation in every cell are requested in SCHEDULE (Berg & Slotte, n.d.). SCHEDULE usually defines when and where wells are added and how they are operated, through keywords such as WELSPECS, COMPDAT, WCONPROD and WCONINJE, and it sets how far the simulation runs, with TSTEP giving the report steps and END closing the input.
Because SCHEDULE controls both the wells and the restart output used for visualisation, a missing time step there often explains why a plot shows fewer snapshots than expected. If your deck stops with an error you cannot trace to a section, reservoir simulation support and project support can go through the file with you and explain each fix.
Frequently asked questions
Do all eight sections have to appear?
EDIT and REGIONS can be left out of simple models, and the single-phase teaching example in Berg and Slotte (n.d.) has neither, but the sections you include must stay in order.
Can I practise without an ECLIPSE licence?
OPM Flow reads the same input format and is free and open source (Rasmussen et al., 2021), and Berg and Slotte (n.d.) teach reservoir simulation entirely with open-source tools.
Why are keywords written in capitals?
Keywords are always written in capital letters, and Berg and Slotte (n.d.) point out that the simulator is case-sensitive, which makes consistent capitals part of writing a deck that runs.
References
Berg, C. F., & Slotte, P. A. (n.d.). Reservoir simulation through open source software. Department of Geoscience, NTNU.
Rasmussen, A. F., Sandve, T. H., Bao, K., Lauser, A., Hove, J., Skaflestad, B., Klöfkorn, R., Blatt, M., Rustad, A. B., Sævareid, O., Lie, K.-A., & Thune, A. (2021). The Open Porous Media Flow reservoir simulator. Computers & Mathematics with Applications, 81, 159-185.



