Академический Документы
Профессиональный Документы
Культура Документы
This publication has been provided pursuant to an agreement containing restrictions on its use. The publication is also
protected by Federal copyright law. No part of this publication may be copied or distributed, transmitted, transcribed,
stored in a retrieval system, or translated into any human or computer language, in any form or by any means,
electronic, magnetic, manual, or otherwise, or disclosed to third parties without the express written permission of:
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, VIPTHERM, 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.
Landmark
Table of Contents
Overview ................................................................................................................................ 5
Purpose ............................................................................................................................. 5
How the Grid Calculator Works ...................................................................................... 5
A Simple Example ........................................................................................................... 6
Conditional Operations .................................................................................................... 7
Formatting Mathematical Expressions .................................................................................. 8
Variable Syntax................................................................................................................ 8
Correct Format for VARNAME ................................................................................ 8
Correct Format for CLASS........................................................................................ 9
Correct Format for TIME .......................................................................................... 9
Correct Format for @CASE @DB Abbreviation .................................................... 10
Conditional Syntax ........................................................................................................ 10
Storage and Reuse of Calculated Results ...................................................................... 11
Using GridCalc .................................................................................................................... 13
Opening the Database File(s)......................................................................................... 15
Switching Between Cases .............................................................................................. 17
Performing the Calculation .................................................................................................. 18
Using Existing Properties .................................................................................................... 20
Creating Temporary Variables ............................................................................................. 21
Procedures...................................................................................................................... 21
Summing Properties by Time or Layer................................................................................ 23
Saving and Retrieving an Expression .................................................................................. 25
R2003.4
iii
iv
Landmark
R2003.4
Landmark
Grid Calculator
Overview
Purpose
The VIP Grid Calculator is an easy-to-use utility that lets you perform
specialized calculations on simulation data. You can:
Load one or more simulation database files into the calculator for
use as input into calculations.
The procedures in this chapter explain how to use the calculator to load
files, build expressions, and calculate new properties.
R2003.4
Overview: Purpose
Landmark
A Simple Example
For example, suppose you want to multiply the initial oil saturation of a
reservoir by a factor of 100 (e.g., to convert fraction to percent). The
correct mathematical expression for this would include special notation
such as SO_I for initial oil saturation and a math symbol such as * for
multiplication, as shown below:
SO_I*100
Note
The correct notation and symbols are supplied automatically when you use the
keypad and the property selection menus.
R2003.4
Landmark
Once you press the Enter button, the Grid Calculator would apply the
mathematical expression to each instance of SO_I in the model. If the
reservoir model has 300 grid cells, it would multiply the SO_I value for
each grid cell by 100, then produce a matrix of 300 output values one
for each grid cell. This result would be copied into the database as an
additional new property (e.g., SOP) that you can view using
appropriate model visualization software.
Conditional Operations
Furthermore, suppose you only wanted to perform the mathematical
operation on certain grid cells, such as those with a porosity greater
than 0.10. The Grid Calculator would let you create a condition phrase
describing the condition which needs to be satisfied, such as the
following:
POR > 0.10
When using such a condition phrase, you can define two mathematical
expressions: one to be used if the condition is satisfied, the other to be
used if the condition is not satisfied.
When you press the Enter button, the Grid Calculator examines each
POR value in the model to see if it matches the specified condition.
Depending on the result (True or False), the Grid Calculator then
applies the appropriate mathematical expression to produce the correct
output result for that grid cell.
R2003.4
Landmark
Variable Syntax
The correct syntax for formatting variable names in a mathematical
expression is as follows:
VARNAME_CLASS[TIME] @CASE @DB
is the SO variable taken from recurrent data at time = 256 days. The
following is a more complete discussion of each syntax element.
Correct Format for VARNAME
The first part of the variable syntax must be a property variable name
either selected from a pop-up menu in the Existing Property area of the
Grid Calculator or entered manually in the mathematical expression. If
you enter a variable name manually and a corresponding value is not
available on one of these menus, you will see a warning message. The
list of available variable names will probably be different for each
database that you load, so you cannot assume that a variable name is
available unless you know for sure.
R2003.4
Landmark
Class
Symbol
Menu Name
Description
Recurrent
Recurrent data.
Initialization
Initialization data.
Calculated
UR
User Recurrent
UI
User Init
UC
User-Calc
Class
If you select a variable from the pop-up menus, this symbol is added
automatically as part of the variable name (preceded by an underbar
symbol: _). If you type in the expression manually, you must insert the
underbar and correct symbol. If you omit this symbol (for example, if
you enter KZ instead of KZ_I), the Grid Calculator will search for the
variable among the different menus and use the one it first encounters.
The sequence of menus it will follow is the same as shown in the table
above.
Correct Format for TIME
TIME is an optional specification for a recurrent variable: if you
include it, the calculation will be just for the time specified; if not, the
calculation will be for all instances of the recurrent variable in the
database. To specify time correctly, you must select it from the
Recurrent Time menu immediately after selecting a recurrent variable
R2003.4
Landmark
In this example, 256 is the time in days. If you use a time value that is
not in the Recurrent Time list, the Grid Calculator will attempt a linear
interpolation between the nearest two time values. Any time value you
enter will be ignored if the variable class is Initial, Calculated, UserInit, or User-Calc.
Correct Format for @CASE @DB Abbreviation
@CASE @DB is an optional specification for a variable. This is an
abbreviated symbol used to identify which case and database the
variable data is stored in. The abbreviation is assigned automatically by
the system when you open the database and can be accessed by
selecting it from the Case List menu. The item you select from this
menu will be automatically placed in the correct format in the field that
has the current text focus. For instance, if you select a database entry
such as the following:
D1/VIPtest/db1.vdb [db1]
Conditional Syntax
The expression entered in the Condition Phrase field will be used to
evaluate one or more conditions that may exist within each grid cell. If
the result is True, the calculation action in the Primary Action
Expression field will be performed. If the result is False, the calculation
action in the Alternate Expression field will be performed. Thus, if you
enter a value in the Condition Phrase field, you must have a
mathematical expression entered in both the Primary and Alternate
Expression fields. If you do not enter a Condition Phrase, only the
Primary Expression will be used for all calculations.
The Boolean expressions used in a conditional phrase must match the
symbols used on the keypad (see Table on page 14). For example, the
R2003.4
10
Landmark
In this case, both conditions on either side of the && must be satisfied
in order for the statement to be True. In other words, the initial gas
saturation in a grid cell must be greater than 0.2 and less than 0.7. You
can also construct OR statements using the || symbol, or combinations
of AND/OR, as needed. For example
(SG_I>0.2 && SG_I <0.7) || (SG_I>0.9 && SG_I < 1.0)
means that the condition will be satisfied (True) if initial gas saturation
lies between 0.2 and 0.7, or between 0.9 and 1.0.
When specifying a Primary or Alternate Expression, you can specify
that no action be taken by simply entering the variable name. For
instance, if the following expressions are used:
SG_I + 0.05(primary expression)
SG_I(alternate expression)
this would mean that 0.05 will be added to the initial gas saturation
value in cells where the condition is satisfied, but the saturation value
will remain unchanged in cells where the condition is not satisfied.
R2003.4
Constant in Time data has only one time value. Initial and
Calculated variables are Constant in Time, as is recurrent data at a
specified time. If all variables in an expression are Constant in
11
Landmark
Time, then the result is stored in the calculator as either User Init
or User-Calc properties. For example:
Init + Init
User_Init
Init + Calc
User_Init
Calc + Calc
User_Calc
Init + Recurr[Time]
User_Init
Recurr[Time] + Recurr[Time]
User_Init
Function of Time data has more than one time value. Recurrent
data without a time specification is Function of Time, since all
time values are included. If any variable in an expression is
Function of Time, the result is calculated for all times and stored
as a User Recurrent variable. For example:
Recurr + Recurr
User_Recurr
Recurr + Recurr[Time]
User_Recurr
Recurr + Init
User_Recurr
Recurr + Calc
User_Recurr
R2003.4
12
Landmark
Using GridCalc
Select the GridCalc option on the DESKTOP-VIP Output menu. The
GridCalc window opens. The Grid Calculator starts automatically and
appears on the screen as shown in the following illustration.
Menu bar
Property
selection
Tool bar
Variable Summation
selection
by time
Summation
by layer
Database file
currently active
New property
being calculated
Create temporary
variable or new
property
Button to open
condition (if/else)
fields
Button to start
Or store
property calculation temporary expression
(Permanent mode) (Temporary mode)
The various menus, buttons, and fields on the Grid Calculator interface
are summarized below.
R2003.4
and
13
Landmark
Target Study. The name of the database file currently open and
being used for calculation storage.
Key
Symbol
R2003.4
Description
sin
cos
tan
log
ln
exp
exp10
<
Less than.
<=
==
Equal to.
=>
>
Greater than
&&
AND
||
OR
Using GridCalc: Storage and Reuse of Calculated Results
14
Landmark
Key
Symbol
Description
!=
()
Term delimiters.
+-*/
., 0-9
Enter. This button starts the calculation. When you are creating a
temporary expression, this button dynamically updates to a Store
button.
R2003.4
15
Landmark
In some cases, you may want to open multiple databases if you want to
use input values from more than one simulation model. You will be
able to use the file(s) to provide input values into the calculation, as
well as to store the new property that results from the calculation. Use
the following procedure:
1.
Select the Open Study option on the File menu or click the
icon on the toolbar or the
beside the Target Study field. The
Open Study dialog box opens.
2.
Filter and select the database file (.vdb). Click the OK button to
load the database file.
3.
If the Study has multiple Cases, click the +/- button as shown
below to open the Case List and click on the Case to activate.
Click +/- to open/close Case list
Click case to activate
Current Study
R2003.4
16
Landmark
R2003.4
17
Landmark
In the New Property field, enter a name for the New Property that
will be created as a result of the calculation. The default name is
NEWPROP.
2.
3.
to build a
4.
R2003.4
18
Landmark
Make sure the database where you want to store the new property
is listed as the active study at the top of the window.
If not, click on the Case name in the Input Cases list to select the
associated Study as the current database. This option will clear all
the data entry fields on the calculator.
6.
When you are finished entering the expressions, click the Enter
button on the keypad to start the calculation.
The new property is calculated automatically and stored in the
Current Study File within the current case. It should now be
available on the property menus as a property available for input to
future calculations.
R2003.4
19
Landmark
Click the
icon on the toolbar or select the Property option on
the Data menu. The dialog box opens as shown below.
2.
3.
4.
5.
R2003.4
20
Landmark
Select Variable
Perform the following steps to select an existing variable.
1.
Click the
icon on the toolbar or select the Variable option on
the Data menu. The dialog box opens as shown below.
All variables that exist for the current Case are displayed in the
list.
2.
In the list, highlight the variable to select. Click the Insert button.
Edit
Perform the following steps to edit a variable.
1.
Click the
icon on the toolbar or select the Variable option on
the Data menu. The dialog box opens. All variables that exist for
the current Case are displayed in the list.
2.
In the list, highlight the variable to edit. Click the Edit button.
R2003.4
21
Landmark
Delete
Perform the following steps to delete a variable.
1.
Click the
icon on the toolbar or select the Variable option on
the Data menu. The dialog box opens. All variables that exist for
the current Case are displayed in the list.
2.
In the list, highlight the variable to delete. Click the Delete button.
R2003.4
22
Landmark
You can click the Temporary toggle and name SG_I > 0.2 as the
property SGMIN. With the Temporary toggle still active, you can name
SG_I <0.7 as property SGMAX. Then you can click the Permanent
toggle, and create the expression:
SGTOT > SGMIN < SGMAX
Both SGMIN and SGMAX will have been saved as temporary variables in
the format $UTSGMIN and $UTSGMAX. When you exit the GridCalc
application, the definition of SGTOT will be saved to the database. But
the intermediary definitions of SGMIN and SGMAX will not. In this way,
you can construct expressions with multiple properties without having
to add each component to the database.
Procedures
R2003.4
1.
2.
23
Landmark
Click on the variable and click the Delete button to delete it. Or
click the Insert button to open the variable for editing as shown
below.
R2003.4
24
Landmark
2.
Click the Term and Variable menus to select the Class and
associated property.
3.
R2003.4
To select
Shift/MB1
sequential list
Control/MB1
non-sequential list
25
Landmark
R2003.4
4.
Click the Add Term button. The expression you defined transfers
to the Summation Data field as shown below.
5.
6.
7.
8.
Click the Apply button to create the summation. Click the Close
button to close the dialog box.
26
Landmark
2.
Select the Save Expression option on the File menu. The Save
Expressions dialog box opens.
3.
Use the directory tree to filter to the directory in which to store the
expression. Then enter a name in the File Name entry field. The
default extension of .geq is automatically assigned. Click the OK
button on the Save Expressions dialog box.
The dialog box closes and the expression is saved in the directory/
filename you specified.
R2003.4
27
Landmark
R2003.4
28
Landmark
Index
C
calculating new properties
overview and examples 5
changing databases 16
conditional operations 7
conditional syntax 10
creating a conditional expression 18
creating a primary expression 18
creating a temporary variable 21
D
database
changing 16
opening 15
G
Grid 5
K
keypad 14
L
layer
summation by 23
O
opening a database file 15
overview 5
P
performing a calculation 18
S
storage and reuse of output results 11
summations 23
T
temporary variables 21
time
R2003.4
xxvii
Landmark
summation by 23
V
variable syntax 8
VIP 5
xxviii
R2003.4