Professional Documents
Culture Documents
OFM 2007.2 Fundamentals
OFM 2007.2 Fundamentals
Fundamentals
Schlumberger Public
Workflow/Solutions Training
Copyright Notice
2008 Schlumberger. All rights reserved.
No part of this manual may be reproduced, stored in a retrieval system, or translated in
any form or by any means, electronic or mechanical, including photocopying and
recording, without the prior written permission of Schlumberger Information Solutions,
5599 San Felipe, Suite100, Houston, TX 77056-2722.
Disclaimer
Use of this product is governed by the License Agreement. Schlumberger makes no
warranties, express, implied, or statutory, with respect to the product described herein and
disclaims without limitation any warranties of merchantability or fitness for a particular
purpose. Schlumberger reserves the right to revise the information in this manual at any
time without notice.
Trademark Information
*Mark of Schlumberger. Certain other products and product names are trademarks or
registered trademarks of their respective companies or organizations.
Schlumberger Public
Table of Contents
About this Manual...................................................................................................1
Learning Objectives.............................................................................................................1
What You Will Need ............................................................................................................1
What to Expect ....................................................................................................................2
Course Conventions............................................................................................................2
Icons.....................................................................................................................................4
Module 1
OFM Basics.......................................................................................7
Learning Objectives.............................................................................................................7
Lesson 1
Schlumberger Public
Exercise 2
OFM Workspace............................................................................................14
Exercise 4
Exercise 5
Exercise 6
Exercise 7
Module 2
Project Creation..............................................................................35
Prerequisites......................................................................................................................35
Learning Objectives...........................................................................................................35
Lesson 3
Lesson 4
Lesson 5
Exercise 9
Exercise 10
Exercise 11
Exercise 12
Exercise 13
Exercise 14
Exercise 15
Exercise 16
Exercise 17
Exercise 18
Lesson 6
Exercise 19
Exercise 20
Exercise 21
Exercise 22
Module 3
Project Administration...................................................................99
Learning Objectives...........................................................................................................99
Lesson 7
Opening Panes..........................................................................................................99
Hiding/Showing Panes ............................................................................................100
Docking Panes/Disabling Auto Hide .......................................................................100
Floating/Docking Panes ..........................................................................................100
Positioning Panes ....................................................................................................100
Detaching Tabs from Panes....................................................................................101
Editing the Database ...............................................................................................101
Editing OFM Units....................................................................................................103
Multipliers .................................................................................................................104
PVT Data..................................................................................................................104
ii
Schlumberger Public
Exercise 8
Module 4
Prerequisites....................................................................................................................117
Learning Objectives.........................................................................................................117
Lesson 8
Exercise 23 ..............................................................................................................117
Exercise 24
Lesson 9
Exercise 25
Exercise 26
Exercise 27
Exercise 29
Exercise 30
Exercise 31
Exercise 33
Module 5
Filtering .........................................................................................145
Learning Objectives.........................................................................................................145
Lesson 10
Filter by Completion.................................................................................146
Exercise 34
Lesson 11
Exercise 35
Question ..........................................................................................................................152
Lesson 12
iii
Exercise 36
Filtering by Category........................................................................153
Question ..........................................................................................................................154
Lesson 13
Exercise 37
Lesson 14
Filtering by Match.............................................................................155
Exercise 38
Filtering by Query.............................................................................157
Exercise 39
Lesson 16
Exercise 40
Exercise 41
Flagging Items..................................................................................163
Exercise 42
Saving Filters....................................................................................165
Lesson 17
Project Filter.............................................................................................169
Exercise 43
Module 6
Learning Objectives.........................................................................................................177
Lesson 18
Types of Variables...................................................................................177
Lesson 19
Calculated Variables................................................................................178
Exercise 44
Exercise 45
Question...................................................................................................................183
Lesson 20
Calculated Variables................................................................................183
Exercise 46
Exercise 47
Exercise 48
Exercise 49
Exercise 50
Exercise 51
Exercise 52
Exercise 53
Question...................................................................................................................189
Exercise 54
Lesson 21
Exercise 55
iv
Schlumberger Public
Summary .........................................................................................................................173
Exercise 56
Module 7
Plotting ..........................................................................................201
Learning Objectives.........................................................................................................201
Lesson 22
Exercise 57
Exercise 58
Exercise 59
Exercise 60
Lesson 23
Charts.......................................................................................................215
Exercise 61
Lesson 24
Save a Plot...............................................................................................218
Exercise 62
Exercise 63
Lesson 25
Lesson 26
Plot Annotations.......................................................................................232
Exercise 67
Lesson 29
Exercise 66
Lesson 28
Exercise 65
Lesson 27
Schlumberger Public
Exercise 64
Module 8
Reporting ......................................................................................243
Prerequisites....................................................................................................................243
Learning Objectives.........................................................................................................243
Lesson 30
Rules ........................................................................................................................243
Lesson 31
Report Variables......................................................................................244
Exercise 68
Exercise 69
Lesson 32
Exercise 70
Question...................................................................................................................248
Exercise 71
Lesson 33
Sporadic Report.......................................................................................249
Exercise 72
Lesson 34
Exercise 73
Lesson 35
Exercise 76
Module 9
Exporting.......................................................................................273
Learning Objectives.........................................................................................................273
Lesson 36
Exercise 77
Lesson 37
Lesson 38
Module 10
Learning Objectives.........................................................................................................283
Lesson 39
Project Settings........................................................................................283
Preferences..............................................................................................................283
vi
Schlumberger Public
Exercise 75
Group .......................................................................................................................284
DCA..........................................................................................................................284
Units .........................................................................................................................285
Exercise 78
Date Display.............................................................................................................287
Multiply By Factor ....................................................................................................287
Lesson 40
Data Normalization..................................................................................288
Exercise 79
Lesson 41
Data Register...........................................................................................291
Schlumberger Public
vii
Schlumberger
Schlumberger Public
Learning Objectives
At the completion of this training, you will be able to:
Training datasets
Schlumberger
What to Expect
In each module within this training material, you will encounter the
following:
Learning objectives
A workflow component
Scenario-based exercises
Course Conventions
The instructions for the procedures and exercises in this manual
are written using the following conventions.
Schlumberger Public
Schlumberger
toolbar button.
Schlumberger Public
Schlumberger
Icons
Throughout this manual, you will find icons in the margin
representing various kinds of information. These icons serve as ata-glance reminders of their associated text. See below for
descriptions of what each icon means.
Notes
Best Practices
Warnings
Questions
Lessons
Procedures
Exercise
Review Questions
Prerequisites
Learning Objectives
Schlumberger Public
Tips
Schlumberger
NOTES
Schlumberger Public
Schlumberger
NOTES
Schlumberger Public
Schlumberger
Module 1
OFM Basics
OFM Basics
Learning Objectives
At the completion of this module, you will be able to:
Lesson 1
OFM Database
Data Table
Schlumberger
OFM Basics
Schlumberger Public
A standard data table is any table that does not have the
OFM_DATA_ prefix. The table must have a primary key and may
contain constraint and indexing information. Each field in the table
will have designated data types, i.e., date/time, number, or text
and size, i.e., long integer, double precision for number field, or 20
spaces wide for text field. Assigning the correct data types and
sizes will insure no unexpected loss of data from truncation or
rounding at load time. For example, a table to store timeindependent data is shown in the following image.
Schlumberger
OFM Basics
In the image below, the HEADERID table is the master table for
the OFM project, as indicated by the key icon to the left of the
table name.
There are many fields in this table that are number (numeric)
fields. For example, if you select the XCOOR field from the list,
you would see the following:
Schlumberger Public
OFM Basics
Schlumberger
In the following image other field types can be seen in the
HEADERID table. For example, the YCOOR field is of type
Double, UPPERPERF is of field type Single, and
COMPLETIONDATE is of field type Date/Time.
10
Schlumberger Public
Schlumberger
OFM Basics
Schlumberger Public
11
Schlumberger
OFM Basics
Exercise 1
NOTE: There is a special
type of data table named
*_Adjustments in the Access
database. These tables
store prior cumulative
production for the respective
date-dependent tables. For
example, open the
Demo2007.mdb database
with Access, the
MONTHLYPROD table will
have an adjustments table
named
MONTHLYPROD_Adjustm
ents. The instructor will
explain why this special table
type may be needed.
The instructor will explain why the CHOKE table is a special type
of table in OFM.
12
Schlumberger Public
The data tables store data that have got loaded into the project.
Please take a look at a few data tables to experiment.
Schlumberger
OFM Basics
Exercise 2
13
Schlumberger Public
Schlumberger
OFM Basics
Lesson 2
OFM Workspace
The following eight system tables were removed from the Access
database:
NOTE: There are three
types of OFM-defined tables
which have the prefixes
_OFM_SYS_, OFM_DATA_
and OFM_DATA_DCA_.
_OFM_SYS_Configuration
_OFM_SYS_DateRange
_OFM_SYS_FieldProp
_OFM_SYS_Multipliers
_OFM_SYS_Parser
_OFM_SYS_TableInfo
_OFM_SYS_TableMap
_OFM_SYS_Units.
14
Schlumberger Public
The first step taken was to extract all the information stored in the
_OFM_SYS_Configuration table and put it in a HTML file with
the suffix *.OFM. When any version of OFM 2007 is used to open
a *.mdb project created with OFM 2004 or earlier, a XML file with
the suffix *.OFM is created and the information from all eight
tables with the prefix _OFM_SYS_ is written to this file not just the
_OFM_SYS_Configuration table. This *.OFM file is referred to as
the OFM workspace file. The _OFM_SYS_Configuration table is
not deleted from the Access database and can be used to restore
the *.OFM workspace file to the configuration it had when the
project was converted if the *.OFM workspace file should ever
become corrupt, however, any changes to the project
configuration that occur after the project is converted are stored
only to the *.OFM workspace file; the _OFM_SYS_Configuration
table becomes obsolete.
Schlumberger
OFM Basics
Schlumberger Public
15
Schlumberger
OFM Basics
16
Schlumberger Public
Schlumberger
OFM Basics
Schlumberger Public
17
OFM Basics
Schlumberger
6. Click OK. The Edit Schema Tables window displays.
Schlumberger Public
18
Schlumberger
OFM Basics
8. Select Delete.
12. Select Analysis > Bubble Map. The Open Bubble Map
window displays. Create a bubble map and from the Analysis
pane rename the bubble map Shared_Bubble_Map.
Schlumberger Public
11. Click Select All to map all the tables to the project using the
same workflow as in OFM 2004 or OFM 2005. The Shared
Workspace.mdb database and Shared Workspace.OFM
workspace file represent a workspace that is to be shared by
multiple users. The users would access the Shared
Workspace using the Link to a Shared Workspace File
functionality. This functionality will be illustrated next but first
lets add some output to the Shared Workspace.OFM
workspace file making note that everything created or
currently referenced in this workspace uses the word My, as
can be seen in the Analysis pane where the folder is named
My Analysis.
13. Select Analysis > Report. The Edit Report window displays.
Create a report and from the Analysis pane rename the report
Shared_Report.
14. Select Database > Calculated Variables. The Calculated
Variables window displays. Create a calculated variable name
Shared_CV.
19
Schlumberger
OFM Basics
20
Schlumberger Public
Schlumberger
OFM Basics
Schlumberger Public
21
Schlumberger
OFM Basics
15. Click OK. Enter My_CV as the name for the new calculated
variable. The variable is listed below the My Calculated
Variables folder.
22
Schlumberger Public
Schlumberger
OFM Basics
23
Schlumberger
OFM Basics
box next to the one that you wish to make the current active
Shared Workspace and click OK.
Schlumberger Public
IMPORTANT: OFM is
about to perform the linking
process. Any Table,
Calculated Variable,
Category, Unit or Multiplier in
YOUR My Workspace that
has the same name as one
in the Shared Workspace will
be considered to be a
duplicate and will be
removed from My
Workspace. You should
consider this before
performing the link process.
If you suspect that any such
element (e.g., a personal
calculated variable) may
suffer from this duplication
removal, rename it before
you start the link process to
ensure that your calculated
variable survives.
24
Schlumberger
OFM Basics
2. Click the browse button to the right of the Workspace File list
field.
3. The Open window displays.
Schlumberger Public
4.
Type Snapshot in the File name list field and click Open.
25
Schlumberger
OFM Basics
26
Schlumberger Public
Schlumberger
OFM Basics
Schlumberger Public
27
OFM Basics
Schlumberger
The data and information will be the same as the original
Shared Workspace.OFM file up until the date the snapshot
was taken.
Schlumberger Public
28
Schlumberger
OFM Basics
Schlumberger Public
29
Schlumberger
OFM Basics
Exercise 3
Exercise 4
30
Schlumberger Public
2. Select the name of the file you wish to load and click Open.
The basemap loads in the OFM main window.
Schlumberger
Exercise 5
OFM Basics
In this exercise you will modify the well symbol size. Change the
well symbol size to 1.5.
1. Select Edit > Map >Symbols. The Well Symbols dialog
displays.
Schlumberger Public
Click OK.
31
Schlumberger
OFM Basics
Exercise 6
NOTE: Notice that the
basemap header, well
symbols, and the plot
template are on the
workspace level,
independent of the
database. This is the
advantage of having created
a workspace that pulls data
from various identically
designed databases.
Exercise 7
Schlumberger Public
Review Questions
What are the names of the data tables used in OFM and what
is the purpose of each one?
Summary
In this module, you:
32
Familiarized yourself with the OFM database and OFMdefined data tables
Schlumberger
OFM Basics
In the next module, you will learn how to create and associate
data with OFM projects.
Schlumberger Public
33
Schlumberger
OFM Basics
NOTES
Schlumberger Public
34
Schlumberger
Project Creation
Module 2
Project Creation
In this module, we will cover the most common ways to create and
get data into an OFM project. The structure of the project should
be carefully designed before actually launching the first creation
step.
Data cannot be lost or changed by specifying incorrect tables. If a
project table does not match the data source the data will simply
not load or will not be viewable but nothing will happen to the data.
Prerequisites
Before getting to the actual data populating exercises, it would be
useful to understand the OFM data table types and specifications.
Learning Objectives
In this module you will learn to:
Analyze table types
Lesson 3
Schlumberger Public
35
Schlumberger
Project Creation
Key Types
Key Data
Types
Entity
Entity
DAILY
Entity
Date
Date
Entity
Date
Date
Entity
Prm. Key
Num/Date
Entity
Prm. Key
Sec. Key
Num/Date
Num
Entity
Name
Date
Text
Date
Entity
Name
Text
HOUR
MINUTE
SECOND
SPORADIC
SPORADIC
DUALKEY
LOG
MARKER
Comments
MUST also
be of
STATIC
type. The
master
(entity) key
(also called
completion)
is preferably
Text (String)
The key
could be
either
completion
or foreign
key
At most 1
record per
day per
entity.
At most 1
record per
month per
entity (day
value is not
considered)
At most 1
record per
day per
entity
Intra-day
records per
entity are
allowed
Entity key
MUST be
Wellbore.
Name key
is the trace
name.
Entity key
MUST be
Wellbore.
Name key
is the
marker
name.
Schlumberger Public
STATIC
MONTHLY
36
Number of
Keys
1Completion
Schlumberger
Table Type
FAULT
DEVIATION
Project Creation
Number of
Keys
2
PATTERN
LOOKUP
Key Types
Entity
Name
Text
Entity
Depth
Num
PatternSet
PatternName
Date
Entity
Entity
Prm. Key
Entity
MARKER
Entity
Name
Comments
Entity key
MUST be
Wellbore.
Name key
is the fault
name.
Entity key
MUST be
Wellbore.
Text
Text
Date
Completion
Num
Text
The entity
key could
be of any
level. Fields
in lookup
table MUST
all be
numeric.
The entity
key could
be of any
level.
Entity key
MUST be
Wellbore.
Name key
is the
marker
name.
Schlumberger Public
XREF
(cross
reference)
Lesson 4
Key Data
Types
Project Creation
Using a template
In the next section you will define/create a project using ASCII Flat
Files, PI/Dwights DMP2 Production files, an Access database, and
Linked Tables.
OilField Manager 2007 Fundamentals
37
Schlumberger
Project Creation
Lesson 5
In this section, you will learn the formats of OFM loadable ASCII
Flat Files for various table types. You will then create a new OFM
project from the text files (provided in the installed program
directory).
You MUST load the definition file and the (master) key data file (in
that order) first. Most of the ASCII data files do not have to be
loaded into your OFM project in order. Load the table definition file
(for one or many tables) before loading the data files for those
tables. If you choose to create the tables interactively (without
using the definition files), they MUST exist before the data files
can be loaded.
This is also true if you want to load data into a group table
(different entity key than the key in the master table), as you must
define that group entity before OFM can load the data. For
example, if you want to load production data at the reservoir level
into a table called RES_PROD, the reservoir entity has to be
associated (as a sort category, a foreign key, a wellbore, etc.)
before load time. The table definition for that table also has to be
created beforehand.
38
Schlumberger Public
OFM automatically recognizes the table types if the text load files
have some specific extensions. If the data files dont have the
commonly used extensions that OFM expects, they will be treated
as typical data files, and will be parsed into the specified tables.
Here are some commonly used file extensions:
Schlumberger
Project Creation
We have constantly used the terms definition file and data file. Not
all the tables in OFM require table definitions before load time.
These are tables that do not require table definitions before load
time:
Deviation table
Fault table
Pattern table
Parser table*
Schlumberger Public
OFM does expect the text files to follow certain file formats so that
it can read and write the data to the database correctly. The files
have to contain keywords to designate/separate all information
stored in the files. A comprehensive list of all keywords can be
searched from the on-line help file provided with the application.
In this procedure, you will study the characteristics of some
important table definition and data files in the Demo (usually
located in the \\\Sample Databases\Demo Database\Text Load
Files\ directory, where \\\ denotes your installed OFM program
directory).
1. Launch a text editor such as Notepad or WordPad. (If you
have already associated the application with the file extension,
you can open the file directly from Windows Explorer).
2. Select File > Open.
3. The Open Window displays, select All Files or All
Documents from the Files of Type drop-down list.
4. Locate the \Sample Databases\Demo Database\Text Load
Files\ from your program directory.
5. Select Demo Definitions File.def.
39
Schlumberger
Project Creation
Schlumberger Public
Notes:
40
Schlumberger
The static master table must be the very first table defined
in the primary definition file (there may be many multiple
definition files).
Project Creation
Schlumberger Public
41
Schlumberger
Project Creation
*KeyLength
*KeyLimit
*KeyName
*Metric
*MM
*MMYYDD
*Month
*Null
*Quiet
*ReadOn
*ReadOff
*Skip
*TableName
*TVD
*XDelt
*YDelt
*Year
*YYMM
*YYMMDD
Schlumberger Public
Schlumberger
Project Creation
Static Data
To begin analyzing static data follow the instructions below.
1. Launch any text editor.
2. From the File menu select Open and navigate to the Demo
Key Data.XY file located in the Text Load Files directory.
Schlumberger Public
Study the file (please scroll to the right to see all field data).
The variable identifiers exist before the data section, right
below the *tablename line. OFM parses data into the
corresponding fields, based on the order they appear on that
variable identifier's line.
Monthly Data
To begin analyzing monthly data, follow the instructions below.
1. From the open text editor select Open.
2. Navigate to the Demo Monthly Prod Data.prd file.
43
Schlumberger
Project Creation
Notice the *KeyName line. This tells OFM which entity the
next data section will be loaded into (until the next instance of
*KeyName).
3. Scroll down to see the rest of the file.
Daily Data
To begin analyzing daily data follow the instructions below.
1. From the open text editor select Open.
2. Navigate to the Demo Daily Prod.dly file and view the data.
44
Schlumberger Public
Hourly Data
Schlumberger
Project Creation
Sporadic Data
1. From the open text editor select Open.
Schlumberger Public
2. Navigate to the Demo Sporadic Test Data.tst file and view the
data.
45
Schlumberger
Project Creation
Exercise 8
In this section, you will learn to create a new project with text files
provided in the Demo Text \Load Files directory.
1. Start OFM.
46
Schlumberger Public
There are additional text load files provided with the Demo project.
With the help of the instructor, you are encouraged to become
familiar with those files, especially the typical format of each
file/table.
Schlumberger
Project Creation
47
Schlumberger
Project Creation
48
Schlumberger Public
Schlumberger
Project Creation
9. Add the following files to the Files to Load field, in this order,
by either double-clicking the file, or highlight and click Add.
49
Schlumberger
Project Creation
10. Leave all other choices unchanged and click Load to display
the basemap.
NOTE: If errors are
encountered during loading,
OFM displays a red error
icon on the status bar (i.e.,
bottom right corner). Click on
it, and the error(s) display.
Use the right-mouse menu
to select and copy the error
messages to a text editor to
view/save.
There are two types of batch data loading in OFM. One is used for
loading multiple files to create a project, the other loading multiple
files to create multiple projects. The former batch file should have
the *.bdl (e.g., Batch Data Loading) extension, and the latter
should have the *.bpf (e.g., Batch Project File). This exercise
demonstrates how to use the first feature.
1. Open the *.bdl (for example, Batch Data Load File.bdl) in a
text editor.
2. If needed, edit to verify the path/directory of the text files is
correct. In this case, it would be \\\\Text Load File\ and
then the full file.
3. Verify that the definition and key data files are the first two files
in the list.
50
Schlumberger Public
Exercise 9
Schlumberger
Project Creation
51
Schlumberger
Project Creation
Schlumberger Public
52
Schlumberger
Project Creation
Schlumberger Public
8. Select the wells you want to load into the OFM project. You
can choose to load all wells to the database and click Next.
NOTE: It is recommended
that you do not make
changes (unless you know
exactly the data) to
guarantee the database
integrity. In this step, you can
specify the fields to be used
as Sort Categories.
53
Schlumberger
Project Creation
54
Schlumberger Public
Schlumberger
Project Creation
Schlumberger Public
- 1 44 .0
- 1 36 .0
- 12 8.0
- 12 0.0
- 11 2.0
6 7.5
67 .5
OIL
GA S
6 0.0
60 .0
5 2.5
52 .5
4 5.0
45 .0
3 7.5
37 .5
3 0.0
- 1 52 .0
30 .0
- 1 44 .0
- 1 36 .0
- 12 8.0
- 12 0.0
- 11 2.0
55
Schlumberger
Project Creation
1. Start OFM.
2. From the File menu, select New Workspace. The New
Workspace window displays.
56
Schlumberger Public
Schlumberger
Project Creation
3. Click the browse button to the right of the Workspace File text
box and select the directory where you want your workspace
file to be located. Enter a workspace name, i.e., demo_native,
and click OK.
Schlumberger Public
57
Project Creation
Schlumberger
6. Click OK. The Select Access Database dialog closes and
you are returned to the New OFM Workspace dialog.
58
Schlumberger Public
Schlumberger
Project Creation
59
Project Creation
Schlumberger
2. Select Database > Schema Tables. The Edit Schema
Tables window displays, with all the tables available for OFM
use.
60
Schlumberger Public
3. First map a STATIC table to the project. Use the vertical scroll
bar to navigate through the Available Tables list and select
SortCategory (by checking the box in front of the table
name). The following message dialog displays, prompting you
to confirm the addition of the SortCategory to the project.
Click Yes.
Schlumberger
Project Creation
Schlumberger Public
61
Project Creation
Schlumberger
5. Locate the OFM Representation section of the Edit Schema
window and select the Demo2007 node.
62
Schlumberger Public
Schlumberger
Project Creation
63
Schlumberger
Project Creation
8. Select the Fields tab to view the field information. You can unassociate the field(s) from here. You can also add more
field(s) to this table.
64
Schlumberger
Project Creation
10. Click the Demo2007 node from the left pane again. When the
list of available tables displays, select DAILYPROD. The
following dialog displays, prompting you to confirm the addition
of the DAILYPROD table to the project. Click Yes.
Schlumberger Public
11. Locate the OFM Definition section of the dialog. Since this is
a daily frequency table, select Daily from the Table Type list
field. OFM reads the table structure and the following dialog
displays. Click Yes.
65
Project Creation
Schlumberger
12. OFM suggests mapping UNIQUEID in the Dailyprod table to
UNIQUEID in the HEADERID table and Date to Date. Click
Yes. You are returned to the Edit Schema window.
66
Schlumberger Public
Schlumberger
Project Creation
Schlumberger Public
67
Project Creation
Schlumberger
16. OFM suggests mapping UNIQUEID to UNIQUEID. Click Yes.
You are returned to the Edit Schema window.
18. Select the Demo2007 node again. Check CHOKE from the
list of Available Tables. The following dialog displays,
prompting you to confirm the addition of the CHOKE table to
the project. Click Yes.
68
Schlumberger Public
17. Since the entity key of the TEST table (UniqueID) matches the
project master (primary) key, the Key Type should be set at
Completion (please refer to Module 1 for OFM Database
discussion), similar to what you have seen for Static, Monthly,
and Daily tables. Make sure the secondary sporadic key in this
TEST table is set at DATE.
Schlumberger
Project Creation
Schlumberger Public
69
Schlumberger
Project Creation
Schlumberger Public
23. Locate the OFM Definition section of the dialog and select
Lookup from the Table Type list field. Click Yes.
70
Schlumberger
Project Creation
Schlumberger Public
25. Use the vertical scroll bar to scroll to the top of the OFM
Representation section of the Edit Schema dialog. Select
the Demo2007 node.
26. Locate the Available Tables section of the dialog and select
LEASE_DATA. Click Yes.
71
Schlumberger
Project Creation
27. Locate the OFM Definition section of the dialog and select
Xref from the Table Type list field.
Schlumberger Public
28. Locate the Cross Reference Key section of the dialog and
verify that the Key is set to LEASE.
29. Click OK to save all the changes to the database.
72
Schlumberger
Project Creation
1668000
1671000
1674000
1677000
1680000
394000
394000
392000
392000
390000
390000
388000
388000
386000
386000
384000
1665000
384000
1668000
1671000
1674000
1677000
1680000
In this exercise you will map in a monthly frequency table that has
a RESERVOIR key.
1. From the Database menu, select Schema Tables. The Edit
Schema Tables window displays.
73
Project Creation
Schlumberger
4. A confirmation dialog displays, prompting you to confirm
including the RES_PROD table to the project.
Schlumberger Public
74
Schlumberger
Project Creation
7. Click Yes.
You are returned to the Edit Schema window.
Schlumberger Public
75
Schlumberger
Project Creation
Exercise 17
TIP: FINANCIAL is a
Lookup table,
MONTHLYGASINJ is a
Monthly table, and Sand is a
Static table.
76
Schlumberger Public
Schlumberger
Project Creation
Schlumberger Public
The Linked Tables method can be used to connect to any ODBC(Open Database Connectivity) compliant data sources such as
SQL Server, Oracle, or Microsoft Access, Microsoft Excel, etc
Its advantage is that the users always have a clean copy of the
data. It reduces the risk of corrupting the original database. The
trivial disadvantage of this method is the maintenance of two
separate databases. In addition, each time the user requests data
from the OFM project, the program has to resolve the links and
goes to the source database to get data. This may add more time
for data processing (especially when the source database is not
located in the local hard drive and/or the source database is
Oracle/SQL Server based), but at the same time guarantee the
user always gets the most up-to-date version of the data.
OFM provides built-in feature to connect to Microsoft Access. In
this session, you will learn to create an OFM workspace linking to
data from an external Access database. We are going to use the
copy of the file Demo Access database that was in the previous
exercise.
1. Start OFM.
2. From the File menu, select New Workspace. The New OFM
Workspace window displays.
77
Project Creation
Schlumberger
3. Click the browse button to the right of the Workspace File
and navigate to the directory where you want your workspace
file to be located.
78
Schlumberger Public
Schlumberger
Project Creation
79
Project Creation
Schlumberger
The HeaderID key is removed from the Linked_Access
node.
9. Click the Add Link Tables button. The Open dialog displays.
Schlumberger Public
80
Schlumberger
Project Creation
11. Make sure the Files of type box shows Microsoft Access
(*.mdb). Click Open.
The first table to link to the OFM project MUST BE the master
table. In the source Access database, that table is the
HEADERID.
Schlumberger Public
12. Select the HEADERID table from the list and click OK.
13. OFM recognizes this table structure and suggests the key
association. Click Yes to include HEARDERID in the project.
81
Schlumberger
Project Creation
82
Schlumberger Public
Schlumberger
Project Creation
18. Click OK. The selected tables have been made available to
the OFM project.
Lesson 6
Schlumberger Public
Microsoft Excel has been used widely in the Oil and Gas industry
to temporarily store data (before loading to long-term data
management applications and/or analytical applications), as it is
very easy to use. Excel is free formatted, which is error-prone for a
relational database based application like OFM.
OFM supports linking to Excel to get the data, via the Linked
Tables method. However, to ensure the link between OFM and
Excel works correctly, there are a few rules to consider:
Each worksheet can only store data for one OFM table. No
merging of worksheets allowed.
83
Project Creation
Schlumberger
Schlumberger Public
84
Schlumberger
Project Creation
Schlumberger Public
85
Schlumberger
Project Creation
5. Click the Add Link Tables button. The Open dialog displays.
6. Select the directory where the source Excel file is located.
Select the desired file. From the Files of type drop-down list,
select Microsoft Excel (*.xls).
86
Schlumberger Public
Schlumberger
Project Creation
8. Click Select All, then OK. The Edit Schema Tables dialog
displays.
Schlumberger Public
87
Schlumberger
Project Creation
You can rename a table in OFM, once the table has been
mapped. Many external tables have long names, which you may
consider changing. The external table names are still unaltered;
only the OFM table names change.
The MASTER table can only be renamed when it has just been
mapped to the project. After that, it cannot be changed. The other
table names can be changed at any time unless the tables (and
their children fields) are referenced by other tables/fields.
It has been left as an exercise to associate all other Excel tables to
the project now that they have already been made available for
use.
88
Schlumberger Public
Schlumberger
Project Creation
Schlumberger Public
89
Schlumberger
Project Creation
4. Select the HeaderID table and delete it. Click the Add Link
Tables button. The Open window displays.
90
Schlumberger Public
Schlumberger
Project Creation
6. Select the Machine Data Source tab and click New. The
Create New Data Source dialog displays.
91
Project Creation
Schlumberger
10. In the Name field specify the Data Source Name. In the
Description field, describe the data source. From the Server
list field, select the host server name of SQL Server that you
can connect to.
92
Schlumberger Public
11. Click Next. The wizard prompts you to enter the login
information.
Schlumberger
Project Creation
12. Click Next. Select the default database where your source
database is located and provide other information as needed.
93
Schlumberger
Project Creation
94
Schlumberger Public
Schlumberger
Project Creation
16. Click OK you are returned to the Select Data Source window.
Schlumberger Public
95
Schlumberger
Project Creation
20. Select the appropriate tables to link to the OFM project (e.g.,
HeaderID, Monthlyprod). Once the tables are made available
to OFM (in the list of Available Tables), the steps to associate
those tables to the project are straightforward, as in the
previous exercises.
Review Questions
Summary
In this module, you:
In the next module, you will learn how to access core functionality
in the OFM environment and how to use project panes.
96
Schlumberger Public
Schlumberger
Project Creation
NOTES
Schlumberger Public
97
Schlumberger
Project Creation
NOTES
Schlumberger Public
98
Schlumberger
Project Administration
Module 3
Project Administration
Learning Objectives
In this module, you will successfully learn how to perform the
following procedures within this workflow:
Changing the layout
Editing categories
Lesson 7
Schlumberger Public
Opening Panes
Panes can be opened from the View menu. Opened panes have
a checkmark displayed to the left of them in the view menu
indicating that the pane is opened.
99
Schlumberger
Project Administration
Hiding/Showing Panes
Panes that are open but not displayed in the main OFM window
are displayed as a tab on an open pane. The horizontal pin
located in the upper-right corner of the pane indicates that the
pane is not docked. Moving the mouse away from the pane,
results in the pane being hidden.
Floating/Docking Panes
Select the pane you want to move, drag it to the desired location,
and release the mouse. The image below shows the results of a
floating pane.
Positioning Panes
Panes can be moved to any location within the OFM main
window. To reposition a pane, select the pane and drag it to the
desired location. An outline of the pane is displayed showing
where the pane will be relocated. Panes can be repositioned
within another pane, displayed as a tabbed page of another pane,
or as a docked pane within the OFM main window.
100
Schlumberger
Project Administration
Schlumberger Public
101
Project Administration
Schlumberger
Completion displays the Delete/Rename dialog. This dialog
enables you to remove or rename UNIQUEIDs (completion
names) from the database.
Schlumberger Public
102
Schlumberger
Project Administration
Schlumberger Public
103
Schlumberger
Project Administration
Multipliers
The Edit OFM Multipliers dialog enables you to create, edit, or
delete unit multipliers for variables. The OFM multiplier
functionality is useful for converting existing data, creating
conversion factors, or defining multipliers that are not included in
the OFM database.
1. Select Database > Multipliers. The Edit OFM Multipliers
dialog displays.
PVT Data
Edit PVT Data from the PVT Entity Name window. The PVT
Entity Name window contains a Select One section, which lists
entities such as wells, reservoirs, fields or surveys, for example.
PVT data for the selected entity or item can be edited and stored
in a database that is automatically accessed and used when
calculations that require PVT data for the entity are performed.
104
Schlumberger Public
Schlumberger
Project Administration
The PVT Entity Name window also enables you to add an entity,
delete an entity, or rename an entity in the Select One list.
Predefined PVT table data for one entity can by copied to another
(New) entity.
Schlumberger Public
105
Schlumberger
Project Administration
106
Schlumberger Public
Schlumberger
Project Administration
107
Schlumberger
Project Administration
8. Enter NewOil in the Add New Field text box and click Add.
The new variable/field NewOil is added into the table.
9. Repeat the previous step, this time adding NewGas and
NewWater variables.
108
Schlumberger
Project Administration
11. Locate the Variable section of the Field tabbed page. Select
Single from the Type list field.
12. Select the Units tab. Locate the Units section of the dialog.
Select gal = => m3 from the drop-down list.
Schlumberger Public
109
Schlumberger
Project Administration
Schlumberger Public
110
Schlumberger
Project Administration
15. Locate the Format section. Change the value in the Decimal
field to 0. Leave all other values unchanged.
Schlumberger Public
17. Locate the Curve Name field and change the name to (New)
Monthly Oil Production.
111
Schlumberger
Project Administration
18. Locate the Curve Attributes section and make the changes
listed below.
Line Width - 4
Editing Categories
All text fields in all static tables can be used as categories. In the
OFM Demo2007 database only some of the workspace
categories are active. To edit (activate or de-activate) the
categories follow the instructions outlined below.
112
Schlumberger Public
19. Click OK to save your changes and exit the Edit Schema
window.
Schlumberger
Project Administration
113
Schlumberger
Project Administration
Review Questions
Summary
In this module, you:
Changed the default layout
Edited categories
In the next module, you will learn how to customize the basemap.
114
Schlumberger Public
Schlumberger
Project Administration
NOTES
Schlumberger Public
115
Schlumberger
Project Administration
NOTES
Schlumberger Public
116
Schlumberger
Basemap Customization
Module 4
Basemap
Customization
The basemap is the first screen you see when opening a project.
It is probably the last window you see before closing the project.
Managing a distinguishable Basemap helps reduce confusion and
mistakes.
Prerequisites
If you do not already have your OFM application open, please
open it now. Then, load the Demo2007 project. You will be using
this project for all exercises in this module.
Learning Objectives
In this module, you will successfully learn how to perform the
following procedures within this workflow:
Edit Map Association
Zoom/Unzoom
Lesson 8
Schlumberger Public
The basemap will not display correctly until the map associations
are set up. OFM provides suggestions but may not activate the
desired associations. In this section, manipulation of the map
associations is discussed.
117
Schlumberger
Basemap Customization
Schlumberger Public
118
Schlumberger
Basemap Customization
4. Click OK.
The remaining associations should be self-explanatory. If you
know which fields in your database correspond to the OFM
map fields, associate them. In this project, it is likely that OFM
would suggest the correct fields so you do not have to make
any changes.
5. When all map associations are complete, click OK. The
basemap displays with the color and attribute-coded wells.
Schlumberger Public
Lesson 9
Some of the basemap attributes are modified from the Edit > Map
menu command. A submenu displays enabling you to modify the
map association data, symbols, map annotations, headers, and
scale of the basemap currently displayed.
OilField Manager 2007 Fundamentals
119
Schlumberger
Basemap Customization
120
Schlumberger Public
Schlumberger
Basemap Customization
In this exercise you will display the well names on the basemap.
1. Locate the Well Name Properties section of the Properties
pane.
121
Schlumberger
Basemap Customization
Schlumberger Public
122
Schlumberger
Basemap Customization
123
Schlumberger Public
Schlumberger
Basemap Customization
124
Schlumberger Public
Schlumberger
Basemap Customization
3. Select Edit > Map > Headers. The Headers window displays.
Schlumberger Public
125
Schlumberger
Basemap Customization
11. Enter the desired year, month and day in the following format
YYYYMMDD in front of the comma.
126
Schlumberger Public
Schlumberger
Basemap Customization
Schlumberger Public
13. Click OK. The Edit Header window closes, and you are
returned to the Header window.
127
Schlumberger
Basemap Customization
15. Specify the font attributes. Click OK to close the Font window.
16. Click OK to close to Headers window.
Schlumberger Public
128
Schlumberger
Basemap Customization
Schlumberger Public
129
Basemap Customization
Schlumberger
The following steps are optional and are only necessary if your
project does not have annotations loaded. If there are files
listed in the Files section of the window go to step 5.
2. Click Add. The OFM Data Loader window displays.
Schlumberger Public
130
Schlumberger
Basemap Customization
Schlumberger Public
131
Basemap Customization
Schlumberger
9. Locate the Preview section and click Current. The select
annotation displays in a preview window.
132
Schlumberger Public
10. Click All. All annotations are displayed in the preview window.
Schlumberger
Basemap Customization
Schlumberger Public
133
Schlumberger
Basemap Customization
Schlumberger Public
134
Schlumberger
Basemap Customization
Schlumberger Public
135
Schlumberger
Basemap Customization
136
Schlumberger Public
Schlumberger
Basemap Customization
137
Schlumberger Public
Schlumberger
Basemap Customization
138
Schlumberger Public
Schlumberger
Basemap Customization
4. Click Open.
The annotations (lines and texts) display.
Schlumberger Public
139
Schlumberger
Basemap Customization
6. Select Edit.
The Map Annotation Editor displays.
140
Schlumberger
Basemap Customization
9. Click OK.
The Map Annotation Editor window closes, and the changes
are applied to the basemap.
Schlumberger Public
10. Continue to modify the annotations. You can even move the
annotations by changing their coordination. Save the file (overwrite the file name if you want).
141
Schlumberger
Basemap Customization
Review Questions
Summary
In this module, you:
Edited Map Association Data
In the next module, you will learn about filtering options in OFM.
142
Schlumberger Public
Schlumberger
Basemap Customization
NOTES
Schlumberger Public
143
Schlumberger
Basemap Customization
NOTES
Schlumberger Public
144
Schlumberger
Module 5
Filtering
Filtering
Schlumberger Public
Learning Objectives
In this module, you will successfully learn how to perform the
following filtering procedures:
Filter by Completion
Filter by Category
Filter by Match
Project Filtering
145
Schlumberger
Filtering
Schlumberger Public
146
Schlumberger
Filtering
3. While holding the CTRL key on your keyboard, use the mouse
to select the following completions:
Blue_1:He_0
Blue_10:Ad_1A
Blue_11:Li_1C
Blue_14:Li_1C
Schlumberger Public
147
Filtering
Schlumberger
5. Select Edit > Map > Annotations. The Map Annotations
dialog displays.
148
Schlumberger Public
Schlumberger
Filtering
10. From the Filter pane click , Group All Selected Items icon.
The wells display in magenta indicating that they have been
loaded into memory as one entity.
Schlumberger Public
149
Schlumberger
Filtering
11. Locate the Step toolbar at the top of the OFM main window.
Schlumberger Public
12. Click the drop-down arrow and select the first well,
Blue_1:He_0.
Schlumberger
Filtering
Schlumberger Public
.
3. Select MONTHLYPROD table from the list of tables. The
basemap returns all wells with production data.
151
Schlumberger
Filtering
Question
What do you think the results mean? Why 20 and not 21? Can
you single out the difference (well name)?
152
Schlumberger
Filtering
.
Schlumberger Public
153
Schlumberger
Filtering
Schlumberger Public
Question
Select the oil wells that belong to the LITMUS reservoirs. How
many wells are there?
154
Schlumberger
Filtering
Schlumberger Public
155
Schlumberger
Filtering
The map displays forty wells that satisfy the filter criteria.
Schlumberger Public
156
Schlumberger
Filtering
Schlumberger Public
You have done several filter techniques that deal with entities (i.e.,
well name) and data at static level (i.e., sort category value).
However, the most important data is production data, which
changes over time. To filter to that dynamic level of data, use the
Filter by Query option.
For example, select the wells that have produced more than 500
bbls per month at least once in their production history.
Exercise 38
Filtering by Query
157
Schlumberger
Filtering
2. Select Add.
The OFM Query window displays.
Schlumberger Public
TIP: Monthlyprod.Oil is an
input variable. It is found
from the Project Variables
list. Click the Project
Variables button and select
the Monthlyprod.Oil
variable from the list. Click
Add (or double-click the
variable to add it to the
above window). All variables
in the project can be found
and added this way. The
keypad can be used to add
non-text characters, logical
operators, and keywords
used in a typical query
statement (if you dont want
to use the keyboard). The
Delete and Clear buttons
provide quick editing
capability. Keep in mind that
in OFM, the AND operator is
represented by the &
(ampersand) character, the
OR operator is represented
by the | (vertical bar)
character, and the NOT
operator is denoted by the !
(Exclamation mark).
158
Schlumberger
Filtering
6. Since you want to get the wells that produced more than 500
bbl a month at least one time, enter 1 at the time(s) box.
Leaving it at 0 yields the same result, as 0 means default in
OFM, and the default occurrence is 1. Click OK.
7. From the Filter pane select the checkbox to the left of the
newly created query. The basemap appears with 99 wells.
Schlumberger Public
159
Schlumberger
Filtering
10. Click OK. You are returned to the OFM Query window. Enter
3 in the time(s) text field so that at least three instances of the
criteria are met. Make sure the Consecutively box is not
checked.
11. Click OK to save the query. The OFM Query window closes.
12. Select the checkbox to the left of the newly created query,
OFM Query 2.
Schlumberger Public
160
Schlumberger
Filtering
Schlumberger Public
161
Schlumberger
Filtering
27. To filter the wells producing more than 2000 bbl of oil, have
test information, and belong to the BERRINGER lease.
Expand the Category node, then the LEASE node, and check
BERRINGER.
28. Expand the Table Data node and select TEST table.
29. Select OFM Query and right click. Select Add from the
shortcut menu. The OFM Query window displays.
30. Click Edit. The Create Query window displays.
31. Type Monthlyprod.Oil > 2000.
33. Select the checkbox to the right of the filter. The result of your
nested filter is displayed. Do not clear the filter.
None
162
Action
Invert Filter
Description
Inverts the selection and selects the
wells that do not meet the filter criteria.
Flagged Items
Save Archive
Schlumberger Public
Schlumberger
Filtering
163
Schlumberger
Filtering
164
Schlumberger
Filtering
Well List
Well list stores the information of all the wells that meet the filter
criteria in the text file format in the form of Unique IDs.
1. From the Filter pane, click the Save to Well List icon. The
Well List dialog displays.
2. Enter the desired name in the File Name field and click Save.
3. To apply the filter from a previously created well list file, select
the Well List node, right-click, and select Add.
Schlumberger Public
Scatter Set
Scatter Set contains the well Unique IDs either by category or filter
name. Categories can be field name, lease, log data, reservoir, or
well type.
1. From the Filter pane, click the Save to Scatter Set icon. The
Save As Scatter Set File window displays.
165
Schlumberger
Filtering
Filter Archive
1. After applying the filter, click the drop-down arrow to the right
of the save icon and select To Archive.
2. Enter a name in the Filter Archive Name list field and click
OK.
166
Schlumberger Public
In query, you can save the query setup and/or the query result. In
other filter techniques, you can save the result, as the setup is not
that important. However, if your filter procedure involves many
steps (i.e., nested filter), it would be useful to save the procedure
(steps) itself. Filter Archive helps you achieve that goal.
Schlumberger
Filtering
Schlumberger Public
167
Schlumberger
Filtering
Step
Another feature that relates to filtering in OFM is Step (a global
menu). You can set up OFM entity level from the Step pane.
OFM will pre-process data and return information at the set Step
level at retrieval time. For example, if you set Step to
RESERVOIR, you are dealing with individual reservoir instead of
well/completion level. From the drop-down well list, reservoir
names will be displayed instead of well names. Clicking on the
next or previous button will take you to the next/previous reservoir
in the list.
Schlumberger Public
First
Previous
Next
Last
168
Schlumberger
Filtering
169
Schlumberger
Filtering
4. Select Add from the shortcut menu. The Edit Project Filter
window displays.
170
Schlumberger Public
Schlumberger
Filtering
Schlumberger Public
171
Schlumberger
Filtering
Schlumberger Public
172
Schlumberger
Filtering
19. Select the checkbox to the left of the newly created project
filter. The basemap displays 44 wells that belong to the Litmus
reservoir.
Schlumberger Public
Review Questions
What is filtering?
What data can you best access when you filter by Query?
Summary
In this module, you filtered by:
Completion
Table Data
Category
Match
Well List
OFM query
173
Schlumberger
Filtering
In the next module you will learn about OFM project variables.
Schlumberger Public
174
Schlumberger
Filtering
NOTES
Schlumberger Public
175
Schlumberger
Filtering
NOTES
Schlumberger Public
176
Schlumberger
Module 6
Project Variables
Project Variables
Learning Objectives
This module covers how to create calculated variables and
calculated fields. You will have a chance to apply them in the next
section, Reporting. At the completion of this module you will be
able to:
Edit Calculated Variables
Schlumberger Public
Input Variable
Calculated Variable
Calculated Field
177
Schlumberger
Project Variables
178
Schlumberger Public
Schlumberger
Project Variables
3.
Schlumberger Public
4. Highlight the GOR field on the left pane. Select the Field
tabbed page, and locate the Variable section of the window.
179
Schlumberger
Project Variables
Schlumberger Public
180
Schlumberger
Project Variables
7. Click OK. The Edit Calculated Field window closes and you
return to the Edit Schema Tables window.
The equation displays in the Equation section of the window.
8. Select the Units tab. Select cf/bbl = => scm/m3 from the
Units list.
Schlumberger Public
181
Schlumberger
Project Variables
11. Select the Report tab and locate the Format section. Change
the Width to 12.
Schlumberger Public
182
Schlumberger
Project Variables
Line Width 4
Schlumberger Public
15. Click OK. The Edit Schema Tables dialog closes and you are
returned to the main OFM window.
Question
What do you think the variables mean?
183
Schlumberger
Project Variables
Schlumberger Public
184
Schlumberger
Project Variables
NOTE: It is recommended
to assign more attributes for
this variable (Report
Headers, Plot Name, etc.).
7. Click Close.
185
Schlumberger Public
5. In the Name field type CV.GOR. Leave User and Class fields
unspecified.
Schlumberger
Project Variables
Line Width 4
186
Schlumberger Public
Schlumberger
Project Variables
Select the Report tab. In the Heading section on the first row
type First, on the second row type Production, and on
the third row type Date.
187
Schlumberger Public
Schlumberger
Project Variables
Schlumberger Public
Schlumberger
Project Variables
6. Select the Report tab. In the Heading section on the first row
type Max, on the second row type Oil, and on the third row
type Production.
7. Select the Plot tab. Enter Maximum Oil Production in the
Curve Name text field.
8. Select the following curve attributes:
Point Size 5
9. Click Close.
Question
How could you plot only one value, right where the peak oil
happens?
189
Project Variables
Schlumberger
2. Select ghCumoil from the list of variables. The properties
associated with the selected variable are displayed in the
Calculated Variables window.
190
Schlumberger Public
Schlumberger
Project Variables
Schlumberger Public
191
Project Variables
Schlumberger
8. Click OK. The Edit Calculated Variable window closes, and
you are returned to the Calculated Variables window.
9. In the Name field type gh.lastGOR and leave the rest of the
settings at their default value.
10. Locate and select the Ratio.GOR variable from the list.
192
Schlumberger Public
Schlumberger
Project Variables
11. Select the Units tab and look at the units specifications. It
should be set to cf/bbl (though it appears as cf/bbl = =>
scm/m3), since this project is set to the English unit system.
NOTE: OFM reads the list of
available units seen in Edit >
Project > Units, to which
you can add your own
customized units.
13. (Optional) Select the Units tab and verify that the Output
Multiplier is set to M.
193
Schlumberger Public
12. Select the Report and Plot tabs. OFM will use the plot name
of the Ratio.GOR variable as it displays gh.LastGOR on the
header.
Schlumberger
Project Variables
194
Schlumberger Public
Schlumberger
Project Variables
Schlumberger Public
195
Schlumberger
Project Variables
6. Click Setup.
The Headers window displays.
7. Click Add. OFM adds the first header (row) to the Headers
window.
196
Schlumberger Public
8. Highlight the inserted row and click Assist. The Edit Header
window displays.
Schlumberger
Project Variables
11. Add two more headers one with the gh.Reservoir and one
with the gh.Lease variables.
12. Click OK. The Headers window closes, and the header
information displays on the plot.
Schlumberger Public
13. Click on each individual header and move them to the desired
location to display and change the fonts.
197
Schlumberger
Project Variables
14. Locate the Step pane and select well Blue_1:Li_1C, to see a
better result.
Create text display variables (used on headers) for last water cut,
first monthly oil rate, and peak (maximum) monthly oil rate.
Review Questions
Summary
In this module, you:
In the next module you will learn about plotting with OFM.
198
Schlumberger Public
Schlumberger
Project Variables
NOTES
Schlumberger Public
199
Schlumberger
Project Variables
NOTES
Schlumberger Public
200
Schlumberger
Module 7
Plotting
Plotting
Learning Objectives
OFM supports up to six graphs in one plot window. Each graph
can have up to 6 vertical (Y) axes, but it can only have one
horizontal (X) axis, also each y-axis can have multiple variables. In
this module, you will successfully learn how to perform the
following procedures:
Create a graph with one y-axis
Schlumberger Public
201
Schlumberger
Plotting
202
Schlumberger Public
Schlumberger
Plotting
Schlumberger Public
203
Schlumberger
Plotting
11. Click OK. The plot is generated and displayed in the OFM
Plot window.
204
Schlumberger Public
Schlumberger
Plotting
Schlumberger Public
4. Select the X-Axis. Use the vertical scroll bar to locate the Tics
properties. Change the Line Color to Gray. The tic marks are
updated to reflect the changes.
5. Locate the Font property displayed at the base of the
Properties pane. Click in the property field, and a Browse
button is enabled. Click the Browse button, and the Font
window displays.
205
Schlumberger
Plotting
6. Change the Size to 9 and click OK. The Font window closes
and the size of the text displayed on the X-Axis updates.
206
Schlumberger Public
7. Select the Y-Axis. Use the vertical scroll bar to locate the Tics
properties. Change the Line Color to Gray. The tic marks are
updated to reflect the changes.
Schlumberger
Plotting
16. Click Font. The Font window displays. Select the following
properties:
Font Arial
Size 12
Angle 0
Color Blue
Background Transparent
Schlumberger Public
207
Schlumberger
Plotting
17. Click OK. The Font window closes and you return to the
Headers window.
NOTE: To insert an image,
such as a company logo, in
the plot header click Add in
the Headers dialog. A new
row is inserted. Click Assist
to display the Edit Header
dialog. Type the system
function @image and the full
path of the image you want
to insert. For example,
@image(C:\Logos\Schl
umberger.bmp). Click
OK to close the Headers
dialog. The image displays
on the plot.
208
Schlumberger Public
18. Move the logo using the drag and drop method. The logo can
also be resized by modifying the font properties.
Schlumberger
Plotting
Schlumberger Public
Color Red
Type Solid
Width 3
Multiplier M
209
Schlumberger
Plotting
Color Blue
Type Solid
Width 3
Schlumberger Public
26. To change the size and/or location of your plot, select the plot
(not the curves) and anchor points indicate that the plot is
selected.
210
Schlumberger
Plotting
29. From the well drop-down list, select a well. The plot refreshes
and displays the data for the selected well.
Schlumberger Public
28. Select one of the anchor points and resize the plot.
211
Schlumberger
Plotting
Type Dashed
Width 3
Type Dashed
Width 3
Multiplier MM
9. Select the second Y-Axis and change the tick marks to gray
and the font size to 9 point.
212
Schlumberger Public
Schlumberger
Plotting
10. Move the legend to the upper left corner of the plot window.
213
Schlumberger
Plotting
214
Schlumberger Public
Schlumberger
Plotting
Schlumberger Public
If there are less than four graphs on the plot, the default
setting is Overlap. If there are more than four graphs on the
plot, the No Overlap option is automatic.
Lesson 23 Charts
OFM 2007 provides you with an option to generate bar charts via
the Plot module. Make sure you clear the previous filter before
proceeding. This lesson addresses how to create bar charts.
3. Group the data by clicking the Group icon located at the top of
the Filter pane.
215
Plotting
Schlumberger
4. If you do not have a Plot window open, click the Plot icon
located in the OFM Analysis toolbar. The Edit Plot dialog
displays.
5. In the Graph section of the dialog, set the Number of Graphs
to 1.
6. In the Y-Axis section of the window, set the Number of Axes
to 2 and the Current Axis to Y-Axis 1.
7. In the X-Axis section of the window, set the X-Axis Variable
to Date.
8. Click Add Curve. There should be two blank rows displayed
in the Variables section of the window. Add the
Monthlyprod.Oil and Monthlyprod.Gas variables.
Schlumberger Public
216
Schlumberger
Plotting
10. Click OK. The Edit Plot window closes and the plot displays.
Line Width 1
Bar Width 1
Schlumberger Public
217
Schlumberger
Plotting
1. From the Plot window, select Analysis > Plot. The Edit Plot
window displays.
2. Locate the Y-Axis section of the window and set the Number
of Axes to 2. Set the Current Axis to Y-Axis 1.
3. In the X-Axis section of the window set the Variable to
Oil.Cum. Select Water.Cut as the Y-Axis Variable.
4. In the Y-Axis section of the window set the Current Axis to YAxis 2. Select Monthlyprod.Water as the Y-Axis Variable.
5. Click OK. The Edit Plot window closes and the plot is
displayed in a new window.
6. Assign the following attributes to the Water.Cut curve:
Line Width 3
218
Line Width 3
Schlumberger Public
This exercise addresses using the OFM Plot Lock and Graph
Blow Up options.
Schlumberger
Plotting
9. From the Window menu command, verify that there are only
three windows currently active (the basemap and two plot
windows).
Schlumberger Public
10. Select the basemap and minimize it. Then from the Window
menu select Tile > Vertically. The two plots display as shown
below.
11. Click the Next button located in the Step toolbar. Notice both
windows refresh, displaying the information of the newly
loaded entity.
219
Schlumberger
Plotting
12. Select Blue_5:Sc_0 from the list of wells. Select the Water
Cut/Monthly Water Production vs. Oil Cum plot window,
then select View >Lock.
NOTE: Use multiple plot
windows for multi-variable, if
you prefer this method over
the multi-graph window
analyses.
Use multiple plot windows
with the Lock option for
multi-entity analyses. You
can lock as many
windows/entities as you
want; however, it may be too
hard to see on your screen.
The active plot window has the word Locked displayed in the
title bar. Now traverse the wells and only one window
refreshes. The lock tool can be used effectively for comparison
purposes. Typically you would want to use the same plot
settings to compare two or more wells.
Schlumberger Public
BLUE_5:Sc_0
GREEN_4:Ad_3BU
ORANGE_23:Li_1C
220
Schlumberger
Plotting
9. Click OK. The Add Multiple Curves window closes, and the
selected variable and associated wells display in the Edit Plot
window.
Schlumberger Public
10. Click OK. The Edit Plot window closes, and the data display
in the plot window.
11. Click the Stacked Plot icon,
221
Schlumberger
Plotting
12. Modify the Line Color properties for each curve by assigning
the following:
BLUE_5:Sc_0 Green
GREEN_4:Ad_3BU Magenta
ORANGE_23:Li_1C Brown
222
Schlumberger Public
Schlumberger
Plotting
Schlumberger Public
223
Schlumberger
Plotting
224
Schlumberger
Plotting
Schlumberger Public
Number of Graphs 1
Number of Y-Axes 1
X-Axis Date
14. Modify the Line Color attributes for each curve. Select the
Monthlyprod.Oil curve and change the color to Green. Then
select the CV.Gas2OilEq curve and change the color to
Magenta.
15. Select the Y-Axis and change the Scale Type property to
Linear.
225
Schlumberger
Plotting
16. Click the Stacked Plot icon located in the Plot toolbar. Select
Orange_19:Ad_1A from the Step toolbar.
Variable
Monthlyprod.oil
Monthlyprod.oil
Monthlyprod.oil
Monthlyprod.oil
Monthlyprod.oil
Monthlyprod.oil
Category
Current
UNIQUEID
UNIQUEID
UNIQUEID
UNIQUEID
UNIQUEID
Name
Orange_19:Ad_1A
Blue_5:Sc_0
Green_4:Ad_3BU
Orange_23:Li_1C
Orange_34:Li_1C
Orange_36:Li_1C
Schlumberger Public
Lesson 26 Sum/Average/%
Contribution Types
Schlumberger
Plotting
Schlumberger Public
227
Schlumberger
Plotting
11. Select the curve and change the properties to reflect the
following:
Line Width 3
12. Select the Y-Axis. Change the Scale Type property to Linear.
228
Schlumberger Public
13. Click
Schlumberger
Plotting
15. Zoom in on the plot and move the legend to another location
so it does not block your view.
Curve 1 Green
Curve 2 Blue
Curve 3 Yellow
Curve 4 Red
Curve 5 Magenta
Curve 6 Cyan
Schlumberger Public
16. Locate the Curves section of the Properties pane and assign
the following color attributes:
229
Schlumberger
Plotting
17. If you select the X or Y axis and then right-mouse click, the
different plot options display.
Schlumberger Public
Schlumberger
Plotting
8. From the Category list field select UNIQUEID, and from the
Variable list field select Monthlyprod.oil.
9. Click OK.
OFM adds a number of Monthlyprod.oil curves to the list
based on the number of UNIQUEIDs available in the filtered
well list.
Schlumberger Public
10. Click OK. The Edit Plot window closes and the plot displays.
11. From the Properties pane locate Curves and select All
Curves. Set the Line Type to Solid and the Line Width to 3.
Select the Y-Axis and set the Scale Type to Linear.
231
Schlumberger
Plotting
Schlumberger Public
13. Click the Stacked Plot icon and verify that the method is set
to Interpolation.
Schlumberger
Plotting
Schlumberger Public
233
Schlumberger
Plotting
234
Schlumberger
Plotting
Schlumberger Public
3. Scroll up and down the X-Y Pair data window to view the data.
Note the crosshairs that appear on the plot when you click any
cell in the window. Also note the minimum, maximum, and
average of the selected variable is calculated by default at the
end of the column.
235
Schlumberger
Plotting
Schlumberger Public
Compute Line
Compute line provides a quick means to analyze information. In
this next exercise you will learn to use the Compute Line
features.
1. Load Prod_Wells98.txt and group the wells.
2. Select Database > Calculated Variables. The Edit
Calculated Variables window displays.
3. Click Add Variable. The Calculated Variable window
displays.
236
Schlumberger
Plotting
237
Schlumberger
Plotting
12. Select Tools > Compute Line Lock or the line will disappear
upon your next action.
238
Schlumberger Public
Schlumberger
Plotting
13. Select Tools > Trace Point and Line Attributes. The Trace
Attributes window displays.
14. In the Line Attributes section of the window set the Color to
Magenta and the Width to 4.
15. Click OK. The Compute Line changes color and width.
Schlumberger Public
239
Schlumberger
Plotting
Graph 1 2 Y-Axes
Review Questions
240
Schlumberger Public
Schlumberger
Plotting
Summary
In this module, you:
In the next module you will learn about creating and formatting
reports in OFM.
Schlumberger Public
241
Schlumberger
Plotting
NOTES
Schlumberger Public
242
Schlumberger
Module 8
Reporting
Reporting
Prerequisites
Before going directly into the report module, it would be useful for
you to get a basic understanding of different types of OFM
variables.
Learning Objectives
Formatting a Report
Schlumberger Public
Rules
243
Schlumberger
Reporting
244
Schlumberger Public
Schlumberger
Reporting
Schlumberger Public
245
Reporting
Schlumberger
5. Click OK. OFM generates the report and displays it in the
OFM main window.
246
Schlumberger Public
Schlumberger
Reporting
Only a subset of the wells in this project has daily data. To avoid
seeing empty reports, filter the well list down to those that contain
daily data (from the Dailyprod table).
247
Schlumberger
Reporting
Question
Why do you have a lot of nulls at the beginning of the report? It
has something to do with daily precums. For detailed information
about precums ask your instructor.
248
Schlumberger Public
5. Click OK. The report may return several null values. Scroll
through the report to see the data.
Schlumberger
Reporting
Schlumberger Public
249
Schlumberger
Reporting
Schlumberger Public
6. Review the report. Note that the data points are reported but
with no specified dates. Double-click on the report. The Edit
Report window displays.
250
Schlumberger
Reporting
You can see that the data are now reported correctly for this
well. Static data also can be displayed with sporadic data.
8. Double-click on the report and the Edit Report dialog
displays. Add sc.lease to the parameter list and click OK.
Schlumberger Public
251
Schlumberger
Reporting
Schlumberger Public
252
Schlumberger
Reporting
Schlumberger Public
253
Schlumberger
Reporting
Schlumberger Public
254
Heading First Row contains the variables for the first row
header.
Schlumberger
Reporting
Schlumberger Public
255
Schlumberger
Reporting
256
Schlumberger
Reporting
14. Select Edit > Report Display. The Edit Report Attributes
window displays.
NOTE: From the Set Date
tab you can display records
of interest based on date
criteria. You can report data
at a certain date, at the last
date of the entity, at all
available dates, or within a
certain date range.
15. To find out the available date range (monthly and daily) of the
project, locate the Database Date Range section of the dialog
and click Find Daily and Find Monthly Database Date
Range.
Schlumberger Public
16. Locate the Options section of the window and select Range.
In the Starting text field type 1/1/1980.
257
Schlumberger
Reporting
18. Select Edit > Report Display. The Edit Report Attributes
window displays. In the Options section of the dialog select
All. Then select the Sort tab.
19. From the First list field select monthlyprod.oil and check
Descending.
20. From the Second list field select monthlyprod.gas and check
Descending.
Schlumberger Public
21. Click OK. The report displays with peak monthly oil production
data displayed at the top of the report. The monthly production
gas data follows.
258
Schlumberger
Reporting
Schlumberger Public
259
Schlumberger
Reporting
30. Select the Sort tab. Click Clear to remove all sort criteria and
click OK. The report displays and at the end of each year the
sums display for oil, gas, and water production.
31. You can generate a similar report without using the
@year(date) variable. Double-click on the report and the
Edit Report dialog displays.
32. Remove the @year(date) variable and the comma that
follows and click OK.
33. From the Properties pane locate Break and set to At
Condition. The Edit Condition row is inserted below the
Break property.
34. Click in the blank field to the right of the Edit Condition
property. This action enables a Browse button. Click the
button. The Create Condition window displays.
35. In the Condition = field type @change( @year(date) ).
Schlumberger Public
36. Click OK. The Create Condition dialog closes and the report
is displayed.
260
Schlumberger
Reporting
Schlumberger Public
261
Schlumberger
Reporting
262
Schlumberger Public
Schlumberger
Reporting
6. Click OK. The Edit Report window closes and the report is
displayed.
7. Select the last column of the report. From the Properties
pane change the Decimal Places value to 0.
NOTES:
! is the NOT operand. The
exclamation point can be
generated by clicking NOT
on the keypad.
10. Click OK. The Edit Report window closes and the report
displays.
The report has a two-fold structure, the setup (design) and the
output (result). To save the setup design of your report, with the
report window active select File > Save Format. OFM saves the
report as a binary *.rpt file, which can be opened by selecting File
> Open or using the right-click menu in the Analysis pane.
Select File > Save File to save the results of a report. OFM saves
the report output to a text file or RFT (Rich Text Format)
depending on the specifications you set. Any text editors that
support these file formats can open the report files so anyone can
utilize the reports without having OFM installed.
In addition, OFM also gives users the option to format the output
text files in some special formats. These files can be loaded to
OFM provided that the field names have been defined
beforehand.
NOTES:
263
Reporting
Schlumberger
4. Select View > Summary > By Item. OFM puts all individual
well reports together, ordered by well name. It may take a
while to generate such a report, depending on how many
wells there are on the list. Scroll through the report to verify the
results.
You can narrow down the date range by using the Set Date
tab of the Edit Attributes dialog or with a WHERE condition.
This will restrict the number of records being displayed and
save some processing time.
264
Schlumberger Public
Schlumberger
Reporting
You can change the report font and/or the report header font
from the Edit > Report Font, or by right-clicking on the report
and selecting Report Font from the shortcut menu.
265
Reporting
Schlumberger
7. Select Field1 located in the Access Fields column. Rename
Field1 to UniqueID, and with UniqueID selected, click Key.
8. Highlight DATE and click Key. This action sets the Date as
the second key of this table.
10. Click Yes. The dialog closes, and you are returned to the
report.
266
Schlumberger Public
9. Change the other three field name if you wish. Click Close
and Update. A message dialog displays prompting you to
confirm creating the Access table.
Schlumberger
Reporting
Schlumberger Public
12. Check the Adjusted Monthly table from the list of Available
Tables. A message dialog displays prompting you to confirm
your decision.
267
Schlumberger
Reporting
13. Select Yes. OFM successfully included the table into this
project for use. You can verify all the field names from the
OFM Representation section of the Edit Schema window.
Remember the gas field in this table is in base unit (scf). You
should select it and assign the correct input multiplier for it as
well as specify your desired output multiplier.
268
Schlumberger Public
Schlumberger
Reporting
Schlumberger Public
269
Schlumberger
Reporting
3. In the File text field specify the path of the text file or browse to
the location you want to save the file to.
Schlumberger Public
4. Click Close and Update. OFM writes the current report data
to a text file. This text file also can be used as a load file to
load data into OFM.
Review Questions
270
Why should you filter a well list before creating a daily report?
Schlumberger
Reporting
Summary
In this module, you:
Formatted a report
In the next module you will learn about export data project data.
Schlumberger Public
271
Schlumberger
Reporting
NOTES
Schlumberger Public
272
Schlumberger
Module 9
Exporting
Exporting
Learning Objectives
Schlumberger Public
273
Schlumberger
Exporting
274
Schlumberger Public
Schlumberger
Exporting
6. Click the browse button to the right of the Workspace File text
field. The Open window displays.
8. Click OK.
275
Schlumberger
Exporting
276
Schlumberger Public
Schlumberger
Exporting
Schlumberger Public
2. Select the tables one at a time and click OK. The Save As
window displays.
3. Specify the name in the Save As window and click Save.
When OFM has completed exporting the table, you are
returned to the list of Tables to Export window.
4. When finished, click OK to conclude the operation.
277
Schlumberger
Exporting
1. Select Database > Export > Selected Text Load File(s) >
Calculated Variables. The Export Calculated Variables
window displays.
2. Click the browse button to the right of the File field. The
Parser window displays.
Schlumberger Public
3. Type a file name in the File name field. The default file
extension name is *.par.
4. Select a location to store the saved file.
5. Click OK. The Parser window closes, and the path displays in
the File field.
6. Click OK.
Schlumberger
Exporting
dialog for you to enter the specifications. You will have the option
to export these files using the well aliases having the coordinates
in Metric units.
Schlumberger Public
The tabbed pages of the Export DCA Data window are described
below.
279
Schlumberger
Exporting
Results tabbed page enables you to specify the file name and
select the variable of interest to export.
Review Questions
Summary
In this module, you:
Exported database tables
In the next module you will learn about OFM utilities for project
management, data processing/manipulation, and customization.
280
Schlumberger Public
Schlumberger
Exporting
NOTES
Schlumberger Public
281
Schlumberger
Exporting
NOTES
Schlumberger Public
282
Schlumberger
Module 10
Learning Objectives
In this module, you will successfully learn how to perform the
following procedures:
Preferences
The Preferences tabbed page enables you create user defined
settings for displaying variables, warning and prompts, and
registry settings.
283
Schlumberger
Group
The Group tabbed page of the Settings window enables you to
set global grouping parameters.
DCA
The DCA tabbed page enables you to associate
parameters/qualifiers and set the default case used in forecasting.
284
Schlumberger Public
Schlumberger
Units
The Units tabbed page contains everything needed to display
your project in Metric units. Select Use Metric Units in order to
display data in metric units by default, and OFM will do the internal
conversions. OFM does not permanently apply unit conversions to
the database.
285
Schlumberger
286
Schlumberger
Date Display
The Date Display tabbed page enables you to display your
monthly dates at the beginning, middle, or the end of the month.
NOTE: The settings made
from this page do not
change the monthly data.
Schlumberger Public
Multiply By Factor
The Multiply By Factor tab enables you to modify production and
injection data by either a static or dynamic (with time) factor.
287
Schlumberger
288
Schlumberger Public
Only the variables that have the Multiply by Factor option (in the
Grouping Options section of the Math tabbed page) turned on
are affected and so are their derived variables.
Schlumberger
Schlumberger Public
8. Click OK. The Add Multiple Curves window closes and you
return to the Edit Plot window where the multiple curves are
displayed.
9. Verify that you have Date as the X-Axis variable and only one
graph.
289
Schlumberger
10. Click OK to display the plot. (You many want to increase the
curve width and move /resize the graph and legend in order to
see things clearly.)
Schlumberger Public
Schlumberger
Schlumberger Public
291
Schlumberger
Schlumberger Public
292
Schlumberger
8. Select Blue_1:Li_1C.
12. Select Tools > Data Registers. The Data Registers window
displays.
293
Schlumberger
17. Click OK. The Data Registers window closes, and you are
returned to the report.
18. Double-click on the report. The Edit Report window displays.
19. Add @reg( 1, Date, "date").
294
Schlumberger Public
20. Click OK. The Edit Report window closes and the report is
updated.
Schlumberger
Schlumberger Public
295
Schlumberger
Review Questions
Summary
You have completed the OFM Fundamentals training. In this
module, you:
Schlumberger Public
296
Schlumberger
NOTES
Schlumberger Public
297
Schlumberger
NOTES
Schlumberger Public
298