PDF 4importing Exporting Linking
PDF 4importing Exporting Linking
Copyright Notice
This work contains the confidential and proprietary trade secrets of Schlumberger and may not be copied or stored in an
information retrieval system, transferred, used, distributed, translated or retransmitted in any form or by any means,
electronic or mechanical, in whole or in part, without the express written permission of the copyright owner.
Schlumberger, the Schlumberger logotype, and other words or symbols used to identify Schlumberger, the Schlumberger
logotype, and other words or symbols used to identify the products and services described herein are either trademarks,
trade names or service marks of Schlumberger and its licensors, or are the property of their respective owners. These
marks may not be copied, imitated or used, in whole or in part, without the express prior written permission of
Schlumberger. In addition, covers, page headers, custom graphics, icons, and other design elements may be service
marks, trademarks, and/or trade dress of Schlumberger, and may not be copied, imitated, or used, in whole or in part,
without the express prior written permission of Schlumberger. Other company, product, and service names are the
properties of their respective owners.
Security Notice
The software described herein is configured to operate with at least the minimum specifications set out by Schlumberger.
You are advised that such minimum specifications are merely recommendations and not intended to be limiting to
configurations that may be used to operate the software. Similarly, you are advised that the software should be operated
in a secure environment whether such software is operated across a network, on a single system and/or on a plurality of
systems. It is up to you to configure and maintain your networks and/or system(s) in a secure manner. If you have
further questions as to recommendations regarding recommended specifications or security, please feel free to contact
your local Schlumberger representative.
1 of 164
Importing, Exporting, and Linking
n Performing Sweep
Calculations:
Saving
streamlines, flood
lines, and pattern
boundaries
n Viewing and
Changing
Wellbore Diagram
Symbols
.bpf Batch Project File ASCII file used for scheduled batch updates n Exporting Project
of project data. This is an advanced feature. Text Load Files
n Copying Forecasts
in Cases
.bub Bubble Map A template file for bubble maps. n Importing and
Exporting
Analyses and
Nodes
.cnl Contour This contour file is similar to the .cnt file, n About Map
except that it contains the necessary Annotations
parameters for color, line type, width, and
other features.
.cnt CPS-3 Contour This file display contour data in black and n About Map
white, with solid contour lines and numbers. Annotations
.cs Color Scale A non-ASCII file that can: n Changing the
Colors on
n Set the appearance of the color scale
Analytical Maps
legend on a bubble, grid, or contour map
2 of 164
Importing, Exporting, and Linking
n Copying Forecasts
in Cases
.def Definition When loaded, this ASCII file creates the n Definition File
structure of one or more tables in the Guidelines
database.
n Exporting Project
OFM requires a project definition file when Table Definitions
you create a new project from ASCII files. At
n Exporting Project
any time, you can use a smaller definition
Text Load Files
file to add new tables to the project.
n Importing Data
into New or
Existing Projects
.dev Deviation Data ASCII file containing deviation data for n Deviation Data
loading to the OFM project. Guidelines
.dly Daily Data ASCII file containing date-dependent data n Daily Data
(such as daily tests) recorded daily. Guidelines
n Exporting Project
Table Data
.flt Fault Data ASCII file containing fault data. Fault data n Fault Data
includes information about the fault Guidelines
3 of 164
Importing, Exporting, and Linking
4 of 164
Importing, Exporting, and Linking
n Exporting Project
Table Data
.il Info Line Template file for customized information n Adding Custom
displayed on the Well Info pane. This may Information to
include: the Well Info Pane
n Ratios
5 of 164
Importing, Exporting, and Linking
n Exporting Project
Text Load Files
n Exporting Project
Table Data
.mdb Microsoft Access Database which holds some or all of your n Overview of
project data. Workspaces
.min Minute Data ASCII file containing date-dependent data n Exporting Project
recorded by the minute. Text Load Files
n Exporting Project
Table Data
.mrk Marker Data ASCII file containing marker data. n Marker Data
Guidelines
n Marker names are user-defined, depth-
dependent data that record a value at a n Importing Data
given depth, for each wellbore. Examples into New or
of this data are formation tops and fluid Existing Projects
levels. n Exporting Project
n You can use marker data to load Text Load Files
geological data. n Exporting Project
Table Data
You can export this file from an OFM project,
and import it into a project.
.mwl Multi-Well Log A template file for multi-well log displays. n Importing and
Exporting
Analyses and
Nodes
6 of 164
Importing, Exporting, and Linking
.ofm OFM Workspace A text file in XML format, which stores the n Overview of
attributes of all your analyses. This file Workspaces
contains no data; it only contains
information about how you want to view
the data.
.par Parser Data ASCII file containing user-defined, n Parser File
calculated variables that use equations to Guidelines
perform calculations on input variables or
n Exporting Project
other calculated variables.
Calculated
This file can be exported from, or imported Variables
into, an OFM project.
n Exporting Project
Text Load Files
n Importing Data
into New or
Existing Projects
.pat Pattern Data ASCII file containing waterflood pattern n Importing Data
configurations. into New or
Existing Projects
The data includes:
n Exporting Project
n Pattern set name
Table Data
n Pattern names
n Performing Sweep
n Wells belonging to each pattern Calculations:
Exporting
n Allocation factors
patterns
n Start dates, if applicable
n Pattern Tutorial:
This file can be exported from, or imported To Create
into, an OFM project. Patterns From an
ASCII File
.prd Monthly Production ASCII file typically containing date- n Importing Data
dependent monthly production data. into New or
Existing Projects
This is an optional file extension. The same
file could also have a file extension such as n Exporting Project
.dat or .txt as long as the *Tablename Text Load Files
keyword within the file identifies the correct
n Exporting Project
table.
Table Data
You can export this file from an OFM project,
and import it into a project.
.pvt PVT Data Non-ASCII file containing PVT correlation n Sharing PVT
data. Entities
7 of 164
Importing, Exporting, and Linking
.qry Query You can use this file when filtering with an n Filtering with an
OFM query. OFM Query
.rh Report Header A template file that describes the header for n Working with
reports. This may include: Report Headers
and Footers
n Text title
n Entity name
n Current date
n Calculated variables
n Exporting Project
Table Data
.set Scatter Plot Set ASCII file containing one or more sets of n Creating Scatter
completions and the characteristics for the Plot Sets
set.
n Outside of OFM
8 of 164
Importing, Exporting, and Linking
Analyses and
Nodes
.srt Sort Data ASCII file that defines: n Importing Data
into New or
n Entity-dependent data
Existing Projects
n Sort categories in OFM (such as the
operator, field name, and PVT region)
Wellbore Data:
9 of 164
Importing, Exporting, and Linking
n Perfs
You can export this file from an OFM project, n Exporting Project
and import it into a project. Text Load Files
.xsc Cross-Section Template file for a cross-section display. It is n Importing and
wellbore specific. That is, the template Exporting
includes the wellbore selection used to Analyses and
create it. Nodes
n Importing Data
into New or
Existing Projects
10 of 164
Importing, Exporting, and Linking
After you create a definition file and data files for your project, you can add new data to your project's
database:
n Data
OFM adds new data to the existing database and updates any data that has changed. OFM updates the
database based on date, name, and input variables.
Note: If you created the database in a version earlier than OFM 3.1 and used any template other than
Production Analyst, you cannot update the database using Petroleum Information/Dwights LLC data. You
must create a new database in a temporary directory using the updated data, and save the temporary load
files. Then, delete the new database and use the temporary load files to update the existing database. If
you plan to use Petroleum Information/Dwights LLC data to update a database, you can never delete a
field originally specified in the template.
The process is the same as for a new project, except the definition file is no longer needed and only ASCII
files containing the new or modified data are selected and loaded.
Note: To prevent overwriting or corrupting existing data, do not reload previously-loaded definition files.
Related Topics
About Linking to External Data
11 of 164
Importing, Exporting, and Linking
1. On the Setup tab, in the Import/Export group, select Import > Data Loader.
The OFM Data Loader window opens.
12 of 164
Importing, Exporting, and Linking
2. From the file list, select the files with the data you want to import into your project.
3. Click Add.
The file location displays in the Files to Load section. If the file has an extension that OFM
recognizes, the Data Type field automatically displays the type of data in the file you selected. If the
file has an extension that OFM does not recognize, the Data Type field displays DATA by default.
5. Click Load.
The OFM Data Loader window closes.
Using .Las Log Data: Loading the Log and Definition Files into the OFM Project
Related Topics
Overview of OFM Data
13 of 164
Importing, Exporting, and Linking
1. On the Setup tab, in the Import/Export group, select Import > PI/Dwights DMP2 Loader or
PI/Dwights 298 File Loader.
The PI/Dwights Production File Loader window opens.
3. On the Selecting well name convention panel, select the following and then click Next.
n We recommend selecting Prod ID (for DMP2 files) or PI/D Unique Identifier (for 298 files),
because you will have unique well names for all cases.
n To use a previously saved cross-reference file, select Cross-reference table and then click
Browse to select the .xrf file.
n OFM produces the temporary load files. Do not delete them if you want to see the contents of
the temporary load files, or if you will use them to create other projects.
n If you want to create a cross-reference table now, click Create X-ref. On the Save As window,
enter the name of your new cross-reference table and click Save.
5. On the Selecting sort categories panel, choose the fields you want to use as sort categories. If
you need to view more information about any of the sort categories listed, select the item or click
Details. When you have selected the sort categories, click Next.
6. On the Selecting well test data panel, select the test data you want to import. If you need to view
more information about any of the listed test data, select the item and click Details. When you have
selected the test data, click Next.
7. On the Selecting monthly data panel, select the monthly data you want to include. If you need to
view more information about the monthly data, click Details. When you have selected the test data,
click Finish to load the data.
Related Topics
Defining a Workspace from PI/Dwights Production Files
14 of 164
Importing, Exporting, and Linking
1. On the Setup tab, in the Import/Export group, select Import > FrontSim Patterns.
2. Select the FrontSim allocation (.txt) file and then click Open.
The Import Patterns From FrontSim window opens.
3. In the Import Which Bundles (Patterns) section, select Injector Centered, Producer
Centered, or Both.
FrontSim exports both Injector Centered and Producer Centered patterns to the allocation file.
5. In the OFM Pattern Settings section, enter the OFM pattern Set Name.
6. Enter the desired date in the Date of First Time Step field.
This date corresponds to the first time step found in the FrontSim file. Each following time step
causes the date to increase by the number of days read from the file.
7. FrontSim reports wells as sequential numbers. Click the FrontSim Wellname field and select the
OFM name.
This action associates this field with a field in the Master XY table. When loading, OFM will translate
the FrontSim well name (number) to an OFM unique well identifier using the associated field.
8. In the Injectant Loss field, enter the desired numeric value. This number is used to reduce the
total amount of injectant produced by the production wells in the pattern.
Note: Selecting the Display Import Status Messages check box causes import status messages to
appear on the status window. By default, OFM selects this check box.
9. Click Load.
15 of 164
Importing, Exporting, and Linking
1. With the base map displayed, on the Format tab, in the Edit group, click Symbols.
n To save: Click Save File, enter a name for your file, and then click Save.
n To load: Click Get File, select the symbol (.sym) file, and then click Open.
3. Click OK.
Related Topics
Guidelines for Loading Well Symbols
16 of 164
Importing, Exporting, and Linking
n Export project table data: The key (.xy) file, user-defined tables such as monthly production (.prd) or
pattern (.pat) files, and OFM-defined tables such as OFM_DATA_Marker
n Export project data and then automatically open the new project after it is created
n Export data to Eclipse or Petrel, such as production/injection data, deviation surveys, and well event
data
17 of 164
Importing, Exporting, and Linking
1. On the Setup tab, in the Import/Export group, select Export > Selected Text Load File(s) >
Calculated Variables.
The Export Calculated Variables window opens.
2. Click the browse (...) button to the right of the File field.
3. Enter a File name, select a location to store the saved file, and then click OK.
4. (Optional) If you have assigned user or class attributes to your calculated variables, you may filter
the exported variables by user and/or class. Select the User and Class from the lists.
5. Click OK.
OFM saves the calculated files in a parser (.par) file.
Related Topics
Parser File Guidelines
Related Keyword
*Parser (Parser) Keyword
18 of 164
Importing, Exporting, and Linking
1. On the Setup tab, in the Import/Export group, select Export > Selected Text Load File(s) >
Table Definitions.
2. Enter the table definitions File Name and select a location to store the definition (.def) file.
3. Click Save.
OFM saves the table definitions in a definition (.def) file.
Related Topics
About the Project Definition (project.def) File
19 of 164
Importing, Exporting, and Linking
1. On the Setup tab, in the Import/Export group, select Export > Selected Database Tables.
The Table Data window opens.
2. In the OFM Table(s) to Copy From section, select the tables you want to copy.
a. Click Select.
4. Click OK.
20 of 164
Importing, Exporting, and Linking
1. On the Setup tab, in the Import/Export group, select Export > All Text Load Files.
The Export Project Files window opens.
2. Enter a name for your project load files, and click Browse to select a new location.
3. To use the exported data to create a new project, select Use exported data to create a new
project.
4. Click OK.
OFM exports the data into text files in the folder you selected. If you selected Use exported data
to create a new project, OFM creates the new project and opens it.
21 of 164
Importing, Exporting, and Linking
1. On the Setup tab, in the Import/Export group, select Export > Selected Text Load File(s)
Table Data.
The Table to Export window opens.
2. Select the name of the table you want to export and click OK.
3. Enter the table name in the File Name field, select a location to store the file, and then click Save.
22 of 164
Importing, Exporting, and Linking
5. Click Next.
n (Optional) The Begin Stored Procedure field enables you to prepare the data.
n (Optional) The End Stored Procedure field enables you to decide what happens to the data
after it is exported.
6. Click Next.
7. To set up another table to export, click Yes and then repeat the steps above. To continue, click No.
9. Enter a name for the setup (.ini) file and then click Save.
23 of 164
Importing, Exporting, and Linking
1. On the Setup tab, in the Import/Export group, select Export > Selected Text Load File(s) >
To Petrel or Eclipse.
The Export to Petrel or Eclipse window opens.
a. To use the well alias for the well name, select Use Well Alias for Well Name.
b. Click Output File Prefix, enter a name for the export file, and then click Save.
A list of output file names display on the Setup tab. By default, OFM selects all the choices.
c. Select the items you want to export. You must clear either the monthly or the daily selections.
Note: OFM selects all the choices by default. Clear any you do not want to export. Do not select both
monthly and daily options. One option type overwrites the other because they are stored in the same file
(.vol).
a. On the X Loc and Y Loc fields, select the correct variables to associate with the X- and Y-axis.
b. In the Coordinate Units section, select a unit of measure or specify a different unit of measure
by selecting the Other radio button.
4. On the Monthly Production tab, select the correct variables to associate with producing Days, Oil
Volume, Gas Volume, and the Water Volume injection rate.
5. On the Monthly Injection tab, select the correct variables to associate with the Gas Injection
and Water Injection days and rate.
6. On the Daily Production tab, select the correct variables to associate with Hours On (producing
days), and for oil, gas, and water volume.
7. On the Daily Injection tab, select the correct variables to associate with Gas Injection and
Water Injection days and rate.
8. On the Events tab, select the correct variables to associate with the well date.
9. Click OK.
Related Topics
Exporting Wellbore Diagram Data to Petrel
24 of 164
Importing, Exporting, and Linking
Note: Not all well equipment that can be contained in an OFM workspace can be exported to Petrel. Export
is limited to well casing and tubing, packers, chokes, and inflow control devices. In addition, well equipment
contained in an OFM workspace may not conform to the Petrel well model. If this happens, when you
import the .tub file into Petrel then Petrel rejects the exported equipment that does not conform to the
Petrel well model.
n Casing definition:
n Tubing definition:
2. On the Setup tab, in the Import/Export group, click Export > Well Configurations to Petrel.
3. Enter a name for the tubing (.tub) file and then click Save.
To import the tubing (.tub) file into Petrel, view the Petrel online help and search for importing well tubing
data.
Related Topics
Overview of Wellbore Diagrams
25 of 164
Importing, Exporting, and Linking
26 of 164
Importing, Exporting, and Linking
n For tables in data sources: Add and remove tables, enable and disable them, and set attributes
such as table type and date ranges
n For the fields in tables: Add and remove fields; enable and disable them; and set attributes such
as math options, units of measurement, and how the data displays in plots and reports
n OFM Representation pane on the left lists all the enabled tables and fields.
n Tabs on the right provide information about the item you selected in the OFM Representation
pane. The tabs vary depending on your selection.
Note: The level you select in the tree on the OFM Representation pane controls the information that will
display on the right side of the Edit Schema Tables window.
The following table defines the icons, used in the OFM Representation pane, and the tabs that display
when you select different items.
Icons Actions You Can Take Tabs that Display Actions You Can Take
on the Pane When You Select the on the Tab
Icon
Workspace None Tables: Lists all tables None
(your tables and shared
This is the top level of
tables) in the project
your project.
My Workspace or Add a table Tables: Lists the tables Link to databases and
Shared Workspace in the your personal spreadsheets
workspace, or in the
This is the top level of the
shared workspace
workspace. Inside the
workspace are all the
enabled tables.
Home Data Source Change the home data Tables: Lists the tables Enable and disable tables
source in the database or
Each workspace can have
spreadsheet.
only one home source. Limit the number of
entities to display for a If you select the check
Database or
SQL query box, OFM automatically
Spreadsheet
loads the tables when you
Data sources for your open your project.
project, which are not the
27 of 164
Importing, Exporting, and Linking
Master Table Add a calculated field Master: Displays the n Change the table type,
table name, table keys, key type, and cross-
Every OFM project must and key delimiters reference key
have a master table. This
table stores static well n View keys and
information. delimiters
28 of 164
Importing, Exporting, and Linking
29 of 164
Importing, Exporting, and Linking
n Oracle® database
2. On the OFM Representation pane, right-click My Workspace and then click Add.
The Data Source window opens.
b. Click Browse in the File field and select the file you want to use.
b. Click Browse in the File field and select the file you want to use.
b. Click Yes.
The Data Link Properties window opens.
Note: If this data source requires a password, OFM does not store the password. You will enter the
password every time you access the data source.
30 of 164
Importing, Exporting, and Linking
b. Click Browse in the TNS field and select the TNS you want to use.
c. In the Log On section, select a method for authentication (gaining permission to access the
database).
4. Click Test Connection to make sure OFM can connect to the data source with the information you
entered.
b. Click Yes.
c. On the Table tab, in the OFM Definition group, select a table type (the type of data in the
table).
The Auto-associate Fields dialog lists the fields OFM identified as the key associations.
d. If the key associations are correct, click Yes. If they are not correct, click No and select a
different table type on the Table tab.
Related Topics
The Edit Schema Tables Window
Spreadsheet Guidelines
31 of 164
Importing, Exporting, and Linking
OFM evaluates all text between the OFM tags. The tags and expression will be replaced by the result, as
calculated by OFM. OFM expressions can be combined with static text.
Note: When you use this feature, include leading and trailing spaces as needed. These instructions are run
via a command line, and so you must use the proper syntax.
1. On the Analysis pane, right-click My Analysis and then select New > Linked Application.
The Link Application window opens.
2. On the Target field, enter a target or click Browse and then select the application or file associated
with the application.
3. (Optional) On the Arguments field, enter command-line arguments. These can include static text
and OFM expressions that can be evaluated at runtime.
4. Click OK.
OFM displays the link on the Analysis pane. By default, the name is Exe App.
a. On the Analysis pane, right-click the link and then click Rename.
Examples
n Linking to a search engine
In this example, the expression adds a link to do a search for the current lease. If the target is an
http address, then OFM removes all white space from the command and arguments.
Target: http://www.google.com
Argument: >/OFM<sc.lease>OFM<q=&/search?hl=en
32 of 164
Importing, Exporting, and Linking
In this example, the expression adds a link to open the current project database using Microsoft
Access. Double quotes are placed on either side of the OFM expression, since the return value of
@ProjectPath() may contains spaces in the path, which Access would misinterpret as multiple
command line arguments.
Argument: "<OFM>@ProjectPath()</OFM>"
n Linking to a spreadsheet
In this example, the expression adds a link to send your manager an email about the well you are
examining in OFM. If the target is mailto, then OFM removes all white space from the command
and arguments.
Target: mailto:[email protected]?subject=
Related Topics
Adding Comments and Viewing Properties for Analyses
33 of 164
Importing, Exporting, and Linking
Spreadsheet Guidelines
If you have issues linking to spreadsheets, it is usually because of spreadsheet formatting. Follow these
guidelines to make sure the link works correctly:
n Worksheet names: Name the worksheet with the name you want OFM to use for your table. The
worksheet name is the default name for the table in OFM.
n Row 1: Use the first row of the worksheet to name your columns. These will be the field names in
OFM.
n Do not use spaces in the column names. For example, if a column in your worksheet is for oil
volumes, name the column Oil_Volume.
n Do not put units of measurement in the column names. OFM does not interpret units of
measurement based on the name; units are determined within the workspace. For example, do
not name a column Oil_Volume_m3.
n Row 2: The cells in this row may have numbers or text. For columns that hold numbers, the cells in
Row 2 must have numeric data. For columns that hold text, the cells in Row 2 can be blank. If data is
missing in any numeric cell on this row, enter the OFM default null value in it. The default null value
is -99999.
n Empty rows: Do not have any empty rows. You can have cells with no data (in any row except Row
2), but you cannot have a row in which all rows are empty. OFM interprets an empty row as the end
of the data.
n Type of data in worksheets: Keep similar data on the same worksheet. Each worksheet in your
spreadsheet creates a separate table in OFM. You cannot merge worksheets. For example, if you
have data for two wells in two different worksheets, OFM will create two tables.
n Type of data in columns: Do not mix data types in a single column. Every column should have
one (and only one) type of data. For example do not have numbers, text, and dates or times in a
single column. Do not have "N/A" (text) in a column of numbers.
n Formatting, comments, and merged cells: Do not format any of your cells. Excel passes
formatting information to OFM as data.
34 of 164
Importing, Exporting, and Linking
Types of Data
In OFM projects, all data can be categorized into one of three categories. There are three types of data in
OFM projects:
n User-defined: With this data, you must set up a table in the definition file or through the Edit
Schema Tables window, with associated keyword variables, units, and attributes.
n OFM-defined: Data that do not require a table to be set up in the definition file, and are created by
OFM. To manage the OFM-defined tables, use the OFM Defined Table Manager.
n Reference: Data that OFM references. You do not load this data, but you can change it. For
example, reference data include units of measurement, equations for data conversion, and
multipliers.
These tables have the prefix OFM_Data_. OFM stores defined data in a definition file that associates
keynames, variables, and variable attributes to each table. You must define this data before loading it.
n Tables with an OFM_DATA_DCA_ prefix. These tables hold decline curve analysis data, which OFM
produces in the forecasts module.
n OFM_DATA_Deviation
n OFM_DATA_Fault
n OFM_DATA_Log
n OFM_DATA_Marker
n OFM_DATA_
n OFM_DATA_PATTERN
n Tables with an OFM_DATA_WBD prefix. These tables hold wellbore diagram data.
35 of 164
Importing, Exporting, and Linking
OFM-defined tables are tables starting with _OFM_DATA_. They consist of decline analysis, deviation, fault,
log, marker, pattern, PVT, and wellbore diagram tables. For these tables, you can switch between a Shared
Workspace and My Workspace.
n If you have a Shared Workspace, but you point to an OFM-defined table in My Workspace, then you
can read and write to the table. Use the Edit Schema Tables window to make changes to the OFM-
defined tables in My Workspace.
n If you have a standalone OFM project, you can make changes to your project's OFM-defined tables.
2. Select My Workspace or the Shared Workspace for each of the OFM-defined tables.
3. Click OK.
Related Topics
Overview of OFM Data
Overview of Workspaces
36 of 164
Importing, Exporting, and Linking
For this type of data... If you load it... Or you can create the data
when you are...
Deviation data n Use this file extension: .dev Working with Faults
Data on the depth and throw fault n Follow the guidelines for loading
attributes fault data
Marker data n Use this file extension: .mrk Working with Markers
Wellbore diagram data which list n Follow the guidelines for loading
equipment downhole, and events wellbore data
such as treatments
Forecast data n Use this file extension: .dca
Related Topics
37 of 164
Importing, Exporting, and Linking
38 of 164
Importing, Exporting, and Linking
a. The completions that display in the table you select will be the ones in the current filter. Filter to
the completions you want to see.
d. If the number of records in the table exceeds the limit you identified on the Edit Schema
Tables window, and you want to display all the records, select Edit all records.
e. Click OK.
f. If the number of records in the table exceeds the limit you defined, and you did not select the
Edit all records check box, a message displays. If you want the table to display all the records,
click No on the message. If you want the table to display select records, click Yes on the
message and then select the specific records.
2. To change data, click in the cell and then enter the new information.
a. On the Format tab, in the Display group, click Last Record to move to the last row.
4. The Unique ID is always the first column, but OFM hides it. To show it, hover your mouse over the
first column line in the header row (the line to the left of the name of the first column). When the
cursor changes to show two arrows, double-click.
b. Type the word you want to find and then click Find Next.
c. If you want to find each instance of that word with the Find window closed, close the window.
On the Format tab, in the Edit group, click Find Next.
b. Enter the word you want to find, and the word you want to replace it with, and then click
Replace or Replace All.
39 of 164
Importing, Exporting, and Linking
6. To navigate through the list, on the Format tab, in the Display group, click First Record,
Previous Record, Next Record, or Last Record.
b. On the Format tab, in the Display group, click Sort to sort alphabetically (A-Z).
8. To change the font and font size for all the text in the table, on the Format tab, in the Edit group,
click Font.
9. To make the display larger or smaller, on the Format tab, in the Zoom group, click Zoom In, Zoom
Out, or Zoom To Fit.
a. On the column header, drag the line that marks the column edge.
b. To change the column widths to the default sizes, on the Format tab, in the Display group,
click Default Column Widths.
12. You can save the table of data as a text (.txt) file. On the Format tab, in the Utilities group, click
Save As File.
b. Select the table you want to open and then click OK.
Creating Plots for Waterflooding: Adding Stock Tank Oil Initially in Place to the Workspace
40 of 164
Importing, Exporting, and Linking
Related Topics
Mapping Completions to PVT Entities
41 of 164
Importing, Exporting, and Linking
Cross-reference tables are similar to Lookup tables. OFM can access numeric or alpha contents of a multi-
column table if you define it as a cross-reference table. You can tie both cross-reference and lookup tables
to a variable other than the primary key. Cross-reference tables require two parameters; lookup tables
provide a value based on one parameter.
Use of Data
Use cross-reference data when you want a simple way to get back a numeric or string value for a
completion, wellbore, category value, or other key which OFM can create at runtime.
Example: You would like to assign some properties to leases. You can create a cross-reference table
named LEASEDATA that looks like this:
Within OFM, you could get back the size of the lease for a specified completion using this: @xrefalpha(
sc.lease, LEASEDATA.Size )
Tasks
You can perform the following tasks:
n Define the table names, variable names, and attributes of cross-reference data
@XrefValue (expression,XRefTable.keyword)
@XrefAlpha (expression,XRefTable.keyword)
Where:
n Expression is either numeric or alpha and is selected from the first column of the table.
n Keyword identifies the column that XRefValue (a numeric value) or XRefAlpha (an alpha string)
will reference in the same row of the table as the expression.
42 of 164
Importing, Exporting, and Linking
Guidelines
This is an example of an ASCII cross-reference data file that you could load into OFM:
pattern string 10
parea float
stooip double
Key Types
n Entity: Name of the entity, at any level
Reserved Keywords
*TableName: Required
43 of 164
Importing, Exporting, and Linking
Use of Data
Daily data tables contain data such as:
Tasks
You can perform the following tasks:
n Edit the data interactively or use an ASCII file to load the daily data.
n Define the table names, variable names, and attributes of daily data.
n OFM assumes a value of null for any date skipped in the data file. Use the data range keyword *DA to
specify a default value for skipped data. Use a sporadic table when many data values are missing.
Guidelines
n You define the table names and variables.
n Data is date-dependent. You can edit it interactively, and you can load it at the entity level.
n You can load pre-cumulative values or adjustments to cumulatives by using zeros for the day in the
date.
n You can use the *DA (Data Attributes) keyword to specify another default value for skipped data. By
default, OFM assumes a value of null for data on any date skipped in the data file.
Key Types
n Entity: Name of the entity
Reserved Keywords
n *Tablename: Required
n *Date: Required
44 of 164
Importing, Exporting, and Linking
n *KeyName: Required unless you specify the name of the entity key field, and you specify the entity
key name in every row of data supplied. This keyword requires a unique entity name followed by all
data associated with it.
n *Metric: Must appear above *Tablename to signal that the data is recorded in metric units
n *Null n: Where n is the null user-defined value, and where it appears before *Tablename. OFM
automatically interprets any non-alpha or numeric character as null (such as *, #, $).
n *Skip
45 of 164
Importing, Exporting, and Linking
Use of Data
OFM uses deviation data for calculating measured depth versus true vertical depth and for displaying wells
on maps at the surface, bottomhole, or at points along the deviation survey.
The data begins with the surface location at zero from the values loaded to the X- and Y- coordinates in the
Master static table.
Tasks
You can edit the data interactively or load the deviation data if it is in an ASCII file.
Guidelines
Deviation data is loaded to the wellbore level. The following is a portion of an example ASCII load file:
*TableName Dev
// ft ft None None
*KeyName "GREEN_14"
0. 0. 0. 0.
*KeyName "GREEN_17"
0. 0. 0. 0.
46 of 164
Importing, Exporting, and Linking
Key Types
n Entity: Name of the wellbore
Reserved Keywords
Keywords for deviation data are unique and must be used exactly as they appear. OFM recognizes absolute
deviation coordinates. For this type of file, replace *XDelt and *YDelt with *XCoord and *YCoord.
n *Depth: Required
n *KeyName: Required
n *Metric
n *KeyLength
Related Topics
Using Well Deviation Data
47 of 164
Importing, Exporting, and Linking
Use of Data
Use fault data files to load geological fault data, time-variant fault data, and multiple sets of fault data.
Tasks
You can edit the data interactively or use an ASCII file to load the fault data.
Guidelines
n A project can have a maximum of 30 fault names.
n When entering key names, use the entire key name including the completion identifier.
n *.Flt is the keyword in a batch data load file, and it is the recommended file extension.
*TableName Fault
*KeyName "BLUE_14"
*KeyName "BLUE_17"
Key Types
n Keyname: Name of the wellbore
Reserved Keywords
n *Keyname: Required; the name of the wellbore containing faults
48 of 164
Importing, Exporting, and Linking
n *Metric
49 of 164
Importing, Exporting, and Linking
Use of Data
The following are examples of values you can add to lookup tables:
n Compressibilities
n Date-dependent
n Depth-dependent
n Pressure profiles
n Viscosities
Tasks
You can perform the following tasks:
n Edit the data interactively or use an ASCII file to load the lookup data
Guidelines
This is a portion of an example lookup ASCII load file that would allow oil prices to be retrieved by date:
*TableName PRICES
*DATE *OIL
*Keyname BERRINGER
19500101 20.000000
19600101 25.000000
19700101 30.000000
19800101 35.000000
19900101 40.000000
19990101 50.000000
*Keyname TRAMMEL
50 of 164
Importing, Exporting, and Linking
19500101 20.500000
19550101 22.500000
19600101 25.500000
19700101 30.500000
19800101 35.500000
19900101 40.500000
19990101 45.500000
This is a portion of an example lookup ASCII load file that would allow a value to be retrieved based on
pressure:
*TABLENAME Value_data
*Pressure *P_value
*keyname BERRINGER
1000 200
2000 400
3000 600
4000 800
*keyname TRAMMEL
1000 500
2000 600
3000 700
Key Types
n Keyname: Name of the entity
Reserved Keywords
n *Tablename: Required
51 of 164
Importing, Exporting, and Linking
Use of Data
Create map annotations, well symbols, and the symbols on wellbore diagram sketches with ASCII
annotation files that have draw commands and modifiers.
Tasks
You can edit the data interactively or load an ASCII file with map annotation data.
Guidelines
If your base map appears with a concentration of data in two corners, it is because of well spots and map
annotation coordinates of different systems or an extreme range of differences between them.
Note: OFM can also display CPS contour files as map annotations.
The following table defines the draw commands used to create annotation data.
Places an invisible boundary around the points (x1,y1) and (x2,y2) to define the
initial display area for the base map.
Draws a line segment from the current position to the point (x1,y1).
L x1 y1 x2 y2 Line
Defines all lines after this command as n standard line-widths thick. This command
persists until the next Line Width command. The default is 1 standard line width.
52 of 164
Importing, Exporting, and Linking
LT n Line Type
Defines all the line styles that follow as the type represented by the code n, until the
next Line Type command. The available line types are:
n 1: Solid
n 2: Long dashed
n 3: Dotted
n 4: Dashed dotted
n 5: Medium dashed
Point
P x1 y1 Point
Defines all points that follow as the type represented by n until the next Point Type
command, where n=1 through 34.
PS Point Size
Defines all points that follow with the size defined by n until the next Point Size
command.
Shapes
B x1 y1 x2 y2 Box
Creates a box using point (x1,y1) as the lower-left corner and point (x2,y2) as the
upper-right corner.
ARC x1 y1 D S E Arc
Draws an arc or circle from the starting position (S) to the ending position (E) with a
radius (D), and the center at (x1,y1) where S and E are in degrees and D is in map
units.
Defines all polylines that follow as the polyline represented by the string, until the
next >MMCLVL string when it begins drawing a new polyline. Each line following the
string must be in the following format:
53 of 164
Importing, Exporting, and Linking
Fn Font
Selects a font type for text strings that follow. The available fonts are:
n 0: Standard (default)
Defines the font size in points. By default this is 6 point font size.
TH n Text Height
Assigns an angle (in degrees above or below a horizontal line) to the text strings that
follow. For example, 90 makes the text vertical.
Jn Text Justification
Justifies the text strings in relation to the set of coordinates in the Text String
command. The available values are:
n 0: Left
n 1: Center
n 2: Right
Color and Fill
Cn Color
Defines all line colors and text that follow as the color represented by the code
number n, until the next Color command. Colors available are:
n 0: White
n 1: Black
n 2: Red
n 3: Green
n 4: Blue
n 5: Yellow
n 6: Magenta
n 7: Cyan
OC n Outline Color
Defines all fill outline colors and text that follow as the color represented by the code
number n, until encountering another Outline Color command. Colors available are:
n 0: White
54 of 164
Importing, Exporting, and Linking
n 1: Black
n 2: Red
n 3: Green
n 4: Blue
n 5: Yellow
n 6: Magenta
n 7: Cyan
Li n Fill
Defines a solid fill for polygons that follow. Defines all fill patterns that follow as the
color represented by the code number n, until encountering another Fill command.
Patterns available are:
n 0: Hollow
n 1: Solid
n 2: Hatch
n 3: Pattern
Related Examples
Adding New Well Symbols
Related Topics
Adding Map Annotations by Importing a CPS File
55 of 164
Importing, Exporting, and Linking
Use of Data
Markers describe known geological features, such as formation tops. Once defined, you can show cross-
sections that align well logs to common markers. You can define intervals between a top and bottom
marker so that you can display lithological regions. You can create log reports to show average properties
between markers.
Tasks
You can edit the data interactively or use an ASCII file to load the marker data.
Guidelines
n The keyname must be matched to the wellbore name.
n *Depth is required.
Key Types
n Keyname: Name of the wellbore
Reserved Keywords
n *Depth: Required
n *KeyName: Required
n *Name: Required
n *Date
n *Picker
n *Metric
n *Null
56 of 164
Importing, Exporting, and Linking
Use of Data
Monthly data may consist of the following information:
n Pressure data
Tasks
You can perform the following tasks:
n Edit the data interactively or use an ASCII file to load the monthly data
n Specify when in the month OFM should plot and report data (such as at the beginning, middle, or end
of the month)
Guidelines
n The Date field is added automatically for monthly tables, and is not defined in the definition file.
n You can use the *DA (Data Attributes) keyword to specify another default value for skipped data. By
default, OFM assumes a value of null for data on any date skipped in the data file.
Key Types
n Entity: Name of the entity
n Date: A date describing the year and month for the data
Reserved Keywords
n *Tablename: Required
n *Date: Required
57 of 164
Importing, Exporting, and Linking
n *KeyName: Required unless you specify the name of the entity key field, and you specify the entity
key name in every row of data supplied. This keyword requires a unique entity name followed by all
data associated with it.
n *Metric: Must appear above *Tablename, to signal that the data is recorded in metric units.
n *Null n: Where n is the null user-defined value, and where it appears before *Tablename. OFM
automatically interprets any non-alpha or numeric character as null (such as *, #, $).
n *Skip
58 of 164
Importing, Exporting, and Linking
Use of Data
Pattern data consists of well names with allocation factors for assigning a fraction of either injected volume
to a group of producing wells or the other way around, which assigns a percentage of production to a group
of injectors. Many types of patterns exist for evaluation, such as:
n Injecting water to carry oil through the rock pore space or produce the combined oil and water out of
another well
n Steam injection to the center of a group of producers that produce the heated, less viscous oil from
the perimeter wells
A typical five-spot pattern consists of four injectors in a square around a single producer.
Tasks
You can edit the data interactively or use an ASCII file to load the pattern data.
Guidelines
n Predefined definitions of variables assigned to pattern data are *KeyName, *Factor, and *Loss. By
including *Date, you can specify changes in pattern allocation factors over time.
Note: Use the *loss keyword to adjust the produced fluids for any loss of injected volumes in the reservoir.
n You can specify four different sets of patterns for each database.
n OFM applies allocation factors to any input variable that has the "multiply by factor" math property
assigned.
Key Types
n PatternSet: Name of the pattern set, as a string
59 of 164
Importing, Exporting, and Linking
n Date: Date
Reserved Keywords
n *set: Required; pattern set name
n *loss: Used to adjust the produced fluids for any loss of injected volumes in the reservoir
Related Tutorials
Patterns: To Create Patterns Interactively
Related Topics
Performing Sweep Calculations
60 of 164
Importing, Exporting, and Linking
Use of Data
Sporadic tables could include the following information:
n Buildup data
n Drawdown data
Tasks
You can perform the following tasks:
n Edit the data interactively or load the sporadic data if it is in an ASCII file
Guidelines
n You must define primary and secondary (if used) keywords in the definition file.
n Usually, *Date is a primary keyword. A primary key is required and may be (for example) *Date or
*Depth.
n If a secondary keyword is necessary, include the *Dualkey keyword at the top of the sporadic data
file, below the table name and above both the primary and secondary keywords.
Key Types
n Entity: Name of the entity
Reserved Keywords
n *TableName: Required
n *KeyName: Required
61 of 164
Importing, Exporting, and Linking
n *Metric
n *Null
n *Skip
62 of 164
Importing, Exporting, and Linking
n Location
n Completion date
n Initial pressure
n Total depth
n Perforations
n Porosity
n Drilling cost
Use of Data
Use static data for:
n Porosity
n Water-saturation values
n X- and Y-coordinates
Tasks
You can perform the following tasks:
n Edit the data interactively or use an ASCII file to load the static data
Guidelines
n The first keyword of this table identifies the primary key used for the table.
n The words GROUP <category> must follow the table name in the definition file if static data applies
to a level other than completion. For example, a static table for wellbore-level data is defined like
this:
*TableName hello Static Group Wellbore
63 of 164
Importing, Exporting, and Linking
Key Types
n Entity: Name of the completion or foreign key
Reserved Keywords
n *Tablename: Required
n *Null
n *Metric
n *Skip
64 of 164
Importing, Exporting, and Linking
Use of Data
An example of trace data is information gathered from open-hole and cased-hole logging surveys.
Tasks
You can use an ASCII file to load trace data.
Caution: When you load .log files, OFM overwrites previously loaded files if they use the same well name
and trace name, even if the intervals or depth ranges are different.
n *KeyName is the identifier used to identify the wellbore containing the well logs.
n You should use scientific notation or standard numbers for all log values.
n You cannot interactively edit log data. You must change data by loading a new ASCII file.
Key Types
n Entity: Name of the entity
n Date: Date
Reserved Keywords
n *Tablename: Required
n *KeyName: Required
n *Depth: Required
n *Metric
65 of 164
Importing, Exporting, and Linking
n *Null
n *Date
n *Start
n *End
n *Inc
n *Skip
Related Examples
Using .Las Log Data
Related Topics
Overview of Well Log Displays
66 of 164
Importing, Exporting, and Linking
Tasks
You can load this data.
Guidelines
n The first column of data contains the "short name" for the well symbol.
n The second column contains the "long name" for the symbol.
n The third column specifies the number of the symbol annotation file used to draw the symbol.
Symbol annotation files are in the OFM Symbols directory.
*clear
CINJ Carbon_Dioxide_Injector 18 1
CO2PRD Carbon_Dioxide_Producer 19 1
SCYCL Cyclic_Steam 28 1
DISCV Discovery_Well 32 1
DRY Dry_Hole 2 1
GINJ Gas_Injector 73 2
GAS Gas_Producer 5 2
GEOTH Geothermal_Producer 30 1
*eof
Reserved Keywords
n *clear: Resets the current set of well symbols
Related Examples
67 of 164
Importing, Exporting, and Linking
68 of 164
Importing, Exporting, and Linking
Use of Data
OFM uses the data in:
n The well log display and log cross section modules: To present wellbore diagrams and cross sections,
and to indicate perforated intervals on log traces
Tasks
You can create wellbore diagrams in the Wellbore Diagram module, or use ASCII files to load them with the
Data Loader.
Key Types
n Wellbore
n Data
There are many keywords that describe wellbore information, tubular descriptions, equipment,
completions, and layout of the diagram.
69 of 164
Importing, Exporting, and Linking
Overview of Keywords
There are three categories of keywords in the OFM-defined data tables:
n General
n Time
n Wellbore
Many keywords are used in input files to control the import of data. Keywords apply to a single data file, and
forward from the point in the file where they appear. Keywords applicable to a table should appear after the
*Tablename keyword. In the context of reading ASCII files, OFM uses keywords to control input and define
the attributes of data and variables.
Time Keywords
OFM expects dates specified as yyyymmdd (for example, it expects 20101231 for December 31, 2010).
When data is used in another format, or split into two or more columns, the time keywords provide a
method to input dates.
As OFM has no special data type for time, a time value (such as 2100 for 9:00 PM) must be entered and
must be consistent with the data type specified in the definition file.
70 of 164
Importing, Exporting, and Linking
71 of 164
Importing, Exporting, and Linking
72 of 164
Importing, Exporting, and Linking
73 of 164
Importing, Exporting, and Linking
74 of 164
Importing, Exporting, and Linking
Related Topics
75 of 164
Importing, Exporting, and Linking
*Project c:\vers21\duson\data\duson.ofm
*Definition c:\vers21\duson\data\duson.def
*keydata c:\vers21\duson\data\duson0.xy
*data c:\vers21\duson\data\duson1.dat
*data c:\vers21\duson\data\duson2.dat
*sort c:\vers21\duson\data\duson3.srt
*parser c:\vers21\duson\data\duson3.par
76 of 164
Importing, Exporting, and Linking
*Date	*DAYS	*OIL	*GAS	*WATER	*PRESSURE	*STATUS&#
9;
*KeyName "BLUE_1:Ge_6"
Example
19991201 8 1440.000000 38.000000 44.000000 -99999.000000 ""
77 of 164
Importing, Exporting, and Linking
*DateLabel lapse
78 of 164
Importing, Exporting, and Linking
*KeyName B-2
*KeyName B-5
*KeyName B-14
Fault_B 5800 50
Related Examples
Displaying Formation or Reservoir Thickness and Structure: Getting Started
Related Topics
Guidelines for Loading Cross-Reference Data
79 of 164
Importing, Exporting, and Linking
*Tablename altday
*DualKey
*KeyName 42072313750000
19891231 12 37
80 of 164
Importing, Exporting, and Linking
*Tablename LOG
*Compress
*KeyName 0-31
*Start 5300
*End 5850
*Inc 1
Related Topics
Guidelines for Loading Trace Data
81 of 164
Importing, Exporting, and Linking
n It defines the end of the format block in data tables with a fixed
format.
n Variables within the format block begin with an asterisk (*) and
include the beginning and ending column definition number.
Syntax *Format
*End_Format
Example In this example, the well name will be within columns 1-20, the data
will be within columns 21-28, and the days will be within columns 29-
35 in the load file:
*Format
*Well 1 20
*Date 21 28
*Days 29 35
*End_Format
82 of 164
Importing, Exporting, and Linking
*TableName DAILYPROD
*KeyName "BLUE_1:He_0"
*eof
83 of 164
Importing, Exporting, and Linking
*Well *Factor
*Pattern 501
OFM_01 0.5
Related Topics
Guidelines for Loading Pattern Data
84 of 164
Importing, Exporting, and Linking
* End_Format
Example In this example, the well name will be within columns 1-20, date will
be within columns 21-28, and days will be within columns 29-35 in
the load file:
*Format
*Well 1 20
*Date 21 28
*Days 29 35
* End_Format
85 of 164
Importing, Exporting, and Linking
Depth Depth
100 100
101.3 100.5
101.9 101
101.4 101.5
Syntax *Inc numeric
Example In this example, OFM is instructed to round log depth values to the
nearest increment of 0.5:
*Inc 1
Related Topics
Guidelines for Loading Trace Data
86 of 164
Importing, Exporting, and Linking
*KeyLength 4
Related Topics
Guidelines for Loading Deviation Data
87 of 164
Importing, Exporting, and Linking
*KeyName SLB_1
and
*KeyName SLB_2
88 of 164
Importing, Exporting, and Linking
n Static
n Monthly
n Daily
n Sporadic
*Loadby *flowstation
*TableName MeasuredProduction
*KeyName FS-1
89 of 164
Importing, Exporting, and Linking
*Pattern 501
Related Topics
Guidelines for Loading Pattern Data
90 of 164
Importing, Exporting, and Linking
When grouping values for more than one well, the default is to sum
the values. Average_type allows you to specify an averaging method.
Note: When grouping values for more than one well, the default is to
sum values. By using this keyword, it is possible to specify an
averaging method instead.
Syntax *MA use_factor averaging_method
Where
use_factor is a Boolean:
0: No
1: Yes
(Use a pattern or other factor to apply to values as they are read from
the data source.)
averaging_method is:
0: None
1: Arithmetic
2: Geometric
3: Harmonic
Example In this example, when filtering by patterns, pressure is arithmetically
averaged rather than summed. Also, pattern allocation factors are not
applied.
91 of 164
Importing, Exporting, and Linking
Where
n Wellbore
n Alias
n Object Type
n X Coordinate
n Y Coordinate
n Reference Depth
n Completion Depth
n Bottom Depth
n Project
n PVT Name
n Well Label
Example In this example, seven associations are defined:
92 of 164
Importing, Exporting, and Linking
It is inserted on the second line of the .def file when your data is
measured in metric units. If your data is measured in English units,
then this keyword should not be inserted. It must appear before any
data in a non-defined data file or before *Tablename in a defined data
file.
93 of 164
Importing, Exporting, and Linking
Note: The multiplier can be any prefix assigned in the Multiplier table.
Syntax *MU inputunit outputunit
Example In this example, the input data for gas measurements are in MMscf,
and the output unit are MMMscf:
94 of 164
Importing, Exporting, and Linking
*Null 9999.25
95 of 164
Importing, Exporting, and Linking
Point size ranges from 1 to 20. You can mix names and code values in
the description of *PA. For example, both of the following are
equivalent:
n *PA 4 dotted 1 4
Or
96 of 164
Importing, Exporting, and Linking
*Project c:\vers21\duson\data\duson.ofm
*Definition c:\vers21\duson\data\duson.def
*keydata c:\vers21\duson\data\duson0.xy
*sort c:\vers21\duson\data\duson3.srt
*parser c:\vers21\duson\data\duson3.par
Related Topics
Exporting Project Calculated Variables
97 of 164
Importing, Exporting, and Linking
*set "inverted_five_spot"
*pattern 502
*date 199301
495:B 0.25 0
496:B 0.25 0
502WI:B 1 0
500:B 0.25 0
98 of 164
Importing, Exporting, and Linking
	OIL	Float
99 of 164
Importing, Exporting, and Linking
OIL Float
*rf 10 0 "Right"
*u "bbl/d" "m3/d"
*READOFF
GAS Double
*rf 10 0 "Right"
*u "cf/d" "scm/d"
*READON
WATER Float
*rf 10 0 "Right"
*u "bbl/d" "m3/d"
100 of 164
Importing, Exporting, and Linking
	OIL	Float
		*rf 10 0 "Right"
*READOFF
	GAS	Double
		*rf 10 0 "Right"
*READON
	WATER	Float
		*rf 10 0 "Right"
101 of 164
Importing, Exporting, and Linking
	OIL	Float
		*rf 10 0 "Right"
102 of 164
Importing, Exporting, and Linking
	OIL	Float
		*rf 10 0 "Right"
103 of 164
Importing, Exporting, and Linking
*label PATTERN
*set "inverted_five_spot"
*pattern 502
*date 199301
495:B 0.25 0
496:B 0.25 0
502WI:B 1 0
500:B 0.25 0
501:B 0.25 0
*pattern 503
*date 199301
496:B 0.25 0
104 of 164
Importing, Exporting, and Linking
105 of 164
Importing, Exporting, and Linking
*Tablename LOG
*Compress
*KeyName 0-31
*Start 5300
*End 5850
*Inc 1
106 of 164
Importing, Exporting, and Linking
*TableName OFM_DATA_LOG
*DEPTH *ILD
*SUBSEA
*KeyName "BLUE_1"
*DATE 19000101
5151.000000 0.426800
5152.000000 0.502400
5153.000000 0.611200
5154.000000 0.624200
5155.000000 0.599000
5156.000000 0.547900
5157.000000 0.510000
5158.000000 0.771400
5159.000000 1.381300
107 of 164
Importing, Exporting, and Linking
OIL Float
*rf 10 0 "Right"
*u "bbl/d" "m3/d"
Related Examples
Displaying Formation or Reservoir Thickness and Structure: Getting Started
108 of 164
Importing, Exporting, and Linking
*TableName Fault
*KeyName "BLUE_14"
109 of 164
Importing, Exporting, and Linking
DEPTH Float
*rf 10 1 "Right"
*pn "LOG.DEPTH"
ACOUSTIC Float
*rf 10 1 "Right"
*pn "LOG.ACOUSTIC"
110 of 164
Importing, Exporting, and Linking
*TableName Dev
*KeyName "GREEN_14"
0. 0. 0. 0.
111 of 164
Importing, Exporting, and Linking
*U (Units) Keyword
Description This keyword denotes the English and metric unit identifier for
a variable specification in a definition file.
Example In this example, the *u keyword denotes that the English units
for monthlygas.volume are bbl and the metric units are m3:
VOLUME Float
*rf 10 0 "Right"
*u "bbl" "m3"
112 of 164
Importing, Exporting, and Linking
*TableName Dev
*KeyName "GREEN_14"
0. 0. 0. 0.
113 of 164
Importing, Exporting, and Linking
*TableName Dev
*KeyName "GREEN_14"
0. 0. 0. 0.
114 of 164
Importing, Exporting, and Linking
115 of 164
Importing, Exporting, and Linking
*TableName MONTHLYPROD
*KeyName "BLUE_1:Ge_6"
116 of 164
Importing, Exporting, and Linking
*TableName MONTHLYPROD
*KeyName "BLUE_1:Ge_6"
117 of 164
Importing, Exporting, and Linking
*TableName MONTHLYPROD
*KeyName "BLUE_1:Ge_6"
118 of 164
Importing, Exporting, and Linking
*TableName MONTHLYPROD
*KeyName "BLUE_1:Ge_6"
119 of 164
Importing, Exporting, and Linking
*TableName MONTHLYPROD
*KeyName "BLUE_1:Ge_6"
120 of 164
Importing, Exporting, and Linking
*TableName MONTHLYPROD
*KeyName "BLUE_1:Ge_6"
121 of 164
Importing, Exporting, and Linking
*TableName MONTHLYPROD
*KeyName "BLUE_1:Ge_6"
122 of 164
Importing, Exporting, and Linking
*name BLUE_1:He_0
123 of 164
Importing, Exporting, and Linking
*name BLUE_1:He_0
124 of 164
Importing, Exporting, and Linking
*name BLUE_1:He_0
125 of 164
Importing, Exporting, and Linking
126 of 164
Importing, Exporting, and Linking
n Assigns attributes for displaying data (such as units, color of plot curves, and plot and report names)
n Defines how OFM should combine data in each column when grouping completions (sum or average)
n Identifies categories
Note: There are many different definition files (files with a .def extension) that install with OFM. This help
topic is about one specific definition file: the project definition file (project.def).
127 of 164
Importing, Exporting, and Linking
n File extension: The file extension must be .def for OFM to recognize the file as a definition file.
n Comments: Type // or /* before comments inside the file. OFM ignores comment lines that you
mark this way.
n Master table: Make sure the first table in the definition file is a static data table as well as the
master table.
n Make sure the master table has a unique entity identifier (a primary key).
n Make sure the unique identifier is the first variable in the master table, and that it has a string
data type.
n Table names
n Each table in your project must have a unique name. The *Tablename keyword sets the table
name and identifies the table type (such as monthly, daily, lookup, and so on).
n Make sure the data files you prepare for loading use the same table name and column names
you identify in the definition file.
n One table cannot have more than one column with the same name in it. You can use the same
name in a different table. For example, a table named MonthlyProd and a table named DailyProd
each can have a column named Oil.
n Column names can include uppercase and lowercase letters, numbers, and underscores. You
cannot have spaces in column names.
n Loading: You can create all project tables loading one large definition file, or you may split them
among several small definition files with different tables in each file. After loading the definition file,
use the Edit Schema Tables window to change the table structures interactively.
128 of 164
Importing, Exporting, and Linking
n Assigns attributes for displaying data (such as units, color of plot curves, and plot and report names)
129 of 164
Importing, Exporting, and Linking
n File extension: The file extension must be .par for OFM to recognize the file as a parser file.
n Comments: Type // or /* before comments inside the file. OFM ignores comment lines that you
mark this way.
n Calculated variable names: Names can include uppercase and lowercase letters, numbers,
underscores, and periods. You cannot have spaces in calculated variable names.
n You can create all project calculated variables by loading one larger parser file, or you may split
them among several small parser files with different calculated variables in each file. After
loading the parser file, you can make changes either interactively in the OFM workspace or by
changing and reloading the parser file.
n You can load parser files at any time during project creation, as long as you have loaded first the
project definition.
130 of 164
Importing, Exporting, and Linking
n Samples use one of the illustrative databases to show a specific feature or concept.
n Examples use more than one feature or type of analysis to show a potential workflow.
131 of 164
Importing, Exporting, and Linking
Tutorial: Patterns
You can configure waterflood patterns by assigning completions to a pattern and allocating production and
injection volumes from those completions. Typical pattern configurations look like these:
You must use your judgment and knowledge of the reservoir to assign a realistic fraction of each
completion's production or injection to the block of reservoir beneath the pattern. When you do this, you
can compare performance, surveillance, and the optimization of operations at the pattern level,
considering both injection and production.
n Create patterns interactively: Each pattern has several completions. In this section, you select the
completions for each pattern individually.
n Edit patterns: After you create patterns, you can change the pattern allocation factors or dates. In
this section, you edit the patterns that you created. There are two ways to change the pattern data.
You can change one pattern at a time, or you can change the pattern data with all sets and all
patterns visible.
n Confirm the pattern allocation factors: No single well should have allocation factors summing to
more than one. In this section, you create a report to confirm this.
n Choose variables affected by pattern allocation factors: In this section, you choose which variables
are affected by pattern allocation factors, and which are not. The factors should only affect volumes.
Pressures, depths, porosities, choke sizes, hours on production, or any other non-volume variable
should not be affected.
n View pattern results one at a time: In this section, you use patterns and see the effect of the pattern
allocation factors that you supplied. You can use patterns by filtering or by stepping though (on the
Navigation pane). You can see the results most easily in plots or reports. You will create a report
that shows the results of pattern allocation factors.
132 of 164
Importing, Exporting, and Linking
n Compare multiple patterns on a plot: In this section, you create a plot that compares multiple
patterns, applying pattern allocation factors.
n Create patterns from an ASCII file: If you have determined the allocation factors already and it is
available in a document or spreadsheet, you can reformat the data and load it into OFM. The pattern
data can be static or dynamic. For dynamic patterns, the allocation factors may change over time as
injectors are created and terminated. You can remove wells from a pattern as new patterns are
created. In this section, you add patterns to the project by loading a formatted data file. They will be
the same patterns that you created interactively.
Note: Before you start, you may want to print a large map of your area and manually draw the pattern
outlines on that map. This helps organize your work when you configure the patterns interactively in OFM.
2. On the base map, drag a frame around the pattern waterflood area in the north (marked with blue
symbols).
With this waterflood, you could create patterns with a regular layout or in an inverted layout. You
will set up regular patterns.
3. On the Property pane, under Well Name Properties, change the Well Name to Alias Name.
4. On the base map, press Ctrl and click wells 491, 492, 495, 498, and 502.
133 of 164
Importing, Exporting, and Linking
n The left pane lists patterns. OFM lists the pattern you created with a default name (P-0). The
date (1900-01-01) is the default starting date for the pattern.
n The Current Pattern Set field at the bottom of the window displays the current pattern
(inverted_five_spot). Because two pattern sets have already been configured for this project,
the pattern you created is in the current pattern. You will change the pattern in the next section
of the tutorial.
7. On the base map, press Ctrl and select another five wells to create another pattern.
Editing Patterns
After you create patterns, you can change the pattern allocation factors or dates. In this section, you edit
the patterns that you created. There are two ways to change the pattern data. You can change one
pattern at a time, or you can change the pattern data with all sets and all patterns visible.
1. First, view how you can change the pattern data, one pattern at a time:
2. Now you will change the pattern data with all sets and all patterns visible. On the Setup tab, in the
Tables group, click Data Grid.
The Select OFM Table to Edit window opens.
4. Scroll to the bottom of the table and find the records for the patterns you created. They are part of
the inverted_five_spot pattern set, and the pattern name is P-0 and P-1.
5. Highlight all records that are not the patterns you created. Ensure the entire rows are highlighted.
Press Delete.
Only the P-0 and P-1 patterns remain.
7. Change the PatternNames. A common naming convention is to name the pattern after the center
134 of 164
Importing, Exporting, and Linking
well. Name the first pattern you created (with the default name P-0) P-495.
n Date: This is the effective start date of the pattern allocation factors. This does not have to be
the first date of production or injection. The default date (January 1900) means the allocation
factors are in effect from the beginning of the waterflood, and usually can be left unchanged.
n Factor: This is the allocation factor the specific well's rates and volumes to the specific pattern.
For example, an allocation factor of 0.5 implies that 50% of its injection is supporting a different
pattern.
n Loss: This is the injectant loss factor. For example, a loss of 0.2 implies that 20% of water
injected is being lost to non-pay zones or outside the pattern area.
The effective factor is the Factor value minus the Loss value. So, instead of setting a Loss, you
can choose to set a lower Factor.
9. Since no single well should be allocated more than 100%, a simple way to set geometric allocation
factors is to sort the table by well. Double-click the Well column heading to sort the table.
n If the well only appears one time, leave the Factor value as 1.
n If the well appears two times, change the Factor value for each to 0.5.
n If the well appears three times, change the Factor value for each to 0.33
Make sure to click on a different record after making a change, to save the change.
2. In the Select box, enter the following: @PatCurSet( ), @PatWell( ), @PatName( ), @PatDate(
), @PatFact( ), @PatLoss( )
3. Click OK.
A report opens. It lists the pattern set name, well, pattern name, date, factor, and loss.
5. On the Property pane, under Columns, change the Break when this column changes field to
Yes.
135 of 164
Importing, Exporting, and Linking
7. On the Property pane, under Columns, change the Subtotal field to SUM.
8. On the report, check the sum values to make sure that none of them are larger than 1.00.
2. Make sure the OIL, GAS, and WATER variables in the PRD table are set for Multiply by Factor because
these store volumes.
a. On the left pane, expand the PRD table and then click the OIL variable.
3. Make sure the ACTIVE, DAYS, and PRESS variables in the PRD table are not set for Multiply by Factor:
a. On the left pane, in the PRD table, click the ACTIVE variable.
b. On the Math tab, in the Grouping Options section, make sure the Multiply by Factor check
box is clear.
d. On the Math tab, make sure the Multiply by Factor check box is clear.
4. On the left pane, expand the WIN table and make sure that the variables that store volumes are set
to Multiply by Factor. Make sure that all other variables are not set to Multiply by Factor.
5. Make sure that all numeric variables in the MASTER, PVT, and RESPROP tables are not set to
Multiply by Factor.
6. Click OK to save your changes and close the Edit Schema Tables window.
136 of 164
Importing, Exporting, and Linking
3. Click OK.
A report opens. An empty report opens with columns for the date and water injection.
4. On the Format tab, in the Edit group, click Date & Sort.
The Edit Report Attributes window opens.
c. Under Tutorial, select the check box to the left of the first pattern (this was the P-0 pattern,
which you may have renamed P-495).
c. On the Format tab, in the Zoom group, click Zoom Area and then drag across the map around
the pattern waterflood area in the north.
8. Step by patterns:
b. On the Navigation pane, on the field at the top, change the step to PATTERN: Tutorial.
137 of 164
Importing, Exporting, and Linking
2. Below the main area of the window, click the Add Multiple Curves button.
The Add Multiple Curves window opens.
*Label Pattern
*Set Tutorial
*Pattern "P-0"
*Date 19000101
*Pattern "P-1"
*Date 19000101
138 of 164
Importing, Exporting, and Linking
*Pattern "P-2"
*Date 19000101
n The sixth line ("491WI:B" 1.000000 0.000000) is the wellname, factor, and loss. To remove a
well from a pattern at a specific date, change either the pattern allocation factor to zero, or set
the loss factor to 1.0.
4. Save the file with a .pat file extension and then close the text editor.
5. In OFM, on the Setup tab, in the Import/Export group, click Import > Data Loader.
The OFM Data Loader opens.
6. In the upper section, double-click the pattern (.pat) file you created.
The Files to Load section lists the file.
7. Click Load.
A warning message confirms your choice.
139 of 164
Importing, Exporting, and Linking
n Get started, by making a copy of a sample .las file, setting Microsoft Excel to run macros, reviewing
the log data in the Demo database, and reviewing the log data you will import from the .las file.
n Create a log and a definition file with the LAS to OFM tool.
Getting Started
1. Make a copy of the sample .las file. It is in the OFM installation folder, at
...OfmPlus\Samples\Sample.las.
2. The Excel file that changes your .las file to a .log file uses a macro. You must have macros enabled in
Microsoft Excel:
a. In Excel, click the Office button in the upper-left corner and then click Excel Options.
c. In the Macro Settings section, select Enable all macros and then click OK.
a. Open the Demo workspace. It is in the OFM installation folder, at ...Sample Workspaces\Demo
Workspace\demo.ofm.
c. Click Logs.
d. Note that the Logs window lists 16 traces. The first one is Acoustic, and the last one is TPhi.
5. View the log data in the .las file that you will import into the OFM project:
~C
140 of 164
Importing, Exporting, and Linking
The log traces you will import into the OFM project are DT, RHOB, NPHI, RXO, ILM, CALI,
DRHO, EATT, TPL, PEF, and FPHI. The demo project already has SFLU, ILD, SP, and GR.
2. Click the Click to convert LAS log format (*.as) to OilField Manager log format (*.log)
button.
3. In the Input window, enter the version of Excel that you are using and then click OK.
5. In the Input window, enter the Wellbore ID you will use and then click OK: Red_9
You type y (yes) if the .las file has traces in it that are not currently defined in the project. When
you type y, the LAS to OFM tool creates a definition (.def) file based on the converted curves that
you load into the project.
141 of 164
Importing, Exporting, and Linking
Loading the Log and Definition Files into the OFM Project
1. Return to the Demo project in OFM. On the Setup tab, in the Import/Export group, click Import
> Data Loader.
2. Double-click the LAStoLOG.def and LAStoLOG.log files to move them to the Files to Load
section.
3. Click Load.
5. Click Logs.
6. Note that the Logs window now lists 27 traces. The imported traces are listed after TPhi. They start
with DT and end with FPHI.
2. On the Set Depth Range window, accept the default range. Click OK.
A blank log template for your single well log display opens.
The template has two tracks. A depth track (which shows the depth scale in the units of
measurement for the workspace) separates the two tracks. By default, each track can hold two
traces, which you add to the tracks. The trace name displays at the top of each track. To the left of
the trace name is the minimum trace value. To the right of the trace name is the maximum trace
value.
n Log: ILM
n Color: Green
n Log: RHOB
n Color: Red
142 of 164
Importing, Exporting, and Linking
2. You need a table and field to hold thickness data. Create the table:
c. Type Iso for the table name and then press Enter.
By default, OFM adds UniqueID and Date as the primary key fields, and the table is defined to
hold monthly data with a Completion key type.
e. OFM asks if you want to keep the Date field. Click No.
f. On the Fields tab, in the Add New Field field, enter Depth and then click Add.
g. In the Add New Field field, enter H and then click Add.
The Demo data source now has an Iso table. The primary key field is UniqueID. It has two other
fields: Depth and H.
143 of 164
Importing, Exporting, and Linking
a. Open Notepad.
*TableName Iso
*UniqueID *Depth *H
"Blue_12:Li_1C" 6647 0
"Blue_3:Li_1C" 6440 0
"Blue_7:Li_1C" 6440 10
"Green_15:Li_1C" 6500 0
"Green_3:Li_1C" 6500 0
"Green_5:Li_1C" 6441 40
"Orange_16:Li_1C" 6460 10
"Orange_24:Cl_3" 6470 20
"Purple_1:Cl_3" 6494 0
"Red_13:Cl_3" 6495 0
"Red_4:Cl_3" 64980 0
d. On the Setup tab, in the Import/Export group, click Import > Data Loader.
e. Double-click the Iso.dat file to move it to the Files to Load section, and then click Load.
3. On the list of Project variables, double-click Iso.H to move it to the Selected variables list.
4. Click Finish.
The contour map displays the thickness.
a. On the Properties pane, under Properties, in the GRID section make these selections:
Number of Neighbors: 2
b. On the Properties pane, under Properties, in the 2D section make these selections:
Show: Yes
Decimal Places: 0
144 of 164
Importing, Exporting, and Linking
c. On the Properties pane, under Grids and Limits, change Grid Type to None.
6. On the Analysis pane, right-click the contour map and then click Rename.
7. Type this for the new name and then press Enter: Net Sand Thickness - Contour Map
2. On the Properties pane, under Variable Properties, change Exclude out of range to Yes.
3. On the Properties pane, under Grids and Limits, change Grid Type to Frame.
145 of 164
Importing, Exporting, and Linking
4. On the Analysis pane, right-click the grid map and then click Rename.
5. Type this for the new name and then press Enter: Net Sand Thickness - Grid Map
2. On the Analysis pane, right-click the copy and then click Rename.
3. Type this for the new name and then press Enter: Pseudo Structure
4. With the Pseudo Structure map open, on the Format tab, in the Edit group, click Variables.
5. Remove the Iso.H variable from the Selected variables list, and double-click Iso.Depth to add it
to the Selected variables list.
6. Click Finish.
146 of 164
Importing, Exporting, and Linking
2. On the Format tab, in the Utilities group, click Save Analysis > Save As.
3. Change the Save as type to Annotation Files and then save the file with this name:
NetSandThickness.ano
6. Click Add.
The Data Loader opens.
7. Double-click the NetSandThickness.ano file to move it to the Files list, and then click Load.
147 of 164
Importing, Exporting, and Linking
2. Create a user function to calculate the pressure that corresponds to the P/Z line at any given time.
2. In this workspace pressure data is stored in the MonthlyProd table. The table has a field for pressure
data, but does not have data. Add pressure data:
148 of 164
Importing, Exporting, and Linking
2. In the top field, enter the name of your new user function: Pcalc
3. Click Add.
The Edit User Function window opens. The name of the user function displays in the text field at
the top of the window.
4. This user function will take one input, which is a parameter that represents a P/Z value. It also will
create five temporary variables for the calculation. So, the first lines are this:
Pcalc(PZ)
num Zold, Znew, Pnew, DeltaZ, loops;
5. You then set the initial values. The next two lines are:
DeltaZ=1;
Zold=1;
loops=0;
6. The calculation has a loop. On the next lines, set the exit criteria for the loop:
7. At the end of one loop pass, a variable increments by 1. The next lines are:
{
loops=loops+1;
d. These steps are repeated until the re-evaluated value of Z has not changed the value of Z by
more than 0.001. In other words, the function has converged, and it outputs its result, which is
the current value of P.
Pnew=PZ*Zold;
Znew=@PvtZ(Pnew);
DeltaZ = @abs(Zold-Znew);
149 of 164
Importing, Exporting, and Linking
Zold=Znew;
}
Pcalc= Pnew;
Pcalc(PZ)
DeltaZ=1;
Zold=1;
loops=0;
loops=loops+1;
Pnew=PZ*Zold;
Znew=@PVTZ(Pnew);
DeltaZ = @abs(Zold-Znew);
Zold=Znew;
Pcalc= Pnew;
The calculated variable will use the @Fit system function, which fits a polynomial of n order
through the data. When you use this system function, you identify:
n The X-axis parameter for the dataset being fitted (in this case, cv.cumgas)
n The Y-axis parameter for the dataset being fitted (in this case, cv.pz)
n A true/false condition that excludes a value if the condition is false (in this case, you exclude a
value if cv.pz is greater than 0)
n The X-axis parameter for the output fitted curve (in this case, cv.cumgas)
n An option (in this case, the order of the fitted polynomial, which is 1 linear)
150 of 164
Importing, Exporting, and Linking
3. Double-click the items in the System Functions and Project Variables lists to add this equation
to the text box at the top of the window: @Fit( Gas.cum, pz, pz>0, Gas.cum,"Deg 1 linear")
4. Click OK.
The new variable displays on the list of variables. By default, OFM names it NewItem.
5. Type this new name for the calculated variable and then press Enter: Fit.PZ
a. At the top of the window, click Define to hide the definition columns, and click Plot to show the
plot attribute columns.
b. On the row for the new Fit.PZ calculated variable, for Curve Name select Fit P/Z.
a. At the top of the window, click Plot to hide the plot attribute columns and click Report to show
the report columns.
a. At the top of the window, click Report to hide those columns and click Units to show the units
columns.
b. On the row for Fit.PZ, for Units select psig ==> bar.
c. You need to use this calculated variable in the next calculated variable you will create. It is not
available until you save your changes. Click OK to save your changes and close the Variable
Editor.
3. The calculated variable will use the user function you created with the Fit.Pz calculated variable you
created. Double-click the items in the User Functions and Project Variables lists to add this
equation to the text box at the top of the window: #PCalc(FIT.PZ)
4. Click OK.
151 of 164
Importing, Exporting, and Linking
5. Type this for the name of the calculated variable and then press Enter: Fit.Press_PZ
a. Click Define to hide the definition columns and click Plot to show the plot attribute columns.
3. You will create a plot with two graphs. In the Graph section, set the Number of Graphs to 2.
c. In the curve section, select the Fit.PZ variable, Current category, and BLUE_1:Ge_6 name.
e. For the second curve, select the PZ variable, Current category, and BLUE_1:Ge_6 name.
c. In the curve section, select the Fit.Press_PZ variable, the Current category, and the BLUE_
1:Ge_6 name.
e. For the second curve, select the Monthlyprod.Pressure variable, the Current category, and
the BLUE_1:Ge_6 name.
f. Click OK.
152 of 164
Importing, Exporting, and Linking
b. On the Properties pane, under Axis, change the Scale Type to Linear.
153 of 164
Importing, Exporting, and Linking
154 of 164
Importing, Exporting, and Linking
Related Examples
Calculating Pressure from P/Z and Production Data: Finding the P/Z Value
Creating a Water Breakthrough Diagnostic (Chan) Plot: Fitting the WOR Derivative
Fitting a Polynomial Curve Through Plot Data and Displaying Its Equation: Fitting a Polynomial Curve
155 of 164
Importing, Exporting, and Linking
156 of 164
Importing, Exporting, and Linking
@pvtBo(Prd.Pressure)
Related Tutorials
PVT: To Use PVT System Functions
157 of 164
Importing, Exporting, and Linking
@PvtBg(Prd.Pressure)
158 of 164
Importing, Exporting, and Linking
@pvtBw(Prd.Pressure)
159 of 164
Importing, Exporting, and Linking
@PvtRs (Prd.Pressure)
160 of 164
Importing, Exporting, and Linking
161 of 164
Importing, Exporting, and Linking
Example 2 In this example, the function returns the formation volume factor
(FVF) from the Fluid_Data table, for the Reservoir to which the
currently loaded completion belongs, at a pressure value provided by
Prd.Pressure, allowing linear interpolation at pressure values for which
the fluid data does not exist in the table. Note there is no time
dependency for the lookup table data in this example.
162 of 164