Technical Guide
copyright 2001, 2002 by Landmark Graphics Corporation
Trademark Notice
Landmark, the Landmark logo, 3D Drill View, 3D Drill View KM, 3DVIEW, Active Field Surveillance, Active
Reservoir Surveillance, ARIES, Automate, BLITZ, BLITZPAK, CasingSeat, COMPASS, Contouring Assistant,
DataStar, DBPlot, Decision Suite, Decisionarium, DecisionDesktop, DecisionSpace, DepthTeam, DepthTeam
Explorer, DepthTeam Express, DepthTeam Extreme, DepthTeam Interpreter, DESKTOP-PVT, DESKTOP-VIP,
DEX, DFW, DIMS, Discovery, Drillability Suite, DrillModel, DrillVision, DSS, Dynamic Surveillance System,
EarthCube, EdgeCa$h, eLandmark, EPM, e-workspace, FastTrack, FZAP!, GeoDataLoad, GeoGraphix, GeoGraphix
Exploration System, GeoLink, GES, GESXplorer, GMAplus, GrandBasin, GRIDGENR, I2 Enterprise, iDims,
IsoMap, LandScape, LeaseMap, LMK Resources, LogEdit, LogM, LogPrep, Make Great Decisions, MathPack,
Model Builder, MyLandmark, MyWorkspace, OpenBooks, OpenExplorer, OpenJournal, OpenSGM, OpenTutor,
OpenVision, OpenWorks, OpenWorks Well File, PAL, Parallel-VIP, PetroBank, PetroWorks, PlotView, Point
Gridding Plus, Pointing Dispatcher, PostStack, PostStack ESP, PRIZM, PROFILE, ProMAX, ProMAX 2D, ProMAX
3D, ProMAX 3DPSDM, ProMAX MVA, ProMAX VSP, pStaX, QUICKDIF, RAVE, Real Freedom, Reservoir
Framework Builder, RESev, ResMap, RMS, SafeStart, SCAN, SeisCube, SeisMap, SeisModel, SeisSpace,
SeisVision, SeisWell, SeisWorks, SeisXchange, SigmaView, SpecDecomp, StrataMap, Stratamodel, StratAmp,
StrataSim, StratWorks, StressCheck, STRUCT, SynTool, SystemStart, T2B, TDQ, TERAS, Total Drilling
Performance, TOW/cs, TOW/cs The Oilfield Workstation, Trend Form Gridding, Turbo Synthetics, VIP, VIP-COMP,
VIP-CORE, VIP-DUAL, VIP-ENCORE, VIP-EXECUTIVE, VIP-Local Grid Refinement, VIP-POLYMER, VIP-
THERM, WavX, Web OpenWorks, Well Editor, Wellbase, Wellbore Planner, WELLCAT, WELLPLAN,
WellXchange, wOW, Xsection, ZAP!, Z-MAP Plus are trademarks, registered trademarks or service marks of
Landmark Graphics Corporation.
All other trademarks are the property of their respective owners.
Note
The information contained in this document is subject to change without notice and should not be construed as a
commitment by Landmark Graphics Corporation. Landmark Graphics Corporation assumes no responsibility for any
error that may appear in this manual. Some states or jurisdictions do not allow disclaimer of expressed or implied
warranties in certain transactions; therefore, this statement may not apply to you.
Table of Contents
Preface
About This Manual
Purpose . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xi
Audience . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xi
Organization . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xi
Operating Conventions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xii
Mouse Buttons . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xii
Mouse Operations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xiii
GRIDGENR Prompts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xiv
Special Keys . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xiv
Key Combinations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xv
Motif Window Operation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xv
Other Conventions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xvi
New Terminology/Emphasis . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xvi
Error Messages . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xvi
Related Manuals . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xvii
Chapter 1
GRIDGENR File Types
Chapter 2
Grid Generation and Array Interpolation
Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-21
Computation of Z-Values . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-21
Computation of Transmissibilities and Pore Volumes . . . . . . . . . . . . . . . . . . . . 2-23
The Sloping Fault Correction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-24
Chapter 3
Method for Estimating Volumetrics
Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-27
Geometry of the Trilinear Solid . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-27
Chapter 4
GRIDGENR Import Format
Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-33
GRIDGENR Reference Points . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-34
Zone Modifications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-35
Reservoir Simulation Grids . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-37
Tielines Data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-38
LGR Data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-39
Null Data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-39
LGREF Data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-39
CARTREF Data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-40
RADZREF Data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-41
RADXREF Data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-42
RADYREF Data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-43
LGMOD Data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-44
Well Data (Vertical Wells Only) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-44
WELLTRACES Data (Deviated Wells Only) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-45
WELLPERF Data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-46
Contour/Fault Data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-49
Point Data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-50
Mesh Grid Data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-51
Sample Import File . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-53
Chapter 5
System and Model Limits
Model Size Limitations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-55
System Limits . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-56
Appendix A
Upscaling of Permeability
Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-57
Transmissibilities . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-57
Half-Block Transmissibilities from Continuous
Distribution of Permeability . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-59
Half-Block Transmissibilities from Discrete
Distribution of Permeability . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-60
iv Landmark - R.2003.4
GRIDGENR TECHNICAL GUIDE Table of Contents
R.2003.4 - Landmark v
Table of Contents GRIDGENR TECHNICAL GUIDE
vi Landmark - R.2003.4
List of Figures
Preface
About This Manual
Figure 0-1: Mouse Button Arrangement and Terminology . . . . . . . . . . . . . . . . . xii
Chapter 1
GRIDGENR File Types
Chapter 2
Grid Generation and Array Interpolation
Figure 2-1: Z-Value Calculation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-22
Figure 2-2: Result of Z Value Calculation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-23
Figure 2-3: No Correction Applied . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-25
Figure 2-4: Quadratic Correction Applied . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-25
Figure 2-5: Linear Correction Applied . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-26
Chapter 3
Method for Estimating Volumetrics
Figure 3-1: The Bilinear Surface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-28
Figure 3-2: The Trilinear Solid . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-28
Chapter 4
GRIDGENR Import Format
Chapter 5
System and Model Limits
Appendix A
Upscaling of Permeability
Figure 5-1: Coarse Block with Arbitrary Shape . . . . . . . . . . . . . . . . . . . . . . . . . . 6-57
Figure 5-2: Transmissibility Between Two Blocks . . . . . . . . . . . . . . . . . . . . . . . 6-58
List of Tables
Preface
About This Manual
Table 0-1: Typical Mouse Operations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xiii
Table 0-2: Names and Locations of Common Keys . . . . . . . . . . . . . . . . . . . . . . . xiv
Table 0-3: Window Operation Procedures . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xv
Chapter 1
GRIDGENR File Types
Table 1-1: Common File Types . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-19
Chapter 2
Grid Generation and Array Interpolation
Chapter 3
Method for Estimating Volumetrics
Chapter 4
GRIDGENR Import Format
Chapter 5
System and Model Limits
Table 5-1: UNIX Commands for Determining System Limits . . . . . . . . . . . . . . 5-56
Appendix A
Upscaling of Permeability
Subject Index
R.2003.4 - Landmark ix
List of Tables GRIDGENR TECHNICAL GUIDE
x Landmark - R.2003.4
Preface
Purpose
This manual provides a reference to the technical features of the
Landmark Grid Generator (GRIDGENR) software and all of its related
utilities. The manual does not provide a guide to using the software, and
should be used only as a supplement to the GRIDGENR Users Guide.
Audience
This manual is intended for use by reservoir engineers or other technical
personnel who are trying to describe reservoir structure and properties in
a format that can be used by reservoir simulation software such as the
Landmark line of VIP simulators. This manual assumes you have a basic
familiarity with computers. Experience with the X Window System/Motif
interface is especially helpful as is some familiarity with the technical
requirements of reservoir simulators.
Organization
The manual is arranged in a user guide format with step-by-step
procedures covering all aspects of program operation. The chapters are
arranged in the following order:
Chapter 2 - GRIDGENR File Types explains the meaning of all the file
extensions used with GRIDGENR.
R.2003.4 - Landmark xi
About This Manual GRIDGENR TECHNICAL GUIDE
Operating Conventions
This manual uses certain conventional methods to indicate the correct
mouse button and keyboard usage.
Mouse Buttons
Mouse buttons are named MB1, MB2, MB3, and MB4 as shown in the
illustration below. The mouse examples below show a right-handed
arrangement. Button arrangement may be reversed for left-handed
mouses (see your system documentation for details).
Mouse Operations
You can use the mouse by rolling it across the surface of the mouse pad or
desk (except on Sun). As you move the mouse, the pointer moves to a
corresponding location on the screen. The following terms are used to
describe various mouse operations:
Mouse
Instructions
Operation
Drag Hold down MB1 and move the mouse, then release when
pointer reaches desired location.
Set cursor Click MB1 in text at location where you want to start typing.
View pop-up Click MB3 then click menu option to select. Some menus
menu may require you to drag MB3 to view and select from the
pop-up menu.
GRIDGENR Prompts
GRIDGENR often prompts you with instructions on what to do next.
Typically these prompts indicate which mouse button to press for what
action. For example:
Prompt
The prompt above indicates you should press MB1 to select a point, MB2
to delete a point, MB3 to view a pop-up menu, or MB4 to finish entering
points. If an MB4 option is shown, it will not be available on a three-button
mouse. However, most prompts give the same option for both MB3 and
MB4. For example: (3-4) Finish
Special Keys
Some keys are named differently on different systems. Our standard
names for the major keys are listed below, along with an explanation of
how to identify each one. Other special-purpose keys (Compose, Pause,
etc.) are either not used with our system or are used infrequently.
F1, F2, etc. F1, F2, etc. Top of main keyboard or to left
of main keyboard.
Key Combinations
Some keys such as the Control key, Meta key, and Alt key are used in
combination with others. For example, you can press Control-D by
holding down the Control key and pressing the D key. The same applies to
combinations like Alt-F4, Meta-F4, etc. Always hold down the first key
before pressing the second.
Combining keys may also be used with mouse clicks. For example,
Control-click means to hold down the Control key and click MB1. Control-
Shift-click means to hold down the Control key and the Shift key before
clicking once with MB1.
R.2003.4 - Landmark xv
About This Manual GRIDGENR TECHNICAL GUIDE
Other Conventions
Other conventions are used in this manual to provide you with additional
information about the software.
New Terminology/Emphasis
Any new or unfamiliar term is highlighted in italics. For example, the
word hypertext may be new to you, therefore it is highlighted. Italics are
also used for emphasis, such as when a procedure warns you not to do
something.
Error Messages
Most error messages encountered when using the software are
highlighted at the place where they might occur in each procedure. Error
message information is enclosed in a shaded box like the one below:
This message appears when you try to draw a contour that doubles back on
itself. Click MB2 to back up and redraw the contour.
The error message is shown in bold text and the appropriate action is
listed directly underneath.
Related Manuals
The following manuals provide more information on Landmark products
related to GRIDGENR. For more information, please consult the
appropriate manual listed below.
1
GRIDGENR File Types
The following types of files are automatically produced while you are
using GRIDGENR and the Calculation module. You can tell the different
files apart by their file extensions. For example, coning1.gdb and coning1.acf
contain two different sets of data related to the same case study. The table
below shows the file extension used by each type of file, a description of
the file and its uses, and the software option which produces the file.
File
Description Produced by
Extension
.acf The array control file containing calcu- Text editor (user-gener-
lation instructions. ated)
File
Description Produced by
Extension
2
Grid Generation and Array Interpolation
Introduction
The general basis for the interpolation process is based on the work of Dr.
Alan K. Cline and Dr. Robert J. Renka. Details of the interpolation process
in the absence of faults are described in detail in Dr. Renkas Doctoral
Dissertation1. Subsequently, the triangulation process has been modified
to be able to incorporate fault nodes.
The user has the option to select piecewise linear (C0) or piecewise cubic
(C1) interpolation for each property that is interpolated. In order to
perform the interpolation a triangulation is passed through the node
values with fault boundaries incorporated into the triangulation mesh.
Values are computed at the fault nodes based on a global surface fit. If C1
interpolation is used, then partial derivatives are calculated at all nodes
also based on a global surface fit. This global fit minimizes the L2 norm of
the linearized curvature of the surface. Once one has values at all nodes
and partials in the case of C1 interpolation, then it is simply a matter of
finding which triangle contains the point in question and computing the
value at the point based on the three surface values at the vertices of the
triangle and additionally using the partials when C1 interpolation is used.
Computation of Z-Values
Z values are computed for each grid block at each of the four corners.
When there are no faults present, the southeast corner of a block will have
the same Z value as the southwest corner of its neighbor to the east and
the northeast corner of its neighbor to the south and the northwest corner
of its neighbor to the southeast.
Nw Ne Nw Ne
1 2
a b
Sw Se Sw Se
Nw Ne d Nw Ne
c
3 4
Sw Se Sw Se
Fault
When faults are present, a line from the center of each block to the corner
is constructed and the intersection point identified. A point just slightly
towards the center point is generated (points a, b, and c in the diagram). If
no fault intersection is encountered, then the corner point is used (point
d). Z values are interpolated for each of these points. The next step taken is
to construct a line between the center of each block, the midpoint of the
block interface, and the center of the neighbor block. If an intersection is
encountered, the fault is considered to exist between the two blocks. If an
intersection is not encountered, there is no fault between the blocks and
the Z values generated for the corners are averaged together and assigned
to the Z value for the corner of the block.
In the above diagram, there is no fault between 1 and 2 nor between 1 and
3, thus
( Za + Zb + Zc )
1(Se) = 2(Sw) = 3(Ne) = 4(Nw) = -------------------------------------
3
4(Nw) = Zd
Nw Ne Nw Ne
1 2
a b
Sw Se Sw Se
Nw Ne d Nw Ne
c
3 4
Sw Se Sw Se
Fault
1 x
--- =
T -------------------------
n
(2-1)
--g- K y z
Likewise, pore volumes are also generated by using Gaussian quadrature.
n
PV = --g- x y z (2-2)
The user can choose between one and three quadrature points to be
specified in each direction. The geometry is always integrated exactly. For
one quadrature point the computation is exact for a constant permeability
distribution, for two points it is exact for a linear surface, and for three
points it is exact for a quadratic surface. Since a C1 interpolation is also
exact for a quadratic surface, there is no need to use more than three
quadrature points. The location of these points and the weights associated
to these points are determined from standard mathematical formulae. For
further details, refer to the next chapter, Method for Estimating
Volumetrics, by Alan Cline.
The general plan of attack is thus. For each line of null grid blocks, retrieve
each column of points. Lay a smooth approximating curve through those
points. Then move each grid point to the point on the curve nearest to the
original point.
There are two options for the approximating curve. The user may select
either a linear fit or a quadratic fit. Either one is calculated using a least
squares fit. The quadratic curve is frequently closer to the original data.
However, since it is later approximated in the grid by straight line
segments, there can still be some gaps and overlaps. With a linear fit, the
user is assured that there are no gaps and overlaps, but generally the
points are moved father to get to the curve. Because the quadratic fit
honors the data more closely it has been chosen as the default option.
Note that since the grid points are actually moved to the curve the areal
view of the calculated data will not longer match the digitized data
exactly. Because of this we have also provided the option of no correction.
In order to make this feature more convenient, only those points which
correspond to a digitized grid in GRIDGENR plus the bottom grid are
used in the calculation of the approximating curve. This allows the user to
only digitize those grids in GRIDGENR that are necessary to define a well
behaved grid. Because a correction is only applied to the grid points along
the null, if there is significant movement of the fault in comparison to the
size of the grid blocks, then additional grids must be specified, lest the
grid points along the null be moved past the grid points on the other side
of that block.
3
Method for Estimating Volumetrics1
Introduction
This short paper presents a method for approximating integrals of a
function of three variables over a roughly rectangular solid region. The
second section describes the geometry of the special solids allowed and
the final section presents a numerical quadrature method for the integral
approximation.
for all u and v. If a fourth point P4 is specified, in general no plane will pass
through all four point. However a "bilinear" surface will and it may be
described parametrically by
for all u and v (see following diagram). If we restrict u and v both to lie in
[0, 1], then the surface has "edges" between P1 and P2, P2 and P3, P3 and P4,
and P4, and P1. These edges are straight line segments between the given
points and the surface has certain other linear characteristics. For example,
if for any [0,1], one moves of the way from P1 to P2 and also moves
of the way from P4 to P3, then both point are on the edges. Furthermore
the straight line segment between these two points lies in the surface.
(Similarly for moving between P1 and P4 and between P2 and P3.) What
makes the surface nonlinear is that the line segments corresponding to
different values of are not (necessarily) parallel. If, in fact, P4 lies in the
plane determined by the other three points, then the bilinear surface is
planar, i.e. a quadralateral.
P4
P3
P1
P2
The trilinear solid is the three dimensional analogy of the bilinear surface.
Parametrically, it can be described by
+ u v w (C7 C3 C6 C8 + C2 + C4 + C5 C1)
for u, v, and w in [0,1] (see following diagram). Each of its six "sides" are
bilinear surfaces. As above, if the fourth point on each side is coplanar
with the other three, the sides are planar. The solid in such a case would be
a hexahedron. Of course, if in addition, the distances were chosen
properly a parallelopiped would result. Finally, if the angles in the solid
were right angles then the solid would be rectangular.
C4
C1 C3
C2
C8
C5 C7
C6
f ( x, y, z )dxdydz
( x , y, z ) H
+ u v (C3 C4 C2 + C1)
+ v w (C8 C4 C5 + C1)
+ w u (C6 C5 C2 + C1)
+ u v w (C7 C3 C6 C8 + C2 + C4 + C5 C1)
0 0 0
1 1 1
f ( x, y, z )dxdydz = f ( g ( u, v, w )detJ g ( u, v, w ) )dudvdw
( x, y, z ) H
pi f ( ui ),
1 u
0
f ( u )du
i=1
nv
p j f ( v j ),
1 v
0
f ( v )dv
j=1
and
nw
1 w
0
f ( w )dw pk f ( wk )
k=1
u
chararacterized by the nodes {ui}, {vj}, and {wk}, and by the weights { p i },
v w
{ p j }, and { p k }, respectively. If the first is exact for polynomials in u of
degree du, the second is exact for polynomials in v of degree dv, and the
third is exact for polynomials in w of degree dw, then the composite
quadrature rule (formed by the tensor product of the three):
nu nv nw
1 1 1 u v w
0 0 0
f ( u, v, w )dudvdw p i p j p k f ( u i, v j, w k )
i=1 j=1 k=1
is exact for polynomials in u, v, and w of degree du, dv, dw. (That is, the
formula is exact for any f that is a sum of products of powers of u, v, and w,
in which the power for u is less than or equal to du, the power for v is less
than or equal to dv, and the power for w is less than or equal to dw.)
Combining this integral approximation with the change of variables for
the volumetric integral from above, we obtain
nu nv nw
f ( x, y, z )dxdydz =
u v w
p i p j p k f ( g ( u i, v j, w k )detJ g ( u i, v j, w k ) )
( x , y, z ) H i=1 j=1 k=1
specified so that the first four corners have the same depth (i.e.,
z-coordinate) and the last three corners share the same depth, then the top
and bottom of the trilinear solid will be parallel to the x-y plane.
Furthermore, for each value of k, the nu nv points g (ui, vj, wk) will lie in
such a plane as well. If an entire array of trilinear solids have tops in the
same plane and bottoms in the same plane, it may be efficient to obtain a
large number of values of f for each fixed wk and accumulate the
volumetric integrals over the entire array of boxes concurrently.
4
GRIDGENR Import Format
Introduction
Any file imported into GRIDGENR must use a certain format in order for
the data to be recognized by GRIDGENR. This format is called the
GRIDGENR text format or GTF. The easiest way to see an example of this
format is to export a GRIDGENR file to an ASCII format (see File Export
Procedure in Chapter 2 of the GRIDGENR Users Guide) then view the
ASCII file at any command line prompt, for example:
more filename
The following pages explain the required formats for various types of
importable data, and shown an example of a complete import file. Each
format is listed in a typewriter font, for example:
Characters that you must type in literally are listed in regular typewriter
font and variables that you must insert are listed in an italic typewriter
font. Data may appear at any location within a line. At least one space
must separate keywords and numbers. You can edit the import file using
any text editor, such as the vi editor provided in UNIX.
SCREEN
fpname1
fpname2
xfp1 yfp1 xfp2 yfp2
xscr1 yscr1 xscr2 yscr2
where
Zone Modifications
By default each input geologic zone maps to exactly one simulation layer.
Using zone modification you may vary this mapping.
ZONEMODS
NAME zonezoneName
.
.
.
INACTIVEzone
.
.
.
COMBINEzone1 - zone2unitName
.
.
.
SPLIT zonenum*fraction
.
.
.
SPLITUNIT unitNamenum*fraction
.
.
.
END
where
To get the actual number of splits the fractions will be summed and
normalized to 1.
To get the actual number of splits the fractions will be summed and
normalized to 1.
This must come after the combined unit has been defined.
Example:
ZONEMODS
NAME 1 sand1
INACTIVE 2
INACTIVE 7
COMBINE 3 -5 sandunit
SPLIT 1 2*.5
SPLIT 6 3*.33
SPLIT 8 1*.5 1*.2 1*.3
SPLIT 9 4*.33
END
GRID nx ny
ZONE zone
x1 y1
x2 y1
. .
. .
xnx+1 y1
x1 y2
. .
. .
. .
xnx+1 yny+1
END
where:
Tielines Data
To define the curves to tie the reservoir grid to, use the following format.
The first four curves are the boundary of the grid.
TIELINES izz
TIE i1 j2 j2 j2
x1 y1
x2 y2
.
.
.
TIE i1 j2 j2 j2
x1 y1
.
.
.
END
where
LGR Data
To signal the nulls and local refinement use the keyword LGR with the
following formats.
LGR
Null Data
To define the null regions in the simulation grid, use the following format.
XNULL k
.
.
.
YNULL k
.
.
.
where
LGREF Data
To indicate the start of local refinements the following format should be
used. Each refinement may be a cartesian refinement or radial refinement
in either X, Y or Z.
LGREF ngrid
where
CARTREF Data
To specify the parameters for defining a cartesian refinement, the
following format should be used.
CARTREF name
PARENT parent i1 i2 j1 j2 k1 k2
XREF num*value
YREF num*value
ZREF num*value
XSPACE num*value
YSPACE num*value
ZSPACE num*value
where
RADZREF Data
To specify the parameters for defining a refinement around a well spot, the
following format should be used.
RADZREF name
LGRWELLparentwellz1 z2
RADINFOrw mxr myr
ZREF num*value
ZSPACE num*value
where
rw Well radius.
RADXREF Data
To specify the parameters for defining radial grids along the x axis, the
following format should be used.
RADXREF name
PARENT parenti1 i2 j1 j2 k1 k2
RADINFOrw mxr myr
XREF num*value
XSPACE num*value
END
where
rw Well radius.
RADYREF Data
To specify the parameters for defining radial grids along the y axis, the
following format should be used.
RADYREF name
PARENT parenti1 i2 j1 j2 k1 k2
RADINFOrw mxr myr
YREF num*value
YSPACE num*value
END
where
rw Well radius.
LGMOD Data
To specify the parameters for defining local grid modification flags, the
following format should be used.
LGMOD nmod
inc/omitflag gridi1 i2 j1 j2 k1 k2
END
where
WELL
name1 x1 y1
namen xn yn
END
where
WELLTRACES
WELLNAMEname1
WELLBOREbore_number1
x1 y1 z1 md1
x2 y2 z2 md2
.
.
.
xn yn zn mdn
MDTOS zone1 x1 y1 z1 md1
MDBOS x2 y2 z2 md2
ZTOS zone3 x3 y3 z3
ZBOS x4 y4 z4
WELLBORE bore_number2
x1 y1 z1 md1
.
.
.
WELLNAMEname2
WELLBOREbore_number1
x1 y1 z1 md1
x2 y2 z2 md2
.
.
.
xn yn zn mdn
MDTOS zone1 x1 y1 z1 md1
MDBOS x2 y2 z2 md2
ZTOS zoneid2 x1 y1 z1
ZBOS x2 y2 z2
.
.
.
END
where
NOTE: The ZTOS, ZBOS, MDTOS, and MDBOS cards are optional, they are
used to display the intersection of a grid trace with a zone top or zone
bottom. You may use either the ZTOS and ZBOS cards or the MDTOS
and MDBOS cards. The measured depth cards provide a better
definition of an intersection. MDTOS and MDBOS are a pair as are
ZTOS and ZBOS
WELLPERF Data
This format should be used to import perforations for deviated well. This
requires that the traces have been defined.
WELLPERFS
STARTDATE DD MM YYYY
WELLNAMEname well-type
WELLBOREbore_number
PERFMD perfid md_start md_end starttime endtime
KEY keyword value keyword value ...
KEY keyword value keyword value ...
PERFZ perfid z_start z_end starttime endtime
KEY keyword value keyword value ...
.
.
.
WELLBOREbore_number2
.
.
.
WELLNAME name
WELLBORE bore_number
PERFMD perfid md_start md_end starttime endtime
KEY keyword value keyword value ...
PERFZ perfid zstart zend startime endtime
.
.
.
WELLBORE bore_number
.
.
.
END
where
endtime The time the perf is shut in. This should be either in
DD MM YYYY format, or it should be days since
start date.
NOTE: The name and the bore_name must match a defined well trace.
If a well has no perforation information entered for it in the .gtf file, then it
is assumed to be perforated for its entire length and FPERF definitions are
written for the entire length of the well trace.
By default LENGTH ANGLV and ANGLA are written out for all deviated
wells but not for any well spots. You may also control this using the
keywords DEVIATED or VERTICAL in the perforation definition next to
the well name in the .gtf file. If you enter VERTICAL, the length and angle
information will not be generated for a particular well. If you enter
DEVIATED, the length and angle information will be generated. (See
Section 3.2 of the VIP-EXECUTIVE Reference Manual for further
discussion.)
You may also enter extra keywords in the .gtf file for output to the FPERF
file. These keywords will be passed through the program and output to
the FPERF definition with no additional processing. The keywords must
be the same for all the perforations for a particular well.
Contour/Fault Data
Imported contour or fault data must use the following format. All
contours in the same set should be listed together. The format begins with
the name of the property being described, the zone, and the minimum/
maximum contour values. Then the format lists the coordinates of each set
of data points associated with each contour or fault.
CONTOUR property
ZONE zone
RANGE min max
VALUE val/type
x1 y1
x2 y2
. .
VALUE type
x1 y1
x2 y2
. .
END
where:
Point Data
Point data may be defined using the Contour/Fault format replacing the
VALUE keyword with POINTS.
POINTS
x1 y1 z1
x2 y2 z2
. . .
END
The format for import file parameters is described below. The parameters
indicate the property being described, the zone to which it applies, the
number of columns and rows in the mesh, the x,y coordinates of the first
point, the distance between mesh points, and other information.
MESH property
ZONE zone
NX nx
NY ny
X0 x0
Y0 y0 or ZMAPFILE filename
ZNULL znull or CPSFILE filename
DX dx
DY dy
ANGLE angle
hand
FILENAME filename
END
where:
Left-Handed Data:
x
y
1 2 3 3 6 9
4 5 6 2 5 8
7 8 9 x 1 4 7
y
Right-Handed Data:
9 6 3 7 8 9
8 5 2 4 5 6
x
7 4 1 y 1 2 3
y x
821.57 389.12
768.82 339.67
705.62 298.35
648.57 249.80
580.61 222.24
505.11 224.33
430.40 224.99
356.82 239.66
295.44 282.65
260.19 347.05
253.14 422.26
275.44 492.50
319.52 553.22
348.64 621.19
VALUE 800.00
989.63 432.48
941.62 371.24
889.47 313.94
831.76 261.76
775.69 207.79
711.39 164.40
637.64 140.51
559.64 133.79
482.57 140.58
406.82 158.41
327.39 158.69
249.63 159.07
190.37 205.42
160.61 277.95
165.13 356.02
173.30 434.53
155.27 508.30
105.15 568.31
50.31 622.81
5.73 686.68
END
5
System and Model Limits
Description Equivalent
Description Equivalent
System Limits
In addition to the model limits described earlier, your system hardware may have
limitations on the size of memory and swap space which can restrict the size and
complexity of models that it can handle effectively. To check the limits on your
machine, use the following UNIX commands:
SGI IRIX/IRIX64
AIX
Sun Solaris
A
Upscaling of Permeability
Introduction
Though formation properties such as permeability may be available on a
very fine level of detail, their direct use for reservoir simulation is, in
general, not practical because of the excessive computer time and memory
that would be required. Hence it is necessary to use relatively coarse
blocks that are feasible for reservoir simulation. The process of integrating
the fine-scale permeability to produce effective permeabilities of the
coarse blocks is called upscaling.
Actually, what are required for input to the reservoir simulator are not
effective permeabilities of the coarse blocks, but transmissibilities from the
center of each block to the center of each of its neighbors. The
calculation of these transmissibilities are the subject of this chapter.
The coarse blocks need not be orthogonal but, more likely, will have some
arbitrary shapes (such as shown in Figure 5-1) which are defined by the
coordinates of the eight corner points of each block.
Transmissibilities
As stated above, the input required for the reservoir simulator are the
transmissibilities from the center of each block to the center of each of its
neighbors. Consider Figure 5-2, which shows the computation of
transmissibility between Block A and the block to its right, Block B:
Let AAR be the total area of the right face of Block A, ABL be the total area
of the left face of Block B, and AAB be the area of their mutual intersection.
Note that in the unfaulted case, AAB = AAR = ABL.
A AB
T X AB = -----------------------------------
- (5-1)
A AR A BL
-------------- + --------------
TX R A TX L B
So we see that for each coarse block (i, j, k), we need to obtain six
transmissibilities of half-blocks, which we will call half-block
transmissibilities. Specifically, TXLijk is transmissibility from the left face
to a plane through the center and approximately parallel to the left and
right faces, and TXRijk is the transmissibility from the right face to the
same plane TYLijk is the transmissibility from the front face to a plane
through the center and approximately parallel to the front and back faces,
and TYRijk is the transmissibility from the back face to that same plane.
TZLijk is the transmissibility from the top face to a plane through the
center and approximately parallel to the top and bottom faces, and TZRijk
is the transmissibility from the bottom face to that same plane.
kx(x,y,z)
ky(x,y,z)
kz(x,y,z)
PO
PI PI
QxL PO
QxR
QzL
PI
PO
PI
PO
QzR
PI PO
PI PO
TXL TXR
PI
PO
TZL
PI
PO
TZR
PI PO PI PO
TXL TXR
PI
TZL PO
PI
PO
TZR
PI PO
Figure 5-9 shows, in more detail, the elements of the network for a single
elemental block. The resistance for each resistor is the reciprocal of one of
the half-block transmissibilities of the elemental block. In the analogy,
voltage is equivalent to pressure and current to equivalent to fluid flow.
Note that the top and bottom elemental blocks are special cases; either 1/
FTZL or 1/FTZR is omitted; in that manner the no-flow boundary
conditions at top and bottom are imposed. (Not shown in these two-
dimensional figures is that the elemental blocks at the front and back faces
are also special cases, for which 1/FTYL or 1/FTYR are also omitted.)
R=1/FTZL
R=1/FTXR
R=1/FTXL
R=1/FTZR
We solve now for the pressures (voltages) at each node of the network
(corresponding to the center of each elemental block) by solving a system
of simultaneous difference equations. The difference equation for
elemental block (i, j, k) is
FTX L i, j, k ( P I P 1, j, k )
For elemental blocks on the right face, the second term of Equation 5-8 is
replaced by
FTX R NX 2, j, k ( P O P NX 2, j, k )
For elemental blocks on the front face, the third term of Equation 5-8 is
omitted, on the back face, the fourth term is omitted, on the top face, the
fifth term is omitted, and on the bottom face, the sixth term is omitted.
After solution for the pressure at the nodes, the flow into the left face is
computed by
NY NZ
Q xL = FTX L1, j, k ( PI P1, j, k ) (5-9)
j=1 k=1
and TXL for the coarse block is computed by
Q xL
TXL = ------------------ (5-10)
PI PO
Similar calculation are made for the other five half-block transmissibilities
of the coarse block: TXR, TYL, TYR, TZL, and TZR.
The network problem for this reduction is shown in Figure 5-11, which
shows how TX is calculated for the new single block. Here TX is the
transmissibility from the left face all the way to the right face of the new
single block. Then, for that new single block, TXL = TXR = 2 x TX. Similar
calculations are carried out to obtain TYL = TYR and TZL = TZR for that
new single block.
PI PO
In the third and final level of the renormalization, shown in Figure 5-13,
half of the 4 x 4 x 4 collection of blocks is used to calculate each half-block
transmissibility of the coarse block. Here, the reduction calculation is
somewhat different, in that a 4 x 4 x 2 collection of blocks is reduced to a
single block (i.e., half the coarse block).
Parallel-Tube Method
In this method, the elemental blocks form tubes which run from the input
face to the output face. It corresponds to the network of Figure 5-8 with all
the vertical resistors omitted, and involves the following summations:
NY NZ
( pt )
-----------------------------------------------------------------
1
TX L = NX 2
- (5-11)
------------------- - + ---------------------
j=1 k=1 1 1
FTX L ijk FTX R ijk
i=1
NY NZ
( pt )
-------------------------------------------------------------------------------
1
TX R = NX
- (5-12)
NX NZ
( pt )
-----------------------------------------------------------------
1
TY L = NY 2
(5-13)
FTY-------------------- + --------------------
i = 1k = 1 1 1
L ijk FTY R ijk
j=1
NX NZ
( pt )
-------------------------------------------------------------------------------
1
TY R = NX
- (5-14)
------------------- - + --------------------
i = 1k = 1 1 1
FTY L ijk FTY R ijk
j = 1 + NY 2
NX NY
( pt )
---------------------------------------------------------------
1
TZ L = NZ 1
- (5-15)
------------------- - + --------------------
i=1 j=1 1 1
FTZ L ijk FTZ R ijk
k = 1 + NZ 1
Series-Slice Method
In this method, all the elemental blocks in a vertical plane are connected
together to form a slice, and the slices are then connected in series. It
corresponds to the network of Figure 5-8 with all the vertical resistors
omitted, but with solid vertical lines added, as shown in Figure 5-14.
PI PO
NX 2
1 1
------------------
- =
( ss )
--------------------------------------------------------------------------
NY NZ
(5-17)
TX L
------------------- - + ---------------------
i=1 1 1
FTX L ijk FTX R ijk
j = 1k = 1
NX
1 1
------------------
- =
( ss )
---------------------------------------------------------------------------
NY NZ
- (5-18)
TX R
------------------- - + ---------------------
i = 1 + NX 2 1 1
FTX L ijk FTX R ijk
j=1 k=1
NY 2
1 1
------------------
( ss )
= ----------------------------------------------------------------------------
NX NZ
- (5-19)
TY L
------------------- - + --------------------
j=1 1 1
FTY L ijk FTY R ijk
i=1 k=1
NY
1 1
------------------
- =
( ss )
----------------------------------------------------------------------------
NX NZ
- (5-20)
TY R
------------------- - + --------------------
j = 1 + NY 2 1 1
FTY L ijk FTY R ijk
i=1 k=1
NZ 1
---------------------------------------------------------------------------
1 1
-----------------
- =
( ss ) NX NY
- (5-21)
TZ L
------------------- - + --------------------
k=1 1 1
FTZ L ijk FTZ R ijk
i=1 j=1
NZ
1 1
------------------
- =
( ss )
---------------------------------------------------------------------------
NX NY
- (5-22)
TZ R
------------------- - + --------------------
k = 1 + NZ 1 1 1
FTZ L ijk FTZ R ijk
i=1 j=1
It was found that a harmonic average of the results obtained by both the
harmonic summation methods yields values that are considerably more
accurate. Consequently, a third method is available, where the half-block
transmissibilities are computed as follows:
( ha ) 2
TX L = --------------------------------------------- (5-23)
1 1
------------------
( pt )
- + ------------------
( ss )
-
TX L TX L
( ha ) 2
TX R = ---------------------------------------------- (5-24)
1 1
------------------
( pt )
- + ------------------
( ss )
-
TX R TX R
( ha ) 2
TY L = --------------------------------------------- (5-25)
1 1
------------------
- + ------------------
( pt ) ( ss )
TY L TY L
( ha ) 2
TY R = --------------------------------------------- (5-26)
1 1
------------------
( pt )
- + ------------------
( ss )
-
TY R TY R
( ha ) 2
TZ L = -------------------------------------------- (5-27)
1 1
------------------
( pt )
- + -----------------
( ss )
-
TZ L TZ L
( ha ) 2
TZ R = --------------------------------------------- (5-28)
1 1
------------------
( pt )
- + ------------------
( ss )
-
TZ R TZ R
As pointed out above, this method is very fast, but may not be
accurate enough. Comparison should be made with the results using
the direct method described on pages H-4 to H-9 to see whether the
results are sufficiently accurate.
References
1. VIP-EXECUTIVE Technical Reference, Appendix B, Corner-Point
Geometry, Landmark Graphics.
000000Subject Index
A E
Alt key Enter key
defined xiv defined xv
use with other keys xv error messages
array control file (ACF) 1-19 how indicated xvi
arrays Esc key
math technique used to calculate 2-21 defined xiv
B F
Backspace key F1, F2, etc.
defined xiv defined xv
faults
import format for 4-49
file extensions 1-19
C
clicking the mouse xiii
contours G
import format for 4-49
Control key gridblocks
defined xiv volumetric calculation 3-29
use with other keys xv grids
Control-clicking the mouse xiii from Z-MAP, ISM, CPS-3, see mesh grids
cursor import format for 4-37
setting with the mouse xiii math techniques used to calculate 2-21
cursor arrow keys GTF files
defined xv format of
GTF files, see also importing
D
I
Delete key
defined xiv icons
documentation converting to/from a window xv
other related manuals xvii importing map data
double-clicking the mouse xiii correct format (GTF) 4-33
dragging the mouse xiii
Z
R z value
reference points technical discussion of 2-21
import format for 4-34