Professional Documents
Culture Documents
PDF 5data Tables and Fields
PDF 5data Tables and Fields
Copyright Notice
This work contains the confidential and proprietary trade secrets of Schlumberger and may not be copied or stored in an
information retrieval system, transferred, used, distributed, translated or retransmitted in any form or by any means,
electronic or mechanical, in whole or in part, without the express written permission of the copyright owner.
Schlumberger, the Schlumberger logotype, and other words or symbols used to identify Schlumberger, the Schlumberger
logotype, and other words or symbols used to identify the products and services described herein are either trademarks,
trade names or service marks of Schlumberger and its licensors, or are the property of their respective owners. These
marks may not be copied, imitated or used, in whole or in part, without the express prior written permission of
Schlumberger. In addition, covers, page headers, custom graphics, icons, and other design elements may be service
marks, trademarks, and/or trade dress of Schlumberger, and may not be copied, imitated, or used, in whole or in part,
without the express prior written permission of Schlumberger. Other company, product, and service names are the
properties of their respective owners.
Security Notice
The software described herein is configured to operate with at least the minimum specifications set out by Schlumberger.
You are advised that such minimum specifications are merely recommendations and not intended to be limiting to
configurations that may be used to operate the software. Similarly, you are advised that the software should be operated
in a secure environment whether such software is operated across a network, on a single system and/or on a plurality of
systems. It is up to you to configure and maintain your networks and/or system(s) in a secure manner. If you have
further questions as to recommendations regarding recommended specifications or security, please feel free to contact
your local Schlumberger representative.
1 of 100
Data Tables and Fields
n For tables in data sources: Add and remove tables, enable and disable them, and set attributes
such as table type and date ranges
n For the fields in tables: Add and remove fields; enable and disable them; and set attributes such
as math options, units of measurement, and how the data displays in plots and reports
n OFM Representation pane on the left lists all the enabled tables and fields.
n Tabs on the right provide information about the item you selected in the OFM Representation
pane. The tabs vary depending on your selection.
Note: The level you select in the tree on the OFM Representation pane controls the information that will
display on the right side of the Edit Schema Tables window.
The following table defines the icons, used in the OFM Representation pane, and the tabs that display
when you select different items.
Icons Actions You Can Take Tabs that Display Actions You Can Take
on the Pane When You Select the on the Tab
Icon
Workspace None Tables: Lists all tables None
(your tables and shared
This is the top level of
tables) in the project
your project.
My Workspace or Add a table Tables: Lists the tables Link to databases and
Shared Workspace in the your personal spreadsheets
workspace, or in the
This is the top level of the
shared workspace
workspace. Inside the
workspace are all the
enabled tables.
Home Data Source Change the home data Tables: Lists the tables Enable and disable tables
source in the database or
Each workspace can have
spreadsheet.
only one home source. Limit the number of
entities to display for a If you select the check
Database or
SQL query box, OFM automatically
Spreadsheet
loads the tables when you
Data sources for your open your project.
project, which are not the
2 of 100
Data Tables and Fields
Master Table Add a calculated field Master: Displays the n Change the table type,
table name, table keys, key type, and cross-
Every OFM project must and key delimiters reference key
have a master table. This
table stores static well n View keys and
information. delimiters
3 of 100
Data Tables and Fields
4 of 100
Data Tables and Fields
2. On the OFM Representation pane, click a home data source (marked with the icon) or a
database (marked with the icon).
3. In the lower section, enter the maximum number of entities you want to display in the Max
entities in SQL field.
4. In the Query timeout field, enter the number of seconds you want to elapse before the query times
out.
5 of 100
Data Tables and Fields
Adding a Table
You can add tables in My Workspace. You cannot add tables to data sources in a Shared Workspace.
2. On the OFM Representation pane, right-click a home data source (marked with the icon) or a
database (marked with the icon) in My Workspace, and then click Add.
OFM lists the new table (marked with the icon) on the OFM Representation pane. By default,
OFM names the table NewItem and you must change the name.
3. Enter a new name for your table and then press Enter.
Related Examples
Creating Plots for Waterflooding: Adding Stock Tank Oil Initially in Place to the Workspace
6 of 100
Data Tables and Fields
When you enable a table, OFM automatically loads the table when you open your project. This is not the
same as adding a table. When you disable a table, OFM does not automatically load it. This is not the same
as deleting a table.
2. In the OFM Representation pane, select the home data source (marked with the icon) or the
database (marked with the icon) that holds the table.
The Tables tab displays a list of all tables in the data source. Enabled tables have selected check
boxes. Disabled tables have cleared check boxes.
3. To disable a table, clear the check box for the table you want to disable.
The table is no longer listed in the OFM Representation pane.
4. To enable a table, select the check box for the table you want to enable.
The enabled table displays in the OFM Representation pane, and a dialog may display a reminder
of your next steps.
5. After enabling a table, if the reminder dialog displays, perform the following steps:
a. Click Yes.
OFM selects the table on the OFM Representation pane. The Table and Fields tabs display.
7 of 100
Data Tables and Fields
d. On the Fields tab, in the Available Fields group, click the name of the field that is the key field.
Related Topics
Adding a Table
8 of 100
Data Tables and Fields
Caution: When you change your home data source, OFM will ask if you want to copy the current OFM-
defined tables to the new home data source. If the OFM-defined tables already exist in the new home data
source, OFM will replace the data with the data in your current home data source. OFM does not merge the
data; OFM replaces the data.
2. Click the data source that you want to be the home data source (marked with the icon).
On the lower-left corner of the window, the Set Home button displays.
4. Click Yes.
The Edit Schema Tables window closes. OFM changes the home data source.
9 of 100
Data Tables and Fields
2. On the OFM Representation pane, right-click a table (marked with the icon) and click Add.
OFM adds a new field (marked with the icon) to the table. By default, OFM names the table
NewItem and you must change the name.
3. Enter a new name for your table and then press Enter.
4. Click OK to save your changes and close the window, or change the field attributes.
4. In the Add New Field section, add the following information about the field:
a. In the Add New Field group, enter the name for your new field.
b. In the drop-down list, select the type of data your field will hold.
c. If you selected Text, in the third field, enter the maximum number of characters your field will
hold.
d. Click Add.
10 of 100
Data Tables and Fields
Related Examples
Creating Plots for Waterflooding: Adding Stock Tank Oil Initially in Place to the Workspace
Related Topics
Adding Calculated Fields
11 of 100
Data Tables and Fields
Calculated fields are all represented internally as double precision floating-point numbers. So, after you
create a field you cannot change the data type. In the Edit Calculated Field window, calculated fields are
passed to the data source for evaluation by OFM, and the results are retrieved from the data source into
OFM. Calculated fields differ from calculated variables in that OFM does not calculate them.
Calculated fields do not use the OFM parser file to evaluate a calculated field expression. You cannot enter
OFM system functions or other OFM calculated variables to use in a calculated field expression, because the
data source cannot evaluate them.
We recommend you use calculated fields for simple, numerical expressions that can be operations of other
fields within the same table.
Example: The gas field in a table divided by the oil field in that table.
Note: Since the expression is evaluated at the data source, it is subject to errors that may occur with the
expression in the data source. Critically, division operations are subject to divide by 0 errors in the data
source. If you are going to have divide-by-0 errors, use syntax supported by your data source to prevent
the expression from the division by 0. Any other expression can be safely evaluated on these fields at the
data source, and can be placed in the calculated fields.
n If you are running a native OFM workspace on a Microsoft® Access data source, you can use Access
syntax.
n If you link to tables that are in Microsoft SQL Server® or Oracle®, your syntax might be different,
depending on the operation. It is your responsibility to locate and use the correct syntax.
Related Topics
Adding Calculated Fields
12 of 100
Data Tables and Fields
2. In the OFM Representation pane, right-click a table (marked with the icon) or a field (marked
with the icon) and click Add.
OFM lists the new field on the OFM Representation pane. By default, OFM names the field
NewItem and you must change the name.
3. Type a new name for the field and then press Enter.
4. On the Field tab, in the Display Name section, enter a standardized name that follows the naming
protocols at your company.
6. In the Definition section, add your calculation and click OK. You can either enter the calculation in
the Definition field, or you can use the lists and buttons to add your calculation:
n To add a field, select the field on the Source Fields list and click Add.
8. On the Edit Schema Tables window, click OK to save your changes and close the window, or
change the field attributes.
Related Topics
Adding Fields to a Table
13 of 100
Data Tables and Fields
When you enable a field, OFM automatically loads the field when you open your project. This is not the
same as adding a field. When you disable a field, OFM does not automatically load it. This is not the same as
deleting a field.
n Fields ( ) in My Workspace
n Calculated fields ( )
2. In the OFM Representation pane, select the table (marked with the icon) that holds the field
Note: If OFM does not list your table on the OFM Representation pane, you have not enabled it.
4. To enable a field, select the check box for the field you want to enable.
The field displays in the OFM Representation pane.
5. To disable a field, clear the check box for the field you want to disable.
The field is no longer listed.
Related Topics
Enabling and Disabling Tables
14 of 100
Data Tables and Fields
n Tables ( )
n Fields ( ), if they are not primary keys, foreign keys in other tables, categories, or map
associations
n Calculated fields ( ), if they are not foreign keys in other tables, categories, or map associations
n Master tables ( )
n Fields ( ) that are primary keys, foreign keys in other tables, categories, or map associations
2. On the OFM Representation pane, right-click the table or field you want to rename and click
Rename.
15 of 100
Data Tables and Fields
You can change tables in My Workspace that are not external. You cannot change:
2. On the OFM Representation pane, select a table (marked with the icon).
6. If the Table Type is Sporadic or Sporadic DualKey, select the second primary key for the table.
Related Examples
Creating Plots for Waterflooding Surveillance: Adding Stock Tank Oil Initially in Place to the Workspace
16 of 100
Data Tables and Fields
You can specify the date range for these table types:
n Daily
n Monthly
n Sporadic
You can specify date and time ranges for these table types:
n Hourly
n Minute
n Second
You cannot specify date ranges for any other table type (such as static, lookup, and cross-reference)
because the table does not have time-dependent data.
2. On the OFM Representation pane, select a table (marked with the icon) with time-dependent
data.
n To specify a rolling date, select Last and enter the number of days (or months or hours,
depending on the table's data) from the current date.
n To specify all dates after a date, select All Dates After and enter a date.
n To specify all dates before a date, select All Dates Before and enter a date.
n To specify a range, select All Dates Between and enter the first and last date of the range.
n For cumulative calculations, if you want to sum the values before the start date, select the Sum
all values before start date for cumulative calculations check box.
17 of 100
Data Tables and Fields
Example
In this example, you have a table with monthly well data for more than 12 months. You will set the date
range to view only the last 12 months of data.
2. On the OFM Representation pane, select the table with your well data.
3. On the Date Range tab, select Last and then enter 12.
4. Select the Sum all values before start date for cumulative calculations check box.
5. Click OK.
18 of 100
Data Tables and Fields
n Tables ( )
n Fields ( ), if they are not primary keys, foreign keys in other tables, categories, or map
associations
n Calculated fields ( ), if they are not foreign keys in other tables, categories, or map associations
n Master tables ( )
n Fields ( ) that are primary keys, foreign keys in other tables, categories, or map associations
Caution: Deleting a field or table physically removes it from the data source. This will result in a loss of
data. To be safe, we recommend that you disable fields and tables instead of deleting them.
2. On the OFM Representation pane, right-click the table or field and click Delete.
A dialog opens, confirming whether you want to delete.
3. Click Yes.
A deleted table does not display on the OFM Representation pane, but it does display on the
Tables tab until you close the Edit Schema Tables window.
Related Topics
Enabling and Disabling Tables
19 of 100
Data Tables and Fields
2. On the OFM Representation pane, select the master table (marked with the icon).
n Access: The source for the table. If the master table is a shared table, you will not see a file
path.
n Field1 through Field3: The primary key fields for the table
n Key Delimiters: How your data in Field1, Field2, and Field3 is separated
20 of 100
Data Tables and Fields
2. On the OFM Representation pane, expand one of the tables and then select a field (marked with
the icon) or calculated field (marked with the icon).
4. In the Display Name section, enter a standardized name that follows the naming protocols at your
company. Do not use special characters (such as asterisks or the pound sign).
5. If you have created a new field, you can change the variable type. In the Variable section, select
the Type of variable.
6. If you chose Text for the Type, enter the Size. This is the number of bytes reserved by OFM for
storing the variable.
7. If you chose Calculated (Double) for the Type, the Edit Calculated Field window opens. Enter
the calculation:
a. In the Definition section, add your calculation and click OK. You can either enter the calculation
in the Definition field, or you can use the lists and buttons to add your calculation:
To add a field, select the field on the Source Fields list and click Add.
b. Click OK.
8. You may not want to show the variable in lists (for example, you may want to hide variables that are
used only in other variables and not used by themselves). To do this:
b. On the dialog box, click Yes if you want to change your input variable preferences to Display
only specified variables.
9. On the Edit Schema Tables window, click OK to save your changes and close the window.
Related Topics
21 of 100
Data Tables and Fields
22 of 100
Data Tables and Fields
n Units: This is the label you want to use for the data in the field. For example, if your field holds
hourly data, you might select hours ==> hours. If your field holds oil data, you might select bbl
==> m3. You are selecting the type of label, and indicating how OFM should convert units after a
different one is selected. They are the pairs that best describe the type. You are not selecting imperial
or metric units.
n Display unit system: This is the way you want to display the data in the field. In the Units group,
you selected a pair that best describes the type. The Display Unit System identifies which of the
pair you want to use for the field's label. Use this if you want the field's label to override your OFM
setting.
n Database unit system: This is the measurement system of the data in the field, as it is in the
database. (This is named the Input Unit on the Variable Editor.)
2. On the OFM Representation pane, expand one of the tables and then select a field (marked with
the icon), primary key field (marked with the icon), or calculated field (marked with the
icon) that uses units of measurement.
4. In the Units group, select the correct type of unit to display as a label for the field's data.
5. In the Display Unit System group, select the check box if you want the field's label to override
your OFM setting, and then select the alternate type of measurement.
6. In the Database Unit System group, select the type of measurement used in the database.
Related Topics
Selecting Units of Measurement for Variables (using the Variable Editor)
23 of 100
Data Tables and Fields
Fill empty cells with the value of the last non-null value (that is, carry forward the last known
value). If you select this option, you enter the maximum number of times you want to do this. For
example, if you believe the last known value is valid for three months, and you want to carry this
value forward into empty fields, select this option and then enter 3 for the maximum number of
times you want to do this.
n Input multiplier is the multiplier for the data in the field. This is the number OFM will multiply
the value by, to get a base value. For example, if it is oil data in thousands of barrels, you can
select M. If it is oil data in barrels, you can select 1. If it is gas production data in mcf, you can
select M.
n Output multiplier is the multiplier for the way you want to see the data in your plots, reports,
and other analyses. For example, if it is oil data in thousands of barrels (that is, the input variable
is M), but you want to see it displayed in barrels, you can select 1.
n Sum if you want to sum the data for a group. For example, use this if you want to work with
data for a collection of completions (such as a group).
n Average if you want an arithmetic average of the data for a group. For example, you might use
this if the field holds pressure data.
n Multiply by factor if you want pattern factors applied to the field, or if you want the variables
specified on the Options window (on the Multiply by Factor tab) to be applied to the field.
n Minimum is the minimum value allowed to be loaded to the field. If the value is below the
minimum while loading data, that data will not be loaded.
n Maximum is the maximum value allowed to be loaded into the field. If the value is above the
maximum while loading data, that data will not be loaded.
n Default is the default value of the field that is loaded, if data for the field is missing in a load file
record, or if the data being loaded is outside the minimum or maximum range.
Follow these steps to use the Edit Schema Tables window set math options.
24 of 100
Data Tables and Fields
2. On the OFM Representation pane, select a field (marked with the icon), primary key field
(marked with the icon), or calculated field (marked with the icon) with values.
The Math tab displays.
3. If you want to fill empty cells with the value of the last non-null value: In the Carry Forward
section, select the check box and then enter the maximum number of times you want to do this.
Note: If you enter 0 in the Times field, OFM will fill all empty fields with the value. Usually this is not a
good choice.
Caution: When you view results created with the Carry Forward feature, you will not be able to identify
the difference between results from real data, and results from carried-forward data.
n In the Input field, select a multiplier for the data in the field.
n In the Output field, select a multiplier for the way you want to see the data in your plots,
reports, and other analyses.
5. In the Grouping Options section, OFM selects Sum by default. You can choose to sum or average
individual data values to arrive at a group value:
n Sum: Select this if you want to sum the data for a group.
n Average: Select this if you want to average the data for a group.
n Multiply by factor: Select this if you want pattern factors applied to the field, or if you want the
variables specified on the Options window to be applied to the field.
6. In the Data Attributes section, select the check box if you want to limit the range of data that can
be loaded to the field. Then enter the following values:
n Default: The default value of the field that is loaded, if data for the field is missing in a load file
record, or if the data being loaded is outside the minimum or maximum range.
Related Tutorials
Patterns: To Designate Variables Affected by Pattern Allocation Factors
Related Topics
25 of 100
Data Tables and Fields
Selecting the Math Options for Variables (using the Variable Editor)
26 of 100
Data Tables and Fields
2. On the OFM Representation pane, select a field (marked with the icon), primary key field
(marked with the icon), or calculated field (marked with the icon).
n Width: The width of a report column containing data from the field, which also controls the size
of the header text (this is a relative number, not a measurement in inches or centimeters)
5. In the Justification section, select the text justification to use in your report for the values in the
columns (but not the column header):
n Left: To align text with the left margin (also called "flush left")
n Right: To align text with the right margin (also called "flush right")
7. In the Heading section, enter heading text for the column. Heading text has three parts:
n First field: Report Heading 1; text that displays on the first line
n Second field: Report Heading 2; text that displays on the second line
n Third field: Report Heading 3; text that displays on the third line
Note: Do not enter the units of measurement in these fields. OFM automatically adds that information to
your heading.
Related Topics
27 of 100
Data Tables and Fields
Selecting Report Display Settings for Variables (using the Variable Editor)
28 of 100
Data Tables and Fields
2. On the OFM Representation pane, select a field (marked with the icon), primary key field
(marked with the icon), or calculated field (marked with the icon).
4. In the Curve Name section, enter the text that defines the line in the legend (the label text). If you
do not enter a curve name, the legend will show only the selected completion, without identifying
the curve. Do not use special characters (such as asterisks or the pound sign).
5. In the Curve Attributes section, select the way you want your curve to display:
n Line Color: Select the color of the line that represents the data.
n Line Width: Select the width of the line that represents the data (the smallest number is the
thinnest line).
n Line Type: Select a line (solid, dashed, dotted, or dashed and dotted).
n Point Size: Select the size for the symbol that marks your points (not available if your Point
Type is None).
n Fill Interior: Choose to fill the area under the curve line with a solid color, hatched lines, a
pattern, or with no fill.
n Fill Style: Further describe the fill for the area under the curve line.
Related Topics
Selecting Plot Display Settings for Variables (using the Variable Editor)
29 of 100
Data Tables and Fields
You can either assign a data dictionary name or data dictionary facets. Data dictionary names already have
facets assigned to them (in the Data Dictionary), so when you select a name you also are selecting the
facets. You can assign each dictionary name to only one variable.
2. On the OFM Representation pane, select a field (marked with the icon), primary key field
(marked with the icon), or calculated field (marked with the icon).
b. Make sure the frequency matches correctly with the data in the field. For example, if the field
has monthly data, do not select a dictionary name with daily frequency. If you select a dictionary
name with a Frequency facet that does not match the field, a warning displays at the bottom of
the tabbed area.
c. To remove a dictionary name selection, click in the Dictionary Name field and then press
Delete.
The Dictionary Name becomes empty, and you can select facets.
5. If you cannot find an appropriate and available data dictionary name, you can assign facets:
In Property, Aggregation, Frequency, Product, Measure, and Condition fields, select the
facets appropriate for the field.
Related Topics
About the Data Dictionary and Dictionary Facets
Assigning Dictionary Names to Variables in the Catalog (in the Data Dictionary)
Selecting the Data Dictionary Name or Facets for Variables (in the Variable Editor)
30 of 100
Data Tables and Fields
MonthlyProd.Oil should be mapped to the Monthly Oil Volume dictionary name. That dictionary name has
the following facets assigned to it:
n Frequency: Monthly
n Product: Oil
n Measure: Volume
n Condition: Produced
There are several places in OFM for assigning a data dictionary name to variables. In any window, the
change you make is saved and reflected on the other windows. You should use the window that is most
convenient for you.
n If you are mapping all the invalid catalog items, use the Catalog window.
n If you are working with variables, use the Variable Editor window.
n If you are completing the data dictionary, use the Data Dictionary window.
n If you are working with fields in the tables, use the Edit Schema Tables window.
On the Catalog
On the Catalog, you cannot use the Monthly Oil Bubble Map catalog item until you map the Monthly Oil
Volume dictionary name to the MonthlyProd.Oil variable. It is listed in the list of catalog items, but it is
marked as invalid.
Before mapping:
31 of 100
Data Tables and Fields
After mapping:
Before mapping:
32 of 100
Data Tables and Fields
After mapping:
Before mapping:
After mapping:
33 of 100
Data Tables and Fields
Before mapping:
After mapping:
34 of 100
Data Tables and Fields
Related Topics
List and Spreadsheet: All Dictionary Names and Facets
35 of 100
Data Tables and Fields
If you are assigning facets to a large number of dictionary names, it may be easiest to work with a list of all
dictionary names and facets. Below are the following lists:
n Dictionary names
n Facets:
n Property
n Aggregation
n Frequency
n Product
n Measure
n Condition
Dictionary Names
n Allocated Calendar n CO2 From Test n Estimated Daily n Measured Daily n Reservoir
Day CO2 Rate Reservoir Hours On Oil Temperature
n CO2 Injection
Condensate Production
n Allocated Calendar Pressure n Reservoir Top
Volume
Day Condensate n Measured Daily Depth
n CO2 Injection
Rate n Estimated Daily Hours On Steam
Temperature n Residual Oil
Reservoir Gas Injection
n Allocated Calendar Saturation
n Cumulative Daily Rate
Day Gas Rate n Measured Daily
CO2 Volume n Rock
n Estimated Daily Hours On Water
n Allocated Calendar Compressibility
n Cumulative Daily Reservoir Gas Injection
Day Injected CO2
Condensate Volume n Shut In Bottom
Rate n Measured Daily
Volume Hole Pressure
n Estimated Daily Injected CO2 Rate
n Allocated Calendar
n Cumulative Daily Reservoir Injected n Shut In Tubing
Day Injected Gas n Measured Daily
Gas Liquid Ratio CO2 Rate Pressure
Rate Injected CO2
n Cumulative Daily n Estimated Daily Volume n Shut In Wellhead
n Allocated Calendar
Gas Oil Ratio Reservoir Injected Pressure
Day Injected n Measured Daily
n Cumulative Daily CO2 Volume n Solution Gas Oil
Steam Rate Injected Gas Rate
Gas Volume n Estimated Daily Ratio
n Allocated Calendar n Measured Daily
n Cumulative Daily Reservoir Injected n Solution Gas
Day Injected Injected Gas
Injected CO2 Gas Rate Water Ratio
36 of 100
Data Tables and Fields
37 of 100
Data Tables and Fields
38 of 100
Data Tables and Fields
39 of 100
Data Tables and Fields
40 of 100
Data Tables and Fields
Monthly Gas n Daily Gas Rate Gas in Place Days On Gas Water Volume
Volume Injection
n Daily Gas Volume n Estimated Original n Target Cumulative
n Allocated Oil in Place n Measured Monthly Monthly Liquid
n Daily Hours On
Cumulative Days On Gas Volume
CO2 Injection n Estimated P/Z
Monthly Injected Production
n Target Cumulative
CO2 Volume n Daily Hours On n Estimated
n Measured Monthly Monthly Oil
Gas Injection Producing Day
n Allocated Days On Oil Volume
CO2 Rate
Cumulative n Daily Hours On Production
n Target Cumulative
Monthly Injected Gas Production n Estimated
n Measured Monthly Monthly Reservoir
Gas Volume Producing Day
n Daily Hours On Oil Days On Steam CO2 Volume
Condensate Rate
n Allocated Production Injection
n Target Cumulative
Cumulative n Estimated
n Daily Hours On n Measured Monthly Monthly Reservoir
Monthly Injected Producing Day Gas
Steam Injection Days On Water Condensate
Steam Volume Rate
n Daily Hours On Injection Volume
Allocated n Estimated
n Water Injection n Measured Monthly n Target Cumulative
Cumulative Producing Day
n Daily Injected CO2 Gas Injection Monthly Reservoir
Monthly Injected Injected CO2 Rate
Rate Volume Gas Volume
Water Volume n Estimated
n Daily Injected CO2 n Measured Monthly n Target Cumulative
n Allocated Producing Day
Volume Gas Volume Monthly Reservoir
Cumulative Injected Gas Rate
Injected CO2
Monthly Liquid n Daily Injected Gas n Measured Monthly
n Estimated Volume
Volume Choke Size Injected Water
Producing Day
Volume n Target Cumulative
n Allocated n Daily Injected Gas Injected Steam
Monthly Reservoir
Cumulative Rate Rate n Measured Monthly
Injected Gas
Monthly Oil Liquid Volume
n Daily Injected Gas n Estimated Volume
Volume Tubing Pressure Producing Day n Measured Monthly
n Target Cumulative
n Allocated Injected Water Oil Volume
n Daily Injected Gas Monthly Reservoir
Cumulative Rate
Volume n Measured Monthly Injected Steam
Monthly Reservoir n Estimated Reservoir CO2
n Daily Injected Volume
CO2 Volume Producing Day Volume
Steam Rate n Target Cumulative
Allocated Liquid Rate
n n Measured Monthly Monthly Reservoir
n Daily Injected
Cumulative n Estimated Reservoir
Steam Volume Injected Water
Monthly Reservoir Producing Day Oil Condensate Volume
Condensate n Daily Injected Rate Volume
Volume Water Choke Size n Target Cumulative
n Estimated n Measured Monthly Monthly Reservoir
n Allocated n Daily Injected Producing Day Reservoir Gas Liquid Volume
Cumulative Water Rate Reservoir CO2 Injection Volume
Monthly Reservoir n Target Cumulative
n Daily Injected Rate
n Measured Monthly Monthly Reservoir
Gas Volume Water Tubing n Estimated Reservoir Gas Oil Volume
n Allocated Pressure Producing Day Volume
n Target Cumulative
41 of 100
Data Tables and Fields
42 of 100
Data Tables and Fields
43 of 100
Data Tables and Fields
44 of 100
Data Tables and Fields
Condensate Rate CO2 Rate Gas Rate Cut Reservoir Oil Rate
n Allocated Daily n Estimated n Maximum Daily Oil n Measured Water n Target Daily
Reservoir Calendar Day Rate Injection Pressure Reservoir Oil
Condensate Reservoir Injected Volume
n Maximum Gas n Measured Water
Volume Gas Rate
Volume Injection n Target Daily
n Allocated Daily n Estimated Temperature Reservoir Water
n Maximum Oil
Reservoir Gas Calendar Day Rate
Volume n Measured Water
Rate Reservoir Injected
Oil Ratio n Target Daily
Steam Rate n Measured
n Allocated Daily Reservoir Water
Calendar Day CO2 n Monthly CO2
Reservoir Gas n Estimated Volume
Rate Injection
Volume Calendar Day
Reservoir Volume n Target Daily Water
Reservoir Injected n Measured
n Allocated Daily Oil Ratio
Water Rate Calendar Day n Monthly CO2
Reservoir Injected
Condensate Rate Injection Volume n Target Daily Water
CO2 Rate n Estimated
Rate
Calendar Day n Measured n Monthly CO2
n Allocated Daily
Reservoir Liquid Calendar Day Gas Volume n Target Daily Water
Reservoir Injected
Rate Rate Volume
CO2 Volume n Monthly
n Estimated n Measured Condensate n Target
n Allocated Daily
Calendar Day Calendar Day Volume Downstream
Reservoir Injected
Reservoir Oil Rate Injected CO2 Rate Choke Pressure
Gas Rate n Monthly Days On
n Estimated n Measured CO2 Injection n Target Flowing
n Allocated Daily
Calendar Day Calendar Day Bottom Hole
Reservoir Injected n Monthly Days On
Reservoir Water Injected Gas Rate Pressure
Gas Volume Gas Injection
Rate n Measured n Target Flowing
n Allocated Daily n Monthly Days On
Estimated Calendar Day Bottom Hole
Reservoir Injected
n Gas Production
Calendar Day Injected Steam Temperature
Steam Rate n Monthly Days On
Water Rate Rate
n Target Flowing
n Allocated Daily Oil Production
n Estimated CO2 n Measured Casing Head
Reservoir Injected n Monthly Days On
Injection Pressure Calendar Day Pressure
Steam Volume Steam Injection
Injected Water
n Estimated CO2 n Target Flowing
n Allocated Daily Rate n Monthly Days On
Injection Tubing
Reservoir Injected Water Injection
Temperature n Measured Temperature
Water Rate
Calendar Day n Monthly Gas
n Estimated n Target Flowing
n Allocated Daily Liquid Rate Injection Volume
Cumulative Daily Wellhead Pressure
Reservoir Injected
CO2 Volume n Measured n Monthly Gas Lift
Water Volume n Target Flowing
Calendar Day Oil Volume
n Estimated Wellhead
n Allocated Daily Rate
Cumulative Daily n Monthly Gas Temperature
Reservoir Liquid
Condensate n Measured Volume
Rate n Target Gas
Volume Calendar Day
n Monthly Injected Injection Pressure
n Allocated Daily Reservoir CO2
n Estimated Water Volume n Target Gas
45 of 100
Data Tables and Fields
46 of 100
Data Tables and Fields
47 of 100
Data Tables and Fields
48 of 100
Data Tables and Fields
49 of 100
Data Tables and Fields
50 of 100
Data Tables and Fields
51 of 100
Data Tables and Fields
n Measured Daily
Gas Volume
n Measured Daily
Hours On CO2
Injection
n Measured Daily
Hours On Gas
Injection
n Measured Daily
Hours On Gas
Production
52 of 100
Data Tables and Fields
Property Facet
n Allocated n Estimated n Measured n Predicted n Target
Aggregation Facet
n Cumulative n Maximum n Producing Day
Frequency Facet
n Calendar Day n Initial n Original n Residual n Static
Product Facet
n Alias n Field n Liquid n Reservoir CO2 n Total
Measure Facet
n Area n Depth n Latitude n Pressure n Temperature
53 of 100
Data Tables and Fields
Condition Facet
n Bottom Hole n Flowing Wellhead n Reference n Shutin Wellhead n Tubing
54 of 100
Data Tables and Fields
n Tables ( )
n Fields ( ), if they are not primary keys, foreign keys in other tables, categories, or map
associations
n Calculated fields ( ), if they are not foreign keys in other tables, categories, or map associations
n Master tables ( )
n Fields ( ) that are primary keys, foreign keys in other tables, categories, or map associations
2. On the OFM Representation pane, right-click the table or field you want to rename and click
Rename.
55 of 100
Data Tables and Fields
n Tables ( )
n Fields ( ), if they are not primary keys, foreign keys in other tables, categories, or map
associations
n Calculated fields ( ), if they are not foreign keys in other tables, categories, or map associations
n Master tables ( )
n Fields ( ) that are primary keys, foreign keys in other tables, categories, or map associations
Caution: Deleting a field or table physically removes it from the data source. This will result in a loss of
data. To be safe, we recommend that you disable fields and tables instead of deleting them.
2. On the OFM Representation pane, right-click the table or field and click Delete.
A dialog opens, confirming whether you want to delete.
3. Click Yes.
A deleted table does not display on the OFM Representation pane, but it does display on the
Tables tab until you close the Edit Schema Tables window.
Related Topics
Enabling and Disabling Tables
56 of 100
Data Tables and Fields
Types of Data
In OFM projects, all data can be categorized into one of three categories. There are three types of data in
OFM projects:
n User-defined: With this data, you must set up a table in the definition file or through the Edit
Schema Tables window, with associated keyword variables, units, and attributes.
n OFM-defined: Data that do not require a table to be set up in the definition file, and are created by
OFM. To manage the OFM-defined tables, use the OFM Defined Table Manager.
n Reference: Data that OFM references. You do not load this data, but you can change it. For
example, reference data include units of measurement, equations for data conversion, and
multipliers.
These tables have the prefix OFM_Data_. OFM stores defined data in a definition file that associates
keynames, variables, and variable attributes to each table. You must define this data before loading it.
n Tables with an OFM_DATA_DCA_ prefix. These tables hold decline curve analysis data, which OFM
produces in the forecasts module.
n OFM_DATA_Deviation
n OFM_DATA_Fault
n OFM_DATA_Log
n OFM_DATA_Marker
n OFM_DATA_
n OFM_DATA_PATTERN
n Tables with an OFM_DATA_WBD prefix. These tables hold wellbore diagram data.
57 of 100
Data Tables and Fields
OFM-defined tables are tables starting with _OFM_DATA_. They consist of decline analysis, deviation, fault,
log, marker, pattern, PVT, and wellbore diagram tables. For these tables, you can switch between a Shared
Workspace and My Workspace.
n If you have a Shared Workspace, but you point to an OFM-defined table in My Workspace, then you
can read and write to the table. Use the Edit Schema Tables window to make changes to the OFM-
defined tables in My Workspace.
n If you have a standalone OFM project, you can make changes to your project's OFM-defined tables.
2. Select My Workspace or the Shared Workspace for each of the OFM-defined tables.
3. Click OK.
Related Topics
Overview of OFM Data
Overview of Workspaces
58 of 100
Data Tables and Fields
For this type of data... If you load it... Or you can create the data
when you are...
Deviation data n Use this file extension: .dev Working with Faults
Data on the depth and throw fault n Follow the guidelines for loading
attributes fault data
Marker data n Use this file extension: .mrk Working with Markers
Wellbore diagram data which list n Follow the guidelines for loading
equipment downhole, and events wellbore data
such as treatments
Forecast data n Use this file extension: .dca
Related Topics
59 of 100
Data Tables and Fields
60 of 100
Data Tables and Fields
Overview of Workspaces
Workspaces and Databases
An OFM project has two main types of files: Workspace file and databases.
n Can be a Microsoft® Access, Microsoft SQL Server®, or Oracle® database (by default, it is an
Access database)
n If you access a Shared Workspace from My Workspace, the Shared Workspace is read-only.
n You can open a Shared Workspace directly, as a My Workspace. If you do this, then you can change
it.
n Any stand-alone OFM workspace, with either linked or local tables, can be a Shared Workspace. If
you link a My Workspace to a Shared Workspace, then the My Workspace cannot be a Shared
Workspace itself. In other words, you can’t "chain" Shared Workspaces.
61 of 100
Data Tables and Fields
You can edit "My" items. You cannot edit shared items.
Example: Your company may create an OFM workspace to the company database, with standard
calculated variables, categories, units, multipliers, plots, reports, and maps. This workspace can be a
Shared Workspace for other people within the company.
People can attach to the Shared Workspace, and then automatically can use all the information in the
Shared Workspace. These people can add new information to their own workspaces (My Workspaces), but
they cannot change the information in the Shared Workspace.
If people want to share new calculated variables, plots, and reports, then the owner of the Shared
Workspace can update the Shared Workspace with the new items. Everyone automatically sees all the
changes in the Shared Workspace the next time they open their own My Workspaces. This allows a group
to:
n Ensure that everyone in the group is using the same tables, queries, OFM-defined tables, calculated
variables, categories, units, multipliers, plots, reports, maps, and views
62 of 100
Data Tables and Fields
1. With the base map displayed, on the Setup tab, in the Tables group, click Association.
The Associations window opens.
2. On the General tab, select the correct fields to associate for each map item.
n Mapping is optional.
63 of 100
Data Tables and Fields
n Mapping is optional.
64 of 100
Data Tables and Fields
3. On the Coordinates tab, select a numeric field in any static table to define the X- and Y-coordinates
for the base map, and latitude and longitude for the GIS map.
a. In the Base Map section, select a numeric field in any static table to define the X- and Y-
coordinates. You must map this to view symbols on the base map.
b. Select Convert these coordinates from lat-long to UTM to convert these coordinates
automatically, and then select a reference system for geoid surfaces.
c. In the GIS Map section, select a numeric field in any static table to define the latitude and
longitude on the GIS map.
4. Click OK.
If you selected an association for Well Type - Table, the Well Symbol File window opens.
5. On the Well Symbol File window, select one of the following choices and then click OK:
n Default: Select this choice to use the symbol file that comes with OFM (in the WELLTYPE.DEF
file).
n User Supplied: Select this choice to use a symbol (.sym) file you choose.
n Create from data: Select this choice if the entries in your Well Type - Table selection do not
exactly match the list of default symbol names in OFM. OFM will create a unique symbol for each
unique entry in the column you have mapped.
n Merge with current: If you select this choice, OFM adds the column entries to the list in the
symbol file you are using (including the default file).
Related Examples
Adding New Well Symbols: Making the New Associations
Related Keyword
*Map (Map Association) Keyword
65 of 100
Data Tables and Fields
a. The completions that display in the table you select will be the ones in the current filter. Filter to
the completions you want to see.
d. If the number of records in the table exceeds the limit you identified on the Edit Schema
Tables window, and you want to display all the records, select Edit all records.
e. Click OK.
f. If the number of records in the table exceeds the limit you defined, and you did not select the
Edit all records check box, a message displays. If you want the table to display all the records,
click No on the message. If you want the table to display select records, click Yes on the
message and then select the specific records.
2. To change data, click in the cell and then enter the new information.
a. On the Format tab, in the Display group, click Last Record to move to the last row.
4. The Unique ID is always the first column, but OFM hides it. To show it, hover your mouse over the
first column line in the header row (the line to the left of the name of the first column). When the
cursor changes to show two arrows, double-click.
b. Type the word you want to find and then click Find Next.
c. If you want to find each instance of that word with the Find window closed, close the window.
On the Format tab, in the Edit group, click Find Next.
b. Enter the word you want to find, and the word you want to replace it with, and then click
Replace or Replace All.
66 of 100
Data Tables and Fields
6. To navigate through the list, on the Format tab, in the Display group, click First Record,
Previous Record, Next Record, or Last Record.
b. On the Format tab, in the Display group, click Sort to sort alphabetically (A-Z).
8. To change the font and font size for all the text in the table, on the Format tab, in the Edit group,
click Font.
9. To make the display larger or smaller, on the Format tab, in the Zoom group, click Zoom In, Zoom
Out, or Zoom To Fit.
a. On the column header, drag the line that marks the column edge.
b. To change the column widths to the default sizes, on the Format tab, in the Display group,
click Default Column Widths.
12. You can save the table of data as a text (.txt) file. On the Format tab, in the Utilities group, click
Save As File.
b. Select the table you want to open and then click OK.
Creating Plots for Waterflooding: Adding Stock Tank Oil Initially in Place to the Workspace
67 of 100
Data Tables and Fields
Related Topics
Mapping Completions to PVT Entities
68 of 100
Data Tables and Fields
3. To change the variables that display in all lists, select from the choices in the Input Variable Lists
group.
Note: If you set this to Display all variable names in lists and you want to exclude individual
variables, you can do so on the Edit Schema Tables window or on the Variable Editor.
4. In the Restore OFM State when Opening group you can save the look and feel and restore it when
you reopen OFM.
l To save the current step, entity, and filter as it looks when you close the current
session of OFM, select Navigation Pane.
l To open the next session of OFM using the default look and feel, clear Navigation
Pane.
l To open the same Analyses that are open when you close the current session of OFM,
select Open Analyses.
l To open the next session of OFM with no Analyses open, clear Open Analyses.
5. To restore or suppress the warning and confirmation dialog boxes that OFM displays, click Restore
All or Suppress All.
6. To reset the OFM registry settings, click Reset and then click Yes on the confirmation dialog box.
Warning: OFM saves the equipment and text boxes added to wellbore diagrams in the OFM registry. If you
reset the OFM registry settings, OFM removes the equipment and text boxes.
69 of 100
Data Tables and Fields
3. To use the metric system, select Use Metric Units and then select the correct PVT Pressure
Unit.
4. In the Unit Multiplier Style section, select the imperial (Field), Metric, or Scientific system.
70 of 100
Data Tables and Fields
3. Select Static or Dynamic and then select a variable from the list.
4. Click OK.
71 of 100
Data Tables and Fields
Tutorial: Patterns
You can configure waterflood patterns by assigning completions to a pattern and allocating production and
injection volumes from those completions. Typical pattern configurations look like these:
You must use your judgment and knowledge of the reservoir to assign a realistic fraction of each
completion's production or injection to the block of reservoir beneath the pattern. When you do this, you
can compare performance, surveillance, and the optimization of operations at the pattern level,
considering both injection and production.
n Create patterns interactively: Each pattern has several completions. In this section, you select the
completions for each pattern individually.
n Edit patterns: After you create patterns, you can change the pattern allocation factors or dates. In
this section, you edit the patterns that you created. There are two ways to change the pattern data.
You can change one pattern at a time, or you can change the pattern data with all sets and all
patterns visible.
n Confirm the pattern allocation factors: No single well should have allocation factors summing to
more than one. In this section, you create a report to confirm this.
n Choose variables affected by pattern allocation factors: In this section, you choose which variables
are affected by pattern allocation factors, and which are not. The factors should only affect volumes.
Pressures, depths, porosities, choke sizes, hours on production, or any other non-volume variable
should not be affected.
n View pattern results one at a time: In this section, you use patterns and see the effect of the pattern
allocation factors that you supplied. You can use patterns by filtering or by stepping though (on the
Navigation pane). You can see the results most easily in plots or reports. You will create a report
that shows the results of pattern allocation factors.
72 of 100
Data Tables and Fields
n Compare multiple patterns on a plot: In this section, you create a plot that compares multiple
patterns, applying pattern allocation factors.
n Create patterns from an ASCII file: If you have determined the allocation factors already and it is
available in a document or spreadsheet, you can reformat the data and load it into OFM. The pattern
data can be static or dynamic. For dynamic patterns, the allocation factors may change over time as
injectors are created and terminated. You can remove wells from a pattern as new patterns are
created. In this section, you add patterns to the project by loading a formatted data file. They will be
the same patterns that you created interactively.
Note: Before you start, you may want to print a large map of your area and manually draw the pattern
outlines on that map. This helps organize your work when you configure the patterns interactively in OFM.
2. On the base map, drag a frame around the pattern waterflood area in the north (marked with blue
symbols).
With this waterflood, you could create patterns with a regular layout or in an inverted layout. You
will set up regular patterns.
3. On the Property pane, under Well Name Properties, change the Well Name to Alias Name.
4. On the base map, press Ctrl and click wells 491, 492, 495, 498, and 502.
73 of 100
Data Tables and Fields
n The left pane lists patterns. OFM lists the pattern you created with a default name (P-0). The
date (1900-01-01) is the default starting date for the pattern.
n The Current Pattern Set field at the bottom of the window displays the current pattern
(inverted_five_spot). Because two pattern sets have already been configured for this project,
the pattern you created is in the current pattern. You will change the pattern in the next section
of the tutorial.
7. On the base map, press Ctrl and select another five wells to create another pattern.
Editing Patterns
After you create patterns, you can change the pattern allocation factors or dates. In this section, you edit
the patterns that you created. There are two ways to change the pattern data. You can change one
pattern at a time, or you can change the pattern data with all sets and all patterns visible.
1. First, view how you can change the pattern data, one pattern at a time:
2. Now you will change the pattern data with all sets and all patterns visible. On the Setup tab, in the
Tables group, click Data Grid.
The Select OFM Table to Edit window opens.
4. Scroll to the bottom of the table and find the records for the patterns you created. They are part of
the inverted_five_spot pattern set, and the pattern name is P-0 and P-1.
5. Highlight all records that are not the patterns you created. Ensure the entire rows are highlighted.
Press Delete.
Only the P-0 and P-1 patterns remain.
7. Change the PatternNames. A common naming convention is to name the pattern after the center
74 of 100
Data Tables and Fields
well. Name the first pattern you created (with the default name P-0) P-495.
n Date: This is the effective start date of the pattern allocation factors. This does not have to be
the first date of production or injection. The default date (January 1900) means the allocation
factors are in effect from the beginning of the waterflood, and usually can be left unchanged.
n Factor: This is the allocation factor the specific well's rates and volumes to the specific pattern.
For example, an allocation factor of 0.5 implies that 50% of its injection is supporting a different
pattern.
n Loss: This is the injectant loss factor. For example, a loss of 0.2 implies that 20% of water
injected is being lost to non-pay zones or outside the pattern area.
The effective factor is the Factor value minus the Loss value. So, instead of setting a Loss, you
can choose to set a lower Factor.
9. Since no single well should be allocated more than 100%, a simple way to set geometric allocation
factors is to sort the table by well. Double-click the Well column heading to sort the table.
n If the well only appears one time, leave the Factor value as 1.
n If the well appears two times, change the Factor value for each to 0.5.
n If the well appears three times, change the Factor value for each to 0.33
Make sure to click on a different record after making a change, to save the change.
2. In the Select box, enter the following: @PatCurSet( ), @PatWell( ), @PatName( ), @PatDate(
), @PatFact( ), @PatLoss( )
3. Click OK.
A report opens. It lists the pattern set name, well, pattern name, date, factor, and loss.
5. On the Property pane, under Columns, change the Break when this column changes field to
Yes.
75 of 100
Data Tables and Fields
7. On the Property pane, under Columns, change the Subtotal field to SUM.
8. On the report, check the sum values to make sure that none of them are larger than 1.00.
2. Make sure the OIL, GAS, and WATER variables in the PRD table are set for Multiply by Factor because
these store volumes.
a. On the left pane, expand the PRD table and then click the OIL variable.
3. Make sure the ACTIVE, DAYS, and PRESS variables in the PRD table are not set for Multiply by Factor:
a. On the left pane, in the PRD table, click the ACTIVE variable.
b. On the Math tab, in the Grouping Options section, make sure the Multiply by Factor check
box is clear.
d. On the Math tab, make sure the Multiply by Factor check box is clear.
4. On the left pane, expand the WIN table and make sure that the variables that store volumes are set
to Multiply by Factor. Make sure that all other variables are not set to Multiply by Factor.
5. Make sure that all numeric variables in the MASTER, PVT, and RESPROP tables are not set to
Multiply by Factor.
6. Click OK to save your changes and close the Edit Schema Tables window.
76 of 100
Data Tables and Fields
3. Click OK.
A report opens. An empty report opens with columns for the date and water injection.
4. On the Format tab, in the Edit group, click Date & Sort.
The Edit Report Attributes window opens.
c. Under Tutorial, select the check box to the left of the first pattern (this was the P-0 pattern,
which you may have renamed P-495).
c. On the Format tab, in the Zoom group, click Zoom Area and then drag across the map around
the pattern waterflood area in the north.
8. Step by patterns:
b. On the Navigation pane, on the field at the top, change the step to PATTERN: Tutorial.
77 of 100
Data Tables and Fields
2. Below the main area of the window, click the Add Multiple Curves button.
The Add Multiple Curves window opens.
*Label Pattern
*Set Tutorial
*Pattern "P-0"
*Date 19000101
*Pattern "P-1"
*Date 19000101
78 of 100
Data Tables and Fields
*Pattern "P-2"
*Date 19000101
n The sixth line ("491WI:B" 1.000000 0.000000) is the wellname, factor, and loss. To remove a
well from a pattern at a specific date, change either the pattern allocation factor to zero, or set
the loss factor to 1.0.
4. Save the file with a .pat file extension and then close the text editor.
5. In OFM, on the Setup tab, in the Import/Export group, click Import > Data Loader.
The OFM Data Loader opens.
6. In the upper section, double-click the pattern (.pat) file you created.
The Files to Load section lists the file.
7. Click Load.
A warning message confirms your choice.
79 of 100
Data Tables and Fields
1. Create a table and field, and then add STOIIP data to it.
2. Create four calculated variables to use in the plots. In OFM, you can explore different methods for
introducing PVT data. In this example, you will assume the properties are constant and so you will
use calculated variables.
3. Create a conformance plot. This plot helps characterize injection behavior by comparing production
volumes to injection volumes.
n Recovery Factor versus PVI: This plot helps you determine how individual patterns compare to
the field average, to find the factor affecting recovery.
n Recovery Factor versus Time: With this plot, you can track the overall performance of all
patterns on the same plot.
n Water Cut versus PVI: This plot shows the development of water cut behavior with water
injection.
n PVI versus Time: In this plot, you can see the amount of pore volume injected over time.
80 of 100
Data Tables and Fields
b. On the OFM Representation pane, right-click the Pilot Waterflood BField.mdb home data
source and then click Add.
OFM lists the new table on the OFM Representation pane. By default, OFM names the table
NewItem and you must change the name.
d. By default, OFM sets the table to hold monthly data. On the right side of the window, on the
Table tab, change Table Type to Static.
e. OFM asks if you want to keep the DATE key field. Click No.
g. On the Fields tab, in the Add New Field field, enter Volume and then click Add.
The OFM Representation pane shows two fields in the STOIIP table: The Pattern field (which
is a primary key field) and Volume.
c. Enter the following rows of data for the Pattern and Volume columns:
Patter Volum
n e
495 77400
496 88200
497 91800
500 12000
0
506 60000
509 45000
The HCPV is the STOIIP * Boi (initial oil formation volume factor). For this example, assume that
the Boi is a constant value of 1.2.
81 of 100
Data Tables and Fields
3. Double-click the items in the Project Variables list to add this equation to the text box at the top of
the window: Stoiip.Volume*1.2
4. Click OK.
The new variable displays on the list of variables. By default, OFM names it NewItem.
5. Type this new name for the calculated variable and then press Enter: HCPV
6. You need to use this calculated variable in the next one. It is not available until you save your
changes. Click OK to save your changes and close the Variable Editor.
You now want to create a calculated variable for DHCPV by allowing for residual oil saturation (Sor).
DHCPV is HCPV (1-Sor). For this example, assume that Sor (residual oil saturation) is 0.2.
3. Double-click the items in the Project Variables list to add this equation to the text box at the top of
the window: HCPV*(1-0.2)
4. Click OK.
5. Type this new name for the calculated variable and then press Enter: DHCPV
6. You need to use this calculated variable in the next one. It is not available until you save your
changes. Click OK to save your changes and close the Variable Editor.
You now use the DHCPV calculated variable to created a calculated variable for PVI. PVI is
cumulative water injection / DHCPV. You can find the cumulative water injection with the
@CumInput system function. This system function returns the running sum of an input variable
which in this example is the water injection (WINJ) data in the water injection volumes (WIN)
table.
3. Double-click the items in the System Functions and Project Variables lists to add this equation
to the text box at the top of the window: @CumInput (Win.Winj)/DHCPV
4. Click OK.
5. Type this new name for the calculated variable and then press Enter: PVI
82 of 100
Data Tables and Fields
Recovery factor is cumulative oil / STOIIP. To find cumulative oil, use the @CumInput system
function again. This time, use it with the oil production data in the PRD table.
2. Double-click the items in the System Functions and Project Variables lists to add this equation
to the text box at the top of the window: @CumInput(Prd.Oil)/Stoiip.Volume
3. Click OK.
4. Type this new name for the calculated variable and then press Enter: RF
n Category: regular_five_spot
n Variable: Oil.Cum
5. On the list of curves on the Edit Plot window, highlight rows 7 and 8 (for patterns 510 and 511) and
then click Remove Curve so that you have six curves.
6. Click OK.
83 of 100
Data Tables and Fields
7. Hide the legend: On the Format tab, in the Display group, clear the Legend check box.
8. On the Properties pane, under Graph settings, change Curve Name to As Labels.
b. On the Properties pane, under Axis, on the Axis Label field type Cumulative Water
Injection.
10. Make the first curve a thicker red line: On the Properties pane, under Graph settings, on the
Curves field, select 1: Oil.Cum:regular_five_spot:495. Under Curve Properties, change the
Line Color to Red and the Line Width to 3.
11. Make the second curve a thicker blue line: Under Graph settings, on the Curves field, select 2:
Oil.Cum:regular_five_spot:496. Under Curve Properties, change the Line Color to Blue and
the Line Width to 3.
84 of 100
Data Tables and Fields
12. Make the third curve a thicker teal line: Under Graph settings, on the Curves field, select 3:
Oil.Cum:regular_five_spot:497. Under Curve Properties, change the Line Color to Teal and
the Line Width to 3.
13. Make the fourth curve a thicker green line: Under Graph settings, on the Curves field, select 4:
Oil.Cum:regular_five_spot:500. Under Curve Properties, change the Line Color as Green
and change the Line Width to 3.
14. Make the fifth curve a thicker magenta line: Under Graph settings, on the Curves field, select 5:
Oil.Cum:regular_five_spot:506. Under Curve Properties, change the Line Color to Magenta
and the Line Width to 3.
15. Make the sixth curve a thicker brown line: Under Graph settings, on the Curves field, select 6:
Oil.Cum:regular_five_spot:509. Under Curve Properties, change the Line Color to Dark
Brown and the Line Width to 3.
16. On the plot, drag each of the curve names close to the line it defines. For example, drag the line that
defines regular_five_spot_500 near the green line.
If you were to draw a unit slope line on this plot (the dotted line from 0,0 to 500000,50 in the graph
below), that line would show where cumulative oil production equals the cumulative water injected.
85 of 100
Data Tables and Fields
1. Make a copy of the conformance plot: On the Analysis pane, right-click Conformance Plot and
then click Save As New Node.
OFM names the copy Copy of Conformance Plot.
4. On the Analysis pane, double-click Recovery Factor versus PVI to open it.
7. For the curves, change all the Variables to RF. Keep the Category and Name selections the same.
8. Click OK.
The plot loses its formatting when you change the curves. You are ready to improve visibility of the
plot.
9. On the Format tab, in the Display group, select the Legend check box.
b. On the Properties pane, under Axis, make sure the Scale Type is Linear.
11. As you did for the conformance plot, change the curve color and line width. Make them the same as
you did for the conformance plot:
86 of 100
Data Tables and Fields
1. This plot is the same as the previous, except the X-axis is Date instead of PVI. Make a copy of the
previous plot: On the Analysis pane, right-click Recovery Factor versus PVI and then click
Save As New Node.
2. Rename the copy Recovery Factor and then open the plot.
5. Click OK.
87 of 100
Data Tables and Fields
1. Like the Recovery Factor versus PVI, the X-axis variable for this plot is PVI. The variables for the
curves are different. Make a copy of the plot: On the Analysis pane, right-click Recovery Factor
versus PVI and then click Save As New Node.
2. Rename the copy Water Cut versus PVI and then open the plot.
4. For the curves, change all the Variables to Water.Cut. Keep the Category and Name selections
the same.
5. Click OK.
The plot loses its formatting when you change the curves. You are ready to improve visibility of the
plot.
6. On the Format tab, in the Display group, select the Legend check box.
7. As you did for the other plots, change the curve color and line width. Make them the same as you did
before:
88 of 100
Data Tables and Fields
1. Make a copy of the Recovery Factor versus Time plot, and rename it PVI.
4. For the curves, change all the Variables to PVI. Keep the Category and Name selections the
same.
5. Click OK.
89 of 100
Data Tables and Fields
The plot loses its formatting when you change the curves. You are ready to improve visibility of the
plot.
6. On the Format tab, in the Display group, select the Legend check box.
7. As you did for the other plots, change the curve color and line width. Make them the same as you did
before:
90 of 100
Data Tables and Fields
5. Click OK.
6. On the Format tab, in the Display group, select the Legend check box and then drag the legend to
a good location.
91 of 100
Data Tables and Fields
2. You need a table and field to hold thickness data. Create the table:
c. Type Iso for the table name and then press Enter.
By default, OFM adds UniqueID and Date as the primary key fields, and the table is defined to
hold monthly data with a Completion key type.
e. OFM asks if you want to keep the Date field. Click No.
f. On the Fields tab, in the Add New Field field, enter Depth and then click Add.
g. In the Add New Field field, enter H and then click Add.
The Demo data source now has an Iso table. The primary key field is UniqueID. It has two other
fields: Depth and H.
92 of 100
Data Tables and Fields
a. Open Notepad.
*TableName Iso
*UniqueID *Depth *H
"Blue_12:Li_1C" 6647 0
"Blue_3:Li_1C" 6440 0
"Blue_7:Li_1C" 6440 10
"Green_15:Li_1C" 6500 0
"Green_3:Li_1C" 6500 0
"Green_5:Li_1C" 6441 40
"Orange_16:Li_1C" 6460 10
"Orange_24:Cl_3" 6470 20
"Purple_1:Cl_3" 6494 0
"Red_13:Cl_3" 6495 0
"Red_4:Cl_3" 64980 0
d. On the Setup tab, in the Import/Export group, click Import > Data Loader.
e. Double-click the Iso.dat file to move it to the Files to Load section, and then click Load.
3. On the list of Project variables, double-click Iso.H to move it to the Selected variables list.
4. Click Finish.
The contour map displays the thickness.
a. On the Properties pane, under Properties, in the GRID section make these selections:
Number of Neighbors: 2
b. On the Properties pane, under Properties, in the 2D section make these selections:
Show: Yes
Decimal Places: 0
93 of 100
Data Tables and Fields
c. On the Properties pane, under Grids and Limits, change Grid Type to None.
6. On the Analysis pane, right-click the contour map and then click Rename.
7. Type this for the new name and then press Enter: Net Sand Thickness - Contour Map
2. On the Properties pane, under Variable Properties, change Exclude out of range to Yes.
3. On the Properties pane, under Grids and Limits, change Grid Type to Frame.
94 of 100
Data Tables and Fields
4. On the Analysis pane, right-click the grid map and then click Rename.
5. Type this for the new name and then press Enter: Net Sand Thickness - Grid Map
2. On the Analysis pane, right-click the copy and then click Rename.
3. Type this for the new name and then press Enter: Pseudo Structure
4. With the Pseudo Structure map open, on the Format tab, in the Edit group, click Variables.
5. Remove the Iso.H variable from the Selected variables list, and double-click Iso.Depth to add it
to the Selected variables list.
6. Click Finish.
95 of 100
Data Tables and Fields
2. On the Format tab, in the Utilities group, click Save Analysis > Save As.
3. Change the Save as type to Annotation Files and then save the file with this name:
NetSandThickness.ano
6. Click Add.
The Data Loader opens.
7. Double-click the NetSandThickness.ano file to move it to the Files list, and then click Load.
96 of 100
Data Tables and Fields
1. Open the sample workspace. It is in the OFM installation folder, at ...Sample Workspaces\PDS
Example\PDSExample.ofm.
2. View the tables in the workspace. On the Setup tab, in the Tables group, click Schema.
The Edit Schema Tables window opens.
3. Foreign keys can use fields in the master table. Look at the tLease table to see how this is done:
a. View the OFM Representation pane, and notice that the master table (marked with the
b. On the OFM Representation pane, expand the xy table. Notice that LeaseID is one field in the
xy table. The xy table identifies lease ID numbers.
c. The project also has a table for lease information. On the OFM Representation pane, click the
tLease table.
d. On the right, view the Table tab. Notice that the tLease table uses the LeaseID field in the xy
table. The OFM Definition section has the following selections:
Foreign: xy.LeaseID
e. Look at the fields in the tLease table. On the OFM Representation pane, expand tLease.
Two fields are listed under tLease:
The lease names in the tLease table are referenced with the lease ID numbers in the xy table.
4. Foreign keys also can use fields that are not in the master table. Look at the tMonthlyProduction
table to see how this is done:
a. On the OFM Representation pane, expand the tWellProd table. Notice that WellID is one field
in the tWellProd table. The tWellProd table identifies well ID numbers.
b. The well ID numbers are used in the monthly production table. On the On the OFM
Representation pane, click the tMonthlyProduction table.
c. On the right, view the Table tab. Notice that the tMonthlyProduction table uses the
ProductionID field in the tWellProd table. The OFM Definition section has the following
selections:
97 of 100
Data Tables and Fields
Foreign: tWellProd.ProductionID
d. Look at the fields in the tWellProd table. On the OFM Representation pane, expand
tWellProd.
Two fields are listed under tWellProd:
The monthly production values in the tMonthlyProduction table are referenced with the well ID
numbers in the tWellProd table.
98 of 100
Data Tables and Fields
a. In the OFM installation folder, open this workspace: ...Sample Workspaces\2 Keyed Demo
Database\2 Keyed Demo Database.ofm
c. On the OFM Representation pane, select the HEADERID table, which is the master table.
a. In the OFM installation folder, open this workspace: ...Sample Workspaces\3 Keyed Demo
Database\3 Keyed Demo Database.ofm
c. On the OFM Representation pane, select the HEADERID table, which is the master table.
99 of 100