Professional Documents
Culture Documents
OFM 2007.2 Fundamentals PDF
OFM 2007.2 Fundamentals PDF
Fundamentals
Schlumberger Public
Workflow/Solutions Training
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
Schlumberger Public
The OFM Defined Table Manager............................................................................13
Lesson 2 OFM Workspace............................................................................................14
About Shared Workspace / My Workspace..............................................................15
Creating a Shared Workspace..................................................................................15
Creating a New My Workspace that is Linked to the Shared Workspace...............20
Linking an Existing OFM Project Workspace to a Shared Workspace ...................22
Creating a Standalone Snapshot of a My Workspace and its Shared
Workspace .................................................................................................................24
Creating a Copy of the Shared Workspace..............................................................27
(Optional) Migrating an OFM 2004 Database to OFM 2007....................................29
Exercise 3 Opening an OFM Workspace..............................................................30
Exercise 4 Changing the Database .......................................................................30
Exercise 5 Changing the Well Symbol Size ..........................................................31
Exercise 6 Changing the Database in a Workspace ............................................32
Exercise 7 Reversing the Changes .......................................................................32
Review Questions .............................................................................................................32
Summary ...........................................................................................................................32
Schlumberger Public
Lesson 6 Project Creation Linking to an Excel Spreadsheet....................................83
Exercise 19 Creating an OFM Project from an External Excel Spreadsheet.......84
Exercise 20 Associating Additional Tables to the OFM Project............................88
Exercise 21 Advanced Topic: Linking to an ODBC Data Source (Optional).......89
Exercise 22 Linking to SQL Server........................................................................96
Review Questions .............................................................................................................96
Summary ...........................................................................................................................96
Schlumberger Public
Exercise 27 Adding Map Headers .......................................................................124
Changing the Map Scale.........................................................................................129
Exercise 28 Adding Map Annotations..................................................................129
Exercise 29 Displaying Deviation Information.....................................................134
Exercise 30 Zooming & Panning .........................................................................135
Exercise 31 Using Irregular Zoom .......................................................................136
Using Track Cursor..................................................................................................136
Using Workbook Mode............................................................................................136
Exercise 32 Creating New Annotations...............................................................137
Exercise 33 Editing Annotations ..........................................................................138
Review Questions ...........................................................................................................142
Summary .........................................................................................................................142
Schlumberger Public
Module 6 Project Variables ..........................................................................177
Learning Objectives.........................................................................................................177
Lesson 18 Types of Variables...................................................................................177
Lesson 19 Calculated Variables................................................................................178
Exercise 44 Editing Calculated Variables............................................................179
Exercise 45 Adding Calculated Fields .................................................................183
Question...................................................................................................................183
Lesson 20 Calculated Variables................................................................................183
Exercise 46 Adding Ratio Variable ......................................................................184
Exercise 47 Using Cumulative Variable ..............................................................185
Exercise 48 Creating Calculated Variables .........................................................187
Exercise 49 Creating Date/Event Variables ........................................................187
Exercise 50 Creating a Calculated Variable........................................................188
Exercise 51 (Dynamic) Computing Variables......................................................188
Exercise 52 Creating a Variable ..........................................................................189
Exercise 53 Plotting Variables Versus Date........................................................189
Question...................................................................................................................189
Exercise 54 Creating Text Display Variables ......................................................189
Lesson 21 Calculated Fields .....................................................................................194
Exercise 55 Using Calculated Fields ...................................................................194
Schlumberger Public
Exercise 64 Creating a Stacked Plot on Variables..............................................223
Lesson 26 Sum/Average/% Contribution Types ......................................................226
Exercise 65 Using Sum/Average/% Contribution Types ....................................226
Lesson 27 Plot Overlay .............................................................................................230
Exercise 66 Creating Plot Overlay.......................................................................230
Lesson 28 Plot Annotations.......................................................................................232
Exercise 67 Using Plot Annotations.....................................................................233
Lesson 29 Plot-Related Tools/Utilities ......................................................................235
Viewing XY Coordinates with Corresponding Points On the Plot..........................235
Plot Legends with Scroll Bars..................................................................................236
Compute Line ..........................................................................................................236
Creating a Plot with Three Graphs..........................................................................240
Review Questions ...........................................................................................................240
Summary .........................................................................................................................241
Schlumberger Public
Review Questions ...........................................................................................................270
Summary .........................................................................................................................271
Module 9 Exporting.......................................................................................273
Learning Objectives.........................................................................................................273
Lesson 36 Export Database Tables..........................................................................273
Exercise 77 Exporting Database Tables .............................................................274
Lesson 37 Export Variables to Table........................................................................276
Lesson 38 Export Text Load Files ............................................................................276
Exporting Table Definitions......................................................................................276
Exporting Table Data...............................................................................................277
Exporting Calculated Variables ...............................................................................277
Scheduling (Eclipse) Exports ..................................................................................278
Exporting DCA Data ................................................................................................279
Review Questions ...........................................................................................................280
Summary .........................................................................................................................280
Schlumberger Public
Schlumberger Public
If not specifically stated, the terms database, workspace, and
project encompass both the database and workspace.
Learning Objectives
At the completion of this training, you will be able to:
Create an OFM project.
Analyze project data using the various OFM modules.
Describe the design of the OFM tables (including keys).
Explain the DOs and DONTs of specific types of OFM tables.
Create an OFM workspace.
Create a standalone OFM project or one that is linked to an
external data source or a combination of both.
What to Expect
In each module within this training material, you will encounter the
following:
Overview of the module
Prerequisites to the module (if necessary)
Learning objectives
A workflow component
Lesson(s), which explain about a subject or an activity in the
workflow
Procedure(s), which show the sequence of steps needed to
perform a task
Exercises, which allow you to practice a task by using the
steps in the procedure with a data set
Summary of the module
Questions about the module
Scenario-based exercises
You will also encounter notes, tips and best practices.
Schlumberger Public
Course Conventions
The instructions for the procedures and exercises in this manual
are written using the following conventions.
NOTE: Some of the Characters typed in Bold Represents references to dialog box
conventions used in this names and application areas or
manual indicate the commands to be performed. For
information to enter, but are example, Open the Open Asset
not part of the information Model dialog box.
For example: Quotation Used to denote keyboard
marks and information commands. For example, Type a
between brackets indicate name and press Enter.
the information you should
Identifies the name of Schlumberger
enter. Do not include the software applications, such as
quotation marks or brackets Petrel or GeoFrame.
when you type your
Identifies the first use of important
information.
terms or concepts. For example,
Stacking of data
Characters inside <> triangle Indicate values that the user must
brackets supply. "sqlplus
<username>/<password> ",
usually with a sentence that defines
the values.
Characters typed in italics Represent file names or directories.
"... edit the file lease.dat and..."
Represent lists and option areas in
Schlumberger Public
Icons
Throughout this manual, you will find icons in the margin
representing various kinds of information. These icons serve as at-
a-glance reminders of their associated text. See below for
descriptions of what each icon means.
This icon points you to a tip This icon indicates that the This icon indicates the best
that will make your work following information is way to perform a given
particularly important. task when different options
are available.
Schlumberger Public
Warnings Questions Lessons
This icon indicates when This icon identifies the This icon identifies a
you need to proceed with questions at the end of lesson, which covers a
extreme caution. each lesson. particular topic.
This icon identifies the This icon indicates that its This icon identifies the
steps required to perform a your turn to practice the review questions at the end
given task. procedure. of each module.
This icon identifies any This icon identifies any This icon indicates any
prerequisites that are learning objectives set out applications, hardware,
required for the course, or for the course, or for the datasets, or other material
for individual modules. current module. required for the course.
NOTES
Schlumberger Public
NOTES
Schlumberger Public
Learning Objectives
At the completion of this module, you will be able to:
Describe the OFM data tables
Use the OFM Defined Table Manager
Create a Shared Workspace
Link a new Workspace to the Shared Workspace
Link an existing My Workspace to a Shared Workspace
Create a copy of a Shared Workspace.
Schlumberger Public
Lesson 1 OFM Database
OFM can be viewed as having two integrated layers - database
and application. Basically, the database layer handles the data
part; and the application controls the user interface, as well as the
processing data/information per request. OFM database is
Microsoft Access-based. All data/information are stored in tables
(and sometimes views). Therefore, OFM database has all the
characteristics of a relational database, including constraints,
keys, and indices. There are three main classes (types) of tables
in an OFM database:
Data Table
System and Configuration Table
OFM -Managed Table
There are two types of data tables in an OFM project:
Standard Data Tables that have no prefix
OFM Defined Data Tables that have OFM_Data_ as a prefix
Previous versions of OFM also had OFM Defined System Data
tables that had _OFM_SYS_ as a prefix. In OFM 2007 all the
information that was stored in the OFM Defined System Data
tables is now stored in the *.OFM workspace file.
Schlumberger Public
rounding at load time. For example, a table to store time-
independent data is shown in the following image.
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.
Schlumberger Public
column in the Available Fields box.
There are many fields in this table that are number (numeric)
fields. For example, if you select the XCOOR field from the list, NOTE: Not all field
properties are displayed by
you would see the following:
OFM in the Available Fields
section. To view any
additional field properties
open the table in Access in
Design view and select the
field. The additional
properties will be defined on
the General tab.
Schlumberger Public
will save space in the database.
By design, OFM requires the designation of a MASTER table,
which normally stores static well information such as Well Alias,
Well Coordinates, etc The primary key of this master table is the
main (MASTER) key of the whole OFM project. HEADERID table
in the above example is a master table.
To create a project OFM requires that a table be designated as
the master table and that a field in the master table be designated
as the primary key for the project. In the previous images the
HEADERID table is the master table and the UNIQUEID field is
the primary key. The master table contains static data about the
primary key. The primary key is usually the completion name and
the table would contain static data like the completions XY
coordinate, alias, completion date, total depth, etc.
Many other data tables may contain more than one keyed field.
For example, a date-dependent table must have at least two keys:
one is the entity key (similar to the UNIQUEID key); the other is
the date key. Now take a look at a monthly frequency table.
Schlumberger Public
As seen above, this MONTHLYPROD table has two keys. The
UNIQUEID key joins this MONTHLYPROD table to the
HEADERID table, in a relational manner. However, the primary
entity key of one table does not have to be identical to the primary
entity key (master key) of the OFM project. As long as a
relationship (join) can be established between the two tables
(normally via an intermediate field could be a foreign key), there
is no violation in the design of the OFM database. For example, if
you have a table like this:
The data tables store data that have got loaded into the project.
Please take a look at a few data tables to experiment.
Schlumberger Public
Exercise 1 Exploring Other Data Tables
Explore the DAILYPROD, TEST and CHOKE tables in the
NOTE: There is a special
Demo2007.mdb database.
type of data table named
*_Adjustments in the Access How many keys are there in the CHOKE table?
database. These tables
store prior cumulative Which key is the primary key?
production for the respective The instructor will explain why the CHOKE table is a special type
date-dependent tables. For of table in OFM.
example, open the
Demo2007.mdb database
with Access, the OFM Defined Data Tables
MONTHLYPROD table will
have an adjustments table The other type of table in OFM is the OFM-defined data table. It
named stores data that is either loaded, input or a result of OFM analyses.
MONTHLYPROD_Adjustm
ents. The instructor will One type of OFM-defined data table has the prefix
explain why this special table OFM_DATA_DCA_ and decline curve analysis data generated in
type may be needed. the OFM decline curve analysis module. These tables are
automatically created when the project is created and will not
contain any data unless a forecast has been saved or merged
from another workspace. The names of these tables, as defined
by OFM, cannot be changed.
Some additional OFM defined data tables are
OFM_DATA_Deviation, OFM_DATA_Fault,
OFM_DATA_FILTER, OFM_DATA_Log, OFM_DATA_Marker,
etc. It is not recommended that the names of these tables be
changed as it could prevent OFM from being able to access the
Schlumberger Public
table.
Schlumberger Public
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.
NOTE: If the project was a The second step was to remove the remaining seven tables
OFM2007 project and had having the prefix _OFM_SYS_, i.e., System tables, from the
an existing *.OFM Access database. This step occurred in OFM 2007. When any
workspace the default project created in a previous version of OFM is opened with OFM
setting in OFM 2007 is to 2007, the information that originally resided in the eight system
backup the *.OFM tables is written to the OFM 2007 *.OFM workspace file. If the
workspace file and is project was created in OFM 2004 or earlier, then the information is
recommended. If the project taken from all eight system tables. If a project was created with
was a *.mdb project created OFM 2005 or upgraded to OFM 2005, then the information is
with OFM 2004 or earlier taken from the OFM 2005 *.OFM workspace and all the system
then the backup message
tables except the _OFM_SYS_Configuration table, which would
will not display and all the
only exist if the project had be upgraded to OFM 2005 and would
information in the eight
not exist if the project was created with OFM 2005. The system
system tables will be written
to the OFM 2007 *.OFM
files in any project created in a previous version of OFM become
workspace file.
obsolete when upgraded to OFM 2007.
Schlumberger Public
A Shared Workspace can be a standalone workspace or a linked
workspace. A typical Shared Workspace can be a workspace
linked to a company database or a standalone project created
using ASCII files. The primary benefit of a Shared Workspace is
NOTE: In OFM 2007.1 the
the ability to share a project with multiple users while restricting
word Team was used. It was
those users from modifying shared files. The functionality to create
replaced in OFM 2007.2 with
a shared workspace is the same as with OFM 2005 or OFM 2004, the word Shared.
using linked tables or ASCII files. The only difference is once the
workspace is created the items in the Shared Workspace will be
referenced using the word My, as in My Analysis, My Calculated
Variables, My Categories, etc. If you link to the Shared
Workspace using the Link to a Shared Workspace File:
functionality, you will see the same items referenced using the
word Shared; the items in the users linked workspace just created
will be referenced using the word My. You will be able to add, edit
or delete any of the items referenced as My, but will not be able to
add, edit or delete any of the items referenced as Shared.
In your training data set is an Access database named Company
NOTE: The procedure
Data Source.mdb. The following workflow will create a Shared
which follows would be
Workspace that is linked to the Company Data Source.mdb file.
performed by a nominated
The Shared Workspace will then be linked to, illustrating how a
Owner of the Shared
user would access the Shared Workspace using the Shared Workspace, typically a Team
Workspace / My Workspace concept. In this example the external Leader or some other
data source is an Access database but it could be any external responsible person in the
data source, Oracle, SQL, Excel, etc. organization.
Schlumberger Public
field. The New Workspace window displays.
Schlumberger Public
Schlumberger Public
8. Select Delete.
Schlumberger Public
same workflow as in OFM 2004 or OFM 2005. The Shared
NOTE: All the analysis
Workspace.mdb database and Shared Workspace.OFM items created are placed in
workspace file represent a workspace that is to be shared by folders that are referenced
multiple users. The users would access the Shared using the word My. That
Workspace using the Link to a Shared Workspace File means that anyone with
functionality. This functionality will be illustrated next but first access to the Shared
lets add some output to the Shared Workspace.OFM Workspace.OFM workspace
workspace file making note that everything created or file can potentially open the
currently referenced in this workspace uses the word My, as workspace file and add, edit,
can be seen in the Analysis pane where the folder is named or delete any of the items in
My Analysis. the workspace. To prevent
unauthorized users from
12. Select Analysis > Bubble Map. The Open Bubble Map accessing the shared
window displays. Create a bubble map and from the Analysis workspace, it needs to be
pane rename the bubble map Shared_Bubble_Map. secured from those users.
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.
Schlumberger Public
and click the browse button to the right of the text field. The
Open window displays.
6. Select the Shared Workspace.OFM workspace file created in
the previous exercise and click Open. You are returned to the
New OFM Workspace window. Click OK.
The My Workspace is created. Note the Analysis pane now
has a My Analysis folder and a Shared Analysis folder.
Expand the Shared_Analysis folder, Shared_Report, and
Shared_Bubble_Map.
7. Select the Shared_Report or Shared_Bubble_Map under the
Shared Analysis folder. You will not be able to edit, add, or
delete the items; you only can copy them from the
Shared_Analysis folder to the My Analysis folder.
8. Right-click on the Shared_Report and select Save As New
Node. The report is copied to the My Analysis folder.
9. Rename the report My Report.
Schlumberger Public
Calculated Variables folder and a Shared Calculated Variables
folder.
12. Expand the Shared Calculated Variables folder. The
Shared_CV variable previously created is available.
13. Select Company_CV and right-click. Note that the only
selection for you is to copy the calculated variable. Add, edit,
or delete options are not available.
14. Right-click on Company_CV and select Copy.
15. Click OK. Enter My_CV as the name for the new calculated
variable. The variable is listed below the My Calculated
Variables folder.
Schlumberger Public
It is important to review and note that previously a workspace was
created that was to be shared to other users. Upon opening that
workspace directly you will see the word My on all the items
because it is a standalone project that was created with ASCII files
or is linked to an external data source. When you create a My
Workspace that is linked to that Shared Workspace will see
Shared on all the items in the workspace previously created and
My on all the items created in the My Workspace just created.
The items are labeled as My or Shared depending on from which
workspace they are being viewed.
Schlumberger Public
6. OFM offers you the option to rename this Shared Workspace.
(Remember, you may choose one of several Workspace files
to be the current Shared Workspace.)
box next to the one that you wish to make the current active
Shared Workspace and click OK.
Schlumberger Public
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 9. Once you are satisfied, click OK.
element (e.g., a personal
Your OFM session should now display an Analysis pane with
calculated variable) may
two Workspaces: your pre-existing Workspace (My
suffer from this duplication
Workspace) and the newly linked Shared Workspace (Shared
removal, rename it before
you start the link process to
Workspace).
ensure that your calculated
variable survives.
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.
Schlumberger Public
7. Select Database > Calculated Variables. Both the
Shared_CV and the My_CV will have been combined into just
a single My Calculated Variables folder, as shown below.
NOTE: All the items in the
Snapshot.OFM workspace
can be edited by the user.
Schlumberger Public
5. Click OK. Close the My Workspace.OFM file and open the
Copy of Shared Workspace.OFM file.
Schlumberger Public
Schlumberger Public
4. Select the file name and click Open.
5. A confirmation dialog displays enabling you to confirm that you
wish to convert the OFM project.
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 Public
2. Locate the Size section and change the Value to 1.5.
3. Click OK. NOTE: If you need
clarifications, please do not
hesitate to ask your
instructor.
Schlumberger Public
project, such as using the
Data Loader. The next
section demonstrates such
functionalities.
Review Questions
What are the names of the data tables used in OFM and what
is the purpose of each one?
What is the purpose of the OFM Defined Table Manager?
What is the benefit of using a Shared Workspace?
Why would you want to link My Workspace to the Shared
Workspace?
When is it useful to create a copy of a Shared Workspace?
Summary
In this module, you:
Familiarized yourself with the OFM database and OFM-
defined data tables
Reviewed the OFM workspace
Learned the basics about the Shared Workspace and My
Workspace concepts
Created a Workspace Snapshot
Schlumberger Public
NOTES
Schlumberger Public
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
Schlumberger Public
Populate project with ASCII data files (OFM formats)
Populate project with ASCII data files (PI/Dwights formats)
Link the project with data from external ODBC sources.
Schlumberger Public
MONTHLY 2 Entity At most 1
Date Date record per
month per
entity (day
value is not
considered)
HOUR
MINUTE
SECOND
SPORADIC 2 Entity At most 1
Prm. Key Num/Date record per
day per
entity
SPORADIC 3 Entity Intra-day
DUALKEY Prm. Key Num/Date records per
entity are
Sec. Key Num
allowed
LOG 3 Entity Entity key
Name Text MUST be
Wellbore.
Date Date
Name key
is the trace
name.
MARKER 2 Entity Entity key
Name Text MUST be
Wellbore.
Name key
is the
marker
name.
Schlumberger Public
numeric.
XREF 1 Entity The entity
(cross key could
reference) be of any
level.
MARKER 2 Entity Entity key
Name Text MUST be
Wellbore.
Name key
is the
marker
name.
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
TIP: Most of the time, each
as typical data files, and will be parsed into the specified tables.
data file contains information Here are some commonly used file extensions:
from only one table. *.def table definition file
Multiple data files can be *.xy master (key) data
loaded into one table
(appending). *.srt sort category data
One definition file can hold *.dly daily frequency data
information of one or more
*.prd monthly frequency data
tables.
*.tst test (sporadic) data
Multiple files (definition and
data) can be loaded into the *.lku lookup data
project at the same time.
*.xrf cross-reference data
*.par parser (i.e., calculated variable) data
*.dev deviation data
*.not note (i.e., plot annotation) data
*.flt fault data
*.log log (trace) data
*.mrk marker data
*.wbd wellbore diagram data
*.pat pattern data
*.ano map annotation data
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
Marker table Sort category (filter) table
Pattern table
Wellbore diagram table
Parser table*
*Parser table is not a typical table in many ways, even though
parser information does get stored in a table.
Schlumberger Public
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.
Schlumberger Public
Notes:
The row beginning with the *Tablename keyword defines
the table name, table type and indicates that it will be the
master table. The file format is space delimited so
whatever text lies between the next two spaces,
consecutive spaces are treated as one, will be the name
of the table, followed by the table type and the master
table designation.
In this example HEADERID is the table name and it is a
static table and most importantly it is the master table. A
project can have as many static tables as desired, but
there can only be one master table.
In the fields/variables section, each field is assigned a data
type, text or numeric (with size). As many other PC
applications, OFM has several precision specific numeric
types such as INT2, FLOAT, DOUBLE, etc
In the definition file, the fields attributes can be assigned,
identified by the keywords such as *pn for Plot Name, *pa
for Plot Attribute, *u for Unit, and *mu for Multiplier. These
attribute keywords can be searched from the help file.
Schlumberger Public
the line *TABLENAME MONTHLYPROD Monthly. Notice the
structure of the definition file.
Schlumberger Public
UINT2: 0 to 65,535 (unsigned int2)
UINT4: 0 to 4,294,967,295 (unsigned int4)
FLOAT: occupies 4 bytes, 7 decimal places, and values of
approximately -3.4E-38 to 3.4E38.
DOUBLE: occupies 8 bytes, 19 decimal places, and values of
approximately -1.7E308 to 1.7E308.
Knowing the appropriate range of your variable data and
assigning the proper size to the variable may help you save
memory and improve performance.
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.
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.
Schlumberger Public
Hourly Data
To begin analyzing hourly data follow the instructions below.
1. Export the Hourly data to notepad.
2. Select Database > Export > Selected Text Load File(s) >
Table Data. The Table to Export window displays.
Sporadic Data
1. From the open text editor select Open.
2. Navigate to the Demo Sporadic Test Data.tst file and view the
Schlumberger Public
data.
Schlumberger Public
With the help of the instructor, you are encouraged to become
familiar with those files, especially the typical format of each
file/table.
Schlumberger Public
4. Navigate to the desired location you want to store your
workspace file.
5. Enter the desired workspace name.
Schlumberger Public
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.
Demo Definitions File.def
Demo Key Data.xy
Demo Monthly Prod Data.prd
Demo Daily Prod Data.dly
Demo Sporadic Test Data.tst
Demo Calculated Variables Data.par
Demo Deviation Data.dev
Demo Basemap Anno Data.ano
Demo Lease Info Data.xrf
Demo Pressure Lookup Data.lku
Demo DualKey Choke Data.dat
Demo Monthly Loadby Reservoir Production Data.prd
When a file is added to the Files to Load list, OFM recognizes
the extension and reflects the correct types in the Data Types
list.
Schlumberger Public
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.
Schlumberger Public
Exercise 9 Creating Files and New
Workspace
1. Create the files listed below for a simple four-well project.
One definition file
One key data file
One monthly production file
One daily production file for a simple four-well project
2. Create a new workspace and load the files to the project.
Schlumberger Public
production files (i.e., dmp2, 298 fixed format) to create OFM
projects. The following lesson demonstrates how to create an
OFM project from the dmp2 production files.
1. Create a new workspace and assign the desired workspace
name.
2. Select PI/Dwights DMP2 Production file from the Data
Source list.
Schlumberger Public
Schlumberger Public
8. Select the wells you want to load into the OFM project. You NOTE: If you want to create
can choose to load all wells to the database and click Next. a Xref (cross-reference)
table at this time, you can do
so. Click the Create X-ref
button and specify the file
name in the next dialog.
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.
Schlumberger Public
10. Make the selection and click Next.
Schlumberger Public
11. Make the selection and click Finish.
The basemap pictured below has been slightly modified. With
some modifications, your basemap should resemble this one.
6 0.0 60 .0
5 2.5 52 .5
4 5.0 45 .0
3 7.5 37 .5
3 0.0 30 .0
- 1 52 .0 - 1 44 .0 - 1 36 .0 - 12 8.0 - 12 0.0 - 11 2.0
Schlumberger Public
workspace file so that OFM can utilize the data in the tables.
database.
If you open an Access database that does not comply with the
OFM database model, OFM will attempt to open the database but
may not be able to generate a *.OFM workspace from the data.
In this lesson we will create an OFM workspace from an existing
Access database. For training purposes, a simplified version of
the Demo database will be used. Your generic Access database
may resemble the image below.
1. Start OFM.
2. From the File menu, select New Workspace. The New
Workspace window displays.
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
box. The Select Access Database dialog displays.
5. Locate the directory where your original (generic) Access
database is located. Select the desired *.mdb file.
Schlumberger Public
8. A message dialog displays regarding the master XY table.
Click Yes.
Schlumberger Public
1. Select the master (primary) key for this project in the Table
Key(s) section of the dialog. In this case, the master key is
UNIQUEID (which should have been selected for Field1).
Click OK to proceed. The basemap displays.
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
Schlumberger Public
name). The following message dialog displays, prompting you
to confirm the addition of the SortCategory to the project.
Click Yes.
Schlumberger Public
You are returned to the Edit Schema window.
Schlumberger Public
Schlumberger Public
You are returned to the Edit Schema window.
8. Select the Fields tab to view the field information. You can un-
associate the field(s) from here. You can also add more
field(s) to this table.
Schlumberger Public
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.
Schlumberger Public
Schlumberger Public
15. Locate the OFM Definition section of the dialog. Select
Sporadic from the Table Type list field.
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,
Schlumberger Public
and Daily tables. Make sure the secondary sporadic key in this
TEST table is set at DATE.
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.
Schlumberger Public
20. OFM suggests mapping UNIQUEID to UNIQUEID. Click Yes.
You are returned to the Edit Schema dialog.
Schlumberger Public
things including completion,
lease, reservoir, etc.
23. Locate the OFM Definition section of the dialog and select
Lookup from the Table Type list field. Click Yes.
Schlumberger Public
26. Locate the Available Tables section of the dialog and select
LEASE_DATA. Click Yes.
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.
384000 384000
1665000 1668000 1671000 1674000 1677000 1680000
Schlumberger Public
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.
Schlumberger Public
6. Locate the OFM Definition section of the dialog. Select
Monthly from the Table Type list field.
7. Click Yes.
You are returned to the Edit Schema window.
Schlumberger Public
You are returned to the Edit Schema window.
Schlumberger Public
.
12. A confirmation dialog displays prompting you to accept the
OFM key associations. Click Yes to accept the OFM key
associations.
Schlumberger Public
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.
Schlumberger Public
it interactively option.
Schlumberger Public
9. Click the Add Link Tables button. The Open dialog displays.
Schlumberger Public
10. Locate the directory where your Microsoft Access source
database is located. Select the database.
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.
Schlumberger Public
tables by clicking Select All.
You must then select the
17. From the Select Table(s) to Link dialog, click Select All.
HEADERID table first from Notice that the HEADERID table is available for linking. You
the Available Tables list to do not need to link the HEADERID table again. Therefore,
map into the project. while holding the Control key (Ctrl), click on the HEADERID
Remember, the MASTER table to unselect it.
table must be mapped first.
18. Click OK. The selected tables have been made available to
the OFM project.
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:
The Worksheet Name will be used as the Table Name.
The first row on the worksheet is reserved for Field Names.
These names should contain no spaces.
Data must begin in Row2, and every column with numeric
data MUST contain a numeric value. Missing numeric data in
Row 2 should be represented by the default null OFM value
(-99999).
Each worksheet can only store data for one OFM table. No
merging of worksheets allowed.
Data on the worksheet must be continuous. No empty row(s)
should exist in between data sections.
No extra formats on the data columns (i.e., comments,
merged cells, etc).
Data in the same column must be of identical data type (i.e.,
number, text, date/time) and should be of the same format.
No embedded graphs allowed on the linked worksheet.
In other words, KEEP IT SIMPLE!
Schlumberger Public
Schlumberger Public
To create an OFM project from an external Excel spreadsheet:
1. Launch OFM.
2. Create a new workspace. Locate the directory where you want
to put the workspace file and the database file.
3. Select Design it interactively. Click OK.
Schlumberger Public
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).
8. Click Select All, then OK. The Edit Schema Tables dialog
displays.
Schlumberger Public
9. Select the HEADERID table from the list.
Schlumberger Public
TIP: Right mouse click on You can rename a table in OFM, once the table has been
the table (on the left pane) mapped. Many external tables have long names, which you may
and select Rename from the consider changing. The external table names are still unaltered;
menu, the program gives only the OFM table names change.
you access to changing table
names. 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.
Schlumberger Public
3. Click OK. The Edit Schema window displays.
4. Select the HeaderID table and delete it. Click the Add Link
Tables button. The Open window displays.
Schlumberger Public
6. Select the Machine Data Source tab and click New. The
Create New Data Source dialog displays.
Schlumberger Public
Server from the list of available drivers.
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.
11. Click Next. The wizard prompts you to enter the login
Schlumberger Public
information.
12. Click Next. Select the default database where your source
database is located and provide other information as needed.
Schlumberger Public
Schlumberger Public
The results of the test are displayed in a message window.
16. Click OK you are returned to the Select Data Source window.
Schlumberger Public
17. Select the Machine Data Source tabbed page.
18. Highlight the desired DSN and click OK. This step concludes
the DSN setup. The Tables window displays.
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.
Schlumberger Public
Complete the steps to create the project (linking to SQL Server).
Review Questions
What methods can you use to create an OFM project?
Describe the hierarchy of an OFM database from highest to
lowest.
What is the Linked Tables Method and why do you need to
use it?
Summary
In this module, you:
Analyzed table types
Populated the project with ASCII data files
Lined the project with data from external ODBC sources
In the next module, you will learn how to access core functionality
in the OFM environment and how to use project panes.
NOTES
Schlumberger Public
NOTES
Schlumberger Public
Learning Objectives
In this module, you will successfully learn how to perform the
following procedures within this workflow:
Changing the layout
Working with panes
Edit completions, wellbores, patterns
Understanding units, multipliers, PVT data
Editing table schema
Schlumberger Public
Editing categories
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.
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.
Schlumberger Public
On.
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
NOTE: To dock the pane,
floating pane.
double-click in the header of
the pane. The pane is
restored to its original
location.
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.
Schlumberger Public
2. Release the mouse. The pane docks in the new location.
Schlumberger Public
Patterns patterns are groups of wells. The portion that each
individual well contributes to the group varies with time and is
calculated by applying a factor to the individual well data.
Selecting the Patterns menu command displays the Edit
Patterns dialog. This dialog contains a list of pattern data to select
one or more patterns to display on the base map.
Schlumberger Public
2. Click Add Unit. The Edit OFM Unit window displays.
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.
Schlumberger Public
2. Click Add Multiplier. The Edit OFM Multiplier window
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.
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
There are two parts of an OFM project: the design (structure) and
the data. This topic demonstrates how to edit a project in both the
design and the data.
A typical OFM project has many tables and each table has many
fields/variables. OFM does enable users to interactively
add/delete/rename tables, fields, as well as change the project
settings/associations regarding its structure.
Schlumberger Public
from the Access database.
4. To add an OFM table, locate the OFM Representation
section of the window, select the Demo2007 folder and right-
click. A shortcut menu displays.
5. Select Add.
Schlumberger Public
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.
Schlumberger Public
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
Schlumberger Public
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.
18. Locate the Curve Attributes section and make the changes
listed below.
Line Color - Green
Line Width - 4
Line Type - Solid
Point Type - None
Point Size - (not applicable with Point Type of None)
Fill Interior - None
Fill Style - Horizontal
Schlumberger Public
19. Click OK to save your changes and exit the Edit Schema
window.
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.
Schlumberger Public
NOTE: Use the Show all
Fields option with caution as
it can cause round-off errors
for non-text fields.
Review Questions
How do panes help you control the display in OFM?
When you use the OFM Database menu commands, what is
the impact on the OFM database?
Describe the structure of an OFM database.
Summary
In this module, you:
Changed the default layout
Familiarized yourself with opening, hiding, floating, docking
and positioning panes
Edited completions, wellbores, and patterns
Reviewed units, mulitipliers, and PVT data
Edited the schema table
Edited categories
Schlumberger Public
In the next module, you will learn how to customize the basemap.
NOTES
Schlumberger Public
NOTES
Schlumberger Public
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
Schlumberger Public
Edit Map Display
Modify Map Properties
Zoom/Unzoom
Apply Map Annotations and Deviations
Creating/Editing Map Associations (interactively)
Schlumberger Public
Well Type Table fields).
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
3. Select Edit > Map >Association. The Map Association Data
window displays.
4. From the Well Type Table list field select Sc.WellType and
click OK.
5. The Well Symbol File dialog displays, select Default.
6. Click OK the Well Symbol File dialog closes.
The basemap displays with the well type as the legend display
criteria. Move the legend, if needed.
Schlumberger Public
2. Save the current symbols used to a file for future use by
clicking Save File.
The two checkboxes at the base of the Well Symbols dialog
are used to enhance performance when dealing with a
potentially large number of wells.
3. Click OK and observe the changes made to the well symbols.
Schlumberger Public
In this exercise you will display the well names on the basemap.
1. Locate the Well Name Properties section of the Properties
pane.
Schlumberger Public
Schlumberger Public
Numbers section of the
Properties pane. To modify
this value, the Grid Control
property must be set to
Manual.
Schlumberger Public
2. Select the checkbox to the left of the Demo Database header
and click Delete. This action removes the heading currently
displayed on the map.
3. Select Edit > Map > Headers. The Headers window displays.
Schlumberger Public
6. Click Add. Another blank row is inserted in the window.
7. Click Assist. The Edit Header window displays.
Schlumberger Public
information will assist you with the format you should use
when entering information in the Header field.
10. Select DayName and double-click.
11. Enter the desired year, month and day in the following format
YYYYMMDD in front of the comma.
Schlumberger Public
13. Click OK. The Edit Header window closes, and you are
returned to the Header window.
15. Specify the font attributes. Click OK to close the Font window.
16. Click OK to close to Headers window.
Schlumberger Public
TIP: The legend can be
moved by dragging and
dropping to any location on
the basemap.
Schlumberger Public
The Map Annotations window enables you to display
annotations on the basemap by loading annotation files and
instruct OFM to display the selected annotations.
1. Select Edit > Map > Annotations. The Map Annotations
window displays.
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
3. Navigate to the annotation files from the \\...\Sample
Databases\Demo Database\Text Load Files directory.
4. Select the files and click Add. Then click Load. The OFM
Data Loader dialog closes, and you are returned to the Map
Annotations dialog.
Schlumberger Public
6. Check Cache annotations for performance
(recommended). Click OK. The message dialog pictured
below displays.
Schlumberger Public
10. Click All. All annotations are displayed in the preview window.
Schlumberger Public
Schlumberger Public
2. In the Draw Well Location section of the window select At
Surface and in the Draw Survey section of the window select
Completely.
Schlumberger Public
Exercise 30 Zooming & Panning
1. The zoom and pan pane option can be found from the View
menu by selecting View > Panes > Zoom & Pan.
Schlumberger Public
window.
Schlumberger Public
Exercise 32 Creating New Annotations
TIP: New enables you to
In this version of OFM, you can interactively add/edit map draw new annotations.
annotations.
Click Open to open
1. To create new annotations select Tools > Map Annotations previously saved
> New. This action enables the Map Annotations Toolbar. annotations.
Click Save to save the
current annotations
displayed.
2. Select the desired drawing tool buttons to activate the draw
mode.
3. Start drawing the annotations.
4. When done, click the Start/Stop button (last button, with a tool
tip when your cursor is there) or click the right-mouse button
and select Stop. (You can edit the annotations attributes
later.)
Schlumberger Public
directory).
4. Click Open.
The annotations (lines and texts) display.
Schlumberger Public
As you open an annotation file, the default mode is Create, so
you can add more annotations to the current display.
5. Right-click on the basemap. A shortcut menu displays.
6. Select Edit.
The Map Annotation Editor displays.
Schlumberger Public
9. Click OK.
The Map Annotation Editor window closes, and the changes
are applied to the basemap.
Schlumberger Public
right-mouse click. However,
the menus that appear
10. Continue to modify the annotations. You can even move the depend on the hierarchical
annotations by changing their coordination. Save the file (over- (drill-down) level you are on.
write the file name if you want).
Review Questions
Name five attributes you can modify on the basemap display.
Which menu option determines how well deviations display?
What is the purpose of the Irregular Zoom option?
Why is Workbook Mode useful?
Summary
In this module, you:
Edited Map Association Data
Modified the map display
Modified the map properties
Familiarized yourself with the zoom/unzoom feature
Loaded an Annotation (*.ano) file
Familiarized yourself with deviation data
Schlumberger Public
Created and edited map associations interactively
In the next module, you will learn about filtering options in OFM.
NOTES
Schlumberger Public
NOTES
Schlumberger Public
Module 5 Filtering
Filtering is a technique used to narrow down the list of entities to a
more manageable and workable selection. In reality, most users
are only interested in a subset of their working projects. The
concept of filtering in OFM has proven to be very useful for all
users as good filter criteria can really optimize the time to perform
analysis, guarantee correct results, and maximize productivity.
The OFM Filter pane is pictured below.
Schlumberger Public
Learning Objectives
In this module, you will successfully learn how to perform the
following filtering procedures:
Filter by Completion
Filter by Table Data
Filter by Category
Filter by Match
Filter by Well List
Filter Using Map Area
Filter by (OFM) Query
Using Step Functionality
Project Filtering
Other Filtering Methods
In previous OFM releases, only the full Completion name Schlumberger Public
could be displayed in the list for user defined selections. By
default OFM now displays both the full completion and alias
name in one screen. Additionally, you may change the view
from Alias to another category for display in the second
column by selection the Second Column Info drop-down list.
The CTRL or Shift keys help the user to select multiple wells
or entities of interest. Clicking the column headers
automatically sorts the well entities.
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
4. Click OK the Filter by Completions dialog closes and the
basemap displays.
Schlumberger Public
map annotations. Select the checkbox to clear it and click
OK.
7. The basemap does not adjust to display the selected wells
(zoom). You can ask OFM to automatically zoom in the
selected wells by selecting Tools > Settings. The Settings
window displays.
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
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.
The basemap now only has one well highlighted in magenta,
Blue_1.
Schlumberger Public
.
3. Select MONTHLYPROD table from the list of tables. The NOTE: The output data at
basemap returns all wells with production data. the top of the filter pane
shows that 120 wells meet
the filter criteria. In other
words, 120 wells have data
in the MONTHLYPROD
table.
Schlumberger Public
Question
What do you think the results mean? Why 20 and not 21? Can
you single out the difference (well name)?
Schlumberger Public
4. To select wells in either BERRINGER or TRAMMEL, select
both checkboxes. The basemap shows 129 wells. Obviously,
the TRAMMEL lease has 35 wells (129-94=35).
5. Clear the filter.
6. Expand the LEASE node and select BERRINGER from the
list of available leases.
Schlumberger Public
.
Question
Select the oil wells that belong to the LITMUS reservoirs. How
many wells are there?
Schlumberger Public
3. In the Completion Key Match field, type BL*. This option is
not case sensitive.
4. Click OK. The Match dialog closes, and you return to the
OFM main window.
5. Check Match 1 in the Filter pane.
The map displays forty wells that satisfy the filter criteria.
Schlumberger Public
Schlumberger Public
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.
2. Select Add.
The OFM Query window displays.
NOTE: If queries were not 3. Click Edit. The Create Query window displays.
previously created, you have
to create one by clicking
Edit.
TIP: Monthlyprod.Oil is an
Schlumberger Public
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 If you are familiar with query languages such as SQL, this
capability. Keep in mind that interface mimics the WHERE portion of your query statement.
in OFM, the AND operator is
represented by the & 4. In the text window below, enter Monthlyprod.Oil > 500.
(ampersand) character, the
OR operator is represented
by the | (vertical bar)
character, and the NOT
operator is denoted by the !
(Exclamation mark).
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
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
Thirty-one wells return, meaning each of those 31 wells has
produced at least 500 barrels of oil per month more than (or
equal to) three times in its producing history since 1990.
13. Select OFM Query2 and right-click.
14. Select Edit. The Create Query window displays.
15. Nest in another condition to check for gas production (i.e.,
searching for the wells that have high oil and low gas
production). Append this line to the end of the previous query
statement: & Monthlyprod.Gas < 500000.
16. Run the query again. Only 18 wells return.
17. Select OFM Query2 and right-click.
18. Select Edit. The Create Query window displays.
Schlumberger Public
20. Now rerun the query.
It will return the same result. However, by adding parentheses,
the query statement is more readable and manageable. The
order of precedence is very important in any type of query
language. Parentheses verify that the query is evaluated in
the order that the user specifies and helps avoid unnecessary
errors. It is recommended that you get into the habit of adding
parentheses.
21. Use Filter by Query to find the wells that produce at least
5000 bbl of oil or 2000000 scf of gas for at least 3 consecutive
times since 1990. Your query should return 19 wells.
22. Use Filter by Query to find the wells that produce at least 50
bbl of oil for at least 3 consecutive times since 1998. Save the
query as Prod_Wells98. Your query should return 18 wells.
23. From the Filter pane, click the Save icon and select To Well
List.
24. Save it to your desired directory as Prod_Wells98.txt. You
may be using this list for future tasks (e.g., Forecasting).
25. Select the Filter Archive tab located at the base of the Filter
pane. Select the Archive node, right-click and select Add. A
new node is added.
NOTE: You can have all the 27. To filter the wells producing more than 2000 bbl of oil, have
arguments in a logically test information, and belong to the BERRINGER lease.
combined query statement, Expand the Category node, then the LEASE node, and check
but the statement then could BERRINGER.
be very difficult to maintain,
troubleshoot, and 28. Expand the Table Data node and select TEST table.
understand (not taking into 29. Select OFM Query and right click. Select Add from the
account the limitation of the shortcut menu. The OFM Query window displays.
query statement buffer size).
30. Click Edit. The Create Query window displays.
31. Type Monthlyprod.Oil > 2000.
32. Click OK to save the filter the query.
Schlumberger Public
33. Select the checkbox to the right of the filter. The result of your
nested filter is displayed. Do not clear the filter.
Schlumberger Public
2. Select one or more decline curve analysis cases.
3. Expand the Cases folder and select phase or ratio parameters
to include in the filtered cases.
Schlumberger Public
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
4. Select the name of the previously saved *.txt file.
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.
Filter Archive
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 Public
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.
Schlumberger Public
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
Schlumberger Public
3. Select the Project Filters node and right-click. A shortcut
menu displays.
4. Select Add from the shortcut menu. The Edit Project Filter
window displays.
Schlumberger Public
5. In the Where Clause section of the dialog, enter
XCOOR>1671000 AND XCOOR < 1676000 AND
YCOOR>388000 AND YCOOR < 392000.
6. Click OK. The Edit Project Filter dialog closes.
Schlumberger Public
8. Clear the checkmark to the left of the project filter. The
basemap shows all 231 wells.
Schlumberger Public
18. Click OK. The Edit Project Filter window closes.
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?
Why is filtering by Table Data useful?
What data can you best access when you filter by Query?
In what three forms can a filter be saved?
What does Project Filter do?
Summary
In this module, you filtered by:
Completion
Table Data
Category
Match
Well List
Using an OFM map area
OFM query
Schlumberger Public
NOTES
Schlumberger Public
NOTES
Schlumberger Public
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
Add Calculated Fields
Create Calculated Variables
Schlumberger Public
Use Calculated Field
Schlumberger Public
what you want to do with your data, you have to choose the
correct implementation of which variable type to use.
Schlumberger Public
Representation section of the window and right-click. A
shortcut menu displays. Select Add.
Schlumberger Public
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 NOTE: You can always edit
Units list. the equation by clicking the
Schlumberger Public
Edit button and changing it
from the Definition text box.
11. Select the Report tab and locate the Format section. Change
the Width to 12.
Schlumberger Public
12. (Optional) Change the heading.
13. Select the Plot tab. In the Curve Name field, type(Calcd
Field) Gas-Oil Ratio.
15. Click OK. The Edit Schema Tables dialog closes and you are
Schlumberger Public
returned to the main OFM window.
Question
What do you think the variables mean?
Schlumberger Public
An individual or asset team may be familiar with a standard set
of calculated variables.
The User column classifies variables as:
Standard Company Calculated Variables
Calculated Variables for a specific asset team
An engineers personal set of Calculated Variables
A combination of the above points
The Class column specifies the category type of calculated
variables as:
Class monthly calculated variables only
Class daily calculated variables only
Class water flood variables only
The window displays the subset of calculated variables of
interest in an OFM project based on the User and Class
selected. The default is to display all calculated variables.
Schlumberger Public
5. In the Name field type CV.GOR. Leave User and Class fields
unspecified.
NOTE: It is recommended
6. Assign attributes to the calculated variable. Select the Units to assign more attributes for
tab and assign M as the Output Multiplier. In the Units this variable (Report
section select cf/bbl. Headers, Plot Name, etc.).
7. Click Close.
Schlumberger Public
5. Click OK. The Edit Calculated Variable window closes, and
you are returned to the Calculated Variables window.
6. In the Name field type CV.CumOil.
7. Leave User and Class empty for this exercise.
8. Select the Units tab.
9. Select M for Output Multiplier and select bbl (bbl = = >m3) for
Units.
10. Select the Report tab. In the Decimals field type 3.
11. Change the Heading to Cumulative and Oil. On the first
row type Cumulative and on the second row type Oil.
12. Select the Plot tab. In the Curve Name field type
Cumulative Oil.
13. Select the Plot tab and assign the following attributes:
Line Color Green
Line Type Solid
Line Width 4
14. Click Close.
The CumOil has been added to the project and can be found from
the variable list. The @CumInput() function can only take input
variable as argument. If your argument is not an input variable,
use @Rsum() or @CRSum(). These system functions do not take
previous volumes (precums) into account.
Schlumberger Public
@First() doesnt require
the second argument (the
condition), whereas
@Cfirst() imposes the
existence of the condition.
Schlumberger Public
you are returned to the Calculated Variables window.
5. In the Name list field type CV.DateofFirstProd.
6. Click Close. The variable has been added to the project.
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:
Line Color Dark Red
Line Type None
Point Type Filled Star
Point Size 5
9. Click Close.
Schlumberger Public
Plot the MonthlyProd.Oil and CV.MaxOil versus Date and traverse
through the wells/entities to see how the CV.MaxOil variable
works.
Question
How could you plot only one value, right where the peak oil
happens?
Schlumberger Public
Schlumberger Public
6. Click Add Variable. The Edit Calculated Variable window
displays.
7. In the text field at the top of the dialog type @FmtName(
Ratio.GOR, @Last(Ratio.GOR) ).
Schlumberger Public
the header, so it is using the attributes of the Ratio.GOR
variable. It is a good time to look at what attributes were
assigned to the Ratio.GOR variable.
10. Locate and select the Ratio.GOR variable from the list.
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.
12. Select the Report and Plot tabs. OFM will use the plot name
NOTE: If the plot name for
of the Ratio.GOR variable as it displays gh.LastGOR on the
Ratio.GOR is used then it
header.
Schlumberger Public
will not be known that it is
meant to be the last GOR.
13. (Optional) Select the Units tab and verify that the Output
Multiplier is set to M.
Schlumberger Public
2. Locate the Variables list field and select Monthlyprod.Oil.
3. Click Add Curve. Another row is inserted in the Edit Plot
dialog.
4. Click in the Variables field and select Monthlyprod.Gas.
Schlumberger Public
5. Locate the Properties pane, expand the Headers property
and click in the field to the right of Setup. A button displays in
the Setup field.
6. Click Setup.
The Headers window displays.
7. Click Add. OFM adds the first header (row) to the Headers
window.
8. Highlight the inserted row and click Assist. The Edit Header
Schlumberger Public
window displays.
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.
13. Click on each individual header and move them to the desired NOTE: The lease name and
location to display and change the fonts.
Schlumberger Public
reservoir name are
<Ambiguous>, which is
correct. All the wells are
grouped, but not all of the
wells belong to the same
reservoir and lease. If OFM
cannot display a single
name, it returns
<Ambiguous>.
14. Locate the Step pane and select well Blue_1:Li_1C, to see a
better result.
Schlumberger Public
Create text display variables (used on headers) for last water cut,
first monthly oil rate, and peak (maximum) monthly oil rate.
Review Questions
What types of variables are in the OFM primary classification?
Describe each of them.
How does the intrinsic if statement improve the handling of
calculated variables?
How do Text Display variables improve your presentations?
Summary
In this module, you:
Created calculated variables
Edited calculated variables
Added calculated fields
In the next module you will learn about plotting with OFM.
NOTES
Schlumberger Public
NOTES
Schlumberger Public
Module 7 Plotting
Plotting is one of the most commonly used modules in OilField
Manager because it is easy to use, effective, and capable of
doing many procedures for analysis of production data.
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
Create a graph with two y-axes
Create a plot with multiple graphs
Use Plot Lock and Graph Blow Up options
Create stacked graph/plot on entities
Schlumberger Public
Create stacked graph/plot on variables
Use Sum/Average/% Contribution plot types
Create plot overlay
Use Plot Annotations
Use plot-related tools/utilities
Schlumberger Public
4. Select the Filter tab and click , the Group icon located at
the top of the Filter pane.
Schlumberger Public
Graphs to 1 and Current Graph to Graph 1.
7. Locate the Y Axis section of the window. Set Number of
Axes to 1 and Current Axis to Y-AXIS 1.
8. In the X-Axis section of the window, select Date from the
Variable list field and 1 for the Multiplier.
9. Click in the Variables column and select Monthlyprod.Oil
from the list of predefined variables.
11. Click OK. The plot is generated and displayed in the OFM
Plot window.
Schlumberger Public
Exercise 58 Modifying Graph Properties
In this exercise you will modify the graph properties.
1. Locate the Properties pane. Click in the blank cell to the right
of the Curves property and select 1:
Monthlyprod.Oil:CURRENT: (18). The curve is selected and
the curve properties are displayed in the Properties pane.
Schlumberger Public
4. Select the X-Axis. Use the vertical scroll bar to locate the Tics NOTE: Click on the X-Axis
properties. Change the Line Color to Gray. The tic marks are or Y-Axis to change the axis
updated to reflect the changes. attributes in the Properties
pane.
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.
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.
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.
8. Verify that the Y-Axis Scale Type is Logarithmic.
9. 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.
10. Change the Size to 9 and click OK. The Font window closes
and the size of the text displayed on the Y-Axis updates.
11. Select the graph to display the graph properties in the
Properties pane. Locate the Graph Settings section of the
Properties pane.
12. Click in the Setup field located in the Headers section, a
Setup button is enabled.
13. Click Setup the Headers window displays.
14. Click Add, and a blank row is inserted in the Headers window.
16. Click Font. The Font window displays. Select the following
properties:
Font Arial
Schlumberger Public
Font Style Bold
Size 12
Angle 0
Color Blue
Background Transparent
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.
Schlumberger Public
18. Move the logo using the drag and drop method. The logo can
also be resized by modifying the font properties.
19. Click OK to close the Headers dialog.
Schlumberger Public
24. Select the Monthlyprod.Gas curve on the plot. The properties
display in the Properties pane. Assign the following attributes
to the curve:
Color Red
Type Solid
Width 3
Multiplier M
Schlumberger Public
If you have multiple curves and want them to share some of
the same properties, you can assign those properties by
selecting All Curves from the Properties pane. For example,
if all curves share the same Type, Width, Point, and Fill
properties, you can select All Curves and change those
properties once.
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.
29. From the well drop-down list, select a well. The plot refreshes NOTE: The First, Previous,
and displays the data for the selected well. Next and Last buttons
enable you to quickly
navigate through the wells in
Schlumberger Public
the list.
Schlumberger Public
assign the following attributes to the curve:
Color Dark Green
Type Dashed
Width 3
8. Select the Cumulative Gas Production (Gas.Cum) curve
and assign the following attributes to the curve:
Color Dark Red
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.
10. Move the legend to the upper left corner of the plot window.
Schlumberger Public
1. Select the Plot tab and double-click on the plot. The Edit Plot
window displays.
2. Locate the Graph section of the window and change the
Number of Graphs to 4. An OFM message dialog displays
prompting you to overlap graphs. Click No. Observe what
happens if you select Yes.
3. Set the Current Graph to Graph 2. The variables previously
listed are removed.
4. Select Ratio.GOR from the Variables list.
Schlumberger Public
8. Select Water.Cum for the X-Axis. Select Monthlyprod.Water
for the Y-Axis.
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.
Schlumberger Public
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.
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
9. Set the Current Axis to Y-Axis 2 and the Oil.WellCount
variable.
10. Click OK. The Edit Plot window closes and the plot displays.
Schlumberger Public
attributes:
Line Color Dark Red
Line Type Bar
Line Width 1
Bar Width 1
Schlumberger Public
This exercise addresses using the OFM Plot Lock and Graph
Blow Up options.
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 Y-
Axis 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 Color Blue
Line Type Solid
Line Width 3
7. Assign the following attributes to the Monthlyprod.Water curve:
Line Color Dark Blue
Line Type Dashed
Line Width 3
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.
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.
Schlumberger Public
selected graph displays in
full scale. Select View >
Blow Up again to uncheck
the option. The plot returns
to its original state.
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, .
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
Schlumberger Public
13. Select the Y-Axis. Change the Scale Type property to
Linear.
Schlumberger Public
4. Close the Edit Schema Tables window.
Schlumberger Public
Schlumberger Public
9. Select the Units tab and specify the unit of bbl ==>m3.
10. Click Close.
11. Click the Plot icon at the top of the OFM main window. The
Edit Plot window displays.
12. Click Add Curves. Two blank rows are displayed in the
variables section of the dialog.
13. Enter the data below in the Edit Plot window:
Number of Graphs 1
Number of Y-Axes 1
X-Axis Date
First Curve Variable Monthlyprod.Oil
Second Curve Variable CV.Gas2OilEq
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.
16. Click the Stacked Plot icon located in the Plot toolbar. Select
Orange_19:Ad_1A from the Step toolbar.
Schlumberger Public
Lesson 26 Sum/Average/%
Contribution Types
It is possible to sum, average, and determine the percentage
contribution of each curve in a group.
Schlumberger Public
10. Click the Sum Plot icon, . The sum plot displays.
11. Select the curve and change the properties to reflect the
following:
Color Dark Green
Line Type Solid
Line Width 3
12. Select the Y-Axis. Change the Scale Type property to Linear.
Schlumberger Public
13. Click , the Average icon, to change the plot type.
14. Click the Percent Plot icon, , to change the plot type.
15. Zoom in on the plot and move the legend to another location
so it does not block your view.
16. Locate the Curves section of the Properties pane and assign
the following color attributes:
Schlumberger Public
Curve 1 Green
Curve 2 Blue
Curve 3 Yellow
Curve 4 Red
Curve 5 Magenta
Curve 6 Cyan
17. If you select the X or Y axis and then right-mouse click, the
different plot options display.
Schlumberger Public
scrolling with the mouse
Change nr. of cycles Define the number of log cycles
for the axis
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.
13. Click the Stacked Plot icon and verify that the method is set
Schlumberger Public
to Interpolation.
Schlumberger Public
6. Click OK. The Edit Plot window closes.
7. Select the line displayed on the plot. From the Properties
pane, set the Line Color to Green, the Line Type to Solid,
and the Line Width to 3. Set the Curve Event to
Notes.Notes.
Schlumberger Public
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.
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.
Schlumberger Public
7. Set the X-Axis Variable to Date. Select the newly created
variable AveOilPrd as the curve.
Schlumberger Public
10. Select Tools > Compute Line or right-click and select
Compute Line.
11. Visually decide the best fit linear line for the curve and draw
the line.
12. Select Tools > Compute Line Lock or the line will disappear
upon your next action.
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
Schlumberger Public
Creating a Plot with Three Graphs
Create a plot that has three graphs with the minimum
requirements listed below:
Graph 1 2 Y-Axes
Graph 2 Stacked Plot
Graph 3 Plot Overlay. You can use LEASE or
RESERVIOR levels to narrow down the number of entries.
Review Questions
What is the difference between a Plot and a Graph in OFM?
What type of variable can you not plot?
What is the advantage of using a Plot Overlay?
What does a Compute line do?
Which plotting option helps you access data quality control?
Summary
In this module, you:
Created a graph on one y-axis
Created a graph on two y-axes
Created a plot with multiple graphs
Utilized the Plot Lock and Graph Blow Up options
Stacked graphs/plots on entities
Stacked graphs/plots on variables
Familiarized yourself with sum, average, and percent control
plots
Created plot overlay
Used plot annotations
Used other plot related tools and utilities.
In the next module you will learn about creating and formatting
reports in OFM.
Schlumberger Public
NOTES
Schlumberger Public
Module 8 Reporting
OFM, as an analytical tool, has its own features tailored for
specific needs. It has the advantage of having more than 230
system functions and an environment for writing macro-like
functions. An OFM report has been proven to be a powerful and
effective tool for outputting information, processing/manipulating
data, and testing customized variables. Unlike plotting, the fields
displayed on the report do not have to be pre-constructed
variables.
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
In this module, you will successfully learn how to perform the
Schlumberger Public
following procedures:
Create a Monthly Report
Create a Daily Report
Create a Sporadic Report
Formatting a Report
Additional Report Tools
Exporting to Microsoft Excel
Rules
Do not mix sporadic variables with either monthly or daily
variables on the report.
Static data can be retrieved at any time because they are
unchanged with time.
Schlumberger Public
Lesson 31 Report Variables
All OFM variables can be reported. The variables can be
accessed from the Project Variables list in the Edit Report dialog
window. In this lesson, you will learn to create simple reports to
output monthly (with static), daily (with static), and sporadic data.
Schlumberger Public
@name() is a system function. You can click the System
Functions button and select Name from the list. The @ sign
and the parentheses are automatically added to denote this is
an OFM system function.
Date, monthlyprod.oil, monthlyprod.gas, and
monthlyprod.water are all input variables. You can type them
in (with the commas), or select the variables from the list to
add in (again, double-click or highlight-and-Add). To access
variables, you have to be on the Project Variables level.
Since you are currently on the System Functions level (to get
@name()),click the Project Variables button. After you add a
new variable into the Select variable list (without typing),
OFM adds a comma after the last variable to separate it with
the newly added variable.
The Keypad contains Command/Keyword buttons, logical
operators, and numeric keys. If needed, you can add them to
the Select box (without selecting the Add button).
Schlumberger Public
7. Select Blue_1:Li_1C. Add a real static variable and a few of
those calculated fields and calculated variables that were
created earlier.
8. Double-click on the report and add sc.reservoir,
monthlyprod.gor, and ratio.gor to the Select text field.
Schlumberger Public
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).
Schlumberger Public
5. Click OK. The report may return several null values. Scroll
through the report to see the data.
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.
Schlumberger Public
2. Select well ORANGE_1:Ad_4 from the Step toolbar. The
selected well is highlighted on the basemap.
3. Click the Report icon to generate a report. The Edit Report
window displays.
Schlumberger Public
5. Click OK to display the report.
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.
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
Lesson 34 Format a Report
In addition to creating a sensible report, making it readable is also
important. OFM provides a reasonable set of features that enable
you to narrow down the date range, apply sort criteria, display
subtotals, as well as enhance the quality of the report output.
Schlumberger Public
Schlumberger Public
5. Click OK the report displays.
6. Select well Blue_1:Li_1C from the Step toolbar.
Schlumberger Public
Current Column enables you to select the variable for
editing. All report attributes seen are specified to the
selected variable.
Width is the numeric value of the display field. You may
see a string of asterisks (******) on the report if the width of
the column is not wide enough to display the value. If a
text field is not wide enough, the text is truncated.
Decimal Places are number of decimal places to be
displayed when the variable returns a numeric value.
Justification aligns text in the columns to the left, center
or right. By default, a text field is left justified and a numeric
field is right justified.
Display enables you to set the unit system to either Metric
or English. Modifying this value overwrites the project
system unit.
Heading First Row contains the variables for the first row
header.
Heading Second Row contains the variables for the
second row header.
Schlumberger Public
9. Type @Today(), Last+gh.cumoil,
Last+gh.cumgas, Lastgh.cumwater and align all
headings to the left.
NOTE: You can edit, delete,
or add more headers. You
can also save all the
headers to apply them to
additional reports. Footers
function in the same manner
as headers, the only
difference is the location of
the data displayed. Footers
are displayed at the base of
the report, as opposed to
headers, which are
displayed at the top of
reports.
Schlumberger Public
13. Click OK.
14. Select Edit > Report Display. The Edit Report Attributes
window displays.
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.
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.
Schlumberger Public
23. Scroll to the end of the report.
Notice the numbers displayed at the bottom of the report
constitute cumulative oil, gas, and water production of the well
with precums. You can scroll up the report and compare them
with the numbers on the headers. This well has precums.
24. Double-click on the report. The Edit Report window displays.
25. After the Date variable add @year(date). The Select text
box should now contain the following:
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.
Schlumberger Public
5. Add monthlyprod.gas/monthlyprod.oil to the end of
the statement in the Select field.
Schlumberger Public
1. Double-click on the report. The Edit Report window displays.
NOTE: The 2. In the Select section of the dialog type @name(), date,
@tmax(monthlyprod.oil monthlyprod.oil, monthlyprod.gas,
, 1) variable above is @tmax(monthlyprod.oil, 1).
identical to cv.maxoil
created earlier. 3. Click OK to display the report. It will show that somewhere in
the history of this well it achieved the peak production of
13802 barrels per month.
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:
Schlumberger Public
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) NOTES:
depending on the specifications you set. Any text editors that The *.rpt file is saved in XML
support these file formats can open the report files so anyone can format in OFM 2007.
utilize the reports without having OFM installed.
The two selections for saving
In addition, OFM also gives users the option to format the output a report are as a text file or a
text files in some special formats. These files can be loaded to comma-separated value file;
OFM provided that the field names have been defined there is no rich text format.
beforehand.
1. Double-click on the report. The Edit Report window displays.
Click Clear in the Keypad section of the dialog.
2. In the Select section of the dialog type
headerid.uniqueid, date, monthlyprod.oil,
monthlyprod.gas, monthlyprod.water.
3. Click OK to generate the report.
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.
Schlumberger Public
6. You can also generate a report ordered by dates. Change the
Hide Duplicates value to No and the Break when this
column changes value to No.
7. Select View > Summary > By Date. This type of summary
report may take a while to complete, so be patient while OFM
retrieves the wells, dates, and data and sorts them by date.
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.
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.
Schlumberger Public
5. Select Edit > Access. The Access window displays.
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.
10. Click Yes. The dialog closes, and you are returned to the
report.
12. Check the Adjusted Monthly table from the list of Available
Tables. A message dialog displays prompting you to confirm
your decision.
Schlumberger Public
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.
Schlumberger Public
14. Click OK.
Schlumberger Public
5. Click Close and Update. The data are exported and
displayed in an Excel worksheet.
Schlumberger Public
NOTE: OFM provides you
with the ability to format the
date column by selecting the
date format in the
Properties pane.
Use the @image( ) system
function to insert a logo in
the report header. Provide
the full path of the image you
want to insert inside the
parenthesis. For example:
@image(C:\Logos\Schlu
mberger.bmp).
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
Why should you filter a well list before creating a daily report?
What is the structure of a report and how are the different
parts saved?
Summary
In this module, you:
Created a monthly report
Created a daily report
Created a sporadic report
Formatted a report
Utilized additional reporting tools
Exported the report data to Microsoft Excel
In the next module you will learn about export data project data.
Schlumberger Public
NOTES
Schlumberger Public
Module 9 Exporting
Imagine that you are working on a shared (network) project, which
has thousands of wells. You are interested in just a hundred wells
that belong to a certain field and you have to go on a business trip
for a while. Knowing that you will not have the network connection,
you may have to do something beforehand so you can still work
on your project while out of the office.
OFM provides some useful options that can be used to copy all
the data or a subset of the data for the filtered list of wells to your
local hard drive. You can export all the critical information to text
files so you can rebuild your complete database if something goes
wrong. For maintenance purposes, you might want to keep a copy
of all the text files (definition data). All the exporting options
(related to the project) can be accessed from the global Database
menu.
Learning Objectives
In this module, you will successfully learn how to perform the
following procedures:
Schlumberger Public
Exporting Database Tables
Exporting Variables to Tables
Exporting Text Load Files
Schlumberger Public
specify the path/database name you want to copy to. For
example, check the DAILYPROD table and tell OFM to write
its data to a database in C:\Temp\ named export1.
3. Click OK. OFM will export the data for you.
4. (Optional) If you have Microsoft Access installed on your
computer, you can open the export1 database and verify the
results.
5. Suppose you want to create a small project on your local hard
drive that only contains your wells of interest. Select Database
> Workspace Snapshot. The Workspace Snapshot window
displays.
6. Click the browse button to the right of the Workspace File text
field. The Open window displays.
Schlumberger Public
8. Click OK.
Schlumberger Public
Lesson 38 Export Text Load Files
Exporting text load files enables you to export specific tables in
your project to either your hard disk or the network to incorporate
information from one project into another or to preserve data in
ASCII format for backups.
2. Select the tables one at a time and click OK. The Save As
window displays.
Schlumberger Public
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.
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.
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
Exporting DCA Data
The Export DCA Data enables you to export saved forecast data,
results of all cases, and all the phases. The window is accessed
by selecting Database > Export> elected Text Load File(s) >
DCA data. The window is composed of three tabbed pages
Case and Phases, Results, and Forecast.
The tabbed pages of the Export DCA Data window are described
below.
Review Questions
Why do you need to use caution when exporting variables to
tables?
Why would you export text load files from OFM?
What data types can you export from OFM?
Summary
In this module, you:
Exported database tables
Schlumberger Public
Exported variables to tables
Exported text load files
In the next module you will learn about OFM utilities for project
management, data processing/manipulation, and customization.
NOTES
Schlumberger Public
NOTES
Schlumberger Public
Learning Objectives
In this module, you will successfully learn how to perform the
following procedures:
Manage Project Settings
Use Data Normalization
Use the Data Register
Schlumberger Public
Lesson 39 Project Settings
Project settings are managed from the Settings dialog. To access
the dialog select Tools > Settings.
Preferences
The Preferences tabbed page enables you create user defined
settings for displaying variables, warning and prompts, and
registry settings.
Group
The Group tabbed page of the Settings window enables you to
set global grouping parameters.
Schlumberger Public
Sum individual well forecasts when grouping wells If you have
performed forecasts on individual wells and want to retrieve the
forecast for a group of wells select this option.
Execute user procedure after grouping Upon grouping
(selecting), OFM automatically executes the associated user
function (procedure). This option is primarily used for automating
tasks.
DCA
The DCA tabbed page enables you to associate
parameters/qualifiers and set the default case used in forecasting.
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.
Schlumberger Public
1. Clear any previously applied filter.
2. Group all the wells on the basemap (231 wells).
3. Click the Report icon to generate a report. The Edit Report
window displays.
4. In the Select section of the window type the following: date,
monthlyprod.oil, monthlyprod.gas,
monthlyprod.water.
Schlumberger Public
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.
Only the variables that have the Multiply by Factor option (in the
Schlumberger Public
Grouping Options section of the Math tabbed page) turned on
are affected and so are their derived variables.
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.
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
Condition list.
14. Leave the Ending Condition unassociated (blank).
15. Select Default for the Date Option and Filtered Wells for the
Well Option.
Schlumberger Public
Schlumberger Public
4. Type CV.AveOil in the Name field.
5. Click Close.
6. Click the Report icon. The Edit Report window displays.
7. In the Select section of the dialog type Date,
Monthlyprod.oil, CV.AveOil and click OK. The Edit
Report window closes, and the report displays.
8. Select Blue_1:Li_1C.
Schlumberger Public
10. Select Category, then Reservoir and Litmus_1.
11. Group the data and select the Report tab to view the report
data.
NOTE: Notice the first
several records. You should
have about ten wells
producing at the beginning
(you can check that by the
@CountInput() function).
If you select an individual
well now, the two numbers
will be the same. Thus, you
would want to register one
for the grouped entity and
then recall the data for later
calculations.
12. Select Tools > Data Registers. The Data Registers window
displays.
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").
Schlumberger Public
20. Click OK. The Edit Report window closes and the report is
updated.
Schlumberger Public
23. Increase the number of decimals in the last column. The
report refreshes. Navigate through all the wells to verify the
results.
Review Questions
What five types of project settings can you customize in OFM?
What is the purpose of the Normalization function in OFM?
What is a data register and why is it useful?
Summary
You have completed the OFM Fundamentals training. In this
module, you:
Managed the project settings
Utilized the data normalization feature
Utilized the data registry
Schlumberger Public
NOTES
Schlumberger Public
NOTES
Schlumberger Public