- •Basics of Reservoir Simulation
- •with the
- •Eclipse Reservoir Simulator
- •Lecture Notes
- •Øystein Pettersen
- •Introduction
- •Prerequisites
- •1. Overview – minimum required data input
- •1.1 The grid
- •1.2 Petrophysics
- •1.3 Fluid properties
- •1.4 Soil properties
- •1.5 Equilibration
- •1.6 Well specification
- •1.7 Dynamics
- •1.8 Output
- •1.9 Simple Eclipse data file contents
- •A. Syntax
- •B. Data file (“BASIC data input example”)
- •A note on units
- •2. The RUNSPEC section
- •Grid dimension – keyword DIMENS
- •Phases
- •Unit system
- •Start date
- •Unified / Non-unified files (chapter 11)
- •Data checking only
- •Table dimensions
- •EQLDIMS
- •NSTACK (chapters 17-18)
- •Aquifer specifications – AQUDIMS (chapter 14)
- •Grid options (chapter 13)
- •Rock compressibility options (chapter 6)
- •Local Grid Refinement (chapter 15)
- •3. Structured grids (Corner point grids) (GRID section)
- •The Corner Point Grid
- •Defining a corner point grid in Eclipse
- •Moderately complex grids – FILL
- •4. Petrophysics (GRID section)
- •Average permeability
- •Transmissibility
- •Inactive cells
- •5. Fluid properties (PROPS section)
- •Tables in Eclipse
- •Relative permeability and Capillary Pressure
- •Two-phase curves (water – oil)
- •Three-phase relative permeabilities
- •PVT data
- •Water
- •Dead Oil
- •Live Oil
- •6. Soil compressibility (PROPS section)
- •7. Initialisation (SOLUTION section)
- •Datum depth
- •Contacts
- •Equilibrium – discussion – advanced issues
- •8. Time dependent input data (SCHEDULE section)
- •8.1 Well definitions and control
- •Well Specification (WELSPECS keyword)
- •Well Completions (COMPDAT keyword)
- •Production / Injection data (Keywords WCONPROD / WCONINJE)
- •Economic well constraints (keywords WECON, WECONINJ)
- •Other often used Well control keywords
- •8.2 Time stepping
- •Order of actions
- •8.3 Convergence Control I (keyword TUNING)
- •9. Regions
- •10. Simplified input and modification of Eclipse arrays
- •EQUALS
- •ADD, MULTIPLY
- •COPY
- •COPYBOX
- •11. Eclipse output, formats and files
- •File names
- •Textual output
- •The RPTXXX keywords
- •Time dependent vectors – SUMMARY data
- •Restart data and restart files
- •12. Restarting a simulation
- •The SKIPREST keyword
- •13. Fault modelling – Non-neighbour connections
- •The 7-point stencil
- •The fault layout – non-neighbour connections
- •Fault transmissibility multipliers
- •Defining a fault manually – the ADDZCORN keyword
- •14. Aquifer Modelling (GRID section)
- •Aquifer definition
- •Aquifer connection to reservoir
- •15. Local Grid Refinement
- •15.2 LGR on an irregular volume – Amalgamation
- •15.3 Wells on local grids – Horizontal wells
- •15.4 Horizontal wells and friction
- •16. Numerical Solution of the Flow Equations
- •The IMPES method
- •Solution of Non-linear Equations – the Newton-Raphson method
- •17. Iteration methods for linear systems
- •Direct, simple approach
- •The Gauss-Seidel method
- •Accelerators – the point SOR method
- •Conjugate Gradients – ORTHOMIN
- •Preconditioning
- •Preconditioning and Orthomin
- •Determining a preconditioner – Nested Factorisation
- •18. Convergence Control II – TUNING parameters
- •TUNING keyword summarized
- •19. Non-neighbour Connections and System Structure
- •A. GRF files in GRAF
- •A simple straightforward GRF file
- •Advanced GRF file
- •B. Some Considerations Regarding Grid Consistency
- •Grids planned for use in rock mechanics simulations
- •Embedding
- •Non-vertical coordinate lines
- •Honouring material properties of non-reservoir rock.
A. GRF files in GRAF
The graphics post-processor GRAF is used for visualising summary data, and has been part of the Eclipse suite since the very beginning. Even though it has been “modernized” a bit, no one can argue that as an interactive tool it is at best cumbersome to use. However, GRAF has some very powerful batch processing capabilities, and utilizing these can make the program quite efficient in use.
The batch processing is enabled by the menu choice 8.2, execute GRF file. GRAF then reads batch commands from a so-called GRF file, and processes the commands to create and modify a set of pictures as requested by the user. The user will typically have one or several “standard” GRF files available, and by a quick editing of the appropriate file can generate the needed pictures quickly.
For a detail description of GRF commands, the user should consult the GRAF manual, but most of the more common commands are used in the examples below, which are conveniently commented.
A simple straightforward GRF file
--Standard input characterisation SET CONTINUATION '&'
SET INPUT UNFORMATTED SET INPUT MULTIPLE SET WSP UNFORMATTED SET GRIDFILE EGRID
--Load command. Loads the summary files EKS1.S000, EKS1.S001,...
--Origin is used as a mnemonic, and is the name all create commands
--later will use as reference (esp. relevant if several cases are loaded)
LOAD SUMMARY EKS1 ORIGIN EKS1 NORESTART
--
--PICTURE is an entire page CREATE PICTURE 1
--Every picture may contain several GRAPHS, which are separate plot
--windows.
CREATE GRAPH 1
--All curves are generated by “CREATE LINE” command, Y-axis VS X-axis.
--X-axis is typically TIME or YEARS. The axes are ordered as they are
--created, so X-axis is AXIS 1, first Y-axis is AXIS 2,...
--Y-axis is the property to plot. All plot properties must be recognizable
--Summary keywords (which have been loaded)
CREATE LINE FOPR VS YEARS EKS1
--Another curve in the same plot. To use the same Y-axis as for FOPR,
--specify OLDY 2, which means use the (old) AXIS 2 as Y-axis
CREATE LINE FWPR VS YEARS EKS1 OLDX 1 OLDY 2
--FPR (Field pressure) has incompatible units with existing axis, so
--specify new Y-axis. (Becomes AXIS 3)
CREATE LINE FPR VS YEARS EKS1 OLDX 1 NEWY
--
--Create a new picture, containing two GRAPHS, i.e. two “windows”
--First GRAPH contains four curves, second one.
CREATE PICTURE 2
CREATE GRAPH 1
CREATE LINE WOPR WP1 VS YEARS EKS1
CREATE LINE WOPR WP2 VS YEARS EKS1 OLDX 1 OLDY 2 CREATE LINE WOPT WP1 VS YEARS EKS1 OLDX 1 NEWY CREATE LINE WOPT WP2 VS YEARS EKS1 OLDX 1 OLDY 3
--
CREATE GRAPH 2
CREATE LINE WWCT WP1 VS YEARS EKS1 END
106
Advanced GRF file
The following GRF file contains many “advanced” uses, and shows how a little work up front can save a lot of time later.
SET CONTINUATION '&'
--
SET INPUT UNFORMATTED SET INPUT MULTIPLE SET WSP UNFORMATTED SET GRIDFILE EGRID
--
SET INPUT UNIFIED
--
--In this example we define some variables at the start of the file.
--If we later use the file for a different run, with another name, and
--other well names, only these lines at the head of the GRF file need
--to be changed.
--Two different runs will be loaded, and for simplicity we use the same
--ORIGIN name as the CASE name.
--Variables in GRAF are identified by a trailing %.
ASSIGN CASE1% = EX3A |
|
|
|
ASSIGN CASE2% = EX3B |
|
|
|
ASSIGN WELLP1% = WP1A |
|
|
|
ASSIGN WELLP2% = WP2AH |
|
|
|
ASSIGN WELLI1% = WI1 |
|
|
|
ASSIGN WELLI2% = WI2B |
|
|
|
-- |
CASE1% |
ORIGIN CASE1% |
NORESTART |
LOAD SUMMARY |
|||
LOAD SUMMARY |
CASE2% |
ORIGIN CASE2% |
NORESTART |
-- |
|
|
|
CREATE PICTURE 1
CREATE GRAPH 1
CREATE LINE FOPR VS YEARS CASE1%
CREATE LINE FWPR VS YEARS CASE1% OLDX 1 OLDY 2 CREATE LINE FOPR VS YEARS CASE2% OLDX 1 OLDY 2 CREATE LINE FWPR VS YEARS CASE2% OLDX 1 OLDY 2 CREATE GRAPH 2
CREATE LINE FOPT VS YEARS CASE1%
CREATE LINE FWPT VS YEARS CASE1% OLDX 1 OLDY 2 CREATE LINE FOPT VS YEARS CASE2% OLDX 1 OLDY 2 CREATE LINE FWPT VS YEARS CASE2% OLDX 1 OLDY 2
--
--
CREATE PICTURE 2
CREATE GRAPH 1
CREATE LINE WOPR WELLP2% VS YEARS CASE1% CREATE LINE WOPR WELLP2% VS YEARS CASE2% CREATE GRAPH 2
CREATE LINE WOPR WELLP1% VS YEARS CASE1% CREATE LINE WOPR WELLP1% VS YEARS CASE2% CREATE GRAPH 3
CREATE LINE WOPT WELLP2% VS YEARS CASE1% CREATE LINE WOPT WELLP2% VS YEARS CASE2% CREATE GRAPH 4
CREATE LINE WOPT WELLP1% VS YEARS CASE1% CREATE LINE WOPT WELLP1% VS YEARS CASE2%
--
.
.
.
--Modification commands are used to change the default appearance of
--the picture or graphs
107
MODIFY PICTURE 1
--The BOUNDARY is the rectangle enclosing the entire picture BOUNDARY POSITION 0.005 0.103 0.995 0.955
--Redefine Picture title
TITLE IS Field Fluid Production rates and totals
-- Move title to desired position (can be done interactively first) TITLE POSITION 0.307 0.688
MODIFY GRAPH 1
--The VBOUNDARY is the View Boundary, i.e. the rectangle enclosing all
--the GRAPHS
--The GBOUNDARY is the GRAPH boundary, the rectangle enclosing each GRAPH
--window.
--Advice: To get the different BOUNDARY coordinates, first set the
--rectangle interactively in GRAF for one picture. Then request writing
--of GRF file, and use copy & paste to resize other pictures to the same
--size.
VBOUNDARY POSITION 0.005 0.053 0.495 0.995
GBOUNDARY POSITION 0.096 0.069 0.988 0.843
--Modify GRAPH title and position GTITLE IS Field oil & water rates GTITLE POSITION 0.163 0.776
--Change character size in title GTITLE HEIGHT 0.024
--Move curve legends
CONTENTS POSITION 0.17 0.701
--Change contents and character size for legend MODIFY LINE 1
TITLE IS Oil rate CASE1% TITLE HEIGHT 0.02 MODIFY LINE 2
TITLE IS Water rate CASE1% TITLE HEIGHT 0.02
MODIFY LINE 3
TITLE IS Oil rate CASE2% TITLE HEIGHT 0.02 MODIFY LINE 4
TITLE IS Water rate CASE2% TITLE HEIGHT 0.02
--Change axis 2 (the Y-axis)
MODIFY AXIS 2
--Set min and max values on the axis MIN 2000
MAX 4000
--Set primary and secondary tickmarks PTSPACE 1000
STSPACE 250
--Set Tickmark label spacing
SCSPACE 1000
-- Use a field width of 6 characters on axis label FORMAT 6
--
END
108
