Escolar Documentos
Profissional Documentos
Cultura Documentos
PVTP
Version 6.5
October, 2003
USER GUIDE
Address:
Petroleum Experts Limited
Spectrum House
2 Powderhall Road
Edinburgh, Scotland
EH7 4GB
Tel: (44 131) 474 7030
Fax: (44 131) 474 7031
Email: edinburgh@petex.com
Internet: www.petroleumexperts.com
Registered Office:
Petroleum Experts Limited
Spectrum House
2 Powderhall Road
Edinburgh, Scotland
EH7 4GB
PVTP
Introduction..................................................................................................................................1
1.1 PVT provides ...........................................................................................................................1
PVTP
Command Buttons.................................................................................................................44
PVTP
Toolbar ....................................................................................................................................3
5.3
Summary Page........................................................................................................................6
PVTP
Grouping................................................................................................................................37
7.8
PVTP
8.3
8.6
8.7
8.8
8.9
Separator Process.................................................................................................................29
PVTP
8.12.6
8.12.7
Calculation of Solids...................................................................................................................1
9.1 Wax Amount Calculation .........................................................................................................1
9.1.1
The Analysis Display .....................................................................................................4
9.2
10 Reporting......................................................................................................................................1
10.1 Setting Up the Reporting System ............................................................................................1
10.2 Reports ....................................................................................................................................1
10.3 Template Editor Commands....................................................................................................4
11 Plotting 1
11.1 The Plot Display ......................................................................................................................1
11.1.1
Manipulating Streams....................................................................................................1
11.1.2
Manipulating Curves......................................................................................................2
11.1.3
The Plot Menu and Toolbar...........................................................................................5
11.2 Plot Menu Options...................................................................................................................7
11.2.1
File.................................................................................................................................7
11.2.2
Display...........................................................................................................................8
11.2.3
Output............................................................................................................................9
11.3 The Toolbar Options..............................................................................................................10
12 Utilities 1
12.1 API/Density Calculator ............................................................................................................1
12.2 Mass Balance Calculator.........................................................................................................2
12.3 Enthalpy Balance Calculator ...................................................................................................4
12.3.1
Single Point Enthalpy Balance ......................................................................................4
12.3.2
Multiple Point Enthalpy Balance....................................................................................5
12.4 Hoffmann Quality Plot .............................................................................................................7
13 User Databases ...........................................................................................................................1
13.1 Creating a User Database.......................................................................................................2
13.2 Selecting a User Database Directory ......................................................................................3
13.3 Editing a User Database .........................................................................................................4
PVTP
13.4 Importing into User Database..................................................................................................6
14 Preferences ..................................................................................................................................1
14.1 Adjusting the Equation of State Calculation Tolerences .........................................................2
Appendix A - Worked Examples .......................................................................................................1
A1
Example 1 - EOS calibration of oil sample using PVTP..........................................................1
A1.1
Step-by-step approach to building an EOS model in PVTP..........................................3
A1.2
Step-by-step approach to Calibrating an EOS model in PVTP...................................14
A1.3
Using PVTP to generate Tables for other applications ...............................................23
A2
Example 2 - EOS calibration of a Condensate Sample using PVTP ....................................30
A2.1
Step-by-step approach to building an EOS model in PVTP........................................33
A2.2
Calibrating an the EOS model in PVTP ......................................................................37
A2.3
Checking results of the calibrated model against lab data..........................................40
A2.4
Simulating PVT Experiments in PVTP ........................................................................42
A3
Example 3 Estimating Decontaminated sample properties of an contaminated Oil Sample
using PVTP......................................................................................................................................47
A3.1
Step-by-step approach to decontamination in PVTP ..................................................50
Appendix B Step by Step Guide .......................................................................................................1
B1
List of Steps.............................................................................................................................1
B1.1
Step 1: Create a New File .............................................................................................2
B1.2
Step 2: Select Equation of State Options......................................................................3
B1.3
Step 3: Select Components...........................................................................................4
B1.4
Step 4: Enter Composition ............................................................................................6
B2
Sample PVT Report Composition ...........................................................................................8
B2.1
Step 5: Initialise the Pseudo Component Properties.....................................................9
B2.2
Step 6: Match the Surface Volumetric Properties (Density, GOR etc.) using the
Automatch feature .......................................................................................................................11
B2.3
Step 7: Use Pseudo-Splitting or BI Coefficients to get near Reservoir Saturation
Pressure Value............................................................................................................................13
B2.3.1
Strategy for Achieving Saturation Pressure ........................................................15
B2.3.2
Using BI Coefficients ...........................................................................................18
B2.3.3
Using Pseudo Splitting ........................................................................................20
B2.4
Step 8: Select Match Parameters................................................................................22
B2.4.1
How is Match Data entered? ...............................................................................23
B2.5
Step 9: Use Regression to Match Fluid.......................................................................27
B2.6
Step 10: Check and Refine the Fluid Characterisation ...............................................29
B2.7
Step 11: Calculate, Report and Export........................................................................30
Appendix C Decontamination Procedure ........................................................................................1
PVTP
Support ....................................................................................................................................7
1 Introduction
Welcome to PVTP, Petroleum Experts Limited's advanced Pressure Volume and
Temperature analysis software. PVT can assist the production or reservoir engineer
predict the effect of process conditions on the composition of hydrocarbon
mixtures with accuracy and speed. The compositional behaviour of complex
mixtures including gas mixtures, gas condensates, retrograde condensates, volatile
oils and black oils can be interpreted and predicted with confidence.
The PVT package can be used as a stand-alone analytical tool, or can be used to
generate tables of fluid properties,reduced compositions or matched parameters
(Tc,P, Volume Shift Parameters and Binary Interaction Coefficients) for
2 -3
Wax Amount
Wax Appearance Temperature
Hydrate Formation Pressure
Hydrate Minimum Inhibitor Concentration
PETROLEUM EXPERTS
CHAPTER 1 - INTRODUCTION
Slim-tube simulation
3 -3
Measurement Units
A flexible system of units is provided. Data may be input using one set of units and
output using a second set of units.
Reporting
The PVT package provides a full range of user-configurable reports for Input data
and calculation results. Printing can be done in a range of fonts to any WINDOWS
supported printer
2.1
The program supports all Windows-certified device drivers that are shipped with
Windows. The list of devices, software and hardware supported by Windows is
included with the documentation of your copy of Windows.
PVTP can be run as single User licence or on a Network. In either case, a special
security key is needed. The security key is called Bitlock for stand-alone licences
and Hardlock for network licences
The security key is provided by Petroleum Experts.
The minimum requirement recommended for PVTP is Pentium 450 MHz machine
with 128 Mbytes.
In order to install the software from the CD, the machine should have access to a
CD drive.
For a stand-alone licence, a security key (Bitlock) provided by Petroleum Experts
must be attached to the parallel printer port of the PC before PVTP can be run.
For network installation, the security key (Hardlock) can be attached to any PC
communicating with the network.
You should refer to the separate installation procedure for network Hardlock sent
with the purchase of a Hardlock licence.
If PVTP has been installed for the first time on a machine, the Bitlock driver must be
installed on this machine in order to establish the link between the software and the
security key (Bitlock driver).
In order to install the Bitlock driver, you will have to start from the main Windows
screen. Here you click on |Start |Programs |Petroleum Experts IPM |Utilities and
then start the Set-up Bitlock Driver.
2-8
From the screen above, you will have to run the |Functions |Install Sentinel Driver |
OK.
You might need to modify the path of the sentinel files.
You should ensure that you have the permission to install a driver.
Your IT manager can help you getting the required permission.
Petroleum Experts
2.1.1
3-8
2.2
Installing PVTP
Before installing the program on your computer, you should first determine:
If you are updating PVTP, the set-up can be used to modify, repair or remove
components of the IPM suite. In this case, follow the online instructions
To avoid potential system resources conflicts, please shut down other
applications before running SETUP. Some anti-Virus programs can
interfere with the installation process and may need to be shut down.
4-8
2.2.1
Running Setup
1.
2.
2.2.2
The PROSPER initialisation file contains the settings you use to customise the PVTP
application environment. Settings such as the program data directory, customised
units system, last file accessed and the colour settings of your screen graphics are
all stored in this file. You do not need to manually modify the PROSPER.INI file.
The program will automatically record any changes to the settings.
PVTP automatically creates the PROSPER.INI file in the Windows default directory
using the program's default settings. The location of this file is defined by this entry
in your WIN.INI file:
[PETROLEUM EXPERTS]
IniPath=PROSPER.INI
We do not recommend changing the location of the PROSPER.INI file. If however,
you want to do so for specific reasons (to place it on a specific network drive), take
the following steps:
1. First copy the existing PROSPER.INI file to the required directory.
example:
For
COPY C:\WINDOWS\PROSPER.INI
U:\NETWORK\APPS\PVTP\PROSPER.INI
2.
During the installation PVTP unpacks a number of files onto your computer in the
specified installation directory. The unpacked files should not be modified, removed
or moved to another directory.
Petroleum Experts
2.3
5-8
Starting PVTP
Before starting the program, make sure the software protection Bitlock (dongle) is
connected to your PC and that the Bitlock Driver has been installed.
2.3.1
The software protection Bitlock must be attached to the PARALLEL printer port. Do Not
connect the Bitlock to a serial port, as this can damage the Bitlock or your PC. If you are
using protection Bitlocks for other software, we do not recommend stacking the Bitlocks.
We suggest using only the correct Bitlock with the appropriate software. Stacking Bitlocks
may lead to incompatibilities between Bitlocks, and may cause read/write or access errors
with some Bitlocks.
2.3.2
The PVTP icon should appear automatically in the correct folder under the
6-8
2.4
All Petroleum Experts' software requires a software protection device to allow it run.
The utility program REMOTE.EXE provided with our software allows you to access
the software protection device to view information such as the enabled program
options, program expiry date(s), and Bitlock number.
You may have been sent an inactive software device. For security, authorisation
codes are always sent separately to the Bitlock. On receiving the software
package, we ask that you contact us to confirm reception. We will then verify the
user access code programmed on your Bitlock, and issue a set of codes to activate
the Bitlock. In these situations, the necessary codes will be sent to you by
facsimile, letter or email.
To enter the codes, you will need to run the REMOTE application installed with
PVTP (see next section for more details).
You can also create a shortcut to the Remote application from the Windows
desktop.
For this, click on |New |Short cut anywhere on the Windows screen and follow the
online instruction. The program file is called REMOTE.EXE.
2.4.1
Petroleum Experts
7-8
Figure 2.1:
REMOTE Software
Bitlock Utility
If your software protection Bitlock is already active, a list of enabled programs will
appear in the Remote screen as above. If PVTP has already been enabled, no
further action is needed. If this is the case, exit the Remote Utility program now.
No user authorisation code is required.
If the code has expired or has not been enabled, the Bitlock should be activated
with the set of codes provided by Petroleum Experts. To do so, you click on the
|Update button on the bottom of the previous screen and the following screen will
appear:
Figure 2.2:
Authorisation
screen
Codes
Entry
Enter the codes from Left to Right beginning with the top row (you may use <Tab>
to move between the items). Press |Continue to activate the codes. You will then
be returned to the 'Remote Software Bitlock Utility' screen. If you have received
authorisation codes for more than one program, click 'Update Software Bitlock'
again, and enter the codes for the next program.
8-8
2.4.2
Access to the software ceases automatically when the license expiry date elapses.
You are, however, reminded several days in advance. This gives you sufficient
time to contact Petroleum Experts about new codes. Software Bitlocks require
updating when:
Software protection Bitlocks also needs updating when you acquire other
Petroleum Experts software packages. The procedure to update the Bitlock is the
same as for entering the authorisation codes. When the appropriate screen
appears, enter the codes provided - from left to right beginning with the top row.
Press OK to activate the codes, or Cancel to quit the update. To view the expiry
date for any of the listed programs, simply click (highlight) the software name.
Perpetual licence holders will be sent on yearly basis an utility program
written by Petroleum Experts, that automatically updates the Bitlock. The
update is hard-coded inside the utility program. step-by-step instructions are
sent with this utility program.
2.5
To ensure trouble free processing and access to the PVTP program, please check:
The printer cable is firmly attached to the software Bitlock. Your printer should
be turned ON and be put on-line.
The PC system date is set correctly to the current date (i.e. today's date).
You back up your files on a regular basis with disk utility programs. This could
help to avoid the corruption of files, or help detect potential problems with your
hard disk before it is too late.
Petroleum Experts
3 File Management
This section describes the menus, options and procedures used in PVT to create new files
and open or save existing files. The Units system and how to define printer settings and is
outlined. The menus described in this section are the PVT File menu and Units menu.
The File menu provides the ability to open , close , save etc. The PVT package allows
multiple files to be opened at once. The Window Menu allows the user to swap between
opened files.
This menu offers the user the standard options available from an MDI (Multi Document
Interface)
The PVT package can load multiple PVT Project Files each of which occupies its own
window.
The windows can be selected ,cascaded,arranged and tiled via this menu.
Before you can work with a file, it must be opened. This can be done using the File menu
Open option or the icon.
To protect your work, you should save your data on a regular basis. Saving a file is done
using the File menu Save or Save As options. This simple procedure could potentially
prevent hours of work and analysis being lost.
To start a new PVT Project file use the File menu New option.
3.1
PVT uses a flexible file structure that enables data to be easily exchanged between files
and other application programs. In PVT, information is grouped into the following
categories:
3-2
3.2
3.2.1
This is the main type of PVT package file . The information file contains all the composition
input, matching and calculation data for multiple streams. When opened the main data
points are shown within the main PVT window.
3.2.2
This file contains the results a particular set of calculations plus the composition which
produced it. The file is produced using the Extract option within the Analysis window or
from the View properties display. When opened the file behaves in the same way as the
original PVI file from which the data was extracted
3.2.3
PVT Import
This function is accessed by using the Import option from the File menu. The selection
dialog is shown in figure 3.0.
Figure 3.0:
Import File Type Dialog
Petroleum Experts
3-3
3-4
3.2.4
3.2.5
PRP files contain the data required by the PVT section of Petroleum Experts PROSPER
program.
The file is produced using the Export option within View properties display or by using the
Export option from the File menu.
Select Type 1 PROSPER EoS Composition from the Export Types Dialog Screen
(Figure 3.1)
Figure 3.1:
Export File Type Dialog
Only a limited subset of the data normally associated with a PVT file is required by
PROSPER VIZ.
3-5
3.2.6
PHY files contain a table of temperatures and hydrate formation pressures. After
calculation the export is available from the Calculation Results dialog or from the Export
Type dialog.
3.2.7
PVE files are files produced by the PVT General Export Function.
The ASCII text file is produced using the Export option within View properties display or
using the Export Option from the File Menu
Select Type 2 - Petex General from the Export Types Dialog Screen (figure 3.1)
The Selection screens which follow give the user the choice of exporting any combination
of :
PVT Options
Primary Input Composition and BI Coefficients.
Grouped/Matched Composition and BI Coefficients.
Reference Data
Calculations
The Calculation columns to be exported can be individually selected using the Column
Setup dialog. The data exported can be delimited by tabs or commas or alternatively saved
in a fixed-column-size format. Deselecting the saving of column headings and Keywords
will produce a file containing only numeric data. If headings are required, a comment
marker of your choice can be added to give the importing program a marker to search for.
The General Export Display is shown in figure 3.2.
Figure 3.2
Export File
Dialog
3-6
The dialog gives the user great flexibility in what should be exported and in what format.
The export is to an ASCII file with a default extension of .PVE
For each section of Input Data or results a check-box allows the user to switch on or off its
export .
The available sections are:
Input Data
Included are all the entries made on the PVT Options screen i.e. Method, Analyst, Well etc.
Input Composition
This is component concentrations and properties of the mixture prior to any grouping or
regression exported in tabular form. The currently selected Stream will be exported at this
point.
BI Coefficients.
The initial values for Binary Interaction Coefficients are exported in a symmetrical table.
Grouped/Matched Composition
This is component concentrations and properties of the mixture after Grouping or
Regression exported in tabular form.
Grouped/Matched BI Coefficients.
The Grouped/Matched values for Binary Interaction Coefficients are exported in a
symmetrical table.
Reference Data
This option will export the Reference Temperature, Pressure and depth.
Calculations
When the dialog is loaded, the listbox within this section displays all the calculations which
may be exported.
A checkbox allows all calculation exporting to be switched on or off.
Highlighted Calculation names will be exported. Clicking on the calculation name within the
listbox will select or de-select the item.
The variables within each calculation can be individually selected using the Layout option.
Delimiting
The data exported can be delimited by tabs or commas or alternatively saved in a fixedcolumn-size format. Enter the column width in the edit box if the fixed-column-size option
is required.
Headings and Comments
Deselecting the saving of column headings and Keywords will produce a file containing
only numeric data. If headings are required a comment marker of your choice can be
added to give the importing program a marker to search for. Erasing the comment marker
editbox contents will give headings without an added character.
When all the selections have been made click on the Export control button to bring up the
file save dialog. A file extension of .PVE is taken as default, but any legitimate file name
can be used.
Petroleum Experts
3-7
Layout
The Layout screen (shown in figure 3.3) is the same as used in all the calculations (chapter
8 ).Each selected calculation will be shown as a separate dilaogue within which individual
values can be selected.
Figure 3.3
Column
Setup
Dialog
3-8
3.2.8
PTB files are files which contain the data in a form which can be imported into the
PVT/BlackOil/Tables section of Petroleum Experts PROSPER program. The format is fairly
general and could be used for other packages.
An ASCII text file is produced by this procedure. The process is carried out using the
Export option within View properties display or using the Export Option from the File Menu
Select Type 3 -Black Oil Table from the Export Types Dialog Screen (figure 3.1)
The Selection screens which follow give the user the choice of exporting any combination
of the following Black Oil related variables:
Pressure
Gas to Oil Ratio(GOR)
Oil FVF
Oil Viscosity
Oil Density
Oil Z Factor
Gas FVF
Gas Viscosity
Gas Z Factor
Gas Density
Condensate to Gas Ratio (CGR)
Vapour CGR
Water viscosity
Water Z Factor
This feature has been added to assist in the transfer of the correct columns to MBAL's or
PROSPER's table import facility.
To use this option
Select the target program using the combo box provided
then select the type of fluid (defined in MBAL's or Proper's OPTIONS) using the radio
buttons
finally click on the Select button. This automatically sets the required variables for
export.
Petroleum Experts
3-9
Figure 3.2a
Black Oil Table
Export
The Calculations are set out in a series of 10 tables. Each table has a temperature and up
to 100 pressures.
All the table variables except water viscosity and water Z factor can be calculated
automatically from the minimum inputs of Temperature and Pressure.
The calculation ,which is carried out by pressing on Calc. Table or Calculate All , consists
of a Saturation Pressure estimation followed by a Constant Composition Expansion (CCE).
The values will be the same as those reported for the CCE option within the PVT package
Calculation menu. The saturation pressure is placed in the edit box at the top of the table.
The other values are placed within the table. All values can also be entered manually.
Water viscosity and water Z factor must be entered manually. Click in cell, enter the
required number and click away.
The tab section at the bottom of the display shows which tables have been fillTm(r 49 1093.6 35
3-10
Separator Data
In common with the CCE calculation (Section 8.4) , the Table Export displays contains a
section for Separator Data. This allows the user to define a 5-stage separator train through
which the CCE liquid will be flashed to correct the Oil FVF and GOR. The processes which
are used to return an oil to standard conditions can significantly change the final oil
characteristics and the amount of gas liberated on the way.
All stages do not need to be entered and a last flash to standard conditions is always
included.
The Used checkbox within the separator data area switches the correction on and off. The
Setup button allows the stage characteristics to be changed by calling the dialog shown in
figure 3.2b.
Figure 3.2b
Black Oil Table
Export- Separator
Correction
The values within this separator data area are loaded and stored separately from those
within the Separator calculation. The SEP COPY button will copy the first five stages from
the Separator Calculation ( Section 8.8 ) into the Separator Data area.The CLEAR button
removes all values from within the Separator Data area. OK will reurn to the Export Table
dialog with any changes stored. Cancel will reurn to the Export Table dialog with any
changes ignored.
Export
When the data required has been entered and/or calculated, the variables selected can be
exported by clicking the Export button. This brings up a small dialog which allows the user
to select the table or tables to export (figure 3.2c).
Figure 3.2c
Black-Oil Table
Export-Table
Selection
Petroleum Experts
3-11
This dialog gives the user the ability to select one ,all, or a range of tables to export. If
Range of Tables is chosen the range required should be entered in the editboxes
provided.
Note: the program will ignore empty tables or any which are found not to contain data of
the required type.
When the tables have been chosen press Export to bring up the file selection dialog as
shown in figure 3.2d. The default file extension is .PTB
Figure 3.2d
Black
Oil
Table
Export- File Selection
For each section of Input Data or results a check-box allows the user to switch on or off its
export .
A typical export file is shown below:
*
* Petroleum Experts - PVT Black Oil Export File
*
*Version 2
*
* (BLANK LINES AND LINES WITH AN ASTERISK (*) IN COLUMN 1
* ARE IGNORED)
*
* The export of data is done always in Field units.
* The target program will adjust to the internally selected units.
* !!!!!!!!!!!!!!!!!! PVT FILE DETAILS !!!!!!!!!!!!!!
* PVT FILE NAME : C:\PVTp_Files\Samples\EXAMPLE2.PVI
* Exported :Tue Jul 01 14:19:39 2003
* !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
* NUMBER OF TABLES (MAX 10)
2
* DATA COLUMN IDENTIFIERS
* - CAN BE IN ANY ORDER
* - COLUMNS CAN BE MISSING
* - ANY INDIVIDUAL ITEM > 3.4e35 = missing item
*
*
* PRES - Pressure
* GOR - Gas-Oil Ratio
* OFVF - oil Formation Volume Factor
* OVIS - oil Viscosity
* ODEN - oil Density
* OCOM - oil Compressibility
* GFVF - gas Formation Volume Factor
* GVIS - gas Viscosity
3-12
Petroleum Experts
3-13
The ASCII file contains many comments maked with * to help the user.
The IMPORT funtion ,however, requies the following information
the number of tables to be read
the variables exported PRES GOR etc.
for each table :table number,number of entries,table temperature and saturation
pressure
for each entry the variables selected separated by a space
Important Note on Units
The values transferred between the programs are done in field units Conversion to the user
unit is done on IMPORT.
Calc. Table and Calculate All
When Calculate All is selected, the saturation pressure and CCE calculation will be
carried out on all tables which contain a valid table temperature and on any table line with a
valid pressure. Calc. Table is done on the viewed table only
Clear Table and Clear All
When Clear All is selected, and the clear is confirmed all table data is removed.
Clear Table operates on the viewed table only.
Copy CCE
When Copy CCE is selected, and the copy is confirmed, all table data is removed. The
table temperatures and pressures are replaced by those from within the CCE calculation
user- defined input screen (section 8.4).
Clear
This option closes down the dialog and saves the values entered but does not evoke the
export to file.
3.2.9
PTG files are files which contain the data in a form which can be imported into the
PVT/Fluid Properties/Import section of Petroleum Experts MBAL program. The MBAL program
should have the tank model Variable PVT selected.
The format is fairly general and could be used for other packages.
An ASCII text file is produced by this procedure. The process is carried out using the
Export option within View properties display or using the Export Option from the File Menu.
The first stage in the export process is to calculate the Compositional gradient via a
variation of the Compositional Gradient Calculation Input Dialog (see figure 3.2e).
The only difference is a change of label on the button from Calc to Export.
Input the depths or range of depths required and press on Export.. This brings up the
Export dialog.
3-14
Figure 3.2e
MBAL
MultiPVT
Export
Click on Calc to fill in the table as shown in figure 3.2f.. The reference data used can be
changed using the edit boxes above the main table.
The program will calculate the compositional gradient for the selected depths.
When this has been completed,the program uses the compositions at each depth to make
up a black oil match table.for each depth.
The pressures used to define the Black Oil flashes are automatically selected with respect
to the saturation pressure.
5 pressures , including the saturation pressure are used. The data produced can be viewed
via the MBAL Match Data dialog.. This display is called by clicking on one of the Match
Data buttons in column 1.
The automatically-set pressures can be modified manually in this dialog and the Black Oil
properties re-calculated. The check box in column 2 indictes whether the pressures have
been modified.
When the data has been set click on Export to create the ASCII file.This action brings up
the file selection dialog as shown in figure 3.2d. The default file extension is .PGD
Petroleum Experts
3-15
Figure 3.2f
MBAL Export
File Selection
Analysis allows the user to view the compositions calculated for each depth. See Analysis
Dialog within the Calculations Chapter for more details.
The calculation results can be viewed graphically using the Plot option. See the Plot
Chapter for the options available within plots .
Click on Main to exit the dialog and return to the summary display.
Figure 3.2f
MultiPVt Export
Calculation
3-16
3.2.10
This dialog is called by clicking on any of the MatchData buttons within the MBAL export
table (See figure 3.2f). A typical example is shown in figure 3.2g
Figure 3.2g
MultiPVt Black
Oil Match Table
The table is the result of 5 flashes on a composition at a particular depth. The aim is to
provide the data necessary for matching the Black Oil Model. The program automatically
selects the pressures as
1
2
3
4
5
The aim is to provide enough data to give the shape of the particuar Black Oil correlation
above and below the Saturation Pressure.
If the selected points are found to be unsuitable the values above and below can be
adjusted by:
a)
b)
c)
Putting the table into Manual mode using the radio buttons provided
Entering new values for pressure in the white boxes within the table
Click on the Calc. Button
Petroleum Experts
3-17
NOTE
Any recalculation of the underlying MBAL PVT with depth table will invalidate and remove
any manually entered pressures.
A typical export file is shown below:
*
* Petroleum Experts - MBAL PVT with Depth Export File
*
*
* (BLANK LINES AND LINES WITH AN ASTERISK (*) IN COLUMN 1
* ARE IGNORED)
* - ANY INDIVIDUAL ITEM VALUE > 3.4e35 = missing item
*
* UNITS for each data item are assumed to be whatever is the current
* setting at the time of export
*
*Export File Signature
PetexPGD
*Export File Version
1
*
* !!!!!!!!!!!!!!!!!! PVT FILE DETAILS !!!!!!!!!!!!!!
* PVT FILE NAME : C:\HAMID\AX.PVI
* Exported :Sun Feb 08 17:02:49 1998
* !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
* DATA COLUMN IDENTIFIERS
*
*
* DPTH - Depth
* PRES - Pressure
* TEMP - Temperature
* PSAT - Bubble/Dew Point Pressure
* GOR - Gas-Oil Ratio
* OAPI - Oil Gravity
* GGRV - Gas Gravity
* WSAL - Water Salinity
* MH2S - Mole H2S
* MCO2 - Mole CO2
* MN2 - Mole 2
* OFVF - oil Formation Volume Factor
* GFVF - gas Formation Volume Factor
* OVIS - oil Viscosity
* GVIS - gas Viscosity
* ZLIQ - oil Compressibility
* ZVAP - gas Compressibility
* GFVF - gas Formation Volume Factor
* CGR - produced cgr
*
**************** DEPTH TABLE VARIABLES EXPORTED ****************
DPTH ,PRES ,TEMP ,PSAT ,GOR ,OAPI ,GGRV ,WSAL ,MH2S ,MC02 ,MN2 ,
****************************************************************
**************** MATCHDATA TABLE VARIABLES EXPORTED ****************
PRES ,GOR ,OFVF ,OVIS ,GVIS ,ZLIQ ,ZVAP ,GFVF ,CGR ,
********************************************************************
**********************
UNITS
*****************************
PVTP User Guide
3-18
* Units Used in Depth Table Variables:*feet ,psig ,degrees F ,psig ,scf/STB ,API , , , , , , ,
* Units Used in MatchData Variables:*psig ,RB/STB ,centipoise ,centipoise , , ,ft3/scf ,bbls/MMscf ,
********************************************************************
********************** DATA
* NUMBER OF DEPTHS
7
*****************************
3-19
END
*****************************
3-20
3.2.11
PVB files are files which contain the data in a form which can be imported into the
PVT/Fluid Properties/Import section of Petroleum Experts MBAL program.
PVB files are files which contain the data in a form which can be imported into the
PVT/Fluid Properties/Import section of Petroleum Experts MBAL program. The MBAL program
should have the tank model Variable PVT selected.
The format is fairly general and could be used for other packages.
An ASCII text file is produced by this procedure. The process is carried out using the
Export option within View properties display or using the Export Option from the File Menu.
This display is initiated by selecting the Type 5 -MBAL Variable Bubble Pt. (Oil) option
from the Export Types Dialog Screen.
The objective is to provide a full black oil map for reinjecting gas into a dead oil to provide a
range of fluids with differing Bubble Points.
The dialog is split into 2 fluid types
3.2.12
Saturated
These tables represent the oils properties at various saturation pressures. Data entry can
be done for any of five temperatures.
If the table pressure is below the oils uninjected bubble point a straightforward CCE
calculation is done to the table temperature and pressure. The oils black oil properties are
then calculated and reported.
If the pressure is above the uninjected bubble point the following procedure is undertaken
by the program:
The oil is flahed to standard conditions to calculate a dead oil and associated gas
composition
The dead oil composition is mixed with a range of proportions of gas to get a curve of
addition amount versus bubble point.
The required amount of injected gas to achieve the input pressure is estimated.
The estimated gas fraction is mixed with the dead oil and this combination is taken through
a CCE to get the fluid's blackoil properties. The fraction of gas used is reported within the
Analysis Dialog.
3.2.13
Undersaturated
These tables represent the oils properties at pressures above the saturation pressure. For
any of five temperatures.,there are five bubble points. Theses bubble points represent
different mixtures of dead oil and gas. The procedure followed to achive these saturation
pressure matching compositions is very similar to that outlined for the SATURATED
table.Once the composition is determined this fluid is flashed at the table temperature and
the range of input pressures to caculate the oils density ,viscosity and FVF.
The data entry for the dialog is available in two forms i.e Automatic and User Selected.
A typical Automatic display is shown in figure 3.2h.
The table temperature is entered via the edit box provided. A set of radio buttons in the top
right of the display allows the user to move between the five saturated tables.Table
temperatures must be different.
The labelled TABS allow selection between displaying the Saturated and Under saturated
data.
In automatic mode the user can enter an individual pressure range for each temperature. If
the entries are to be repeated the Copy Pressures,Paste and Paste All buttons can be
Petroleum Experts
3-21
used to make the data entry easier. The Copy Pressures stores the pressure range
entered. The Paste button will overwrite the current table entries with the stored values.
The Paste All feature will overwrite all pressure ranges whether saturated or
undersaturated with the stored values. If any of the pressure entries contradicts the other
defined variables i.e. an undersaturated PSAT the user will be informed and the values
adjusted.
Figure 3.2h
MBAL Variable
PB Input Dialog
Clicking on the User Selected radio button changes the display one similar to that in figure
3.2i.
3-22
The user can now enter up to 50 individual pressures for each temperature.
Every SATURATED table must have at least one associated UNDERSATURATED entry.
Clicking on the Under saturated TAB brings up a display like that in figure 3.2j in User
Selected mode:
Figure 3.2i
MBAL Variable
PB Input Dialog
The associated Saturation Table Temperature is displayed. For this temperature up to five
Bubble Points can be defined. For each Bubble Point the program will create a fluid of
dead oil and injected gas. This composition will then be flashed to all the pressures
defined. The required Saturation Pressure is entered using the editbox provided. The user
can move between the five under saturated tables by way of the 5 radio buttons in the top
right corner. The pressure entries must be equal to or above the PSAT defined for the
table. As with the saturated tables all the pressure entries are independent of each other. A
similar automatic mode entry is provided.
Petroleum Experts
3-23
Figure 3.2j
MBAL Variable
PB Input Dialog
Separator Data
The display contains a section for Separator Data. This allows the user to define a
separator train through which the CCE liquid will be flashed to correct the Oil FVF and
GOR. The processes which are used to return an oil to standard conditions can
significantly change the final oil characteristics and the amount of gas liberated on the way.
All stages do not need to be entered and a last flash to standard conditions is always
included.
The checkbox within the separator data area switches the correction on and off.
The values within this separator data area are loaded and stored separately from those
within the Separator calculation. The SEP COPY button will copy the first five stages from
the Separator Calculation into the Separator Data area.The CLEAR button removes all
values from within the Separator Data area.
Once a range of entries have been made for the Saturated and Undersaturated table have
been made proceed to the Calculation and Export Dialog.
3-24
To bring up the Calculation and Export Dialog click on the Calc control button.
Cancel will clear all entries and return the user to the Summary Screen
Petroleum Experts
3.3
3-25
This display is initiated by selecting the Calc option from the Export MBAL Variable
Bubble Point display.
A typical starting display would be:
Figure 3.2k
MBAL Variable
PB Calculation
Dialog
Clicking on the TABS allows the user to move between the Saturated and Undersaturated
results tables.
3-26
When the data has been set click on Export to create the ASCII file.
Petroleum Experts
3-27
Analysis allows the user to view the compositions calculated for each combination of P
and T. See Analysis Dialog help for more details.
Where applicable the display will show the percentage of dead oil put into the composition
eg. for saturated points above the original oil bubble point the display might look like this:
Figure 3.2m
MBAL Variable
PB
Analysis
Dialog
3-28
The calculation results can be viewed graphically using the Plot option. See Plot Help .
When the variable is common to both saturated and undersaturated tables the plot shows
both cuves eg. oil FVF:
Figure 3.2n
MBAL Variable
PB Plot
Click on Main to exit the dialog and return to the summary display.
Petroleum Experts
3.3.1
3-29
INC files are files which contain the data in a form which can be imported into an Eclipse
Blackoil Simulator.
The process is initiated by selecting the 6 Eclipse(Black Oil) Format option from the
Export Types Dialog Screen.
The display allows the user to calculate phase properties and export them in a variety of
standard Eclipse formats.
The export is to an ASCII file with a default extension of .INC .
Since not all Eclipse or even PVT data is available within this file, it has beeen assumed
that the file will be edited by the user and "included" in the Eclipse input file.
The export is on the basis of a single stream (see Streams Help) at a single temperature.
The temperature is assumed initially to be the Reservoir Temperature , but it can be
changed within the Eclipse Setup dialog.Multiple temperature files can be produced by
merging several individual export files.
The stream is selected via the listbox at the top of the dialog.
The calculations are carried out over a range of pressures for each of the three phases
VIZ. Oil,Gas and Water. Each has an independent range setting.
Eclipse allows for a variety of PVT data types ,indicated by selection of Keywords. The
Eclipse documentationl should be used as a reference on how these types are depicted
and used.
Figure 3.2o
Eclipse
Export Utility
3-30
This dialog has a combobox for each phase .The options include:
OIL
No Oil
Oil with Dissolved Gas PVCO + PMAX or PVTO
Undersaturated Oil with Constant Dissolved Gas PVDO (+ RSCONST)
Constant Oil with Dry Gas RVCONST
GAS
No Gas
Wet Gas with Vapourised Oil PVTG
Dry Gas PVDG
Dry Gas with Constant Vapourised Oil PVDG (+ RVCONST)
Constant Gas with Undersaturated Oil RSCONST
OIL
No Water
Water included PVTW
The keywords selected are shown at the bottom of the dialog. With the Oil with Dissolved
Gas option the checboxes can be used to select between the PVCO + PMAX and PVTO
options
NOTE on UNITS
Note that Eclipse has less unit options than PVTP. It is up to the user to output in units
which match the rest of the Eclipse input file. The units dialog can be used to make any
changes required
To proceed to the next stage of the exporting process click on the Export button
.
Clear sets all options off
Exit saves the current selections and closes down the dialog
Cancel closes down the dialog without saving any selection changes.
3.3.2
This display is initiated by selecting Export from the Eclipse Export Utility dialog. The
display allows the user to setup the temperature and pressures which will be used to
calculate and susequently export data to file.
The calculation will be caried out at a single temperature. This is initially set at the
Reservoir Temperature but it can be changed using the Edit box shown above.
Petroleum Experts
3-31
Note
The calculation done on each phase is a Constant Composition Expansion (CCE). This a
flash process where all the products are retained i.e. the total amount of each component
at the initial conditions is the same at all the measured values, only the phase splits (K
values ) have been changed.If however a dead oil or dry gas option is chosen eg. PVDO or
PVGO , the composition will be flashed to standard conditions and the excess gas or oil
removed prior to performing the requied P,T flashes.
Separator Data
In a similar way to the CCE input this display contains a section for Separator Data. This
allows the user to define a separator train through which the CCE liquid will be flashed to
correct the Oil FVF and GOR. The processes which are used to return an oil to standard
conditions can significantly change the final oil characteristics and the amount of gas
liberated on the way.
All stages do not need to be entered and a last flash to standard conditions is always
included.
The checkbox within the separator data area switches the correction on and off.
The values within this separator data area are loaded and stored separately from those
within the Separator calculation. The SEP COPY button will copy the first five stages from
the Separator Calculation into the Separator Data area.The CLEAR button removes all
values from within the Separator Data area.
This display contains radio buttons which allow the user to swap between User Selected
and Automatic modes.
In Automatic the pressure entries look like this. The phase entries are independent of
each other. If a phase has not been requested within the Export Utility the edit boxes for
that phase are hidden.
3-32
Figure 3.2p
Eclipse
Export Setup
In the User Selected version the ranged input is replaced by a grid for each phase where
any mixture of pressures can be entered. Select each phase by clicking on the tab at the
bottom of the grid.
Petroleum Experts
3-33
Figure 3.2q
Eclipse
Export Setup
Additional Inputs
Where additional information is required i.e PMAX ,RSCONST and RVCONST. the
appropriate edit box will appear in this area
All boxes should have an entry before proceeding to the Eclipse Export Tables dialog
To bring up the Eclipse Export Tables dialog click on the Export control button.
Exit will store all entries and return the user to the Summary Screen
3-34
Cancel will clear all entries and return the user to the Summary Screen
3.3.3
This dialog allows the user to initiate calculations and view the results
Figure 3.2r
Eclipse
Export
Tables
Petroleum Experts
3-35
The Calculation Screen is loaded when the Export button is pressed on the Eclipse Export
Setup Dialog.
The display is in the form of a three tables , one for each phase, with input values on the
left and the required calculation variables calculations listed in columns on the right.
Each column has a variable name and unit as a heading.
Scroll bars are provided to show more variables and results.
If the values have been already calculated the display will show the last set of values
calculated.
To the right of each table is a calculated stock tank density for each phase. This is
calculated even if the phase is absent from the setup options. When all three densities are
present , they are added to the export file under the DENSITY keyword as shown below:
DENSITY
52.6231 62.4562 0.0642391 /
-- units (lb/ft3)
The display has several control buttons along the top which have the following functions:
Export
This option brings up the file selection dialog as shown below. Selecting a file name with
the extension .INC and pressing OK will automatically produce the required ASCII file.
3-36
Calculate
This option recalculates the table using the latest inputs provided
Plot
This options allows the user to select which columns are displayed in the results table. See
Calculation Layout Display .
Cancel
This option closes down the display and passes the control back to the input screen
Main
This option closes down both the calculation and the input displays and passes the control
back to the main PVT screen.
Petroleum Experts
3.3.4
3-37
The objective is to provide an ASCII file which is compatible with an Eclipse 300 PVT input.
The file is exported as a PVO type including matched composition and properties.
As an option the file can also contain water properties for a range of pressures.
This display is initiated by selecting the 7 -Eclipse (Compositional) Format option from
the Export Types Dialog Screen.
A typical dialog would be as follows:
Figure 3.3
Eclipse
Export
Dialog
Two types of unit system are provided i.e. Field and Metric. When loaded the dialog will
select the system which best matches the reservoir temperature unit. Later , however, this
selection can be changed using the radio buttons provided.
If water PVT is required , enter the range and number of pressures required, change the
water salinity to the desired value and click on the Include Water Properties checkbox.
A combo box allows the desired stream to be selected.
Clicking on the Export button brings up the file selection dialog. Select a name for the PVO
file and click on save.
Figure 3.3
Eclipse
Export
File
Dialog
3-38
3.3.5
3.3.5.1
This file is created at various point within the program, particularly after regression
operations, to hold intermediate results. The file is not automatically deleted when a normal
PVI file is closed. If a normal PVI file becomes unreadable , it is possible to rename the
PSV file as PVI and use it instead.
3.4
File Operations
3.4.1
While working with PVT, new input or output data files can be created at any time. To
create new file, from the File menu choose the New command.
This command does not actually create a new and separate file, but reinitialises the
program input/output data. The next step would be to choose the compositional model etc.
by selecting Options from the Options menu..
3.4.2
Existing data files can be opened quickly and easily at any time during the current working
session. To open a file, from the File menu choose the Open option. Alternatively, press
the left-hand mouse button while the pointer is over the file-open icon within the PVT
toolbar.
The list box within the file-open dialog gives the following options:
The program displays a dialog box in which the files matching your selection criteria are
listed in alphabetic order. The default data directory files are automatically displayed first.
To open a file, point and click the filename to recall and press or click on OK The
alternative method of opening a file is to double-click on the file name. If the file you want
is not listed, it is possible that:
1)
2)
3)
Petroleum Experts
3.4.3
3-39
Saving a File
When files are opened in PVT, the program copies the selected file into the computer's
memory. Any changes to the file are made to the copy in memory. In the event of a power
failure or computer crash, these changes would be completely lost. To prevent this, we
recommend you save your data on a regular basis and especially before quitting the
program.
The Save command stores all the changes made in the current active file. By default, the
Save command saves a file under its original name and to the drive and directory last
selected. If the file is new, you will be prompted to enter a name and select a target
directory:
When exiting the program the user will be prompted to close any files which have been
altered during the session and not saved.
3.4.4
Copying a File
The Save As command allows you to make more than one copy or version of an existing
file. With this command, you can save a file under the same name but to a different drive,
or under a different name on the same drive. Before saving a copy to another disk, we
recommend the file is first saved on your hard disk!
The program displays a dialog box listing all the current files that match your selection
criteria. Your default data directory is automatically displayed first. To copy a file, enter a
new name in the Filename field - up to eight characters are allowed. Select a different
directory or drive if desired, then press or click on OK.
3.4.5
Closing Files
The CLOSE command removes the currently-displayed file and all its data from memory. If
the file has been changed the user is prompted to save the file contents before closure.
The Close All command removes every file that has been loaded.
The Delete Calculation Results Command leaves the file composition data in place but
removes the results of any calculations that have taken place.
3.4.6
A temporary file with the extension *.PSV is created at various point within the program,
particularly after regression operations, to hold intermediate results. The file is
automatically deleted when a normal PVI file is closed. If , however, there is a computer or
software failure during further processing , this command can be used to recover lost data.
3-40
3.5
3.5.1
The Dongle command activates the REMOTE software utility program that allows you to
read the software protection key. This facility lets you see what programs are currently
enabled, their expiry date, user authorisation codes and key number. This utility is also
used to update the software key. Software keys must be updated when new programs or
modules are required or the key expiry date changed. Section 2.3 describes how to use the
REMOTE utility.
3.6
Printing
3.6.1
Printer Set-up
Once you have selected a printer using the Windows Control Panel and selected the
appropriate set-up options, printing reports is straightforward. When you are ready to print,
always verify your printer is plugged in, on-line and connected to your machine. The
Printer Set-up command of the File menu, allows you to change the printer set-up options.
The setup can also be changed from the Report Print Dialog Screen.
As all printers have varying printing capabilities, the dialog box that appears will correspond
with the printer selected. Most printers allow you to select paper size and source, page
orientation and number of copies. The set-up screen example that follows is for a Canon
LBP III laser printer.
Figure 3.5:
Printer Set-up Options
Petroleum Experts
3.6.2
3-41
Printing a Report
Prior to printing a report, it is always a good idea to save your data file(s). In the unlikely
event that a printer error or some other unforeseen problem occurs, this simple procedure
could prevent your work being lost.
To print a report, select the Reporting/Report menu option. Select the sections you wish to
report on the dialog box. The program will lead you through a series of input screens to set
up the required report sections. From the main dialog box, select a destination for your
report. Details of how to set up a report are given in Section
Figure
3.6:
Reports
3-42
3.7
Units System
This section describes the system of units. The built in flexibility of the units system
enables you to select any variable and define the unit of measurement to be used. This
feature makes it possible to modify the units system so that it corresponds to data reports
supplied by a service company or customise the units system to suit your own personal
preferences.
PVTP always works internally in Field units.. To facilitate data entry and output display in
any units system, PVTP accepts data in the specified Input units and converts it to Field
units for calculation. The results (in Field units) are converted back to the specified Output
unit set if necessary. By making selections from the different categories, you can work in
the units you prefer and save the results in the units required by company policy.
The changes made to the units system are file specific, each holding its own unit set. The
program allows you to create your own units system. To access the units system, point to
the Units menu and click the mouse, or click on the icon shown above.
To access the units system, point to the Units menu and click the mouse. Alternatively ,
point to the units icon on the PVT toolbar and click the mouse.
The following screen will appear:
Figure 3.7:
Units Definition
3.7.1
Unit Options
3.7.2
Variables
Select any item from the list of variables displayed. To select an item, move the scroll box
up or down, until the required variable appears on the screen.
Petroleum Experts
3.7.3
3-43
Validation
Used to set up the error checking limits for each selected input variable.
3.7.4
Unit Systems
Oilfield Units
Norwegian S.I.
Canadian S.I.
German S.I.
French S.I.
Latin S.I.
Customised unit systems can be created and saved under new names. Different units can
be selected for both input and output.
3.7.5
The Input and Output units for each variable on the list can be changed.
To change or customise the default Units System:
Scroll through the measurement variables list until the unit item to modify is visible on
the screen.
Select the unit category (Input and/or Output) to modify.
Select the unit field corresponding to the measurement item and click on the arrow to
its right to display the list of unit options.
Select the preferred measurement unit.
3.7.6
Validation Limits
To reduce the possibility of entering incorrect data, PVTP checks that input data falls within
predetermined validation limits. For most purposes, the default validation limits are
adequate. For particular applications, the user can change the validation limits if required
by entering new values directly from the units definition screen.
Find the required variable by scrolling through the list, then enter required changes in the
low and high validation limit boxes. Enter your custom validation limits in the units currently
in use. To permanently attach the new validation limits to a custom units system, click
Save before leaving the validation screen by clicking OK.
To save changes, click Save. You will be prompted to enter a name for the new Units
System. This new system can now be recalled and applied to any file. The ability to have
separate input and output unit systems allows the user to work with familiar units and to
create reports in any required unit system. PVT calculates internally in Oilfield Units.
If some particular units have been modified during the course of a PVT session, the
changes will be written into the .PVI file when the input data are saved. Irrespective of the
current units system settings, recalling a previously saved .PVI file will cause PVT to revert
to the units saved in the recalled .PVI file. To permanently impose a new set of units on
the recalled file, open a custom units file (or use one of the internal unit sets) and then
save the .PVI file. The new units settings will be used whenever the .PVI file is loaded.
PVTP User Guide
3-44
3.8
Command Buttons
Performs the various calculations on the input parameters for the correlations
selected.
Cancel
Continue
Continues to the next input screen. Any changes to the fields will be saved
and retained in memory for later calculations. A warning message will be
displayed when fields requiring input data are left blank.
Help
Provides on screen help for PVT. For general information, press the 'ALT'
and 'H' keys together in the Main menu, or the Index button under any help
screen. Specific help screens are also available for each window.
Main
Returns you to the Main Application Menu. Any changes or modifications will
be saved and retained in memory by the program.
OK
Plot
Plots any calculated results and displays them on screen. Hard copies of the
screen display can be printed by selecting the Print menu option on the Plot
screen.
Reset
Resets the Match parameters in order to reinstate the original text book
correlations.
Save
Saves a current PVT file. If this is a new data file, you will be prompted for a
file name.
Extract
Takes a copy of the input data and calculation/analysis results and stores the
values in a user-selected file
Export
Among the export options , the program creates a file with PVT compositional
data which can be imported into Petroleum Exports PROSPER program or
other package.
Petroleum Experts
4.1
Traditional Black Oil Modelling techniques have been applied within PVT to
Oil
Dry and Wet Gas
Retrograde Condensate
Matching against Laboratory Data is also available.
Black Oil Modelling is a technique which works back from values of density and GOR
measured at known surface conditions to predict the properties at other points and the
results of process changes. The technique is fast and accurate when applicable.
4.2
P=
RT
a
2
vb v
2 - 39
P=
RT
a (T )
v b v (v + b) + b(v b)
and,
2) the Soave-Redlich-Kwong(SRK)EoS:
P=
RT
a (T )
v b v (v + b)
In addition there is a feature within the program which allows the user to customise the
general equation to suit a specific need
All cubic Equations of State can be rewritten as a function of the compressibility factor Z
e.g. the Peng Robinsen equation becomes
Z 3 (1 B) Z 2 + ( A 3B 2 2 B) Z ( AB B 2 B 3 ) = 0
and for SRK
Z 3 + Z 2 + ( A B B 2 ) Z AB = 0
where
A=
a (T ) P
( RT ) 2
B=
bP
RT
and
Z=
Pv
RT
In addition there is a feature within the program which allows the user to customise the
general equation to suit specific needs (see Section 4.3.3)
4.2.1
The acentric factor was put forward as a means of representing the non-sphericity and
polarity of many compounds. The original Equation of State PV=nRT was based on a
model of hard spheres which behaved in a classical and predictable fashion. The vast
majority of compounds are, unfortunately, far from ideal and far from spherical. The
Petroleum Experts
acentric factor provides a number which can be used in the equation of state to match
predicted PVT behavior with reality.
To quote the authors in Molecular Thermodynamics of Fluid-Phase Equilibria by J
Prausnitz and R. D. Lichtenthaler.
"Acentric Factors are arbitrary and chosen for convenience"
Based on deviation of some fluids from that predicted by what the corresponding states
theory suggests for simple fluids, Pitzer proposed an experimental method for determining
the acentric factor.
It had been obseved for simple fluids that for simple fluids that the following relationship
held i.e.
As the Temperature (T) approached 7/10 of the critical temperature (Tc) the measured
saturation pressure(Ps) approached 1/10 of the critical pressure(Pc).
Ps
1
T
7
=
( = )
Pc 10 when Tc 10
Pitzer's proposal was to use the logarithmic deviation from this relationship as a measure
of acentric factor
log10 (
Ps
) T / Tc =0.7 1.0
Pc
The acentric factor enters the equation of state as a component which describes the
change in the intermolecular attraction component with temperature a(T) .
The Peng Robinson Equation is
P=
RT
a (T )
v b v (v + b) + b(v b)
with
R 2TC2
a (Tc ) = 0.45724(
)
PC
and (TR , ) is a function of the reduced temperature T/Tc and the acentric factor as
follows
= (1 + (1 TR0.5 ) 2
is an empirical quadratic or cubic of the acentric factor
At values of
4 - 39
b = 0.0778(
RTC
)
PC
Soave Redlich Kwong varies from PR in the constants within the empirical functions i.e.
a(Tc ) = 0.427(
R 2TC2
)
PC
b = 0.08664(
RTC
)
PC
Table 4.1 shows some typical acentric factors. Note that the value increases with the size
of the molecule and its polarity.
Table 4.1 Common Acentric Factors
Compound
Nitrogen N2
Carbon Dioxide CO2
Methane C1
Ethane C2
Butane nC4
Hexane C6
Octane C8
Decane C10
Acentric Factor
0.039
0.239
0.011
0.099
0.199
0.299
0.398
0.489
Acentric factors are available from the database supplied with the PVT package. The
values in table 4.1 are taken from the Petroleum Experts database.
The acentric factors for all components can be viewed and adjusted within the Base
Composition Information Page of the PVT package.
This display is selected by clicking on the View button within the Composition Input Page.
The latter display can be called by selecting Edit Composition option from the Data menu
or clicking on the icon.
It is particularly important to select the right acentric factor for pseudo components. This
value can be calculated automatically or input manually within the Composition Input
display. This display is selected by clicking on the Properties button within the Composition
Input Page.
Petroleum Experts
6 - 39
4.2.2
The cubic equations of state were originally developed for pure substances. With time their
use was extended to mixtures. This extension required some method of introducing a
measure of the polar and other interactions between pairs of dissimilar molecules. The
binary interaction coefficient was put forward.
This variable enters the calculation as a component in the intermolecular attraction a.
For mixtures :
N
a = xi x j aij
i =1 j =1
where
a = a i a j (1 k ij )
k ij
aj
Binary Interaction Coefficients represent a flexible way of moulding the ideal Equation of
State to match the non-ideal reality of many mixtures.
The PVT package offers the user a variety of correlations for Binary Interaction Coefficients
as well as the opportunity to enter values manually.
This flexibility, however, brings with it the problem of where to start when characterising a
mixture. Hint on Binary Interaction Coefficients puts forward a possible approach.
The Select option within the Binary Interaction Coefficients Display will bring up a dialog
box which allows the user to select between the correlations available for
k ij
Choice of BI Coefficient
Authors disagree on the values of binary interaction coefficients for hydrocarbon mixtures.
Some suggest that kij should be set at zero for hydrocarbonhydrocarbon interactions,
and given a value for hydrocarbonnon-hydrocarbon and non-hydrocarbonnonhydrocarbon pairs .
At Petroleum Experts we suggest that this approach is suitable for systems solved using
the Soave-Redlich-Kwong(SRK) Equation Of State.
Wih the Peng-Robinson(PR) Equation Of State the following general approach was found
succesful in most cases
For Volatile Oils or Condensates , try
8 - 39
This display is selected by clicking on the B I Coeffs... button within the Composition Input
Page.
The latter display can be called by selecting the Edit Composition option from the Data
menu or clicking on the icon.
The Select option within the Binary Interaction Coefficients Display will bring up a dialog
box which allows the user to select between the correlations available for kij.
4.2.3
Volume Shift
Volume Shift arises from an inherent weakness in the 2 parameter(a and b) Equations of
State in estimating liquid densities.
The Peng Robinson variant is
P=RT/(V-b)-a(T)/[V(V+b) +b(V-b)]
In the 3 parameter version V is replaced by a corrected version Vs where
Vs = V +cV
c is the third parameter and is the sum of the individual xi.ci
Since this correction is done after the flash equilibrium calculations, the component K
values,saturation pressure and phase envelope are not affected.
What is changed is the compressibility Z and anything derived from it i.e.
Density,GOR,FVF,Relative Volume etc.
The use of Volume Shift seems to be very attractive,since it corrects a known problem.
However , there are very significant problems in using this method eg.:
1) The Equation of State is non predictive . Matching must be used to model real fluid
behaviour.
Volume Shift can be used to make up for bad data or inadequacies in the matching
methods. This can be very dangerous particularly as there is no real control or limit to the
value of c . In our experience nearly all fluids can be matched without volume shift using
the methods outlined in EOS : Step by Step Guide . For this reason this method is not
recommended until all other approaches have been exhausted.
2) The Volume Shift approach is a fairly crude correction factor which solves the difficulty of
matching density.It does ,however, introduce other problems by breaking up the continuity
of the original equation. It is not a temperature dependent function. Matching a c at one
elevated temperature may cause difficulties with matching and the material balance at
another. lower temperature
Volume Shift is available when any equation of state model is selected within the
OPTIONS display.
Thereafter all relevant calculation displays and the Preferences/Calculation Tolerances
contain a volume shift control panel.
The control panel consists of a check box to switch on and off the correction and a button
to set up the Volume Shift parameters (see Volume Shift Setup below)
There are two ways of setting up volume shift within the program.
The first is based on calculating ci (called Vol Shift C within the program) as a function of
Zrackett Pc and Tc..
The second is based on a method from Jhaveri and Joungren (SPE 13118,1988)
Petroleum Experts
In this method
Ci = bi . Si
where the Vol Shift S factor Si is taken from a database or calculated from the molecular
weight of the component by Si = (1-(d / MWti**e))
The selected volume shift parameter Ci or Si can be regressed upon if required (see
Regression Parameter Selection)
4.2.3.1
This dialog is loaded by the Setup button within the volume shift control panel (see
example below)
This button allows the user to get a feel for the degree to which the volume shift is varying
the fluid properties. When presssed the program will flash the fluid to standard condition
with and without the shift on. The results are presented as shown below
This dialog is loaded by the Setup button within the volume shift control panel (see
example below)
The main body of this dialog is a grid which displays the parameters used to calculate
volume shift Vol Shift C and Vol Shift S and those used to calculate c and s values. All
data within the grid can be edited manually and stored.
The grid has a tab control to swap between streams.
As described in the Volume Shift Help. 2 methods of obtaining a shift are available within
the package. Radio buttons on the top right of the display allow the user to swap between
the methods.
Each method has a clear and calculate button to create new values.
The Jhaveri and Joungren has an additional two edit boxes for the D and e variables which
are used to calculate the component S values.
Petroleum Experts
This button allows the user to get a feel for the degree to which the volume shift is varying
the fluid properties. When presssed the program will flash the fluid to standard condition
with and without the shift on. The results are presented as shown below
The Volume Shift checkbox allows the user to switch on and off the global volume shift
correction flag
Exit and Save closes down the dialog with all changes retained
Cancel closes down the dialog with all changes ignored
The Volume Shift checkbox allows the user to switch on and off the global volume shift
correction flag
4.3
Wax Modelling
Won (ref 1 Section 4.4.2) originally proposed a model for wax formation based on an ideal
solution.The derivation of the basic equation is as follows:
The problem is analysed in terms of a subcooled liquid and a thermodynamic cycle (see
diagrams below). This analysis is outlined more fully in Prausnitz (ref.2 Section 4.4.2).
The fugacity of the solid is equal to that of the solute in liquid and for the system at position
2 is given by:
f solid = 2 x2 f 20
where
x2
................eqn. 1
coefficient and
if it is assumed that the solvent and solute are very similar making
becomes
x2 =
2 =1
and equation 1
x2
Pressure
LIQUID
SOLID
Critical
Point
Triple
Point
VAPOUR
Temperature
The problem can be more generally solved using the thermodynamic cycle shown in figure
2 below.
Petroleum Experts
ASSUMPTION 3 The volume change at the melting point is assumed to be negligible and
these terms are ignored,giving:
T
H = h f + C p dT
a >d
Tt
S = S + S + S
a >d
a >b
b >c
c >d
S = S f +
a>d
C p
T
Tt
Pt
dv
dP
dT
P
dT
S = S f +
a >d
Tt
C p
T
dT
S f =
H f
Tt
Substituting the results of the cycle in eqn 2 and rearranging gives the eqation which acts
as the fundemental for many wax models:
H f Tt
c p Tt
c p Tt
f 2L
ln( S ) =
( 1)
( 1) +
ln( )
f2
RTt T
R T
R
T
ASSUMPTION 5 for most materials the melting point line is nearly parallel with the
Pressure axis allowing the triple point temperature to be replaced with the melting point.
H f Tmelt
c p Tmelt
c p Tmelt
f 2L
ln( S ) =
(
1)
(
1) +
ln(
)
f2
RTt T
R
T
R
T .................eqn 3
ASSUMPTION 6 Implicit in the use of this equation is that the thermodynamics of a pure
substance in an ideal solution can be extended to a mixture where the solvent is non-ideal
and the solid is neither ideal nor a pure single species
Some points to note about this equation is that it is dominated by the Melting Point value.In
essence this value determines when the solid may start to form. The other important term
is the Heat of Melting which plays a role both in the formation temperature and the amount
of solid formed. In its simplified form,this equation as used by Won overestimates both the
Wax Appearance Temperature and the amount of wax formed.The various models
question the assumptions built into this model extending the equation in various ways to
remove these errors.
How this equation is used and adapted within the various models is given in Model Details
section
Petroleum Experts
4.3.1
WON ORIGINAL
This model is outlined in reference 1 (Section 4.3.2).
Won derived the equation 3 (Wax Modelling Section 4.3) and expressed it as follows:
H f
c
v
iL
si
T
T
T
= = ( S ) exp[
(1
) + p (1 melt + ln( melt ) +
dP]
i
xi
RTt
Tmelt
R
T
T
RT
0
P
SL
i
.......4
s
where i and i are the mole fractions of i in the liquid and solid respectively.
Won simplified this equation by assuming the second and third terms were equal to zero
iL
)
S
and the ratio of activity coefficients i was equal to 1.
(
This leaves a fairly simply equation which unfortunately exaggerates both the Wax
Appearance Temperature and the amount of wax formed.
K iSL =
H f
si
T
(1
)]
= exp[
xi
RTt
Tmelt
Within the model the required values for Melting Points and Heats of Melting are taken fron
the following correlations
20172
Mi
and
H f = 0.1426.M iTi m
where
iL
)
iS was equal to 1 was in valid as it lead to and overestimation of
vi
iL
2
=
exp[
{(
i ) 2S }]
i L
S
RT
i
where
Mi
d 25L
The paper gives estimates of the solid and liquid solubility parameters up to C40
K iSL =
H f
si
v
v
v
T
(1
) + i ( i ) 2L + ln( i ) + 1 ( i )]
= exp[
xi
RT
Tmelt
RT
Vm
Vm
V = x v
i i
with m
Within this model the author uses the correlations outlined in won original for estimationg
melting points and heats of melting
In addition the following correlations are suggested for molar volume and liquid solubility
parameter.
vi = M i /(0.8155 + 0.6272e 04 M i
13.06
)
Mi
and
H f = 0.9Ti m ( M i0.55 )
v i = 3 .8( M i0.786 )
and
PEDERSEN WAX
This model is outlined in reference 3 (Section 4.3.2) .
The model is derived from the simplified version of equation 3 (Wax Modelling Section 4.3)
used by Won i.e.
Petroleum Experts
H f
f 2L
T
ln( S ) =
(1 melt )
f2
RTt
T
Substituting fugacity coefficients for fugacities,this equation becomes:
fi = xii p exp[
where
L
i is
xi
fi
H f
T
(1 +
)]
RTt
Tmelt
and
is the pressure
The basis for the model is the presumption that not all the high molecular weight material
can form waxes.
The fraction which is allowed to do so within the model comes from an empirical
relationship :
z =z
S
i
total
i
S
z
i
where
Mi
i
and
p pip C
[1 ( A + B Mi).(
) ]
pip
is the fraction of
z itotal
ip
Ti m = 374.5 + 0.02617.M i
20172
Mi
and
H im = 0.1426.M iTi m
4.3.2
Petroleum Experts
4.4
4.4.1
Hydrates
Background to Hydrates
Hydrate I
46
2
6
7.95
8.6
C1
CO2
N2
H2S
C1
CO2
N2
H2S
Hydrate II
136
16
8
7.82
9.46
C1
C2
CO2
N2
H2S
C1
C2
C3
C4
iC4
CO2
N2
H2S
With a small number of potential guests and two possible structures, the calculation of
hydrate formation can be dealt with by the application of statistical mechanics (van der
Waals and Platteeuw ref. 5)
Estimating hydrate formation is explained in more detail in Hydrate Modelling.
Inhibitors
Since hydrate formation is can be an expensive process problem ,much work has been
carried out to engineer its reduction or prevention.
The most common methods involve any or all of the following:
a) Keeping the temperature higher than the hydrate formation temperature.
b) Adding bulk inhibitors such as methanol or sodium chloride which will shift the hydration
curve downwards to lower temperatures and
c) Adding "kinetic" inhibitors which act to slow down the formation of hydrate crystals
The modelling of inhibitors is dealt with in Hydrate Inhibition.
The user is encouraged to read references 1 or 2 (Section 4.4.2) to get a more in-depth
view of this subject.
Petroleum Experts
4.4.2
Hydrate Modelling
H 1 = (H 2 ) + (2 1)
H
1 term represents the gain from adsorption of the gas molecules.
The
It is this difference that is a measure of the weak van der Waals forces which are giving the
energy advantage to forming the structure.
The estimation of this term is treated as a statistical gas adsorption problem and the
varying aproaches to its solution make up the majority of the differences between the
model options (see Hydrate Formation Pressure and Minimum Inhibitor Concentration).
The difference between the chemical potential of pure water and the filled hydrate is given
by
H 1 = RT nci ln(1 y ji )
i
where
nci
and ji is the probability that cavity of type i is occupied by gas molecule of type j (see
table in Background to Hydrates).
The important term
y ji =
y ji
C ji f j
(1 + Cki f k )
k
where j and
State Model.
C ji
The lower the potential , the higher is the probability of finding a guest gas molecule at this
position. Of the alternative methods for calculating potential the most commonly used is
the Kihara (see ref 1 and 6 for more details).
In the Sloan option (ref 1) within the program the adsorption constant
follows:
C ji =
4
kT
exp(
(r )
kT
C ji
is derived as
)r 2 dr
where R is the cavity radius and r is the distance from the cavity centre.
The experimentally fitted Kihara cell potential
(r )
is calculated from :
12 10 a 11 4 4 a 5
(r ) = 2 z 11 ( + ) 5 ( + )
R
Rr
R
R r
........eqn 1
and
N =
1
N
r a N
r a N
+
)
(
1
)
(
1
R
R
R
R
This model outlined in the Petroleum Engineer's Handbook (ref 4 Section 4.4.2) uses a
simplified fit for the adsorption constant VIZ.
C ji =
A
B
exp( )
T
T
where A and B vary for the gas molecule , the hydrate and the type of cavity.(see
Background to Hydrates)
Petroleum Experts
C ji
H 1
RT
where
w (T0, P0 )
w (T0 , P0 )
RT
T0
P v
hw
w
dT +
dP + ln a
2
P0 RT
RT
T0 and pressure P0
hw
from
T0
vw
to T
The models used vary a little in the experimentally determined values for
w (T0 , P0 ) hw
,
4.4.3
Hydrate Inhibition
O .H
CH3
With electrolytes the water molecules form a coat of many layer around the ions in solution.
This destroys the normal liquid crystal structure of water making it more difficult for the
ordered hydrate structure to form.
Both mechanisms result in a lowering of the water activity term a in the hydrate modelling
equation.
H 1
RT
w (T0, P0 )
RT
T0
P v
hw
w
+
dP + ln a
dT
2
P0 RT
RT
Activity correlations are found in references 1,2 and 7 (Section 4.4.2) for the inhibitors
supported
4.4.4
1) Clathrate Hydrates of Natural Gases by D.S.Sloan :-Marcel Dekker Inc., New York
(ISBN: 0827 99372)
2) Hydrates of Hydrocarbons by Yuri F. Makogon :- PennWell Publishing Company,
Tulsa,Oklahoma
3) Properties of Oils and Natural Gases by K.S.Pedersen,A.Fredenslund
P.Thomassen :- Gulf Publishing Company.Houston
and
Petroleum Experts
4.5
Compositional Gradient
4.5.1
The compositional gradient function calculates the effect of gravity on the distribution of
components within the reservoir. Under the influence of gravity light components will tend
to move towards the top of the structure with the heaviest having a greater abundance
towards the bottom.
Fig 1
fi(T,P,ni)
f1i(T1,P1,ni)
f1i(T1,P1,ni,dz)
dz
fi(T,P,ni)
With the gravity effect introduced the fugacity also becomes a function of the change in
height dz.
The change in the component fugacities over the height change is given by the following
equation (full derivation in ref 1.):
f 1i
= exp[ ( Mwi / RT ) gdz
fi
..................... Eqn 1
fi
changes to
f 1i
depends on the temperature T, dz, and importantly the component molecular weight Mwi .
When the component molecular weights are very different e.g. methane (18) and
asphaltene (2000-20000), the gradient is at its most extreme with the composition and
consequently the saturation pressure varying relatively quickly with depth.
Fig 3
P1,T1,n1
dz
Pref,Tref,nref
The procedure the program follows to solve the gradient is as follows:
1 The vertical heights selected are resolved as a set of stages (see fig. 3).
2 The starting point is the matched PVT sample, which has a composition (nref), a
reference pressure (Pref) and a reference temperature (Tref) associated with it.
3 From P,T and n the equation of state can calculate zfactor and density of the fluid and
f 1i
can be calculated as in
f1
i
7 Equation 1 is the used to adjust the
value and take account of the size segregation.
8 The adjusted fugacity ratio is directly related to the composition, so a new estimate of
composition at 1(n1) can be calculated.
9 The pressure adjustment required at 1 is directly related to the change in composition so
a new P1 can be estimated.
10 With the new P1 and n1 , steps 6-9 are repeated until the values converge i.e. the
fugacity change calculated for P,T and n changing equals that predicted by equation 1.
11 The reference conditions now become P1, T1 and n2 and the second stage is
calculated.
12 When all upward stages have been calculated, the program returns to Tref and Pref and
does the downward stages in exactly the same way
The result of this calculation is a series of pressures temperatures and compositions and
depths for each of the selected depths. If you are starting from an oil and travel up the
structure, the fluid will get lighter and lighter, containing more and more methane. At the
some stage the composition calculated will be a gas. This is the GOC. With the Ps, Ts and
compositions the equation of state can be used to calculate the properties of the fluid at
each depth including saturation pressure density GOR etc.
The results are normally projected graphically with the change in reservoir pressure and
saturation pressure shown versus depth.
Petroleum Experts
Fig. 4
Fig. 5
From this diagram it can be seen that the fluids are very different. They do however share
a common point that is equal to the temperature and pressure at the GOC.
4.5.2
Petroleum Experts
4.6
Various viscosity models have been introduced into the PVTp program.
Only one model is active in a file at any one time. The active model is selected via the
combo box which appears on all the calculation input and regression selection displays.
The models available are listed below. To obtain details of any model click on the name.
Lohrenz, Bray Clark (section 4.6.1) - based on Jossi et al with reduced density
written in terms of Vcs
Pedersen et al (section 4.6.2) - corresponding states model with methane as the
reference substance
Zhou et al (section 4.6.3) - corresponding states model with nC14 as the reference
substance
Little and Kennedy (section 4.6.4) - correlation based on oil density molecular
weight,specific gravity and weight fraction of C7+
With unmatched fluids the Pedersen model tends to give the best results. Lohrenz Bray
Clark is the most commonly used model but it gives high errors for liquids if the viscosity is
not matched. When matched the LBC model gives the best match. In most cases LBC is
the only practical options as export formats to other packages are written in terms of LBC
inputs..
The Little and Kennedy correlation is very good at predicting the viscosity of oils above
bubble point. Below saturation pressure results are mixed with some fluid values being
totally unsatisfactory.
The thermal conductivity model that is included within PVTp is very similar in derivation to
the viscosity model from Pedersen et al (section 4.6.5)
The references for all the models are given in section 4.6.6
4.6.1
Lohrenz,Bray,ClarkViscosity Model
Various viscosity models have been introduced into the PVTp program.
This model(ref 5) is probably the most commonly used for hydrocarbon mixtures. Is is an
adaptation of a model proposed by Jossi et al (ref 11).
At the core of this model is a fourth-degree polynomial in reduced density.
[( *) + 10 4 ]1 / 4 = a1 + a 2 r + a3 r + a 4 r + a5 r
2
where a1 = 0.10230
a2 = 0.023364
a3 = 0.05833
a4 = -0.040758
a5 = 0.0093324
x 2 is the low-pressure gas mixture viscosity and is determined by the method proposed by
Herning and Zippener (ref 12)
N
i =1
i =1
* = z i i* MWi1 / 2 / z i MWi1 / 2
the individual component viscosities are given by the following expressions
i * = 34 x10 5
i * = 17.78 x10 5
Tri0.94
for
( 4.58Tri 1.67) 5 / 8
for
= z i Tci
i =1
1/ 6
z i MWi
i =1
1 / 2
z i Pci
i =1
2 / 3
r in equation 1 is the mixture density divided by the critical density of the mixture.
r =
The variation introduced by Lohrenz et al was in the calculation of the critical density.
This variable was rewritten in terms of the critical volumes of the mixture components.
1 N
c =
= ( z iVci ) + z c 7 +VcC 7 +
Vc i =1
i C 7 +
The origins of the LBC model lies in gases rather than liquids. Its dependence on the
density term causes inaccuracies with viscous fluids.
Petroleum Experts
NOTES on REGRESSION
Without matching the LBC model can get the viscosity of oils very wrong. The introduction
of Viscosity Automatching into the PVTp program was designed to help address this
weakness.
In regression the program uses the component critical volumes to match lab data.Since the
Vc values are not used anywhere else within the EoS models, this matching can be done in
isolation.
See Viscosity Matching(Section 7.10.3) for more details on the procedure used.
4.6.2
In this model viscosity is calculated using a corresponding states model. This method is
very similar to the corresponding states thermal conductivity model .
The basic model is described in reference 1.
r = f ( Pr , Tr )
and the reduced viscosity is given by
r =
(Tc )
1 / 6
( Pc ) 2 / 3 ( MW )1 / 2
The basic premise of the corresponding states theory is that the function f is the same for
all the similar substances within the group.
Pedersen et al (refs 1,3,4) have proposed the following relationship for the viscosity of
mixtures.
mix ( P, T ) = (Tc, mix / Tco ) 1 / 6 ( Pc, mix / Pco ) 2 / 3 ( MWmix / MWo ) 1 / 2 ( mix 0 )( o ( Po , To ))
To = T /(
where
Tc ,mix mix
Tco o
Po = P /(
)
and
Pc ,mix mix
Pco o
[(
,
)1 / 3
[(
1/ 3
)1 / 3 ]3 [
]1 / 2
)
1/ 3 3
...........1)
Pc ,mix = (
Tci 1 / 3 Tcj 1 / 3 3
) + ( ) ] [Tci Tcj ]1 / 2
Pci
Pcj
j
)
Tci 1 / 3 Tcj 1 / 3 3 2
( z i z j [( ) + ( ) ] )
Pci
Pcj
i
j
8 z i z j [(
i
2.303
MWn
2.303
) + MW n
The model for the the viscosity of the reference substance is based on the work of Hanley
et al (reference 9).
This has been extended by Pedersen and Fredenslund (ref 1,3) to become:
( , T ) = o (T ) + 1 (T ) + F1 ' ( , T ) + F2 " ( , T )
Each element is a polynomial in temperature and methane density. See reference 1 and 4
for details.
The methane density comes in the form of a modified BWR EoS.Details of this polynomial
are given in reference 10.
Pedersen et al have suggested that the correction factors should take the following form:
0.5173
mix = 1 + 7.378 x10 3 ri1.847 MWmix
and
1.847
o = 1 + 0.031 ri
NOTES on REGRESSION
In general,without matching the Pedersen model gets closer to the range of petroleum
mixture viscosities. There are still inaccuracies , however, particularly with viscous oils.
In an effort to reduce this error a matching facility has been added to this model.
Unfortunately, the main variables within the model are the component Tcs and Pcs.
Since these values are set by PSAT matching etc. it is not practical to use them again for
viscosity matching.
As an alternative, a shift and multiplier option has been added to match viscosity with this
model i.e..
Visc = Visc*Multiplier + Shift
See Viscosity Matching(Section 7.10.3) for more details on the procedure used.
4.6.3
This viscosity model is similar to the model proposed by Pedersen et al. it is also a
corresponding states model.
The function is less complex than that applied by Pedersen. The other significant
difference is that nC14 rather than methane is used as the reference substance.
r = f ( Pr , Tr )
Petroleum Experts
r =
(Tc )
1 / 6
( Pc ) 2 / 3 ( MW )1 / 2
The basic premise of the corresponding states theory is that the function f is the same for
all the similar substances within the group.
Zhou et al (ref 6) have proposed the following relationship for the viscosity of mixtures.
mix ( P, T ) = (Tc , mix / Tco ) 1.3845374 ( Pc, mix / Pco ) 0.756972 ( MWmix / MWo ) 0.532041 o ( Po , To )
To = T /(
where
Tc ,mix
Tco
Po = P /(
)
and
Pc ,mix
Pco
...........1)
o (T , P) = exp aP 2 + bP +
dP 4 + eP 3 + fP 2 + gP + h
T (iP 2 + jP + k )
4.6.4
This viscosity model has been derived empirically from measurements of pure component
and petroleum mixture viscosities(ref 7).
The equation is a cubic in viscosity:
4
1
1
B = B 0 + B 1 + B 2 + B 3 (
T
T
)3 c 7 +
+ B 4 (
)4 c 7 +
+ B 5
4
c7+
+ B 6 m + B 7 ( M ) + B 8 ( M m ) + B 9 ( M m ) 4 + B 10 ( m ) 3 + B 11 ( m ) 4
T
where is the viscosity, T is the temperature in degrees Rankin and P is the pressure in
psia.
The values of
a m = exp(log e A)
bm = exp(log e B )
M
1
A = A0 + A1 + A2 ( M ) c 7 + + A3
T
+ A4 m
T
c7+
+ A5 m + A6 ( M ) + A7 ( M ) 3 + A8 ( M m ) + A9 ( M m ) 3 + A10 ( m ) 2
T
and
4
M
1
1
3
4
B = B0 + B1 + B2 + B3 ( ) c 7 + + B4 ( ) c 7 + + B5
T
T
c7+
+ B6 m + B7 ( M ) + B8 ( M m ) + B9 ( M m ) 4 + B10 ( m ) 3 + B11 ( m ) 4
T
with
A Value
21.918581
-16815.621
0.023315983
-0.019218951
29938.501
-2802762.9
-0.096858449
0.54324554X10(-5)
0.13129082
Petroleum Experts
B Value
-2.6941621
3757.4919
-0.31409829x10(12)
-33.744827
31.333913
0.24400196X10(-10)
0.700237064X10(12)
-0.037022195
0.070811794
9
10
11
-0.10526154X10(-5) -0.83033554X10(-9)
-31.680427
21.710610
-31.083554
4.6.5
Thermal conductivity is calculated using a corresponding states model. This method is very
similar to the corresponding states viscosity models .
The basic model is described in reference 1.
r = f ( Pr , Tr )
r =
(Tc )
1 / 6
( Pc ) 2 / 3 ( MW )1 / 2
The basic premis of the corresponding states theory is that the function f is the same for
all the similar sustances within the group.
Pedersen et al (refs 1,3,4) have proposed the following relationship for the thermal
conductivity of mixtures.
To = T /(
Tc ,mix mix
Tco o
where
Po = P /(
)
and
Pc ,mix mix
Pco o
Tci
z z [( P
i
Tc ,mix = (
ci
)1 / 3 + (
Tcj
Pcj
)1 / 3 ]3 [Tci Tcj ]1 / 2
Tcj
T
z i z j [( ci )1 / 3 + ( )1 / 3 ]3
Pci
Pcj
i
j
Pc ,mix = (
Tci 1 / 3 Tcj 1 / 3 3
) + ( ) ] [Tci Tcj ]1 / 2
Pci
Pcj
j
)
Tci 1 / 3 Tcj 1 / 3 3 2
( z i z j [( ) + ( ) ] )
Pci
Pcj
i
j
8 z i z j [(
i
The molecular weight is calculated using an expression put forward by Mo and Gubbins
(ref. 8)
Tcj
T
1
1 / 3
4/3
MWmix = [ ( z i z j (1 / MWi +1 / MW j )1 / 2 (Tci / Tcj )1 / 4 ) /[( ci )1 / 3 + ( )1 / 3 ] 2 ] 2 Tc ,mix Pc ,mix
8 i j
Pci
Pcj
In function 1) the important elements still to be found are
PVTP User Guide
b) The correction factor x for the mixture and the reference substance
Most workers suggest that the thermal conductivity can be separated into two contributions
i.e. the internal and the translational:
= tr + int
where 1 is the gas viscosity is the gas voscosity at temperature T and 1 atm. Cp
Ideal Gas Heat Capacity at temperature T. R is the gas constant.
id
is the
The model for the the thermal conductivity of the reference substance is based on the work
of Hanley et al (reference 9).
This has been extended by Pedersen and Fredenslund (ref 1,4) to become:
( , T ) = o (T ) + 1 (T ) + F1 , ( , T ) + F2 ,, ( , T ) + c ( , T )
Each element is a polynomial in temperature and methane density. See reference 1 and 4
for details.
The methane density comes in the form of a modified BWR EoS.Details of this polynomial
are given in reference 10.
Tham and Gubbins reported x values for the smaller molecules found in hydrocarbon
mixtures(ref 11).
Pedersen and Fredenslund (ref 4) extended this past C7 using the function:
mix = z i z j ( i j ) 0.5
i
..................2)
4.6.6
Petroleum Experts
4.7
Water Modelling
The presence of water in most reservoirs and surface networks creates the requirement to
model the multiphase mixtures produced. The conventional equations of state such as
Peng Robinson(PR) or Soave Redlich Kwong(SRK) are not adequate for reproducing the
special interaction of the aqueous phase.
Workers in this area (refs 1 and 2), have concentrated their efforts in modifying the
attractive fuction a(T) of water and providing binary interaction coefficients between water
and the other species within the mixture.
Soreide and Whitson Model
This model is outlined within reference 1. The main element is the introduction of a
temperature dependent binary interaction coefficient(BIC), the magnitude of which depend
both on the species involved and the type of phase i.e aqueous or non-aqueous.
Aqueous Phase
In general the value of the BIC int this phase is given by:
k ij = A0 (1 + 0 c sw ) + A1Tri (1 + 1c sw ) + A2Tri2 (1 + 2 c sw )
where j represents water, csw is the salinity of the water and Tri is the reduced temperature
of component i.
The constants in the equation have the following values:
0 = 4.7863 x10 13 i
1 = 1.438 x10 2
2 = 2.1547 x10 3
In addition the authors proposed specific correlations for N2,CO2 and H2S
N2
0.7505
0.75
k ij = 1.70235(1 + 0.25587c sw
) + 0.44338(1 + 0.08126c sw
)Tri
CO2
0.7505
0.979
k ij = 0.31092(1 + 0.15587c sw
) + 0.23580(1 + 0.17837c sw
)Tri 21.2566 exp(6.7222Tri c sw )
H2S
k ij = 0.20441 + 0.23426Tri
Non-aqueous Phase
In the non-aqueous phase only H2S is given a temperature dependent BIC:
k ij = 0.19031 + 0.05965Tri
Petroleum Experts
Some of the lighter components are given the values shown below , the rest are given a
value of 0.5
C1 = 0.485
C2 = 0.492
C3 = 0.5525
nC4 = 0.5091
N2 = 0.4778
CO2 = 0.1896
In addition , the normal a(T) function is replaced for water with the equation :
4.7.1
1 )Peng-Robinson predictions for hydrocarbons,CO2,N2 and H2S with pure water and
NaCl brine ,I. Soreide and C.H. Whitson, Fluid Phase Equilibria,77:217-290
2) EoS Predictionsof Compressibility and Phase Behaviour in Systems Containing Water,
Hyrocarbons and CO2, A.Firoozabadi,R.Nutakki,T.W. Wong and K.Aziz.SPE 15674.
3) Multicomponent CO2/Water/Hydrocarbon Phase Behaviour Modelling:A Comprehensive
Study,D.Y. Kuan,P.K. Kilpatrick,M.Sahimi,L.E. Scriven and H.T.Davis, SPE 11961
4) Predicting Phase Behaviour of Water/Reservoir-Crude Systems Using the Association
Concept,A.A. Shinta and A.Firoozabadi , SPE 27872
5 Main/Stream Options
This section describes the PVT main menu and the data required to be input before an
analysis can be performed. Data should be entered by working through the PVT menus
from left to right and top to bottom. The following menus are described in this section:
Main menu
Options menu
Streams menu
5.1
All PVT functions are listed as menu options. Simply select the menu required and choose
an item from the list displayed. This will activate an option or display the relevant screen.
Every option you select has a result you can see. You will automatically be taken through
the necessary steps to enter data and perform calculations. The intention is to move from
left to right across the main applications menu.
To start PVT, select the appropriate icon and press or double-click the program icon. A
screen similar to the following will appear:
Figure 5.1:
Main Menu
The menu options across the top of the screen are the PVT main menu options. Each is
described below.
2 - 24
5.1.1
File
The File menu is a management menu with commands that enable you to open, save or
create new data files. You can use this menu to move between open files and set-up
printer options.
5.1.2
Options
The Options menu is the starting point of PVT and the key to the program. Use this menu
to define your application and principal features of the PVT model to be used. The options
you select are unique to the current file and apply until changed by the user, or another file
is recalled. These options also determine the subsequent screens, menus and commands
which are displayed. This menu is also used to define the input and output units of
measurement. A flexible system of units is provided allowing you to customise the internal
units system.
5.1.3
Data
Use the Data menu to define mixture compositions and properties including pseudocomponents. PVT correlations can be modified to match laboratory measured data using a
non-linear regression technique. In addition , grouping of components ,setting of reference
conditions, and customising the equation of state are also available.
5.1.4
Calculation
The Calculation menu provides you with the relevant calculation options. Calculations
include critical temperature and pressure ,phase envelopes, constant volume depletion,
depletion study, constant composition expansion ,differential expansion ,separator
compositions, and compositional gradient and swelling tests
5.1.5
Calc. Solids
The Calc. Solds menu provides you with access to calculations involving hydrates and
waxes.
5.1.6
Streams
Within a PVTp file the data is packaged up as streams. Each stream being equivalent to a
PVT report. This menu allows you to setup new streams , delete a stream etc.
5.1.7
Reporting
The Report menu is used to generate the reports of the input data, analysis data and
results. Results can be viewed on the screen, sent to the Windows clipboard or saved in a
file.
5.1.8
Utilities
A series of useful calculators are included within the Utilities menu. These include API
conversion, material balance and enthalpy balance.
Petroleum Experts
5.1.9
3 - 24
Preferences
This menu allows the user to change the look of the front screen and change some
calculation options.
5.1.10
Window
This menu offers the user the standard options available from an MDI (Multi Document
Interface)
The PVT package can load multiple PVT Project Files each of which occupies its own
window.
The windows can be selected ,cascaded,arranged and tiled via this menu.
5.2
Toolbar
Two toolbars are attached to the bottom of the main menu. Each icon represents one of
the most used menu options. As the mouse pointer passes over the icon a short
description of the option is displayed in the Statusline which is situated at the bottom of the
main PVT window. When an option is unavailable the icon is greyed-out.
To select an option , place the pointer over the icon button and press the left-hand mouse
button.
The main icons perform the following functions:
4 - 24
Petroleum Experts
5 - 24
Calculate Slim-tube
Group mixture
Regression
6 - 24
5.3
Summary Page
When a new file is created on an existing file is opened the front sheet shown in Figure 5.1
is replaced with a summary sheet showing the main points of information available for the
PVT project.
Figure 5.2:
Summary
Sheet
Multiple project files can be loaded. Switching between files is done via Window Menu or
by using the Next File button on the File Status bar. Each project file can be made up of
multiple streams, each containing a unique collection of data. The active stream is selected
via the list box wthin the summary toolbar.
The summary screen is made up of several elements which can be toggled on or off via the
Preferences menu:
Petroleum Experts
7 - 24
If the Summary Screen is maximised a help tree appears on the right hand side of the
display. Clicking on any line will bring up the appropriate help item.
Figure 5.2a:
Expanded
Summary
Sheet
Within the display is information on whether the main calculations have been done for this
file. Double clicking any of the calculation names takes the user direcly to the calculation
input display.
8 - 24
5.4
Option Selection
The Options menu is used to define the characteristics of the PVT project. The options
selected establish the input data required and the calculation options available. The
selections made apply to the current session. The data entry screens, input fields and
variables are limited to those relevant to your particular application. Input options may be
changed at any stage of the processing. New choices may require other information to be
supplied. Therefore the user is advised to ensure that all relevant input is still valid for the
new option selection.
To access the Options menu, point to the menu name and click the mouse or press ALT O.
The following data entry screen will appear:
Figure 5.3:
System Options
The entry screen is divided in three sections - System options , User information, and
User Comments.
Under the System options section, define your PVT model characteristics such as Method,
fluid type, Separation Stages, Equation of State, etc. These selections determine
information you will be required to enter later. The User Information and User Comments
section of the screen allows the user to enter data , comments and dates which help
identify the project and which are printed out in the report Input Data section .
5.4.1
Option Selection
To select an option, click on the arrow to the right of the required field. The list of available
choices will be displayed.
5.4.2
PVT Method
Black Oil
Equation of State
Petroleum Experts
5.4.3
9 - 24
Fluid Type
Black Oil
Options available:
Oil
Dry and Wet Gas
Retrograde Condensate
Equation of State
No options available
5.4.4
Separator
Black Oil
Options available:
Single Stage
Two Stage
Equation of State
Options available:
Multi-Stage
5.4.5
Equation of State
The Equation of Sate Options are described in more detail in Chapter 4 The options
available are: The choice is between a series of equations provided via the main
calculation library
Peng-Robinson
Soave-Redlich-Kwong
5.4.6
User Information
This section is designed to help the user keep track of which project is associated with the
PVT file data. None of the entries are mandatory and none of the information entered in
the boxes is checked. Entries available are:
Company
Field
Location
Platform
Analyst
5.4.7
User Comments
The user comments window allows the user to enter any comments which may be required
to track the history of the data or calculations within the PVT file.
To enter the comments area click the left hand mouse button when the cursor is over the
desired point.
A new line is entered in the comments block by typing Ctrl+Enter at the desired point.
Pressing the Date Stamp Button places the current date and time at the end of the
comments block. The Comments are printed as part of any PVT report.
The Data Input procedures for the Black Oil is described in Chapter 6. The Equation of
Sate Data Input options are covered in Chapter 7.
5.5
Streams Menu
The PVT project file acts as a container for multiple sets of PVT data. These may be from
different attempts to solve the same the same sample match eg.using different
recombination GORs. They may originate from different samples at different depths or
regions within a field. They may be from totally unconnected systems . Each Stream can
be interpreted as equivalent to a PVTP version 1 file.
This structure is explained more in section 7.0.
Multi-Stream Regression allows the user to set up multiple streams and match all lab data
using a common set of component properties. The streams may represent samples from
different wells or surface and reservoir. See Chapter 7 for more details.
The Streams Menu allows the user to manipulate these important data structures and
includes:
EDIT STREAM DETAILS -change stream name and comment.
ADD STREAM - copies existing streams or imports streams from other files
DELETE STREAM - removes unwanted streams.
CREATE A STREAM TO A TARGET GOR - mixes the stock tank gas and oil to create
a stream with a predetermined GOR
CREATE A STREAM TO A TARGET PSAT - mixes the stock tank gas and oil to
create a stream with a predetermined saturation pressure
BLEND STREAMS - mixes streams and their properties
ALLOCATE :BLEND STREAMS TO A TARGET GOR mixes two streams using the
blending algorithm until the mixture meets the entered GOR. The program then reports
the volume and weight percents required to create the mixture.
ADD WATER TO A STREAM
Create a stream with a fixed amount of water
Create a stream saturated with water
See also DATA / EDIT MOLE PERCENTS
Petroleum Experts
5.5.1
11 - 24
This option allows the user to change the stream name and the comment associated with
the stream.
Load the display from the Streams|Edit details option within the STREAM MENU
Select a stream using the combo box ,change the comment or name and press EXIT when
complete.
See also:
PVT PROJECT STRUCTURE. -where streams fit in to the overall data structure
SELECT COMPONENTS - this display has an option to add an empty stream
EDIT MOLE PERCENTS - streams can be copied and their compositions edited using this
option.
ADD STREAM - copies existing streams or imports streams from other files
DELETE STREAM - removes unwanted streams.
5.5.2
Add Stream
This option allows the user to create a new stream from scratch,as a copy of an existing
stream or by importing.
The display is loaded from the Streams|Add stream menu option(see STREAM MENU)
to create an empty stream with no components selected click on the New Empty Stream
button . This will bring up the component selection dialog.
To COPY
Press Copy Existing Stream.This selection brings up this dialog
{bmc c:\projects\dev\pvtp\winhelp\BMP_WMF\STREAMS - ADD STREAM2.BMP}
To copy:
1. rename stream if required.
2. Highlight stream to copy.
3. Click on copy stream button.
To IMPORT
Press Import PVI File.This selection brings up this dialog
Petroleum Experts
13 - 24
To Import:
5.5.3
Delete Stream
Use this option to copy an existing stream or to import a stream from another PVT project
file .The display is loaded from the Streams|Delete .Stream menu option(see STREAM
MENU)
Select the required stream and press Delete Stream. You will be prompted to confirm this
operation. If only one stream is available the delete option is not allowed.
See also:
PVT PROJECT STRUCTURE. -where streams fit in to the overall data structure
SELECT COMPONENTS - this display has an option to add an empty stream
EDIT MOLE PERCENTS - streams can be copied and their compositions edited using this
option.
ADD STREAM - copies existing streams or imports streams from other files
Petroleum Experts
5.5.4
15 - 24
Use this option to create a stream with a particular GOR by combining the separator gas
and stock tank oil from a matched stream .
The display is loaded from the Streams|Create a Stream.... menu option
(see STREAM MENU) or from the icon above.
IMPORTANT NOTE
When this stream is created it is done with surface gas and oil. The process therefore
mimics a recombination change. If the objective is to reflect a loss or gain of gas at
reservoir conditions then the approach is not entirely appropriate. The gas evolved near
saturation or that present in the gas cap may be quite different to that produced from the
separators. Using the swelling test or other methodologies may produce better results.
The procedure for creating the stream is as follows:
Select the stream which is to be used as the source of the gas and oil. This will be
flashed to surface directly or through a separator train to provide the dead oil and
gas compositions.
If the target GOR is to be with respect to a separator train setup the required stages
in the edit boxes provided and click on the Use Separator Train.... check box. If no
selections are made in the Separator Data area the fluid will be flashed straight to
stock tank conditions i.e.. standard temperature and pressure.
Enter the target GOR and click on the Create Stream button.
As the program iterates the iteration number and best solution to date will be
displayed
PVTP User Guide
When a solution is found ( within the convergence test limit) the stream will be
created and labelled with the GOR value.
On successful completion the dialog will shut down and return to the main display
The number of iterations carried out and the accuracy of the final value can be changed
using the edit boxes provided.
Exit will close down the dialog and retain any entries which have been made.
Cancel will close down the dialog and ignore any entries which have been made.
5.5.5
Use this option to create a stream with a particular PSAT by combining the separator gas
and stock tank oil from a matched stream .
The display is loaded from the Streams|Create a Stream.... menu option(see STREAM
MENU) or from the icon above.
17 - 24
As the program iterates the iteration number and best solution to date will be
displayed
If the saturation pressure target is above the maximum possible for the mixture a
warning will appear.See Plot Profile below
When a solution is found ( within the convergence test limit) the stream will be
created and labelled with the PSAT value.
On successful completion the dialog will shut down and return to the main display
The number of iterations carried out and the accuracy of the final value can be changed
using the edit boxes provided.
Exit will close down the dialog and retain any entries which have been made.
Cancel will close down the dialog and ignore any entries which have been made.
Unlike black oil models , EoS modelling is limited by the physical and mathematical realites
of mixing two fluidsi.e the separator liquid and gas. In a typical system the saturation
pressure of the mixture will rise from either extreme to a maximum somewhere in middle.
This feature highlights this limitation by plotting the range of possible saturation pressures
that can be derived from mixing the gas and oil. The typical plot below is taken from a
condensate sample.
The poinst with the additional sqares around are gas. The star on the plot marks the
original mixture's saturation pressure. It can be seen from thisplot that near critical fluids
,in general, will not produce a mixture saturation pressure very much above that of the
original mixture. See additional help on Plotting (Chapter 11).
5.5.6
Blend Streams
Use this option to copy an existing stream or to import a stream from another PVT project
file .The display is loaded from the Streams|Blend Streams menu option(see STREAM
MENU)
This option allows the user to mix in a controlled fashion x% of stream A with y% of stream
B. All the component properties of each stream are combined using a mixing rule to form
the new streams values.
The stream produced can be assigned to a new stream,or used to overwrite an existing
stream, or sent to an archive. This is done via the radio buttons within the dialogue.
Select the two streams,select the percentages of each stream and click on Blend.
Press on OK to exit the dialogue and retain the changes.
Press on Cancel to exit the dialogue and ignore the changes.
Petroleum Experts
5.5.7
19 - 24
Use this option to copy an existing stream or to import a stream from another PVT
This option allows the user to calculate the amount of two streams that would be required
to produce a mixture of the desired GOR. After calculation the stream can be created.
The display is loaded from the Streams|Allocate:Blend streams.... menu option(see
STREAM MENU) .
IMPORTANT NOTE
The calculation will assume that all the components are perfectly mixed and come to
thermodynamic equilibrium. In the real case of two fluids meeting at a manifold the contact
time and phase splits present may not allow this to occur
The procedure for creating the stream is as follows:
Select the streams which are to be blended.
If the target GOR is to be with respect to a separator train setup the required stages in the
edit boxes provided and click on the Use Separator Train.... check box. If no selections
are made in the Separator Data area the fluid will be flashed straight to stock tank
conditions i.e.. standard temperature and pressure.
Enter the target GOR and click on the Calculate button.
As the program iterates the iteration number and best solution to date will be displayed
When a solution is found ( within the convergence test limit) the mole percents and weight
percents of each stream requied will be displayed
Click on Create Stream if required.
On successful completion the dialog will shut down and return to the main display
The number of iterations carried out and the accuracy of the final value can be changed
using the edit boxes provided.
Exit will close down the dialog and retain any entries which have been made.
The Plot Profile button will display graphically the full range of possible fluids.
Petroleum Experts
5.5.8
21 - 24
Use this option to create a stream with a particular mole percentage of water. This
operation is normally done to a matched stream .
The display is loaded from the Streams|Add Water to a Stream.... menu option
or from the icon above.
PVT lab experiments are normally done on samples from which all the water has been
removed. The PVT report must therefore be matched with no water present. This feature
allows a known water to be added and the effect of the water on the phase equilibria to be
calculated.
A typical display would be:
Enter the mole percent of water required in the edit box provided and click on Create
Stream.
5.5.9
Use this option to create a stream which contains the maximum percentage of water
before a water phase forms. This operation is normally done to a matched stream .
The display is loaded from the Streams|Add Water to a Stream.... menu option
or from the icon above. The calculation can also be reached from the Quick Calc dialog
The calculation is available in two forms:
Single Point - Create a Stream. This option calculates the value at single temperature
and pressure and allows the user to create a new stream containing the calculated amount
of water.
Range of Values. This calculates the water concentration over a range of temperature and
pressures.
A typical Single Point display would be:
Enter the pressure, temperature and water salinity and click on Calculate.
When a value has been calculated the program allows the user to create a stream:
Enter a stream name and comment if required and click on To Stream.
Selecting Range of Values changes the display to:
Petroleum Experts
23 - 24
Enter the range of pressures and temperatures required and click on Calculate.
This brings up the caculation results table.
Petroleum Experts
6.1
The first stage in Black Oil PVT is to select the Model and the major variations i.e. Fluid
Type and Separator setup using the OPTIONS display.
Figure 6.0 shows a typical Options screen for Black Oil.
Figure 6.0:
PVT Input Screen
2 - 10
Figure 6.0a:
PVT Input Screen
6.2
Toolbar
A toolbar of icons is attached to the bottom of the main menu. Each icon represents one of
the most used menu options. As the mouse pointer passes over the icon a short
description of the option is displayed in the Statusline which is situated at the bottom of the
main PVT window. When an option is unavailable the icon is greyed-out.
To select an option , place the pointer over the icon button and press the left-hand mouse
button.
The icons perform the following functions:
Open an existing PVT file
Petroleum Experts
6.2.1
3 - 10
Select the Data | Input Data option from the main menu to display the following PVT Input
data screen:
Figure 6.1:
PVT Input Screen
Enter the required data in the fields provided. You can move from one box to another by
pressing the TAB key. Next, select the correlation methods you want to apply and click
OK.
6.2.2
Match Data
Enter PVT laboratory measured data to match to as shown on the example screen below.
The correlations can be adjusted using non-linear regression techniques (using the
Regression button) to best fit the measured data.
Figure 6.2:
PVT Match Data Screen
For each match data table, enter the temperature and bubble point, then enter pressure
versus gas oil ratio, oil FVF and oil viscosity. Where data is incomplete or not available,
leave the field blank.
PVTP User Guide
4 - 10
6.2.3
Regression
This option is used to perform the non-linear regression which adjusts the correlations to
best fit laboratory measured PVT data. The non-linear regression matching technique can
be used on up to five PVT match tables, each with a different temperature. The following
PVT properties can be used as match variables:
Pb
GOR
FVF
Oil viscosity
It is not necessary to match on all properties. In cases where the PVT data is incomplete
or of poor quality, good results can often be obtained by matching on the best
characterised parameters only. However, because bubble point can be difficult to
accurately predict from correlations, it is recommended that where possible, it is used as a
match parameter. The minimum data required to perform a regression match is the bubble
point and GOR.
The form of the correlations for FVF are different above and below the bubble
point. If the FVF at bubble point is not available, the regression may not achieve
good results. When matching the oil FVF always enter bubble point data.
Figure 6.3:
PVT Regression Screen
6.2.4
Match
From the Regression screen, individual correlations can be matched to selected measured
PVT data by:
6.2.5
Match-all
All correlations can be matched to all the fluid property data in one key stroke by selecting
the Match All command button.
Petroleum Experts
6.2.6
5 - 10
Parameters
Having performed the matching process the match parameters are displayed by clicking on
Parameters. The non-linear regression technique applies a multiplier - Parameter 1, and a
shift - Parameter 2 to the correlations. The standard deviation is also displayed which
represents the overall quality of fit. The lower the standard deviation, the better the fit.
6.2.7
The Parameters button displays the PVT correlations parameters screen. This shows the
match parameters and the standard deviation for each matched correlation. Use these
statistics to select the best correlation for your application. A plot should be made (refer
calculation and plot sections) and a visual check of the fit quality performed before making
your final selection. The match parameters can all be reset (i.e. returned to the unmatched state) by selecting the reset option. The following is an example of a correlation
parameters screen:
Figure 6.4:
PVT Match Parameters
6.2.8
Calculations
In order to make a plot or listing of fluid property data, PVT must first calculate the values
over a specified range of temperatures and pressures. Using the calculated data points,
plots of fluid properties versus temperature or pressure can be generated. The following is
an example of the Calculate | Calculations screen. If the correlations have been matched,
then the fluid properties will be calculated using the modified correlations.
6 - 10
Figure 6.5:
PVT Calculation Set-up
6.2.9
Figure 6.6:
PVT Calculation Results
Petroleum Experts
6.2.10
7 - 10
The calculated data can be displayed on a plot. The variables which are plotted are
defined under the Variables option on the plot. After performing a PVT calculation click on
Plot from the PVT calculation screen.
Figure 6.7:
PVT Results Plot
Carefully examine the PVT plots for consistency with your match data. If necessary, select
a different correlation and repeat the PVT calculations until you are satisfied with the
results.
8 - 10
6.2.11
The program assumes that all the liquid drop out occurs at the separator. For pressure
drop calculations, an equivalent gas rate is used allowing for the Condensate and water
production by ensuring a mass balance is observed.
6.2.11.1
Input Data
When Dry and Wet Gas is selected as the PVT option, the following Input data
screen is displayed:
Figure 6.8:
Dry and Wet Gas PVT
6.2.11.2
Match Data
Please refer to Match data in Section 6.1.1. The following fluid properties can be matched:
GOR
Gas FVF
Gas viscosity
All other operations are carried out as for Oil PVT. Refer to Section 6.1.1.
Petroleum Experts
6.2.12
9 - 10
The PVT Retrograde Condensate (Black oil) model has been developed in house by
Petroleum Experts. This model predicts liquid drop out. The reservoir gas gravity is
determined using the principle of mass balance for an equivalent density of the oil.
6.2.12.1
Input Data
When Retrograde Condensate (Black oil) Method is selected the following input data
screen is displayed:
Figure 6.9:
Black Oil Condensate PVT
Enter the required data. Note if tank GOR and tank gas gravity are unknown, they can be
left at 0. For such cases, the total produced GOR should be entered under separator
GOR. Condensate gravity is at standard conditions.
If the separator pressure is above dewpoint, then there can be no liquids
production. PVT handles conflicting input data by dropping the separator
pressure to atmospheric, and increasing the separator gas gravity as required to
account for the liquid production indicated by the Separator GOR. The mass
balance is respected at all times.
6.2.12.2
Match Data
Please refer to the Match data in section 6.1.1. The following fluid properties can be
matched to:
Dew point
Gas viscosity
Gas FVF
The temperature and dew point must be entered for each set of match data.
CAUTION: When matching oil density, there should be no input pressure higher
than Dew Point, since the oil density does not exist beyond that point.
All other operations are carried out as for Oil PVT. Refer to Section 6.1.1.
Petroleum Experts
7.1
The PVT project file acts as a container for multiple sets of PVT data. These may be from
different attempts to solve the same the same sample match eg.using different
recombination GORs. They may originate from different samples at different depths or
regions within a field. They may be from totally unconnected systems . each Stream can be
interpreted as equivalent to a PVTP version 1 file.
7.1.1
STREAMS
A stream is the main structure for holding data within a PVT file. A project must have at
least one stream. Each stream is independent with the following data contained within it:
a) Composition
This is the identification of the components, the mole percents of each and the component
properties. the composition may be grouped and/or matched.
Figure 7.0 shows the structure of the PVT EoS data within a stream.
The most important element of this set of data is the Working Composition. This contains
the components,composition and properties which can be viewed and manipulated via the
View Properties display(Section 7.5). This composition is the one which is stored with the
PVT file and used as the basis for Regression and the other PVT EoS calculations.
The View Properties Display allows the user to manually change any component property
within the Working Composition.
The first step in producing a composition is to select components from one of the package
databases. This is combined with values generated for Pseudo Components to produce
the Initial Composition. At this stage the Working Composition and the Initial Composition
are the same.
Regression on this composition is shown by a Regressed Ungrouped label at various
points within the PVT package. Alternatively, the composition can be Grouped and then
Regressed shown by the Regressed Grouped label. Some files may have been regressed
in both forms . At each stage, the new properties generated become part of the Working
Composition.
b)Calculation Data
Calculation inputs and results are held independently for each stream. Multiple streams
can be selected for each major calculation. See CCE Calculation and Phase Envelope for
examples of this facility.
c) Reference Data
Each Stream contains its own reference data ie Standard Temperature, Standard
Pressure, Reservoir Temperature,Reference Pressure and Reference Depth. These
variables are set up in the Data/Reference Data dialog and within the View Properties
display
d) Match Data
Match or Lab Data is held separately for each stream , allowing the streams to be
individually regressed upon. See Match Data for more information on the types of entry
required
2 - 68
e) Regression Data
Regression selections i.e. processes to be matched to and properties used in matching are
held for each stream. See Regression Parameters for more details
See also
SELECT COMPONENTS - this display has an option to add an empty stream
EDIT MOLE PERCENTS - streams can be copied and their compositions edited using this
option.
ADD STREAM - copies existing streams or imports streams from other files
DELETE STREAM - removes unwanted streams.
EDIT STREAM DETAILS -change stream name and comment.
7.1.2
PSEUDO STORAGE
An additional smaller storage area is provided for Pseudo Properties for each stream via
the Pseudo Properties Display. This allows the initial values or a later selected set to be
held as the active values are worked upon.
7.2
3 - 68
Selecting Components
The first stage in any Equation Of State PVT project is to select the Model Type and
Equation as described in Chapter 5.
The next step is to select components from one of the two databases supplied with the
package VIZ. Petroleum Experts or Elf.
The display which is used for component selection is shown in figure 7.1. This screen can
be called by clicking on the Select Components option within the Data menu or on the icon
shown above.
Figure 7.1:
Component
Selection
The program automatically fills the Components list box with the component names in a
short label and longer ,more descriptive, form.
Components can be selected or de-selected by clicking on the component name. The
number of components chosen is given on the display.
Up to 40 components can be selected.
If pseudo components are required, the number needed should be entered in the edit box
provided.
The No Components button clears the pure component selections.
The No Pseudos button clears any pseudo definitions that have been entered.
If a reservoir or feed composition is available ,Press the Edit Composition button when all
selections have been made. This action brings up the Edit Composition display.
PVTP User Guide
4 - 68
7.2.1
Figure 7.1a:
User
Database
A more extensive user database can be setup using the database create , import and edit
dialogs. This may contain the same components as the petroleum experts database with
different properties, or components which are not covered by the Petex database. The user
database points are held within an ASCII file with a UDB extension. The directory where
these files are stored is saved within the Prosper.ini file. This directory can be set using the
Set User database Directory button which calls the User Database Directory Dialog. If any
*.UDB files exist their names will be displayed in the combo box provided. If the file has
been created with user data, but the specific UDB file is not on the users machine the
components will be listed within the user area for identification but cannot be extended or
reset to the original *.UDB values.
See Chapter 13 for more details.
7.2.2
5 - 68
Recombination
This display is called by clicking on the Recombination button within the Select Data base
dialogue (Section 7.0).
Recombination can either be used as :
1) a method of calculating the reservoir composition from separator and stock tank
compositions and volumetric properties or,
2) a quality check on feedstock analysis i.e. by comparing the recombined
composition with the lab reported composition.
7.2.2.1
MODE
The recombination calculation comes in two modes. The default version is Simplified. The
mode can be changed using the radio buttons at the top right of the display. The simplified
mode reflects the basic recombination done in most PVT reports.The table inputs and
controls are the same as those described in more detail below for the extended mode
version.
One oil and one gas composition is entered . These are normally from a separator test.
Additional inputs include an oil density and either a gas density or gas gravity. The GOR
entered must be referenced to Stock Tank conditions.The average molecular weight can
be entered directly or ,alternatively, it can be calculated automatically from the composition
entered for the oil and the molecular weight of each component. For non-pseudos the
molecular weight is taken from the Petroleum Experts database. Pseudo molecular weights
must be entered ,either on this dialogue or via the Pseudo Properties Display.
A typical Simplified display is shown in figure 7.1b.
6 - 68
Figure 7.1b:
Recombination
Simplified
7 - 68
Data is also required to link the amount of gas produced with respect to the stock tank oil.
This is entered in the form of GOR data for the stock tank and the utilised separator stages.
NOTE: All GOR data must be entered with respect to Stock Tank Barrels (STB)
Figure 7.1c:
Recombination
Extended
The only other additional information required is the temperature of the stock tank and
separator stages. This information is used to relate moles of gas to volumes.
When all entries have been made, press the Recombine button to initiate the calculation.
The results will appear in the first column of the table.
If you wish the recombined fluid to become the reservoir composition , copy the data
across by clicking on the Copy Rec to Comp button.
Leave this dialogue using the Exit and Save button if you wish any results and/or changes
to be recorded.
8 - 68
Cancel will close down the dialogue with the loss of any changes which may have been
made.
Units will bring up the standard units dialog , allowing the user to modify units without
going out to the main display.
The Quick Calc button allows the user to the small calculation menu(below).When this is
called the recombined fluid composition is used to produce a temporary stream which is
the used to calcuate phase envelopes, saturation pressure etc.
The program at this point will create a temporay stream using the recombined composition.
Calculations , including a phase envelope, can be carried out with this composition and
compared directly with the other stream results.
Leave this dialogue using the Exit and Save button if you wish any results and/or changes
to be recorded.
Cancel will close down the dialogue with the loss of any changes which may have been
made.
7.3
9 - 68
Edit Composition
This option is only made available when components have been selected as described in
section 7.1.
This dialogue acts upon the working composion of the selected Stream. The stream being
acted upon can be changed via the TABS at the botton of the composition grid.
See PVT Project Data Structure(Section 7.0) for a more detailed description of streams.
The display which is used for composition input is shown in figure 7.2. This screen can be
called by clicking on the Edit Composition option within the Data menu or on the icon
shown above. It is also automatically brought up when OK is pressed on the Select
Components display (section 7.1). The display shows the Working Composition as
described in Section 7.0.
Figure 7.2:
Composition
Input
Note The Pseudo Name can be changed to a meaningful one by calling the Pseudo
Properties Display.See Pseudo Props control button.
Reservoir Reference Conditions
An entry box is provided for the three main reservoir reference variables viz.
Reservoir Temperature at Depth
Reservoir Reference Depth
Static Pressure at Depth
These numbers are entered in the units displayed at the right hand side of the box. See
Section 3.4 if another set of units is required. Please note that these variables can also be
changed by using the Reference Data option within the Data menu (see Section 7.7 )
Grouping/Matching
The 2 boxes within this area indicate whether the current file is Grouped or Matched to
Laboratory Data. Either condition may be destroyed by choosing the Accept or View
options within this display. Both choices are designed to operate with ungrouped
compositions. A composition which has been grouped and/or matched after grouping will
revert to the ungrouped composition . If any function is chosen which might result in loss of
data , the warning shown below is issued.
To view the properties of a Grouped or Matched file the View Properties option within the
Data menu should be chosen.The Archive option (see Section 7.13 ) can be used to store
any composition which may be useful later.
11 - 68
Figure 7.2.1:
Composition
Warning
13 - 68
Exit and Save closes down the dialog keeping all changes.
Cancel closes down the dialog ignoring all changes.
NOTE ON GRIDS
In common with all grids within the program the grids displayed can be copied from and to
using standard widows editing keys (Control C,Control V copy and paste etc.).
7.4
Pseudo Properties
This option is invoked by clicking on the Properties button within the Edit Composition
display. It can also activated by pressing OK on the same display if no pseudo properties
have been set.
The pseudo name defaults to PS-1,PS-2 etc. This may be changed to something more
meaningful by clicking within the name box and editing the name. All subsequent displays
will show the new name.
Figure 7.3 shows a typical screen
Figure 7.3:
Pseudo
Properties
Input
The grid displayed shows the mole percents and properties of the currently active
stream.The stream being acted upon can be changed via the TABS at the bottom of the
grid.
See PVT Project File Structure for a more detailed description of streams.
It is very important that care should be taken in setting pseudo component properties as
the values can have a critical effect on the results of subsequent calculations.
The PVT package keeps track of when matching has occurred with a composition.This
may be when the package was grouped or ungrouped. Grouping and any susequent
matching is destroyed prior to entering this display. However, a composition matched while
ungrouped can be displayed and manipulated with the functions described here. Any
manipulation is assumed to change the match and is preceeded by a warning.
The pseudo name defaults to PS-1,PS-2 etc. This may be changed to something more
meaningful by clicking within the name box and editing the name. All subsequent displays
will show the new name.
Petroleum Experts Ltd
15 - 68
As no correlation will accurately model all pseudo components, it is advisable to try several
options within this display before satisfying yourself that you have a match.
See Hint on Method for some direction.
7.4.1
Within the PVT package two liquid densities are calculated by two different methods. The
first is based on an empirical correlation from Standing and Katz.
The second is calculated from the Equation of State liquid compressibilty.
Experience has shown that the Standing and Katz value which is derived mainly from
specific gravities is always fairly close to the measured density.
This display offers a powerful way of quickly setting the EoS parameters to provide a sound
basis for detailed matching/regression.
The option of using zero BI coefficients provides more flexibility when a phase envelope
is encountered with a rapidly rising curve at the lower T and P used for the Auto Match
flash. Normally, this can be left at its default value.
The option of using original pseudo props can be very valuable when a condensate is
being matched. Normally this type of fluid requires splitting
(see EOS : Step by Step
Guide ).
When splitting occurs the Standing and Katz value of the mixture changes a little.i.e. the
automatch reference drifts away from its original accurate value. To prevent this the
automatch process can be told to use the original unsplit value from the pseudo store to
calculate the Standing Katz density by putting this option on.Care should be taken however
to make sure the stored value is valid.
Since Volume Shift directly affects density an opportunity is given on this display to control
this feature. See Volume Shift Help for more details see:
Automatic Matching
Calculated Oil Densities
Splitting Last Pseudo
The Pseudo Components represent the largest source of unknowns within a mixture. They
also tend to have a significant influence on the overall mixtures characteristics. It is logical
,therefore, to concentrate on the pseudo properties when matching and regression
operations are being done.
Sometimes the number of pseudos does not provide enough freedom to carry out the
matching required. One option for overcoming this situation is to split the last pseudo into
two or more components.
The program offers a facility to do this in a controlled manner. The split funtion breaks the
pseudo down into two exponential distributions. The 40 components produced are then
regrouped into the original mixture with the required number of pseudos.
To use the function select the number of pseudos to be produced from splitting the last
(using the radio buttons provided) and hit the Split button.
Note that this function will be carried out in automatic mode, values can then corrected in
manual if required.
Since splitting destroys the original entries of Pseudo properties the Original Nos store
should be used to store the best data prior to carrying out this operation
PVTP User Guide
7.4.2
Automatic Mode
In this mode the pseudo properties are calculated using the correlation chosen from the
Options section.
The options display is composed of two combo boxes
The top combo box contains 2 options for calculating the pseudo component boiling point
viz.
Petroleum Experts
A. N. Other Correlation
The bottom combo box contains 9 alternative methods for calculating the acentric
factor(Omega) and the critical temperature, pressure and volume of a pseudo component,
viz.
Petroleum Experts Ltd
17 - 68
TWU/Edmister
Bergman(PNA) and Cavett
Bergman(PNA) and Cavett/Edmister
Cavett/Edmister
Mathew,Roland and Katz/Edmister
Robinson and Peng(PNA)
Lee and Kessler/Edmister
Riazi and Daubert/Edmister
Choose an option from the combo box by clicking on the down arrow and then clicking on
the selection.
The % aromatics within the properties grid allows the user to fix a limit on the % used
within the various calculations.
To fix the value enter the required number in the appropriate edit box. To remove the limit
blank out the value within the edit box.
After choosing the options press Calc Values
When back in the pseudo properties display the options are now as follows:
1)Calculate Boiling Point Tb
Enter a Molecular Weight and Specific Gravity, clear the Tb value and click on Calculate.
The package will calculate Tb, Tc, Pc, Vc and Omega. or
2)Calculate Specific Gravity S.G.
Enter a Molecular Weight and Boiling Point , clear the S.G value and click on Calculate.
The package will calculate S.G., Tc, Pc, Vc and Omega.
Clear Bpts removes all the grid boiling points causing all values and derived properties to
be recalculated.
7.4.3
Manual Mode
In this mode all the pseudo properties can be entered or adjusted by the user. To change a
value, click or double-click inside the appropriate box , type in the number and tab or click
away.
NOTE ON GRIDS
In common with all grids within the program the grids displayed can be copied from and to
using standard widows editing keys (Control C,Control V copy and paste etc.).
7.4.4
Hint on Method
7.4.5
Within the PVT package two liquid densities are calculated by two different methods. The
first is based on an empirical correlation from Standing and Katz . The second is
calculated from the Equation of State liquid compressibilty.
Experience has shown that the Standing and Katz value which is derived mainly from
specific gravities is always fairly close to the measured density at standard conditions.
The Equation of State value suffers from the main problem of the method i.e. the EoS
equation will not generally predict an accurate value from initial entries. Matching to
laboratory data must always be done before any calculated value can be used with
confidence.
A wayward set of EoS parameters normally shows up as a large deviation between the two
density values when the mixture is subject to a Constant Composition Expansion at
standard conditions (60 deg F , 1 atm.)
This method allows the user to tune the parameters of the greatest unknowns within the
mixture i.e. the pseudos to bring the densities in line.
We advise that this option is used right at the start after the mixture composition has been
entered,however, if an existing file is being used enter the procedure below at step 3
The complete method would then be:
1. Select a NEW PVT file and enter Equation of State Options
2. Select Components and Enter the Composition (section 7.1-7.2)
3. Select Pseudo Props option from the Edit Composition Display (section 7.2) to bring up
screen as in figure 7.3
4. Enter values for pseudo(s) Molecular Weight and Specific Gravity .
5. Select Automatic mode and press Options. This will bring up the screen as in figure 7.4
6. Select a method for Boiling Point and TC,PC,Omega calculation. Press OK
7. Press on the Auto Match button .
The PVT package will now automatically go through a process of
a) Adjusting the pseudo(s) boiling point(s)
b) Calculating new Tc Pc etc.
c) Flashing at standard condition to find the difference in densities
d) Based on the difference found re-adjust and repeat or exit process
19 - 68
The matching will halt when a match has been found to within 1% or 20 iterations have
been completed. If no match is made try adjusting the pseudo properties or selecting new
options in step 6
8. With densities OK now use the binary interaction coefficient(s) to match the saturation
pressure at reference conditions. Normally only one coefficent (heaviest component lightest component ) is required (section 7.4). This matching does not greatly affect the
densities.
When this procedure is followed most petroleum mixtures will immediately give close to the
measured values eg.separator GOR ,liquid dropout etc.
Any differences can be readily reduced using the PVT packages regression
functions(section 7.9).
This procedure is normally carried out with zero-ed Binary Interaction Coefficients . Auto
Match automatically stores and zeros the BI Coefficients . Ater matching the coefficients
are restored.The check box on the display allows the user to skip the zeroing step , giving
more flexibilty with difficult mixtures.
7.4.6
AutoMatching Viscosities
Selecting AutoMatch will also automatch the viscosity of an oil. This changes the Vc values
to bring the LBC calculated oil viscosity to a more reasonable level.
By default, this operation will automatically be carried out if the AutoMatch button is
operated.
A checkbox allows the user to switch this feature off.
Lohrenz , Bray and Clark (see Section 4.6.1) is the most commonly used viscosity model
but it tends to give high errors for oils.The Little and Kennedy correlation (see Section
4.6.4) is very good at predicting the viscosity of oils above bubble point. Below saturation
pressure results are mixed with some fluid values being totally unsatisfactory.
This Automatching feature follows the procedure outlined below:
Find the type of fluid. If the fluid is not an oil do not proceed
Find the saturation pressure at the reference temperature
Use the Little and Kennedy model to calculate the viscosity of the oil at a pressure
just above saturation
Adjust the Vc values of the pseudo components until the LBC viscosity matches
that predicted by Little and Kennedy
7.4.7
The Pseudo Components represent the largest source of unknowns within a mixture. They
also tend to have a significant influence on the overall mixtures characteristics. It is logical
,therefore, to concentrate on the pseudo properties when matching and regression
operations are being done.
Sometimes the number of pseudos does not provide enough freedom to carry out the
matching required. One option for overcoming this situation is to split the last pseudo into
two or more components.
PVTP User Guide
The program offers a facility to do this in a controlled manner. The split funtion breaks the
pseudo down into a distribution defined by the Split Method(see Advanced Splitting
Dialog). The 40 components produced are then regrouped into the original mixture with the
required number of pseudos.
To use the function hit the Split in 2 button. Alternatively, many more options are available
be clicking on the Advanced button. This includes profiling a pseudo component . See also
Decontamination Procedure (Appendix C) on how this feature helps with decontamination.
Note that this function will be carried out in automatic mode, values can then corrected in
manual if required.
Since splitting destroys the original entries of Pseudo properties the Original Nos store
should be used to store the best data prior to carrying out this operation ( see section
7.3.5 ).
7.4.8
21 - 68
Since Pseudo Component data is the key to the characterisation of petroleum mixtures , it
is important to keep track of the link to the initial lab data. Some operations carried out on
pseudo properties eg. Splitting can destroy the original entries. The program contains a
facility to Store , View and Restore the original or a designated set of entries for pseudo
properties. The program will automatically store the first encountered data when this
dialogue is exited using the Exit and Save button. Pressing View will display the current
contents of the store as shown in figure 7.4a. Store can be used at any time to overwrite
the store with the values within the Pseudo Properties Table. Restore will take the values
from the store and use them to replace those within the Pseudo Properties Table.
The Pseudo Components to Original Values option within the Data Reset Display acts
in a similar way to the Restore option , taking values from the store and replacing those in
the Working PVT composition (see Section 7.3.4).
7.4.9
The table shows how the splitting algorithm has broken down the pseudo component giving
each C number a composition . From the composition the program corrects the database
MWts and SGs to match the pseudo from which the table was created. The split method
determines the shape of the composition distribution. Use the combo box to change the
split method and press recalculate split to activate the change.
7.4.10
Split Profiles
An important option within the split methods is to Follow Profile .This feature allows the
user to determine all or part of the component distribution. this can be extremely helpful in
dealing with contamination or fluids with distinctive distributions eg. biodegraded fluids. To
set up a profile click on the Setup Profile button. This brings up the Split Profile Creation
dialog where the relevant data can be entered. select the Follow Profile method and press
recalculate split. The split algorithm will give the Cn components the values defined and
follow a declining distribution for the rest.
Once an initial distribution is settled upon , the user can then define how the splitting is
done. using initially the Split Number radio buttons.
Select the number of pseudos to be created and hit the Set Even Split button. The display
will change to one like this:
23 - 68
Figure 7.4b
Advanced
Splitting
Dialog2
The split boundaries are confirmed by the table colours and the details which have
appeared for the new 3 pseudo components.
The split can be changed from this even distribution by clicking on the spin buttons beside
the newly defined pseudos.
Once the split is defined the program automatically calculates a MWT and SG for each
pseudo. From these values and a correlation a BPt. is set. From the BPt and a second
correlation all the important EoS numbers are calculated for the pseudo. As for the Pseudo
Properties display, the correlation can be selected by the user using the combo boxes
provided.
The AutoMatch feature is also proved on this display to allow the user to work on the new
pseudo values prior to accepting the results. Using Automatch does not effect the split it
changes only some of the properties associated with the resultant pseudos.
Similarly , the user is provided with access to the Binary Interaction Coefficients Dialog
from this display.
.
This button brings up the standard Quick Calc display , allowing the user to calculate the
effects of the completed split.
Plotting allows the user to see the trend in compositions and properties.
This option removes all pseudos which have been created and returns the display to a
single pseudo entry.
Click on this button when you are happy with all the changes that have been made. This
will return the program to the Pseudo Properties display.
This option clears all changes and returns the program to the Pseudo Properties display.
7.4.11
25 - 68
COPYING A SPLIT
This option is useful for complex systems where samples have been taken at various
depths and a compositional gradient analysis is to be done to prove linkage between the
samples. If another stream within the file has been through a splitting operation and the
detailed information on the split is stored. ,the file name will appear in the list box. Selecting
the stream name and clicking on Copy stream Split will cause the program to match the
current streams split to the one stored for the other stream. This synchronisation of
pseudos helps the streams to be similarly characterised and the compositional gradients of
each stream to align.
7.4.12
Enter the Mole% of each component that you want the split routine to follow.
Only key areas should be profiled eg. the components with maximum contamination.
The program will fill in the other components using a standard distribution.
Plotting allows the user to see the trend in the compositions that have been entered.
Click on this button when you are happy with all the entries that have been made. This will
return the program to the Advanced Splitting display.
27 - 68
This option clears all changes and returns the program to the Advanced Splitting display.
7.4.13
COPYING A PROFILE
If another stream within the file has a profile stored its name will appear within the listbox.
To copy a profile select the stream name an click on Copy.
7.5
This option is invoked by clicking on the B I Coeffs... button within the Edit Composition
display.
The grid displayed shows the pseudo properties of the currently active stream.The stream
being acted upon can be changed via the TABS at the bottom of the grid.
See PVT Project File Structure(section 7.0) for a more detailed description of streams.
The basis for using Binary Interaction Coefficients is described in section 4.3.2 . As with
pseudo properties, it is very important that care should be taken in the choice of
coefficients. Again no correlation will accurately model all mixtures. The BI Coefficient acts
as matching variable which bends the idealised cubic Equation of state to meet the
measured properties of the real world mixture.
It is therefore, advisable to try several options within this display before satisfying yourself
that you have a match for the project conditions(see also Hint on Method 7.3.1).
Figure 7.5 shows a typical screen.
Figure 7.5:
Binary
Interaction
Coefficients
Two combo boxes are available at the top of the display which allows the user to select a
correlation.
There are two choices for pure components i.e.
Peng Robinson
Soave Redlich Kwong
In addition, there are three choices for pseudo components i.e.
Petroleum Experts Method
Molecular Weight Correln
Semi-Theoretical Method
Choose an option from the combo box by clicking on the down arrow and then clicking on
the selection.
Press on Calculate New Values to get the recalculated .BI Coefficients
Any value of BI coefficient can be changed by clicking within the displayed table and
entering a value.
Petroleum Experts Ltd
29 - 68
Press Exit and Save to register the changes made. It is also advisable to save the file if
many edits have been made.
Quick Calc.
This option provides the user with access to a subset of the calculation menu as a means
of checking the consistency of the entered composition information.
The small calculation display provides the following options:
Phase Envelope
Critical Point (Temperature and Pressure)
Saturation Pressure (at the reference temperature)
Flash at Standard Conditions
Flash Through Separator Stages
NOTE ON GRIDS
In common with all grids within the program the grids displayed can be copied from and to
using standard widows editing keys (Control C,Control V copy and paste etc.).
7.6
This display can be called directly from the main Data menu by selecting the View
Properties option. In addition, the screen is also invoked by clicking on the View button
within the Edit Composition display or by selecting Group on the Grouping Display.(see
section 7.6). Figure 7.7 shows a typical display for a grouped PVT project.
Figure 7.7:
Grouping and
Properties
The stream being acted upon can be changed via the TABS at the bottom of the
composition grid.
See PVT Project File Structure for a more detailed description of streams.
The display shows the Working Composition of the selected Stream. The composition
can be viewed and manually changed if required. in common with all grids the blocks of
data can be copied to and from the clipboard with standard Control C Control V etc. (see
Grid Help)
The top section of the display shows the components a,their mole percents and the
properties of each component pseudo component or group.
The corner of the properties grid gives a coloured message which indicates the status of
the composition i.e. GROUPED or MATCHED.
When a composition is grouped the components which make up each group can be found
by clicking on the component name. Click then on the down arrow which appears. As
shown below a subgrid appears containing the names of the grouped components.
31 - 68
The values for pure components normally come from the selected data base. Mixing rules
and correlations are used for groups and pseudos. The values within the tables can be
edited on this display by clicking within a cell and entering a new number.The Edit Mole
Percents dialog should be used to change percentages of components after matching has
been done . If no matching has taken place use the Edit Composition Dialog
Volume Shift S and Volume Shift C are properties used in alternative methods of
calculating Volume Shift.
Z Rackett is used in one method to estimate Volume Shift C
The third section of the display shows the Binary Interaction Coefficients for pairs of pure
components, groups , and pseudos. Again values can be changed within this section.
7.6.1
Control Buttons
Cancel
This option shuts down the display and ignores any changes which have been made.
Quick Calc.
This option provides the user with access to a subset of the calculation menu as a means
of checking the consistency of the entered composition information.
7.6.2
33 - 68
In the normal mode of operation OmegaA and OmegaB are constants(see Help on
Regression with OmegaA and OmegaB). The values are the same for each component
and are displayed.
The numbers cannot be edited in this mode. However, when a different regression mode is
chosen within the Regression Match Data Dialog, the display changes to reflect that the
values are now in use.
If the Global mode is selected a single value is used for all components and the display
looks like this:
In Individual mode each component can have a different value for OmegaA and OmegaB.
These values can be edited by the user if required.
7.6.3
35 - 68
The program automatically creates a stream containg the original database properties.
This allows the user to assess the changes which have been made during regression.
See Chapter 11 for more information on Plotting
7.7
Grouping
This Grouping Options display can be viewed by selecting the Grouping option within the
Data menu. Figure 7.8 shows a typical display.
Figure 7.8:
Grouping Options
37 - 68
NOTE the total group number will be the group number specified in this dialogue + the
number of injected stream components.
Manual Method
Selecting this option and clicking the Group control button passes control to the display
shown in figure 7.9. The top of the screen shows the groups defined so far. The bottom half
contains two list boxes one for components and another for groups . Groups are created by
clicking on the desired components , clicking on the desired group within the list box and
clicking on Add Group.
Components grouped are removed from the components list box and placed in the table.
Delete Group will remove components from the selected group and place them in the
components list box. Reset Groups will delete all groups and place all components back in
the component list box.
When Grouping selection are complete click on the OK button. This action will bring up the
Grouping Information display described in section 7.5
Figure 7.9:
Manual
Grouping
7.8
Reference Data
This display can be viewed by selecting the Reference Data option within the Data menu.
This dialog shows the Reference Data for the currently active Stream.Each Stream
contains its own version of this data (see PVT Project File Structure Section 7.0). The
stream can be changed using the combo box provided.
Figure 7.11 shows a typical dialog box. Data for Reservoir Temperature, Reference Depth
and Static Pressure can be entered for each stream.
The Temperature is used to calculate the Saturation Pressure in the small calculations
menu and to act as a starting temperature for the compositional gradient calculation.
The reference depth is also taken as a starting point for the compositional gradient
calculation.
The static pressure at depth is used in the compositional gradient and represents the
pressure in the reservoir at which the sample has been taken.
The second section of this dialogue allows the user to modify the Standard Temperature
and Pressure.
These variables are used throughout the PVT package to determine the volumetric
properties of the oil and gas. Some PVT reports particularily from warmer areas demand
values other than the default numbers of 0 psig and 60 degrees F.
Although the differences in FVF and GOR are not large , use of the wrong reference
conditions can make matching difficult.
When the PVT file is saved the Standard conditions used are also saved with it.
The Save as Default button will store the values and use them in any new PVT file.
These numbers are entered in the units displayed at the right hand side of the box. See
Section 3.4 if another set of units is required.
Please note that these variables can also be changed by using the Edit Composition
display (see Section 7.2 )
Figure 7.10:
Reference Data
7.9
39 - 68
Decontamination
Where data is limited and the contamination can be isolated as a single pseudo component
, the edit mole percents facility can be used. Normally a procedure like that described in
Appendix C should be followed.
7.9.1
This option is called via the Data menu. A typical display is shown in figure7:10a.
Figure 7.10a:
Edit Mole Percents
Dialog
NOTE:
1) If the stream being copied is grouped the new stream will become one with only pseudo
components , each group being replaced by a pseudo with the same properties. This is
required as no information is available to the program on how the new percents should be
spread across the components making up the group.
2) When a composition is grouped, the components within each group can be seen by
clicking on the group name and clicking on the dropdown box arrow that appears.
Clear will remove all percentages from a selected stream if editing is available for that
stream ( the background colour is white)
See also:
PVT PROJECT STRUCTURE. -where streams fit in to the overall data structure (Ch.7.0)
SELECT COMPONENTS - this display has an option to add an empty stream(Ch.5.5)
ADD STREAM - copies existing streams or imports streams from other files(Ch.7.2)
7.9.2
This display is called by the main display via the Data|Decontamination menu option.
See theDecontaminate procedure(Appendix C) on how the file should be prepared prior to
using this facility. A typical display is shown in figure7:10b
Figure 7.10b:
Decontam.
Control Dialog
The main table shows the components and the expansion of the pseudo components. The
colours indicate the components which are calculated to make up each pseudo. The
distibution of the the pseudo split components is determined by the path taken in
characterising the pseudo within the Pseudo Properties Dialog and the Advanced Splitting
Dialog which is accessed from it. The correct setup of this split and the matching of the
fluid must be done prior to using the decontamination feature.
Petroleum Experts Ltd
41 - 68
The split method indicated above the table is the key to the shape of the pseudo
component distribution. This can be selected within the advanced splitting dialog.
An important split option in decontamination is to follow a profile.A profile would be
contaminant-rich part of the extended sample component distibution (C12-C20). Using this
method a profile can be created within the Split Profile Creation Dialog.
This display is entered by a stream with a fixed pseudo distribution and a set of pseudo
properties which characterise the fluid.THe program splits out the composition and the
main properties used by the EoS i.e. Tc,Pc,Vc,AF,BPt and the SG. The initial display
would be as follows:
Figure 7.10c:
Decontam.
Control
Dialog
The user must now give the program a new values for the important components i.e. where
the contamination was at its worst.
Type the new values into the New Mole% column. Alternatively, values can be transferred
from the clipboard using the standard Contol + V combination.
To get an idea what result the decontamination process will produce click on the
QuickLook button.
This option does the decontamination to a temporary stream and brings up the QuickLook
Selection Dialog.
The user will now be given the option (via the Mode Selection Dialog) of copying the results
of the decontamination to the existing stream or to a newly created one.
The decontamination calculation proceeds as follows:
The individual component mole percents are set equal to the New Mole% values ,
where defined.
The remaining component mole percents are adjusted to make up the 100% total
and to follow the trend of the original values.
The new full composition appears as the Cald. %.
The Calcd% are used in conjunction with the initial properties to generate a new set
of properties for each component and a combined version for each of the pseudo
components. The pseudo component start and end values can be seen by clicking
on the View/Change button.
The trend in the individual compositions can be seen by using the Plot button.
The Clear button erases all the New Mole% values.
7.9.2.1
43 - 68
The options are to do all the operations in the existing stream or to create a new one. If a
new stream is to be created the stream name and comment can be edited at this stage.
Press Exit and Save to carry out the decontamination and return to the control dialog.
7.9.2.2
As part of the quick look procedure the program creates a temporary stream and does the
decontamination procedure within this stream.
This dialog allows the user to see the results of this process as a table of component
properties by clicking on View Properties.
Alternatively, the standard quick calc dialog can be called by clicking on the Quick Calc
button.
PVTP User Guide
7.9.2.3
45 - 68
When the decontamination screen is entered and exited , the program stores the properties
of the pseudo components at this time. These values are then taken as the reference for
any futher decontamination calculations. When decontaminate is pressed within the
control display , the program looks to these values to set compositions and properties.
It is for this reason that the decontamination screen should only be activated after
the fluid is fully matched
The top table shows these reference values. The bottom table gives the current working
pseudo component numbers. These would normally be the result of the decontamination
operation.
If ,however, it was found necessary to do further work on the undecontaminated fluid, and
the user wishes to change the stored reference values,this display allows the user to
overwrite the archived values with the working set by clicking on the Copy button.
47 - 68
When the Compositional Gradient table is selected the reservoir reference conditions are
shown in read only form.
Adjustment of these values is available using the Reference Data option within the Data
Menu.
The grid tab buttons shown above allow the user to move between the match input tables.
The tabs also indicate which tables contain data. Tables with data have coloured tabs.
Important Note on Differential
The calculation of GOR and FVF for a differential liberation is done with respect to residual
volume.In order that this volume can be determined all the steps must be added as in the
example below
SOLIDS
Note that the grids which contain Wax Options are at the end of the scroll bar and must be
scrolled along to:
INCLUDE/EXCLUDE
Any data point or groups of points can be excluded from the regression process.Simply
highlight the desired points and press exclude.Excluded points areindicated by a GREY
text background colour. To include points highlight again and press include. This feature
can be very useful with liquid dropouts. Enter all values, exclude all and select values as
required for inclusion.
WEIGHTING
Any data point or groups of points can be given a different weighting between high 10 and
low 1.This will affect how the regression algorithm responds to the error generated by this
point. This weighting is combined with the process weighting (high,medium,low) available
within the regression display to give an overall value.To change a weighting,select a point
or group of points, change the weighting value and press Set Weighting. Weightings of
less than 10 are indicated by the point having a BLUE text colour
GRID ASSIST SUB DIALOG
Place the cursor anywhere in the table and press the right hand mouse button. A small
dialog will appear as shown below:
49 - 68
The Reset button causes the user to be prompted to select if the displayed table or all
matching tables should be zeroed. Note that the cleared table or tables will not become
part of the project until OK is also selected.
The Plot button brings up a display of the entered data where applicable.
Clicking on OK registers any changes which may have been made and closes down the
display.
Cancel will close the display ,loosing any data which may have been entered.
NOTE 1: Oil Viscosity can be selected as a match variable within the CCE Table.
NOTE 2 the Oil FVF within the multi-stage Separator calculation. is corrected through all
the succeeding stages.This correction can add up to 10 % to the un-corrected value. To
activate the correction add all stage temperatures and pressures to the match table,even if
no other matching is done within the lower stages.
NOTE ON GRIDS
In common with all grids within the program the grids displayed can be copied from and to
using standard widows editing keys.
7.10.1
To help the situation enter a target value of 180 for the Tc within the PSAT Match Data
Table.
An important option to use for this type of application is the checkbox which prompts the
program to assume that the non detection of the critical point is taken as the target being
reached.
This means that if the critical point disappears the temperature will be set as the target of
180 giving an error for this calculation of zero.
The disappearance of the critical point is not uncommon with HTHP condensates.
Select the Critical temperature within the Regression Match Data dialog.
Regression produces the following beneficial result. There is no critical point and the fluid
is now a condensate.
51 - 68
7.11 Regression
This option is made available when PVT laboratory data has been entered for matching
(see section 7.8)
The option is invoked by selecting Regression within the Data menu and is used to perform
the non-linear regression which adjusts the compositions and properties to best fit the
laboratory measured PVT data.
The non-linear regression matching technique can be used on up to six PVT match tables,
MODEL
Three model options can be selected within the program VIZ
1) Original - This model makes all component Pcs, Tcs and Acentric Factors available for
regression. When selected this model allows the user to also limit the movement of the
selected properties via the checkbox which becomes visible. When invoked this option
restricts the movement of all properties such that the progression with molecular weight
remains reasonable. Component property values can be plotted within the View Properties
Dialog. It should be noted that limiting property movement will inevitably reduce the
flexibility of the EoS method and may decrease the accuracy of the final match with some
fluids.
2) Global OmegaA and OmegaB. This will use one value of each variable for all
components. In addition, the pseudo component and grouped component Tcs Pcs and
AFs will be available for regression. See help on Regression with OmegaA and OmegaB
for more details.
3) Individual OmegaA and OmegaB. This will use an individual value of each variable for
every component. In addition, the pseudo component and grouped component Tcs Pcs
and AFs will be available for regression. See help on Regression with OmegaA and
OmegaB for more details.
The Reset Omega A and Omega B Values button that appears with models 2 and 3 will set
these values back to their default EoS levels.
each with different characteristics.
MODE
The program has two modes for Equation of State regression :
Single Stream
Multi-stream
The mode is changed by way of the radio buttons at the top of the dialog.
SINGLE STREAM MODE
The initial regression display is shown in figure 7.12.
As the name implies this mode regresses only one stream i.e. the component properties of
one stream are changed to match its Lab Data. The stream being manipulated is selected
by clicking on the tab containing the stream name. The tab background colour is changed
to BLUE if any selections have been made for the stream.(see STREAMS Chapter 5.5)
This display highlights all the variables available for regression .
Choose a variable by clicking on the checkbox alongside the name. The total selected is
shown on the right of the dialog
The variable can then be set at high ,medium or low contribution to the overall regression
calculation. All selections for the selected stream can be removed by clicking on the Clear
This Stream button.
It is not necessary to select all variables, especially in cases where data may be suspect.
The High, Medium and Low radio buttons allow the user to adjust the weighting given to
each selection. See also Lab Data Entry Dialog for more information on weightings.
When selection is complete click on the Regress control button.
This action will bring up the Regression Parameter Selection Dialogue.
Main closes down the dialogue,saving all changes
Cancel closes down the dialogue,ignoring all changes
MULTI-STREAM MODE
Figure 7.12a:
Regression:
Match Selection
53 - 68
This mode is designed for projects where multiple samples and corresponding PVT data is
available from the same reservoir.This may be from wells at different depths or
surface/reservoir samples. The fluid components are generally the same but the
compositions and therefore the measured characteristics are different.
The principle is to match all the data with one set of component properties. Each stream
(see STREAMS Chapter 5.5) represents one sample with its own composition and Lab
Data. All the stream component properties will end up the same,but the initial set will be
taken from the master stream. This can be changed using the combo box provided.
Selection is carried out in the same way as descibed above for a single stream. As
selections are made the Stream Summary shows the number chosen for each stream.
A running total of choices is provided. Note that a maximum of 25 selections is available.
The Clear All Streams button will set all stream selections to zero.
Stream Selections can be individually cleared by clicking on the name or names within the
Stream Summary and pressing on the Clear Selected button.
When selection is complete click on the Regress control button.
This action will bring up the Regression Parameter Selection Dialog.
7.11.1
The component selection displayed depends on which regression model was selected
within the Regression Match Data dialog (section 7.10).
ORIGINAL MODEL
If not regressing on viscosity, for each group or component , the user can select whether to
regress on any or all of the following:
Critical Temperature Tc
Critical Pressure Pc
Critical Volume Vc
Acentric Factor AF
Volume Shift C or S
In addition for solids (see Section 7.10.4) the following properties are added:
Melting Point
Heat of Melting
A typical display shown in figure 7.13.
Figure 7.13:
Regression:
Match Selection
This display is called by the Regress Option in the Regression Match Data dialogue.
For each group or component , the user can select whether to regress on any or all of the
Our latest methodology for parameter selection is given in What Properties to use in
Regression (Section 7.10.2)
The matching of viscosity requires a particular procedure which is described in Matching
Viscosity (Section 7.10.3)
55 - 68
Since the Binary Interaction of the lightest and heaviest components are important , it is
also possible to regress on the Binary Interaction Coefficient of them. Five Binary
Interaction Coefficient options will be provided when available.
GLOBAL OMEGA A AND OMEGA B MODEL
With this model a single value for Omega A abd Omega B are applied to all
components.The values are displayed within the grid. A Checkbox is supplied to select
each parameter. Clicking on Reset at the top of the column will set the respective omega
parameter to the EoS default value. In this mode the Tcs, Pcs and AFs of the pseudo and
grouped components can also be selected. In all models the volume shift parameters and
BICs are selectable See Regression with OmegaA and OmegaB (section 7.10.6).
7.11.2
Volume Shift
When an equation containing the Volume Shift option is used, the parameter list expands
to contain the appropriate shift parameter ( see Volume Shift Help). A volume shift control
panel is also included.
7.11.3
Control Buttons
57 - 68
7.11.4
Mouse Shortcuts
The programmed has been designed to give quick access to a row of options.Clicking on
the omponent name in various ways sets data on and off. The options are:
left mouse button - switch on AF Tc and Pc
right mouse button - switch on all properties
shift key and left mouse button - switch off AF Tc and Pc
shift key and right mouse button - switch off all properties
7.11.5
Separator
The Separator data option mirrors the feature available within the individual calculation
sections. The user can define a separator train through which the oil produced within
CCE, GRAD etc. will be flashed to correct the Oil FVF and GOR. The processes which are
used to return an oil to standard conditions can significantly change the final oil
characteristics and the amount of gas liberated on the way.
All stages do not need to be entered and a last flash to standard conditions is always
included.
The checkbox within the separator area switches the correction on and off. Setup brings
up the small dialogue where the separator conditions are defined.
7.11.6
Our recommendations for which variables to use have changed with our experience of a
wider and wider variety of fluids.
We now generally start with all Tcs and Pcs selected (except for N2 and CO2).
If BI coefficients are available select the value between C1 and the heaviest component.
The reason AFs are not chosen initially is that they have a tendency to be pushed to
extreme values which in turn lifts the low temperature
end of the Phase Envelope to near vertical. Using Tcs and Pcs give a gentler and more
controlled path to a solution.
If using Tcs and Pcs does not result in convergence, start adding AFs.
If Volume Shift is required select some Si or ci component properties.
Please note that Volume Shift is not recommended until no other combination is found to
work( see Volume Shift Chapter 4 for more details)
See also Step by Step Guide (Apendix A)
A typical starting display would be that in figure 7.13:
There may be some objections to using the properties for pure components below C6 since
they are measurable.
We have found the above method to work universally. however, we do not prevent the user
from selecting any combination of properties or approaching the solution differently.
It is our contention that the pure properties are being used within an empirical equation
with arbitrary methods of calculating and mixing the
constants which are derived from them (see EoS Help). This suggests that any purist
approach will only limit getting a result not make it better.
The quotation below makes the same point.
Quotation from
Molecular Thermodynamics of Fluid-Phase Equilibria by J Prausnitz and R. D.
Lichtenthaler.
"Many equations of state have been proposed and each year additional ones appear in the
literature,but most of them are either totally or at least partially empirical. All empirical
equations of state are based on more or less arbitrary assumptions which are generally not
valid. Since the constants which appear in an empirical equation of state for a pure gas
have at best only approximate physical significance, it is very difficult ( and frequently
impossible) to justify mixing rules for expressing the constants of mixture in terms of the
constants of the pure components which comprise the mixture.As a result,such
relationships introduce further arbitrary assumptions and it has been found that for
typical empirical equations of state, one set of mixing rules may work well for one or
several mixtures but poorly for others."
7.11.7
Matching Viscosity
59 - 68
Set up and carry out the fluid matching for all variables except viscosity eg.
PSat,PSat density, separator GOR , Stock Tank density etc. Suggestions for the
variables to use are given in the Step by Step Guide. See also What Properties to
use in Regression.
2.
Enter the viscosity values to be matched to using the CCE table within the Match
Data Tables. Please note that there are limitations to what the LBC method can do
(see NOTE below).
3.
Figure 7.14a:
Regression:
Match Viscosity
4.
5.
6.
Return the matching system to the selections prior to step 1 i.e. PSat etc and Tc Pc
AFs selected. Regress again .This step is not really necessary as the matching
should not be disturbed. The operation does ,however ,reestablish the selections
which made the overall match possible.
NOTE on LBC
The LBC is the best compositional correlation for viscosity that we have tested to date. It
does ,unfortunately, have some limitations of which the user should be aware. The values
calculated for oils ,without matching, are generally not very good and can sometimes be
wrong by an order of magnitude. This limitation is counteracted to a great extent by the
Automatching of Viscosity feature. Unfortunately,another problem arises from the
inflexibility of the algorithm. With heavier oils it can be difficult to get a full match from
reservoir pressure to surface. If this occurs and the output is to be in the form of Black Oil
tables(Section 3.1) it may be better to match the viscosity within Prosper or MBal using
Black Oil correlations.
REGRESSION WITH MODELS OTHER THAN LBC
Unlike LBC which uses Vcs, the other viscosity models use Tcs,Pcs and liquid densities to
calculate viscosity. Matching directly on these properties would destroy the match to the
main fluid properties such as saturation pressure and separator GOR. As an alternative,
these models have been given a shift and multiplier mechanism to improve the match.
After matching the viscosity becomes:
Visc = Visc*Multiplier + Shift
The procedure to match becomes:
1.
Set up and carry out the fluid matching for all variables except viscosity eg.
PSat,PSat density, separator GOR , Stock Tank density etc. Suggestions for the
2.
3.
61 - 68
variables to use are given in the Step by Step Guide. See also What Properties to
use in Regression.
Enter the viscosity values to be matched to using the CCE table within the Match
Data Tables.
Within the Match Selection Dialog ,click on the viscosity or viscosities to be
matched. This action will switch off all non-viscosity selections (psat etc. ). A typical
display would be:
Figure 7.14 c:
Regression:
Match Viscosity
5.
6.
Click on Regress to match viscosity. The shift and multiplier parameters are
displayed. Gas and Oil values are matched separately. The Reset Params button
can be used to undo any matching that has taken place.
Return the matching system to the selections prior to step 1 i.e. PSat etc and Tc Pc
AFs selected. Regress again .This step is not really necessary as the matching
PVTP User Guide
should not be disturbed. The operation does ,however ,reestablish the selections
which made the overall match possible.
7.11.8
In the Equation of State model ,viscosity is calculated by the method of Lohrenz, Bray and
Clark (LBC).
This display is called by the Regress Option in the Regression Match Data dialogue. if a
Solid option has been entered in the Match Data Tables.
The possible entries include Wax Appearance Temperature and Amount of Wax.
If either of these option is chosen the display expands to include two further columns as
shown below:
Figure 7.15:
Regression:
Solid Properties
From the expressions within Wax Modelling and Wax Model Details it can be seen that the
important variables as far as solid formation are concerned are Melting Point and Heat of
Melting.
Since a component is only allowed into the solid if its melting point is greater than the test
temperature only the heaviest components have any effect.
Melting Point is the key variable and it should be used first.
Heat of Melting has little effect on Wax Appearance Temperature but it significantly
changes the percentage of wax produced.
The lack of significant properties to change and the inflexibility of the underlying
correlations may mean that the model cannot fully match the variability found in complex
wax forming fluids.
63 - 68
NOTE: From the models it is obvious that the other component properties used in
regression i.e. Tc,Pc,AF etc. do not significantly influence solid formation.Their effect
comes in the composition and fugacity of the liquid solvent. It is therefore possible to match
solid formation in isolation from the other match points eg PSAT in a similar way to that
proposed for matching viscosities.
The procedure to adopt is as follows:
1.
Set up and carry out the fluid matching for all variables except solids eg. PSat,PSat
density, separator GOR , Stock Tank density etc. Suggestions for the variables to
use are given in the Step by Step Guide. See also What Properties to use in
Regression.
2.
Enter the Wax values to be matched to using the WAT and %Solids tables within
the Match Data Tables.
3.
Within the Match Selection Dialog ,switch off all selections (psat etc. ) except solids.
A typical display would be:
Figure 7.16:
Regression:
Solid Properties
4.
Click on Regress to bring up the Parameter Selection Dialog . Use the Clear All
button to remove the Tc,Pc AF etc. Selections. Select the component Melting
Points and if necessary Heats of Melting (as above)
5.
6.
Return the matching system to the selections prior to step 1 i.e. PSat etc and Tc Pc
AFs selected. Regress again .This step is not really necessary as the matching
should not be disturbed. The operation does ,however ,reestablish the selections
which made the overall match possible.
7.11.9
Model Selection
A combo box allows the user to select between the various wax models.Clicking on the
Reset Props button resets the important component properties back to the default values
outlined by the model's author. WARNING using this button will reset any solids regression
that has been done.
See Wax Modelling (Chapter 4) for more details on the model types available.
See Lab Data/Matching (Section 7.9) for more details on what can be matched for solids.
65 - 68
a (Tc ) = 0.45724(
R 2TC2
)
PC
b = 0.0778(
RTC
)
PC
Selecting mode 2 or 3 will change the options within the Regression Parameter Selection
Dialog and also within the View Properties Dialog.
The table allows the user to configure up to 100 points. Entries are defined by setting up a
calculation and column name for each or a group of points. If the point matches the
variables and range of a calculated plot the Test Points will be drawn in the same way as
match data is done.
The points can be defined in any pattern and ordered using the Sort Table option. The
table is automatically sorted when this dialogue is first displayed.
To define test points follow the following procedure:
67 - 68
1) The first step in this process is to select a row or range of rows. This is done by clicking
on the raised row number at the start of the row. Adjacent rows can be selected by holding
down the mouse button and dragging the cursor across multiple row numbers.
2) Once selected the rows can be setup,cleared or the data only erased.
3) When the rows have been selected ,choose a calculation and a pair of variables.The
click on the Setup Rows button .
The program will setup the calculation type , X and Y variable names and units within the
grid.
4) Enter the test data in the X Value and Y Value columns
5) Click on Exit and Save when all selections have been made
Display of the test points can be toggled on and off with the Show Test Points on Plot
checkbox.
Clear Rows
This option removes any definitions or data within a selected area.
Clear Row Data
This option removes data within a selected area but leaves the calculation and variable
definitions intact.
Clear All
This option removes all definitions and data from the table.
Exit and Save
This option closes down the dialogue with all the changes saved
Cancel
This option closes down the dialogue with all the changes abandoned.
If any test points are detected which match a Plots variables and range thay are
automatically plotted (see figure 7.18).
8 Calculation EoS
This section describes the calculation input required for the Equation Of State PVT model and
the various forms of results.
Calculations can be initiated in three ways
I. by selecting an option from the Calculation section of the main menu
II. by clicking on one of the calculation icons within the main toolbar
III. by clicking on the Calculate control button within the Edit Composition and Properties
displays (see Chapter 7)
Methods I. and II. give a choice of the following :
Where applicable ,the last set of entries for each calculation are saved with the other data in
the PVT project file.
Method III. provides the user with access to a subset of the calculation menu as a means of
checking the consistency of the entered composition information. The small display provides
options to calculate (section 8.12):
Phase Envelope
Critical Point (Temperature and Pressure)
Saturation Pressure (at the reference temperature)
Flash to Standard conditions
Flash Through Separator Stages
Maximum water in Hydrocarbon Phase
All calculation results are retained for inclusion in the Reports available with the PVT package
(Chapter 9)
2 - 55
8.1
A critical point calculation can be initiated by selecting the Critical Point option from the
calculation menu or clicking on the icon shown above. Alternatively , the Calculate option on
the Edit Composition Screen etc. can be used (see section 8.12).
The result of the calculation is given in a dialog box . Figure 8.1 shows an example of this type
of output. Contained within the display are values for
Critical Temperature Tc
Critical Pressure Pc
Critical Temperature Tc
Critical Volume/Gas Constant Vc/R
Critical Compressibility Zc
Number of Iterations
In addition indication is given of the kind of system at reference conditions i.e. Dew Point (gas)
or Bubble Point (liquid)
Figure 8.1:
Critical Point
It should be noted that the Critical Point may not always be resolvable for complex mixtures. If
this proves to be the case try adjusting the values of Binary Interaction Coefficient , Acentric
Factor of the heaviest components and the properties of any pseudo components which have
been defined. Remember that the equation of state is not predictive , if a match point is
available, always use this to guide your changes.
Petroleum Experts
8.2
3 -55
Phase Envelope
A Phase Envelope calculation can be initiated by selecting the Phase Envelope option from
the calculation menu or clicking on the icon shown above. Alternatively , the Calculate option
on the Edit Composition Screen etc. can be used (see section 8.10).
A Phase Envelope calculation can be initiated by selecting the Phase Envelope option from
the calculation menu or clicking on the icon shown above. Alternatively , the Calculate option
on the Edit Composition Screen etc. can be used.
The display below shows an example of the phase envelope input parameters screen. As the
display loads it automatically calculates the phase envelope for vapour fraction 1.0. and the
currently active stream.(see PVT Project File Section 7.1).
4 - 55
1)
2)
Auto- the entry boxes are loaded with values of 0.5,0.6,0.7,0.8,0.9, and 1.0
Manual entry - Eight entry boxes are provided for entering vapour fractions from 0.1 to
1.0
The CLEAR button will remove all entries in Manual Entry mode.
Calculation Limits
Entry boxes are provided to change the following values used to limit the phase envelope
calculation.
Pressure Step - dictates the gap between pressure movements used to detect phase
envelope
Min Pressure - sets the bottom limit of the calculation
Max. Pressure - sets the upper limit of the calculation
Integration Step - dictates the size of movement of the Integration function
Max. Integration Step - dictates the maximum size of movement of the Integration function
Plot Area
This shows the shape of the phase envelope calculated . No adjustments are available for this
plot. However , the graph can be enlarged and then manipulated by using the Expand Plot
button.
Status Area
This shows the critical points calculated during the phase envelope calculation and also
includes a status message area which indicates the progress of any calculations.
Note that the Critical Pressure Pc, Critical Temperature Tc ,Cricondenbar ,Cricondentherm
etc. may not always be resolved for complex systems.
Control Button Area
Included in this area are a series of control button which have the following functions:
Exit
This option stores the values entered (in memory , not on disk) and closes down the display.
Calc.
This option recalculates the phase envelope(s) using the latest inputs.
Expand Plot
This option brings up a full-sized plot of the phase envelope.
Set Test Points
This option calls the Test Points display. This allows the user to enter ten values for Saturation
Pressure versus Temperature. The values will be displayed on the Phase Envelope plot as
Match Point crosses
Results
This option brings up the results dialog as shown below.
The user can view all the stream phase envelope data by scrolling down the tables and
moving between the tables by way of the stream tabs.
Petroleum Experts
5 -55
The results can be copied to the Clipboard or to another package such as EXCEL by
highlighting the values required and pressing Ctrl + C.
Help
This option brings up the on-line help.
Use of Streams
The option of calculationg multiple curves is a very powerful aid in the analysis of petroleum
mixtures. Since streams can be filled with varying compositions changes in fluid
characteristics can be visualised. For example the program can illustrate how a fluid changes
as a result of a compositional gradient. Stream 1 and 2 can contain the compositions of gas
6 - 55
and oil calculated before and after the gas cap has been detected. The phase envelopes are
very different but they intersect at the gas cap temperature and pressure.
The compositions are transferred into the stream via the calculation analysis display. Since
the stream can also contain compositions from other PVT files (using Import or Add
8.3
7 -55
A Range Saturation Pressure calculation can be initiated by selecting the Saturation Pressure
option from the calculation menu or clicking on the icon shown above.
This dialogue is used for Automatic and User Selected Input .
The automatic version looks like this:
Figure 8.4:
Range
Saturation
Pressure
Automatic
Mode
The user selected version replaces the ranged input with a series of entry boxes which can be
used to enter any temperature.
8 - 55
Figure 8.5:
Range
Saturation
Pressure
Manual
Entry
Stream Selection
The list box allows the user to select any combination of streams to calculate.See PVT Project
File Structure for more information on streams.
This display contains radio buttons which allow the user to swap between User Selected and
Automatic modes.
In addition, data entry boxes are provided for entering the limits of the temperature and
pressure ranges to be covered and the number of points to be calculated for each variable.
The points will be spread evenly throughout the temperature and pressure ranges selected.
All boxes should have an entry before proceeding to the Calculation Dialogue.
Cancel will clear all entries and return the user to the Summary Screen
Petroleum Experts
9 -55
Volume Shift
A volume shift control panel is proved to allow the user to setup and to switch on and off this
feature prior to calculation . See Volume Shift and Volume Shift Setup help for more details.
8.4
A CCE calculation can be initiated by selecting the Constant Composition Expansion option
from the calculation menu or clicking on the icon shown above.
Constant Composition Expansion is a flash process where all the products are retained i.e. the
total amount of each component at the initial conditions is the same at all the measured
values, only the phase splits (K values ) have been changed.
Separator Data
The CCE input displays contain a section for Separator Data. This allows the user to define a
separator train through which the CCE liquid will be flashed to correct the Oil FVF and GOR.
The processes which are used to return an oil to standard conditions can significantly change
the final oil characteristics and the amount of gas liberated on the way. When multiple
samples are being analysed, it may be necessary to have individual separator settings for
each stream. In this case, the individual radio button should be clicked on. The stream
separator settings can be accessed via the tabs at the bottom of the table.All stages do not
need to be entered and a last flash to standard conditions is always included.The checkbox
within the separator data area switches the correction on and off. The values within this
separator data area are loaded and stored separately from those within the Separator
calculation. The Copy Sep button will copy the stages from the Separator Calculation
(section 8.8) into the Separator Data area.The Clear button removes all values from within the
Separator Data area.
The calculation input screen comes in two forms viz. Automatic (figure 8.7) and User Selected
Entry (figure 8.8).
Petroleum Experts
11 -55
In the User Selected version the ranged input is replaced by a grid where any mixture of
pressures and temperatures can be entered
Figure 8.8:
Constant
Composition
Expansion
Manual Entry
Stream Selection
The list box allows the user to select any combination of streams to calculate. See PVT
Project File Structure for more information on streams.
This display contains radio buttons which allow the user to swap between User Selected and
Automatic modes.
In addition, data entry boxes are provided for entering the limits of the temperature and
pressure ranges to be covered and the number of points to be calculated for each variable.
The points will be spread evenly throughout the temperature and pressure ranges selected.
All boxes should have an entry before proceeding to the Calculation Dialogue.
Viscosity Method
Various viscosity models have been introduced into the PVTp program (see Section 4.6).
PVTP User Guide
Only one model is active in a file at any one time. The active model is selected via the combo
box which appears on all the calculation input and regression selection displays.
Cancel will clear all entries and return the user to the Summary Screen
Petroleum Experts
8.4.1
13 -55
.
Figure 8.9:
Constant
Composition
Calculation
Screen
The Calculation Screen is loaded when the Calculate button is pressed on an Automatic or
User Selected Input Dialogue.
The display is in the form of a table with input values on the left and the required calculation
variables calculations listed in columns on the right.
If multiple streams have been selected (see Constant Composion Expansion), the user can
move betwen the streams by clicking on the tabs at the bottom of the display.(see PVT Project
File Structure for more information on streams.
Each column has a variable name and unit as a heading.
Scroll bars are provided to show more variables and results.
Colours have been used with grids to indicate phase:
Red - gas only
Blue - mixture of oil and gas
Black - oil only
If the values have been already calculated the display will show the last set of values
calculated.
The display has several control buttons along the top which have the following functions:
Calculate
This option recalculates the table using the latest inputs provided
Plot
This options allows the user to select which columns are displayed in the results table. See
Calculation Layout Display .
Analysis
This option produces a secondary screen giving the compositions calculated at each
measurement point. The analysis screen also provides access to the EXTRACT function
which allows the user to export a particular line of the calculation to a PVT file. Alternatively,
the intermediate composition can be copied to a stream within this project file.With Separator
calculations further information Viz. Total GOR ,Gas Gravity and Oil Gravity are also provided
through a More option.
Cancel
This option closes down the display and passes the control back to the input screen
Main
This option closes down both the calculation and the input displays and passes the control
back to the main PVT screen.
Clipboard
This sends all or part of the results data to the clipboard by calling the Copy to Clipboard
Dialog
Hydrate Export
If a hydrate formation Pressure calculation is done the analysis button is replaced by an export
version. This allows direct output to an ASCII file which can be taken into Prosper.
Note on Density
The Calculation table provides 2 alternative values for Oil Density i.e. EOS and KATZ. The
EOS value derives strictly from the Equation of State value for Compressibility z and PV=zRT
while the other stems from the composition being input into a Standing-Katz density
correlation. The values in combination can be used as a guide to the appropriateness of the
Petroleum Experts
15 -55
values used to generate the EOS model e.g. BI coefficients, acentric factors , pseudo
characterisation etc.
The EOS density is used in all subsequent calculations for FVF ,GOR etc.
More values can be viewed by using the horizontal and vertical scroll bars provided.
8.4.2
The screen shows the compositions and calculated K values for each temperature and
pressure combination.
The other information presented depends on the caculation.The example below is for CCE
Figure 8.10:
Constant
Composition
Expansion
Analysis
Display
The temperature value displayed can be changed by clicking on the down or up arrow within
the temperature area ( top left).
The pressure value displayed can be changed by clicking on the down or up arrow within the
pressure area ( top right).
The command buttons perform the following functions:
Exit
Close down the display and return to the calculation screen.
Clipboard
This sends all or part of the analysis data to the clipboard by calling the Copy to Clipboard
Dialog
Extract
PVTP User Guide
This option allows the user to save the composition( total,vapour or liquid)being stored as a
separate PVT file for later retrieval.
Alternatively, a stream can be created within the current PVT Project File.
The analysis display for a separator calculation is more complex.
QUALITY PLOT
Clicking on the Quality Button will automatically generate a quality plot of the type
shown below. Background to this plot is descibed in the utility menu help for the
Hoffmann Quality Plot. If the properties of the components give a consistent flash, the
light components should roughly fall along a straight line.
Figure 8.10b:
Analysis
Quality Plot
Petroleum Experts
8.4.3
17 -55
Among the option available are to include the results column names and/or units. In addition
the order of the results within the table can be reversed. To send the data to the clipboard,
click on OK.
Calculation Analysis
This dialog is called by clicking on the Clipboard button within the Calculation Analysis Dialog.
Among the option available are to include the analysis column names .All the analysis created
within the calculation on the target stream can be sent to the clipboard by clicking on option
2.The last option indicates whether data other than the compositions should be sent.
8.5
A CVD calculation can be initiated by selecting the Constant Volume Depletion option from the
calculation menu or clicking on the icon shown above.
Constant Volume Depletion is a flash process where the volume of the system at Dew Point is
preserved. At each flash stage volume in excess of this is removed as excess gas.
The excess gas products, i.e. equal to the increase in volume over the initial value, are
removed at each stage to become the wellstream production.
The liquid and gas equal to the initial volume goes on to be flashed at the next set of
conditions.
The CVD calculation concentrates on the gas and liquid left in the reservoir, while the
Depletion Study (Section 8.6) is used to find the produced gas (Wellstream) data. For
example, the GOR displayed for the CVD is that of the oil within the reservoir.
The CVD screen has only a manual mode.
The CVD screen has an Automatic and Manual Method. The normal mode is User Selected as
PVT reports only have a small number of steps. The Automatic mode allows the user to
introduce a larger number of small steps. This better represents the calculation path of a
program like MBAL. A typical manual mode display being shown in figure 8.12.
Entries are provided for the temperature at which the process is to be carried out and the
pressure stages involved in the operation.
A Clear button removes all entries.
The Copy from DEPL button copies across the entries which have been made for the
Depletion Study calculation.
Separator Data
The CVD input displays contain a section for Separator Data. This allows the user to define a
separator train through which the CCE liquid will be flashed to correct the Oil FVF and GOR.
The processes which are used to return an oil to standard conditions can significantly change
the final oil characteristics and the amount of gas liberated on the way. When multiple
samples are being analysed, it may be necessary to have individual separator settings for
each stream. In this case, the individual radio button should be clicked on. The stream
separator settings can be accessed via the tabs at the bottom of the table.All stages do not
need to be entered and a last flash to standard conditions is always included.The checkbox
within the separator data area switches the correction on and off. The values within this
separator data area are loaded and stored separately from those within the Separator
calculation. The Copy Sep button will copy the stages from the Separator Calculation into the
Separator Data area.The Clear button removes all values from within the Separator Data
area.
Petroleum Experts
19 -55
Stream Selection
The list box allows the user to select any combination of streams to calculate.See PVT Project
File Structure for more information on streams.
Volume Shift
A volume shift control panel is proved to allow the user to setup and to switch on and off this
feature prior to calculation . See Volume Shift and Volume Shift Setup help for more details.
Gas Heating Values
The gas gross and net heating values are now calculated as columns within the calculation
table. The value given is derived from the composition of the accumulated gas after sending
the fluid through the indicated separator train.
Viscosity Method
Various viscosity models have been introduced into the PVTp program (see Section 4.6).
Only one model is active in a file at any one time. The active model is selected via the combo
box which appears on all the calculation input and regression selection displays.
Figure 8.11:
CVD Input Screen
Petroleum Experts
8.6
21 -55
Depletion Study(DEPL)
A DEPL calculation can be initiated by selecting the Depletion Study option from the
calculation menu or clicking on the icon shown above.
The Depletion Study is similar to a Constant Volume Depletion (Section 8.5) . The
process is the same. The difference between them lies in the emphasis of the
calculations undertaken.
A Depletion Study is used where the main product is the gas removed at each stage. The
calculations are designed to provide an insight into the Wellstream properties and composition
as the reservoir depletes
The Depletion Study is a flash process where the volume target is kept constant throughout
the stages. The excess gas products, i.e. equal to the increase in volume over the initial value,
are removed at each stage to become the wellstream production.
The composition, produced mole% and Surface GOR of this wellstream gas are reported.
In addition a Cumulative Production figure is worked out from the Gas In Place value which is
input by the user.
The liquid and gas equal to the initial volume goes on to be flashed at the next set of
conditions.A Resevoir Liquid Dropout is also reported.
The DEPL screen has only a manual mode (figure 8.11a).
Entries are provided for the temperature at which the process is to be carried out and the
pressure stages involved in the operation.
A Clear button removes all entries.
The Copy from DEPL button copies across the entries which have been made for the
Depletion Study calculation.
Separator Data
The DEPL input displays contain a section for Separator Data. This allows the user to define
a separator train through which the CCE liquid will be flashed to correct the Oil FVF and
GOR. The processes which are used to return an oil to standard conditions can significantly
change
Stream Selection
The list box allows the user to select any combination of streams to calculate.See PVT Project
File Structure for more information on streams.
Viscosity Method
Various viscosity models have been introduced into the PVTp program (see Section 4.6).
Only one model is active in a file at any one time. The active model is selected via the combo
box which appears on all the calculation input and regression selection displays.
Volume Shift
A volume shift control panel is proved to allow the user to setup and to switch on and off this
feature prior to calculation . See Volume Shift and Volume Shift Setup help for more details.
Note on Oil Density
The calculation screen shows two Oil Densities for comparison purposes. The EOS value is
determined directly from the equation of state calculation of liquid compressibility Z. This value
is used to derive all the related properties i.e. Oil Gravity,Oil FVF and GOR. The second value
is taken from the correlation put forward by Standing and Katz. The non-predictive nature of
the Equation of State method and its weakness in calculating liquid properties makes the
value of Oil Density particularily suspect in non-matched systems. The EOS Density is
,however, sensitive to composition and property changes, making it a suitable value for
matching and regression.
The Standing-Katz value is empirically derived and in our experience predicts well the density
of most fluids. The average nature of the number and its lack of sensitivity make it unsuitable
for regression.
Matching the EOS density to good experimental data usually results in the two densities
having very similar values. Conversely, if the values are very disimilar, it usually means that
good matching has not been achieved.
Copying And Pasting
In common with all the grids within the PVTp program the main grid within this display can be
copied onto the clipboard by selecting all the cells and typing Control+C. Pasting from the
clipboard is done by clicking within the target cell and typing Control+V.
Petroleum Experts
23 -55
Figure 8.11a:
DEPL
Input
Screen
8.7
Differential Expansion(DIFF)
A DIFF calculation can be initiated by selecting the Differential Expansion option from the
calculation menu or clicking on the icon shown above.
Differential Expansion or Liberation is a flash process where all the gas products are removed
at each stage. The liquid goes on to be flashed at the next set of conditions.
The Differential Liberation screen has only a Manual Method , a typical display being shown in
figure 8.12.
Entries are provided for the temperature at which the process is to be carried out and the
pressure stages involved in the operation. A Clear button removes all entries.
Points to Remember about a DIFF calculation:
The liquid in the initial stage of a differential liberation , by definition, MUST be at Bubble
Point. Any gas detected by the calculation is ignored and does not appear in any calculated
value.
The calculation is very sensitive to the number of steps and the value of each step. Taking
a different route to the end point gives very different results
The calculation of GOR is carried out with respect to the Residual Volume of the oil making
it very sensitive to each step and particularily to the last. A last step to atmospheric is
normal. Unlike the other calculation all stages must be complete before the values at each
stage can be properly calculated.
Petroleum Experts
25 -55
Figure 8.12:
Differential
Liberation
Input Screen
Viscosity Method
Various viscosity models have been introduced into the PVTp program (see Section 4.6).
Only one model is active in a file at any one time. The active model is selected via the combo
box which appears on all the calculation input and regression selection displays.
Matching the EOS density to good experimental data usually results in the two densities
having very similar values. Conversely, if the values are very disimilar, it usually means that
good matching has not been achieved.
Stream Selection
The list box allows the user to select any combination of streams to calculate.See PVT Project
File Structure for more information on streams.
Volume Shift
A volume shift control panel is proved to allow the user to setup and to switch on and off this
feature prior to calculation . See Volume Shift and Volume Shift Setup help for more details.
Copying And Pasting
In common with all the grids within the PVTp program the main grid within this display can be
copied onto the clipboard by selecting all the cells and typing Control+C. Pasting from the
clipboard is done by clicking within the target cell and typing Control+V.
Petroleum Experts
8.8
27 -55
The difference lies in the standard separator input section at the bottom of the dialog.
The Copy from DIFF button will copy across entries from the standard Differential Liberation
calculation.
Petroleum Experts
8.9
29 -55
Separator Process
A Separator calculation can be initiated by selecting the Separator option from the calculation
menu or clicking on the icon shown above.
The Separator Process flashes the mixture at a fixed set of conditions. The liquid and gas are
split off to go on to the next stage of the process.
The Separator option has only one input mode.
A Separator Input screen has Data entry boxes which are provided for up to 20 separator
stages. Enter the pressure and temperature of each stage and click on the Calculate control
button.
Two modes are available VIZ. Global or Individual. In Global mode all streams will be
calculated with the same separator conditions.
Figure 8.13:
Separator
Process Input
Screen
In Individual mode all streams will be subjected to their own separator conditions. The tabs at
the bottom of the grid can be used to move between the stream inputs.
The Copy Settings to All Streams will set all stream settings to the current stream value.
Figure 8.13b:
Separator
Process Input
Screen
The separator calculation screen is the same as that described for Constant Composition
Expansion (section 8.4)
The analysis screen is also much the same as that described in section 8.4.2. The difference
is that the More control button now becomes active . Clicking on this brings up a display of the
type shown in figure 8.12. giving GOR ,Oil gravity and Gas Gravity values for the selected.
Stream Selection
The list box allows the user to select any combination of streams to calculate.See PVT Project
File Structure for more information on streams.
Volume Shift
A volume shift control panel is proved to allow the user to setup and to switch on and off this
feature prior to calculation . See Volume Shift and Volume Shift Setup help for more details.
Petroleum Experts
31 -55
Viscosity Method
Various viscosity models have been introduced into the PVTp program (see Section 4.6).
Only one model is active in a file at any one time. The active model is selected via the combo
box which appears on all the calculation input and regression selection displays.
Figure 8.14a:
Separator
Process
Analysis
Summary
Table
Petroleum Experts
33 -55
QUALITY PLOT
Clicking on the Quality Button will automatically generate a quality plot of the type shown
below. Background to this plot is descibed in the utility menu help for the Hoffmann Quality
Plot. If the properties of the components give a consistent flash, the light components should
roughly fall along a straight line.
Figure 8.14b:
Separator
Process
Analysis
Quality Plot
Petroleum Experts
35 -55
Figure 8.15:
Auto Mode
Gravitational
Gradient
NOTE the additional information on the plot i.e. Reference Depth,Reference Pressure etc.
using the Match point colour (see Plotting)
Stream Selection
The small table allows the user to select any combination of streams to calculate.Selected
stream are highlighted in red.
See PVT Project File Structure for more information on streams.
The reservoir reference conditions are also displayed within this table . These variables can
be changed from this display .
Alternatively, the Data | Reference Data option can be used to view or change thes values.
An input screen contains radio buttons which allow the user to swap between User Selected
and Automatic modes.
PVTP User Guide
Separator Data
The COMPGRAD input displays contain a section for Separator Data. This allows the user to
define a separator train through which the CCE liquid will be flashed to correct the Oil FVF
and GOR. The processes which are used to return an oil to standard conditions can
significantly change the final oil characteristics and the amount of gas liberated on the way.
When multiple samples are being analysed, it may be necessary to have individual separator
settings for each stream. In this case, the individual radio button should be clicked on. The
stream separator settings can be accessed via the tabs at the bottom of the table.All stages
do not need to be entered and a last flash to standard conditions is always included.The
checkbox within the separator data area switches the correction on and off. The values within
this separator data area are loaded and stored separately from those within the Separator
calculation. The Copy Sep button will copy the stages from the Separator Calculation into the
Separator Data area.The Clear button removes all values from within the Separator Data
area.
Viscosity Method
Various viscosity models have been introduced into the PVTp program (see Section 4.6).
Only one model is active in a file at any one time. The active model is selected via the combo
box which appears on all the calculation input and regression selection displays.
Volume Shift
A volume shift control panel is proved to allow the user to setup and to switch on and off this
feature prior to calculation . See Volume Shift and Volume Shift Setup help for more details.
Petroleum Experts
37 -55
User Selected
A typical input screen is given in figure 8.16
The display contains radio buttons which allow the user to swap between User Selected and
automatic modes. In addition, 10 data boxes are provided for entering the depths above and
below reference depth at which the gradient is to be calculated. The points do not need to be
evenly spread.
As in the Automatic mode, an entry is also required for temperature gradient and a check box
is provided for swapping between relative and absolute depths.
To initiate the calculation click on the Calculate control button. The Calculation Screen and its
options are described in section 8.9.1.
Figure 8.16:
Compositional
Gradient
Manual Mode
To initiate the calculation click on the Calculate control button. The Calculation Screen and its
options are described in section 8.8.1
8.10.1
A typical results display is shown in figure 8.17. The results are reported against the gradient
points entered. The controls on this display have the same effect as those described for
Constant Composition Expansion (section 8.4).
Note on Oil Density
The calculation screen shows two Oil Densities for comparison purposes. The EOS value is
determined directly from the equation of state calculation of liquid compressibility Z. This value
is used to derive all the related properties i.e. Oil Gravity,Oil FVF and GOR. The second value
is taken from the correlation put forward by Standing and Katz. The non-predictive nature of
the Equation of State method and its weakness in calculating liquid properties makes the
value of Oil Density particularily suspect in non-matched systems. The EOS Density is
,however, sensitive to composition and property changes, making it a suitable value for
matching and regression.
The Standing-Katz value is empirically derived and in our experience predicts well the density
of most fluids. The average nature of the number and its lack of sensitivity make it unsuitable
for regression.
Matching the EOS density to good experimental data usually results in the two densities
having very similar values. Conversely, if the values are very disimilar, it usually means that
good matching has not been achieved.
Figure 8.17:
Compositional
Gradient
Calculation
Results
Display
Petroleum Experts
39 -55
A Swelling Test calculation can be initiated by selecting the Swelling Test option from the
calculation menu or clicking on the icon shown above.
This option only becomes available if a second stream or more streams have been defined.
The Swelling Test mixes a pre-entered amount of the second stream with the first. The
Saturation Pressure of this new mixture is determined. The mixture is the flashed at the
Saturation Pressure to get the phase properties.
The Swelling Test option has only one input mode. A typical input display is shown in figure
8.18
A Swelling Test Input screen has Data entry boxes which are provided for up to 10
temperatures. In addition 10 second stream compositions can be entered for each
temperature . When mixed these numbers represent the mole percent of the second stream
within the first. If the component exists within the first stream the values are added together
and the properties of the primary stream (eg from regression) are used for both. If no
component exists of the same type a new component is created with the properties shown for
the second stream.
The Swelling Test has two input options for composition VIZ
Mole %
Volume of gas per volume of oil
The input type is set by two radio buttons which are situated beneath the input columns.
When either option is selected, the other is automatically calculated aand appears on the
calculation display.
The unit for vol/vol input can be changed on the units display by scrolling down to the Swelling
Input unit. At present the units are set as volumes of gas at standard conditions being added
to oil at its saturation pressure. The first step in the calculation is therefore to find the
saturation pressure of the oil and the density at that pressure. This density allows the vol/vol
input to be translated to its equivalent mole % value. The calculation then proceeds as normal
using this value.
The Auto Set button sets the compostions to a range between 0 and 90%.
The Clear button removes all composioion entries.
Enter the temperatures and compositions required and click on the Calculate control button.
Analysis
For each calculation carried out, the analysis display presents information on compositions K
values,gas and oil gravities etc. In addition, intermediate compositions can be extracted for
further work as separate files or streams . See Analysis Display for CCE
Figure 8.18:
Swelling Test
Input Screen
Petroleum Experts
41 -55
A slim-tube calculation can be initiated by selecting the Slim-tube simulation option from the
calculation menu or clicking on the icon shown above.
This cell to cell model simulates gas injection into an oil reservoir. The program sets
up a series of cells as shown in figure 1below.
The cells do not need to be the same size but usually are. The temperature of all the cells
remain the same at the initial reservoir value.
If the cell orientation is horizontal all the cells start at the designated reservoir pressure.If the
cells are inclined or vertical, the pressures are adjusted for the column of oil above the cell.
Cell 1
Wellstream
Excess Gas & Oil
Cell 2
Cell n
In each time step gas is added to the system. The gas injected into cell 1 is mixed with the
fluid there and the combination is flashed to find the new amount of gas and oil and their
properties.
Material Balance calculations and phase mobility criteria are used to calculate how much of
each phase is moved to cell 2. Again the new mixture is flashed and the excess is moved to
cell 3.
This process is repeated until the production cell is encountered. At this point the excess
volume and composition appear as wellstream products.
Whether multiple contact miscibility is achieved is usually taken from the estimation of the
minimum miscibility pressure (MMP). Definitions of the MMP can vary, but it is usually taken
as the pressure at which the recovery is 90% wnen 1.2 pore volumes of gas have been
injected. At pressures above MMP the gas is assumed to be miscible.
8.12.1
This Dialog is the main one for the slim tube simulation calculation. The reasoing behind the
calculation is described in Background to Slim-tube Simulation.
The screen is brought up by selecting the Slim-tube Simulator option from the main
Calculation menu.
The dialog gives access to the other slim tube setup dialogs i.e.
Cells Setup
Rel Perms Setup
Times and Material Balance Setup.
Set All Values to Default
The slim-tube calculation is complex to set up. As it is trying to simulate a physical test , many
variables (physical sizesates permeabilities) have to be tuned to realistic values.
To help in this process a set of typical default values are provided. Clicking on this button will
fill all the Slim-tube dialogs with numbers which will work for most oil/gas combinations.
WARNING: Using this button will overwrite all previously entered data (except pressures) on
all Slim-tube dialogs.
The dialog has 2 modes Automatic and User Selected . Radio buttons are provided to switch
between modes.
A typical Automatic mode display is shown in figure 8.19:
Figure 8.19:
Slim-tube
Input
Dialog
Petroleum Experts
43 -55
A pressure range is entered as a minimum and maximum pressure plus a number of steps. It
should be noted that the slim tube simulation is a complex calculation and can be slow.
If discrete pressure values are required the mode should be changed to User Selected and
the pressures entered as shown in figure 8.21:
Figure 8.21:
Slim-tube
Input
Dialog
Stream Data
The reservoir stream is the oil which will fill the slim-tube cells. The injected stream is the gas
which will be introduced to test its miscibility in the oil.
Temperature
The slim-tube experiment is normally done at reservoir temperature. This value will default to
the entered reservoir temperature (see Reference Data) , but it can be changed to a different
value using the edit box provided.
Test for MMP
The minimum miscibilty pressure (MMP) is normally taken as the pressure at which there is 90
percent oil recovery at 1.2 pore volumes of gas injected. Above this pressure the gas is taken
as being miscible. The test values can be changed from the defaults using the edit boxes
provided. The selected values appear as reference lines on the plot of recovery versus pore
volume injected. A typical plot is shown below:
Setup Cells
The number and dimensions of the cells within the slim-tube are setup in the Cells Setup
Dialog.
Setup Relative Permeabilities
The relative permeabilities and associated data are entered within the Rel Perms Setup
Dialog.
Setup Times and Material Balance limits
The number and size of the time steps are setup within the Times and Material Balance Setup
Dialog.
Petroleum Experts
45 -55
Clear
When all entries have been made click on Calc to bring up the Slim-tube Calculation Dialog.
Volume Shift
A volume shift control panel is proved to allow the user to setup and to switch on and off this
feature prior to calculation . See Volume Shift and Volume Shift Setup help for more details.
8.12.2
This Dialog sets up the dimensions and other data related to the cells that make up the slimtube. The display is called by the Slim-tube Input Dialog.
A typical screen would be as in figure 8.23:
Figure 8.23:
Slim-tube
Cell
Data Dialog
The first step is to define the number of cells. The Production cell is normally the last and the
injection is the first. The depth is only for reference.
The cells are normally horizontal. in this case they are all at the same depth and pressure. If
they are vertical , they are at different pressures depending on the cell height and the oil
density.
The cells can contain the same data. to do this enter the data into cell 1 and click on the Copy
Cell 1 Data to All button.
Alternatively, all data can be individually entered within the table.
The first three columns define the dimensions of each cell . The last two indicate the Porosity
and Permeability of each cell.
Petroleum Experts
8.12.3
47 -55
This Dialog sets up the relative permeability and capillary pressure data which governs the
relative movement of fluids in the slim-tube.
In addition , the rock compressibility can be entered within this dialog.
The display is called by the Slim-tube Input Dialog.
A typical screen would be as in figure 8.24:
Figure 8.24:
SlimPermeabilities
Dialog
The Relative Permeability data can only be entered in table form at present.
The exponents are entered as fractions with respect to the oil saturation.
A Capillary Pressure curve can also be entered as a function of oil saturation.
8.12.4
This Dialog sets up the time steps and material balance options within the slim tube simulator.
The display is called by the Slim -tube Input Dialog.
A typical screen would be as in figure 8.25:
Figure 8.25:
Slim-tube
time
steps Dialog
Enter the number of time steps required. This action will set the size of the table.
The times can be set as a fixed value or with a different value for each step.
To set the same time for each step click on the fixed time step radio button and enter the
time required in the edit box provided.
If different times are required,click on the variable time step radio button and enter the times
within the table.
Adaptive Time Steps
It should be noted that the program will automatically change the value of a timestep or add
more timesteps if it is failing to meet its convergence criteria.
Petroleum Experts
8.12.5
49 -55
This Dialog allows the user to initiate calculations and view the results
.
Figure 8.26:
Slim-tube
Calculation
Dialog
The Calculation Screen is loaded when the Calculate button is pressed on the Slim-tube Input
Dialog.
The display is in the form of a table with a Cell Detail button as the first column. The properties
listed are those of the fluid exiting the last cell at the end of the time step.
The time steps listed may chage from those entered initially as the calculation will create new
values to reflect the intermediate flow changes within the model.
Cell Detail
Clicking on any of these buttons will bring up the Cell Detail Dialog . This displays the phase
,properties and compositions in each cell at the selected timestep.Any composition can be
extracted as a strem for further analysis.(see PVT Project File Structure for more information
on streams)
If multiple pressures have been selected (see Slim-tube Input Dialog) the pressures appear
as separate tables with tags at the bottom. The user can move betwen the pressures by
clicking on the tabs at the bottom of the display.
Each column has a variable name and unit as a heading.
ScroCellc3-9ition can be
The display has several control buttons along the top which have the following functions:
Calculate
This option recalculates the table using the latest inputs provided
Plot
This option produces a secondary screen giving the compositions calculated at each
measurement point along with details of the material balance found at the end of the time
step. The analysis screen also provides access to the EXTRACT function which allows the
user to export a particular line of the calculation to a PVT file. Alternatively, the intermediate
composition can be copied to a stream within this project file.
Cancel
This option closes down the display and passes the control back to the input screen
Main
This option closes down both the calculation and the input displays and passes the control
back to the main PVT screen.
Clipboard
This option allows the user to send the table results with/or without headings to the clipboard.
Petroleum Experts
8.12.6
51 -55
This Dialog is called by clicking on the Analysis button within the slim-tube calculation display.
The compositions shown are those of the fluids being produced from the designated
production cell.
The numbers within the table give an indication of the material balance of each component
after the timestep.
The composition within each cell can be viewed using the Slim-tube Cell Detail Dialog.
Figure 8.27:
Slim-tube
Analysis Dialog
The pressure run being viewed can be changed using the combo box provided.
The time step value displayed can be changed by clicking on the down or up arrow on the
units or tens control.
Units will add or subtract 1 to the time step. Tens will add or subtract 10 to the time step.
The command buttons perform the following functions:
Exit
Close down the display and return to the slim-tube calculation display.
Extract
This option allows the user to save the composition( total,vapour or liquid)being stored as a
separate PVT file for later retrieval.
Alternatively, a stream can be created within the current PVT Project File.
8.12.7
This gives more detail on the contents of each cell during a time step. The display is called by
clicking on the CELL DETAILS button within the slim-tube calculation dialog.
Figure 8.28:
Slim-tube
Cell
Detail Dialog
For each cell the table gives details of the phase,cell pressure,IFT,oil saturation and oil and
gas viscosities. In addition the composition within the cell is given.
If the calculation goes into adaptive mode, the result number will not be equivalent to the time
step.
The cell compositions can be extracted to another stream for further analysis by:
1. Entering the required cell number in the edit box, or clicking on the arrow buttons until the
required value is reached.
2. Clicking on the Cell Composition to Stream Button.
Petroleum Experts
53 -55
This feature provides the user with access to a subset of the calculation menu as a means of
checking the consistency of the entered composition information.
The small display (figure 8.30) provides options to calculate :
Phase Envelope
Critical Point (Temperature and Pressure)
Saturation Pressure (at the reference temperature)
Flash to Standard Conditions
Flash Through Separator Stages
Calculate Maximum Water in the Hydrocarbon Phase
The Phase Envelope and Critical Point calculations are identical to those described in sections
8.1 and 8.2 .The Saturation Pressure option does not use the same method as the ranged
equivalent (section 8.3) . The calculation is done at reference conditions only giving an output
of the type shown in figure 8.31
8.13.1
55 -55
The objective is to provide a separator calculation which quickly provides the basic data of Oil
density and Gravity, Gas Gravity and GOR.
If separator conditions have already been defined the values will appear. If not enter the
temperatures and pressures in the Edit Boxes provided in the Values section of the display.
When ready click on Calc
Clear removes all entries and results.
9 Calculation of Solids
This section describes the calculations available for solids. The alternatives are:
Waxes
Wax Amount - Enter a range of temperatures and pressures and perform a multiphase flash to
find the amount in the solid phase.
Wax Appearance Temperature Select a pressure and find the temperature at which wax just
starts to form.
Hydrates
Hydrate Formation Pressure - Enter a range of temperatures and find the minimum pressure at
which hydrates will form.
Minimum Inhibition Concentration Select a temperature and pressure and find the
concentration of inhibitor at which hydrate just starts to form under these conditions.
Details of Wax and Hydrate modelling and the model alternatives and references are given in
Chapter 4.
9.1
This calculation can be initiated by selecting the Wax Amount (Multiphase Flash) from the Calc
Solids menu:
Two modes are available for data input VIZ. Automatic and User Selected. The mode can be
changed using the radio buttons at the top right of the display.
This dialogue is used for Automatic Input for the Wax Amount calculation (figure 9.1).
Data entry boxes are provided for entering the limits of the temperature and pressure ranges to
be covered and the number of points to be calculated for each variable. The points will be spread
evenly throughout the temperature and pressure ranges selected.
Note that the wax formation effect is very much driven by temperature and very little pressure
dependence is shown
2 - 14
Figure
9.1:
Wax
Amount
Automatic
In the User Selected version the ranged input is replaced by a grid where any mixture of
pressures and temperatures can be entered
Figure 9.2:
Wax Amount
User
Selected
Petroleum Experts
Stream Selection
The list box allows the user to select any combination of streams and archives to calculate.See
PVT Project File Structure for more information on streams.
Model Selection
A combo box allows the user to select between the various wax models.Clicking on the Reset
Props button resets the important component properties back to the default values outlined by the
model's author. WARNING using this button will reset any solids regression that has been done.
See Wax Modelling ,Chapter 4, for more details on the model types available.
See Lab Data/Matching ,Chapter 7, for more details on what can be matched for solids.
Pressure Range
The lower pressure limit of the calculation has been set at 0 psig (14.7 psia). If a value below this
limit is entered The following message will appear
At least one pressure and temperature should be defined before proceeding to the Calculation
Dialogue.
To bring up the calculation dialogue click on the Calc control button. The calculation dialog which
appears is similar in structure and features to that described for the two-phase flash CCE
calculation (Section 8.4.1)
Cancel will clear all entries and return the user to the Summary Screen
4 - 14
9.1.1
This display is called by clicking on the analysis button within the calculation table display (Section
8.4.1). The screen shows the compositions for each phase at each combination of temperature
and pressure .
Figure 9.3:
Wax Amount
Analysis
Display.
The temperature value displayed can be changed by clicking on the down or up arrow within the
temperature area ( top left).
The pressure value displayed can be changed by clicking on the down or up arrow within the
pressure area ( top right).
The command buttons perform the following functions:
Exit
Close down the display and return to the calculation screen.
Extract
This option allows the user to save the composition( total,vapour or liquid)being stored as a
separate PVT file for later retrieval.
Alternatively, a stream or archive can be created within the current PVT Project File.
Petroleum Experts
9.2
This calculation can be initiated by selecting the Wax Appearance Temperature from the Calc
Solids menu:
Two modes are available for data input VIZ. Automatic and User Selected. The mode can be
changed using the radio buttons at the top right of the display.
This dialogue is used for Automatic Input for the Wax Amount calculation.
Figure 9.4:
WAT
Automatic
In addition, data entry boxes are provided for entering the limits of the temperature and pressure
ranges to be covered and the number of points to be calculated for each variable. The points will
be spread evenly throughout the pressure ranges selected.
Note that the wax formation effect is very much driven by temperature and very little pressure
dependence is shown
In the User Selected version the ranged input is replaced by a grid where any mixture of
pressures can be entered
6 - 14
Figure 9.5:
WAT User
Selected
Stream Selection
The list box allows the user to select any combination of streams and archives to calculate.See
PVT Project File Structure for more information on streams.
Model Selection
A listbox allows the user to select any or all of the available wax models.As the calculation
progresses the wax dependent properties of the component(s) are reset to those values
suggested in the model. If however regression is used to set a property eg. the Melting point of the
heaviest component,this will not be reset during the WAT calculation.
See Wax Modelling ,Chapter 4, for more details on the model types available.
See Lab Data/Matching ,Chapter 7, for more details on what can be matched for solids.
Petroleum Experts
Pressure Range
The lower pressure limit of the calculation has been set at 0 psig (14.7 psia). If a value below this
limit is entered The following message will appear
At least one pressure should be defined before proceeding to the Calculation Dialogue.
Cancel will clear all entries and return the user to the Summary Screen
Some of the limits of the calculation can be adjusted in this section of the dialog. The minimum
and maximum temperatures dictate the range in which wax will be looked for. The maximum
number of steps sets how many iterrations the program allows before it gives up looking for a
solution.The minimum test solid percent is the value used to determine if wax is just forming i.e.
the WAT. The program looks for a value of percent solids between zero and the Min Test Solid %
to say that it is at the Wax Appearance Temperature.
8 - 14
9.3
This calculation can be initiated by selecting the Hydrate Formation Pressure Option from the Calc
Solids menu:
Hyrates are important to the petroleum industry because they form at tempertures above that of
normal ice.
Plugging due to hydrate formation can potentially occur at any location from the resevoir to
surface where the pressure is greater than the minimum value for the fluid temperature. For a
range of Temperatures the program will calculate the minimum pressure at which hydrates will
form.
More details on the formation of these troublesome clathrates is given in Background to Hydrates
,Chapter 4.
This dialogue is used for Automatic Input for the Hydrate Formation Pressure calculation.
Figure 9.6:
Hydrate
Formation
Pressure
Automatic
All boxes should have an entry before proceeding to the Calculation Dialogue.
Stream Selection
Petroleum Experts
The list box allows the user to select any combination of streams and archives to calculate.See
PVT Project File Structure for more information on streams.
This display contains radio buttons which allow the user to swap between User Selected and
Automatic modes.
In addition, data entry boxes are provided for entering the limits of the temperature range to be
covered and the number of points to be calculated.
The points will be spread evenly throughout the temperature and pressure ranges selected.
Model Options
This area allows the user to select from different models which vary in the main in the estimation
of the Langmuir Adsorption Constant. See Hydrate Modelling for more details.
In addition a checkbox allows the user to select whether Hydrate II should be calculated. Since
petroleum fluids normally contain significant amounts of C1 and C2 , Hydrate I will normally form
first. See Background to Hydrates, Chapter 4, for information.
Inhibitor Data
Figure 9.7:
Inhibitor
Entry
This area allows the user to calculate the effect of adding various inhibitors to the fluid.
A combo box allows the user to select from a list of common inhibitors.
Up to 5 inhibitor concentrations can be entered using the edit box provided.All values should be in
weight percent.
The Clear Percents button removes all entries while the check box allows the user to switch on
and off the calculation without loosing the entries.
More information on inhibitors is given in Hydrate Inhibition. See also help on the Minimum
Inhibitor Concentration calculation
Restrictions
1) At present, the calculation has been limited to that where the hydrate is in equilibrium with liquid
water i.e. to temperatures above 0.1 degrees C and 32.2 degrees F.
If too low a pressure is entered the following message is displayed
2) No hydrate calculation can be carried out with a Grouped composition. The modelling of
hydrates is dependent on the identification of the type and amount of the individual small gas
molecules which become entrapped in the ice. Only ungrouped compositions allow these species
to be identified. See Background to Hydrates. for more details.
Attempting to enter a hydrate calculation with a grouped composition will produce the following
message:
Control Buttons
Cancel will clear all entries and return the user to the Summary Screen
Petroleum Experts
9.3.1
Calculations Dialog
The Calculation dialog is very similar to that described for CCE in section 8.4. The difference
occurs when any inhibitor concentrations are requested.
A typical display is shown in figure 9.9
Figure 9.9:
Hydrate
Formation
Pressure
Results
The selected inhibitor concentrations are coloured red and the new pressure values are shown
immediately afterwards. When complete the results are available for export to Prosper by clicking
on the Export button (see Section 3.1.5)
9.4
This calculation can be initiated by selecting the Hydrate Min. Inhibitor Concentration from the
Calc Solids menu:
Hyrates are important to the petroleum industry because they form at tempertures above that of
normal ice.
Plugging due to hydrate formation can potentially occur at any location from the resevoir to
surface where the pressure is greater than the minimum value for the fluid temperature.
Inhibitors raise the pressure at which a hydrate forms for a particular temperature.
This calculation estimates the amount of a selected inhibitor required to provide no hydrate
formation at an entered temperature and pressure.
Petroleum Experts
More details on the formation of these troublesome clathrates is given in Background to Hydrates
,Chapter 4.
Figure 9.10:
Hydrate
Formation
Pressure
Results
This combo box allows the user to select from different models which vary in the main in the
estimation of the Langmuir Adsorption Constant.
See Hydrate Modelling for more details.
Restrictions
PVTP User Guide
1) At present, the calculation has been limited to that where the hydrate is in equilibrium with liquid
water i.e. to temperatures above 0.1 degrees C and 32.2 degrees F.
If too low a temperature is entered the following message is displayed
2) No hydrate calculation can be carried out with a Grouped composition. The modelling of
hydrates is dependent on the identification of the type and amount of the individual small gas
molecules which become entrapped in the ice. Only ungrouped compositions allow these species
to be identified. See Background to Hydrates (Chapter 4). for more details.
Attempting to enter a hydrate calculation with a grouped composition will produce the following
message:
Petroleum Experts
10 Reporting
This section describes the reporting options and procedures used in the PVT package.
Under the Report option on the main menu there is a Setup Report Directories option. On
selecting this you are presented with a dialogue which requires three pieces of information.
The first of these is where the default or system report templates are stored. This is the
path to an archive file which contains the system report templates in a compressed form.
This file will normally be in the same directory as the PVTP executable. The next field in the
dialogue requires the path to the default directory where reports printed to file are to be
placed and the final field is the path to a directory where user defined report templates are
to be stored.
10.2 Reports
The reporting interface gives you complete control over how your reports are formatted and
what information is utilised to make up the report. This is facilitated by the use of report
templates which can be edited to suit your own requirements. You can choose to use the
default report templates provided with the system or can choose to create your own slightly
different versions of these reports. The selected templates can then be used to generate
the actual reports which can be sent to a variety of places (printer, file or screen). The
report templates are displayed in a hierarchy and all templates which have been selected
(by double-clicking on it) show an X in the check-box beside the template name. The colour
of this X denotes whether it is the system (black) template or a user defined (red) template
which is being used.
There are two modes for the editing of report templates: System and User. System mode
does not allow you to change any template whereas User mode allows you to create new
user defined templates from scratch or based on an already existing system report
template and also allows you to edit an existing user defined report template. Selecting
User mode also makes the User Reports section of the template hierarchy visible. The
User Reports hierarchy contains all report templates which have been tagged as being a
derivation of a system report template as well as any free standing user defined templates.
2- 12
Figure 10.2
Main Window
The reporting main window consists of four main parts: The command segment at the top
of the dialogue containing the buttons, the report selection hierarchy, the output device
selection group and the template type selection group. The output device group is only
used when printing from selected report templates.
The available commands are:
y
OK
y
y
y
y
Cance
l
Help
Setup
User
View
y
y
y
Print
Create
Edit
Group
Print the selected reports to the selected output device and terminate the
dialogue
Terminate the dialogue
Bring up the on-line help window
Select a Printer
Switches between System and User edit mode, this shows or hides the User
Reports section of the report hierarchy and enables or disables the Create and
Edit buttons. If in User mode this button shows the text System and vice-versa.
View a previously saved native format file on-screen. This brings up a file
selection box for choosing the appropriate report and passes this file name to the
Report Executor
Print the selected reports to the selected output device
Create a new user report
Edit an existing user report template or create a new template from a system
template
Allows the grouping of report templates references and the storing of the group
information in a file for later recall. This allows batch printing of reports for any
analysis
Printer
Screen
Native File
RTF File
Text File
Petroleum Experts
Chapter 10 - Reporting 3 - 12
The native (.FR) file format can only be read by the reporting system whereas the RTF
format can be read by many Windows word processing applications. When printing to file
you will be presented with the following dialogue:
Figure 10.3
File naming window
The default directory will be set to the default output directory but this can be altered using
the Select Directory button. This can then be applied to all output files by using Change All.
If it is necessary to change the output directory of one of the files, this can be achieved by
using the Browse button associated with each report. The filenames can themselves be
edited in the text box which contains them.
For any given report in the system hierarchy you can choose to view or print a report using
either the system report template provided or a user defined report template based on that
system report template (or at least that position in the hierarchy) or you can choose a
report grouping which can be made up from a combination of user and system reports. You
choose between these options using the report template type selection group at the bottom
right of the main window. If you select the user report template option for any hierarchy
position and there are multiple user defined report templates for that position then a
dialogue appears which allows you to select the particular template that you want.
Figure 10.4
User-Defined Report
Template Selection
Dialogue
4- 12
Double clicking on any of the report templates (or selecting and pressing Ok) will cause it
to become the user defined report template for that hierarchy position for the current
reports session. The default choice is the topmost user defined report template. You can
stop a user defined report template from being associated with that hierarchy position by
selecting it and then pressing Delete. This does not actually delete the report template (it
can still be seen within the User Reports section of the hierarchy).
If you are selecting a report grouping then a similar dialogue appears and you can select
the appropriate group file. After you have selected a file all the reports referenced in the
group will appear checked in the hierarchy and you can then press print for all of these
reports to be sent to the selected output device.
Data fields from PVTP are added using the F2 key, selecting the data items required and
then pressing Ok when finished. The selected data items will then appear as fields, one by
one, as the left mouse button is clicked. You can roughly position the fields in this way. You
are not limited to one pass at adding data items to the report template. More items can be
added at any time in the same manner.
Once a field has been added to the report template you can edit some of the properties of
the text which will be shown in the field and assign a group number to the field by double
clicking the left mouse button on it and the font properties can be changed by double
clicking the right mouse button on it. Other properties, such as whether the field has a box
around it, etc., can be changed through the menu options, a full description of which are
given below.
Petroleum Experts
Chapter 10 - Reporting 5 - 12
Figure 10.6
Selection of data items
The template editor commands can be selected by using the menu, toolbar or keyboard
shortcuts. You can get help on any menu item by highlighting the menu item and then
pressing the F1 key or by consulting the index of help topics under the help menu.
File Menu
This menu contains commands for saving the current report template file and specifying
the report template parameters..
Save:
Use this selection to save the current report template to the current file name. If a file is not
yet specified, the form editor will prompt you for a file name. If you do not provide a file
extension, the editor automatically appends a .FP extension to the report file. If a file with
the same name already exists on the disk, the form editor will save the previous file with a
backup extension (.RE).
Save As:
This selection is similar to Save File. In addition, it allows you to save the report template to
a new file name.
Report Parameters:
This option allows you to set certain report parameters. Firstly, you can specify the name of
the report. You can set the margin for the printed page. You can instruct the report
executor to print trial records for adjusting forms such as labels and invoices. You can also
specify the default date format for input. The date format that you specify here will be
enforced for parameter input during the report execution session, and any date constant
used in expressions.
Report Filter:
This option allows you to enter a filter criteria for the report. Each data record will be tested
with the expression that you provide here. A record is selected only if this expression
evaluates to a TRUE value. For example, if the expression was sales->amount>100, then
only the records with the sales amount more than 100 will be selected.
PVTP User Guide
6- 12
Printer Setup:
This option allows you to select a printer from a list of installed printers and invoke a printer
specific dialogue box for the selected printer. You select the parameters from a set of
printer specific options. These options include page size, page orientation, resolution, etc.
The printer options that you select here determine the width and height of the report.
Exit:
Use this function to exit from the form editor session. If the current file is modified, you will
have an option to save the modifications.
Edit Menu:
This menu contains commands to edit the report objects. One or more report objects must
be selected before using this option:
Cut:
Use this option to copy the current item or all the items in the current selection to the
clipboard. The copied items are deleted from the form.
Copy:
Use this option to copy the current item or all the items in the current selection to the
clipboard.
Paste:
Use this option to paste the items from the clipboard to the current form.
Position Text:
Use this option to position the text within the item boundaries. The text can be justified on
the left, right, top, or bottom edges, or it can be centred horizontally or vertically. This
option is valid for the label and field type items only.
Item Outlines:
Use this option to specify the item boundaries (left, right, top, bottom) to draw for one or
more selected items. You can also specify the colour and width of the boundary lines.
Item Background:
Use this option to set the background colour or pattern for one or more selected items.
Centre Horizontally:
This option is used to centre horizontally one or more selected items. When more than one
item are selected, the form editor first centres the selection rectangle and then moves the
selected items such that the position of the selected items relative to the selection
rectangle does not change.
Delete Item:
Use this option to delete one or more currently selected items. If the current section is
being deleted, the program asks for your confirmation before the deletion. All items within
the section are also deleted.
Fonts:
Use this function to change the font and colour for the text for one or more selected
objects. This option is valid for the field and label type objects only.
When you select this option, the form editor shows the font and colour selection dialogue
box. The current font and colours are preselected in the dialogue box. Use this dialogue
box to specify your selections.
Petroleum Experts
Chapter 10 - Reporting 7 - 12
Snap to Grid:
This option allows you to turn on or off the invisible grid on the form. When the grid is
turned on and an item is moved, it automatically aligns to the closest grid location. This
option also allows you to set the grid width.
Report Size:
The following options shrink or elongate the report in the horizontal or vertical direction by
the amount equal to the width or the height of the selection rectangle.
Expand Horizontally
Use this option to create horizontal space by moving items horizontally. For example,
consider three items, A, B, and C placed horizontally. If you need to insert a new item
between the items A and B, you can use this function to create the desired space between
these two items and place the new item in the newly created space. To move the items B
and C toward right, create a selection rectangle after the item A and select this option. The
width of the selection rectangle specifies the movement of the items B and C toward right
(noted that the selection rectangle does not need to include all items to be moved). All
items toward the right of the selection rectangle and with the vertical placement between
the vertical space spanned by the selection rectangle are moved.
Expand Vertically
Use this option to create additional vertical space by moving the items downward. For
example, consider three items, A, B, and C placed vertically. If you need to insert a new
item between items A and B, you can use this function to create the desired space
between these two items and place the new item in the newly created space. To move
items B and C downward, create a selection rectangle below the item A and select this
option. The height of the selection rectangle specifies the downward movement of items B
and C (noted that the selection rectangle does not need to include all items to be moved).
All items below the selection rectangle are moved.
This option also expands (vertically) the current section by the height of the selection
rectangle.
Compress Horizontally
Use this option to delete extra horizontal space by moving items horizontally. For example,
consider three items, A, B, and C placed horizontally. You can use this function to bring
items B and C closer to the item A. To move items B and C toward left, create a selection
rectangle after the item A and select this option. The width of the selection rectangle
specifies the movement of items B and C toward left (noted that the selection rectangle
does not need to include all items to be moved). All items toward the right of the selection
rectangle and with the vertical placement between the vertical space spanned by the
selection rectangle are moved.
Compress Vertically
Use this option to delete vertical space by moving the items upward. For example, consider
three items, A, B, and C placed vertically. You can use this function to bring items B and C
closer to the item A. To move items B and C upward, create a selection rectangle below
the item A and select this option. The height of the selection rectangle specifies the upward
movement of items B and C (noted that the selection rectangle does not need to include all
items to be moved). All items below the selection rectangle are moved.
This option also shrinks (vertically) the current section by the height of the selection
rectangle.
Field Menu:
This menu contains options to insert, modify, delete and maintain fields.
8- 12
Chapter 10 - Reporting 9 - 12
Modify:
This option is used to modify the user prompt, width and prompt order of a dialogue field.
The prompt order determines the order at which the dialogue fields are presented to the
user for data input.
Delete:
This option is used to delete a dialogue field from the dialogue field table. You can not
delete a dialogue field which is being currently used in the report.
Section Menu:
This menu contains commands to insert, edit and delete report sections.
New:
This option is used to create a new section. A section is identified by the section banner
and the separation line at the bottom of a section. There are three basic types of sections.
A header section displays the data that remain constant or changes only when a sort field
changes. The detail section displays the transaction record fields. A footer section is used
to display totals and summary information. ReportEase allows up to 9 header and footer
sections. A higher numbered header section is allowed only when all the lower numbered
headers are already selected. Similarly, a footer section is allowed only when the
corresponding header section is already selected.
Edit Current:
This option is used to modify the properties of the currently selected section. For the 'detail'
section, you can specify the number of records to print across the page. This option can be
used to print multiple address labels across the page.
Sort Field:
This option is used to specify a sort field for a header section. A sort field is used to sort the
data records.
Break Field:
This option is used to specify a break field for a header section. The break field is used to
determine a sort break. Typically, the break field would be the same as the sort field.
However you can specify the break field differently from the sort field. You can also specify
a calculation expression for a break field.
Filter:
This option is used to enter a filter criteria to print a section. Normally, every section
included in the report template is printed in its appropriate sequence. However, if you wish
to print a section depending upon a condition, you can enter this condition expression
using this option. The expression must evaluate to a logical value (TRUE or FALSE).
During the report execution, the section will be printed only if the expression evaluates to a
TRUE value.
Line:
This menu contains commands to create and edit a line object:
Create a Line:
Use this option to draw a line. When you select this option, the form editor displays a
positioning rectangle. Use the mouse to position the rectangle and click any mouse key.
The line will be drawn within the position rectangle. The line size can be changed using the
sizing tabs.
Edit Current Line:
Use this option to edit the angle, colour, and thickness of a 'line' type object.
PVTP User Guide
Label:
This menu contains commands to create and edit a label object:
Create a Label:
Use this option to create a new label. When you select this option, the form editor displays
a positioning rectangle. Use the mouse to position the rectangle and click any mouse key.
The 'label' object will be created within the positioning rectangle. By default, the form editor
inserts the text 'label' in the label item. The label text can be edited in the editing window.
Edit Current Label:
A label text can be edited by simply selecting the desired label item and clicking on the edit
window.
As you insert or delete the text, the length of the label text changes. Normally, the form
editor will automatically adjust the item box boundaries to completely enclose the new text.
However, this automatic size adjustment ceases if you manually resized the item boundary
by pulling on the sizing tab. This feature can be used to enclose the text in an item box
larger than the default size.
Picture:
This menu contains picture import functions:
Import Picture from Clipboard
Use this command to copy a picture bitmap from the clipboard.
When you select this option, the form editor creates a positioning rectangle equal to the
dimensions of the picture. Use the mouse to position the picture rectangle and click any
mouse key. The picture will be placed within the position rectangle. The picture size can be
changed using the sizing tabs.
Import Picture from Disk File
Use this command to read in a picture bitmap from a disk file.
When you select this option, the form editor creates a positioning rectangle equal to the
dimensions of the picture. Use the mouse to position the picture rectangle and click any
mouse key. The picture will be placed within the position rectangle. The picture size can be
changed using the sizing tabs.
Arrange:
This menu contains commands to align, size and space a set of selected objects:
Alignment At:
Horizontal Top Edge:
Use this option to horizontally align the top edge of the selected items to the top edge of
the leftmost item in the selection.
Horizontal Bottom Edge:
Use this option to horizontally align the bottom edge of the selected items to the bottom
edge of the leftmost item in the selection.
Horizontal Centre Line:
Use this option to align the horizontal centre line (imaginary) of the selected items to the
centre line of the leftmost item in the selection.
Vertical Left Edge:
Use this option to vertically align the left edge of the selected items to the left edge of
the topmost item in the selection.
Vertical Right Edge:
Petroleum Experts
Chapter 10 - Reporting 11 - 12
Use this option to vertically align the right edge of the selected items to the right edge of
the topmost item in the selection.
Vertical Centre Line:
Use this option to align the vertical centre line (imaginary) of the selected items to the
centre line of the topmost item in the selection.
Even Spacing:
Horizontally:
Use this option to place the selected items horizontally at an equal distance from each
other. The inter-item distance is equal to the distance between the first two leftmost
items.
Vertically:
Use this option to place the selected items vertically at an equal distance from each
other. The inter-item distance is equal to the distance between the first two topmost
items.
Even Sizing:
Width:
Use this option to change the width of the selected items to the width of the topmost
item.
Height:
Use this option to change the height of the selected items to the width of the leftmost
item.
Undo Previous Arrangement Command
Use this function to undo the previous arrangement command.
Report Executor Commands
The report executor allows you to view reports which have been generated and saved to a
native format file. It is invoked by using the view option from the reporting main window and
selecting a file from the file selection box. The file selection box will point to the default data
directory and will have the filter extension set to the correct file type (.FR).
Figure 10.7
File Selector
Petroleum Experts
11 Plotting
This section describes the reporting options and procedures used in the PVT plotting
functions.
11.1.1
Manipulating Streams
Clicking on the small square to the side of the stream name allows the user to manipulate
the plotting of the stream Clicking on this square brings up a small menu as shown below:
Clicking on Hide Stream will change all the curves belonging to this stream to the
background colour, hiding it.
The Show Stream option returns the stream curves to view.Individual curves can also be
hidden using the curve menu described below.
2 - 10
11.1.2
Manipulating Curves
On each plot is a set of small squares which indicate values from which the plot was
derived. Passing over a square with the mouse pointer brings up a small window which
gives the stream name and the point value.
Figure 11.1.2:
Plot Example
Liquid Dropout
Clicking on Hide Stream will change the individual curve to the background colour, hiding it.
The Show Stream option returns the stream curves to view.All streaml curves can also be
hidden using the stream menu described above.
Petroleum Experts
Chapter 11 - Plotting
3 - 10
The Plot Point Ratio indicates what fraction of the points will be displayed. The example
above would show only one point in ten.
To show all points enter a value of one.
The Point size radio buttons allows the user to adjust the size of the Point Square.
All point drawing can be switched off and on. See Labels and Options Dialog (Section
11.2.2)
PLOT TITLE
This may be adjusted if required . See Labels and Options Dialog (Section 11.2.2)
MAIN PLOT WINDOW
The main Plot window shows the curves drawn in engineering units.
LEGEND BOXES
Various legend boxes give additional information
Note the legend boxes and the plot labels can be switched off within the Labels.. dialog.
MOUSE POSITION INDICATOR
A mouse position indicator (bottom right of main plot) which shows the current position in
the units of the plot. This function can be used to find the value of an intermediate point on
any drawn curve.
Figure 11.1 and 11.2 show 2 typical plots.
ZOOMING
Any part of the plot can be enlarged by adopting the following procedure
1.
2.
3.
4.
To return the plot to its original size , double-click the mouse anywhere within the main plot
area.
PVTP User Guide
4 - 10
11.1.3
This menu allows the user to adjust what is seen within the display. Clicking on the menu
item will toggle off and on the particular option. The options are stored on a file by file
basis.
3) Display
Petroleum Experts
Chapter 11 - Plotting
5 - 10
4) Output
Report Bring up the main Report Display
TOOLBAR
6 - 10
File
The margin area allows the user to enter top, bottom, left, and right margins.
The units of margin size can be selected using the Inches and Millimeters radio buttons.
The listbox on the right of the display shows the printers available , with the current choice
of destination highlighted.
To select another printer , click once on its name.
A small panel with radio buttons gives the user the opportunity to select between the three
main colour schemes i.e. Monochrome, Greyscale or Colour.
Line Widths : It may be useful when printing a plot which may subsequently be faxed to
increase the line width This can be done via the Colours option within the main display
The control buttons on the display have the following functions:
Print
Close the display and print report with current settings via the standard print control dialog
shown below
Chapter 11 - Plotting
7 - 10
Cancel
Close the display without printing the report
11.2.2
Display
Labels
To change the labels and title used within the plot click on this option, enter the labels
required in the Change Labels display (figure 11.5) and press OK. The plot will be redrawn
automatically.
8 - 10
Figure 11.5:
Change Labels
Clicking off the Show curve labels on plot will remove the small curve labels.
Clicking off the Show legend boxes on plot will remove the legend boxes, increasing the
size of the main plot.
Clicking off the Show Reference Data Lines will remove the indication of reference depth,
reference pressure and reservoir temperature.
Clicking off the Show Individual Plot Points will remove the small squares on the curves
which represent actual values (see Main Plot Dialog section 11.1 for more details).
Colours
This option has the same result as that described for clicking on the Colours.button within
the toolbar (see section 11.3)
Units
This brings up the unit selection display in a similar way to the main menu Options|Units
option (see section 3.4).
Redraw
Selecting this option redraws the plot window.
11.2.3
Output
Petroleum Experts
Chapter 11 - Plotting
9 - 10
This screen allows the user to select a font for each of the text plot elements listed. First
select a plot element by clicking on a name in the list, then use change button to choose
the text characteristics that you require. An example of your choice is given in the dialog
panel. Clicking on OK will change the font in the plot being viewed and close down the
selection window . Pressing Apply will change the plot without closing the window.
Colours
Clicking on the Colours. Control Button or on Change Colour within the small point or
stream menu (section 11.1) or on the Colours Option within the Main Plot Dialog Display
Menu brings up this dialog.
Figure 11.8:
Plot
Colours
This option allows the user to change the colours used in the plot and set the default for all
new plots. This screen allows the user to select the colour for each of the text plot
components listed.
First select the colour scheme to be applied to the plot i.e. Colour, Gray Scale or
Monochrome.
Next select a plot component by clicking on a name in the list. The sample panel will show
the current colour.
Press change to bring up the standard color selection dialog shown below. Choose the
colour that you require and press OK. The sample panel will show your choice.
The line width can also be set up on this display . To change a line width press on the
required check box and press OK. Thicker lines are useful when printing out plots
particularily for Fax use.
Clicking on OK will change the colours in the plot being viewed and close down the
selection window. Pressing Apply will change the plot without closing the window.
Clicking on Save Colours will save all the colour selections to disk to be applied as default
to all new plots.
Petroleum Experts
12 Utilities
This menu gives the user access to a series of utilities designed to help with general PVT
work and to validate PVT report data
The menu includes:
API/Density Calculator
Mass Balance Calculator
Enthalpy Balance Calculator
Hoffmann Quality Plot
Figure 12.1:
API Calculator
2- 9
Petroleum Experts
Chapter 12 - Utilities
3-9
4- 9
12.3.1
Petroleum Experts
Chapter 12 - Utilities
12.3.2
5-9
The aim of the utility is to predict the change in temperature if a fluid is moved from one
pressure to another adiabatically.The temperature change is due to thermodynamic effects
only as no heat is allowed to transfer to or from the system.
The inputs to the dialog are:
Initial temperature
Initial Pressure and
and either a range (auto mode) or a series of Final Pressures.(user selected mode).
Auto Mode
1.
2.
3.
6- 9
Petroleum Experts
Chapter 12 - Utilities
7-9
When all component values have been entered, enter the temperature and pressure at
which the samples were taken.
Clicking on the Calc button will fill in the table as shown below.
8- 9
Click on Plot to bring up the typical graph. The plot shown below uses a set of values from
the original paper.
It can be seen that the values follow a rough straight line. To help visualising this effect, the
program draws a straight line on the plot.
The user can alter the position of this line by clicking on and dragging the handles at the
either end of the line.
Petroleum Experts
Chapter 12 - Utilities
9-9
13 User Databases
This section describes the setup and use of user databases.
A Database menu has been added to the main PVTp screen. The dialogs within this allow
the user to create and maintain a set of customised component databases. In addition an
import facility has been added to extract components from the petroleum experts or other
user-created databases.
The databases can therefore be made up of entirely new components or existing
components with some properties adjusted. The user database points are held within an
ASCII file with a UDB extension. The directory where these files are stored is saved within
the Prosper.ini file. This directory can be set using the Set User database Directory button
which calls the User Database Directory Dialog.
Once created , the databases can be used via the Select Components Dialog.
Figure 13.1:
Using
database
If any *.UDB files exist their names will be displayed in the combo box provided. If the file
has been created with user data, but the specific UDB file is not on the users machine the
components will be listed within the user area for identification but cannot be extended or
reset to the original *.UDB values. See example in figure 13.2
2-6
Figure 13.2:
Database not
present
This dialog is called from the Database Menu. The dialog allows the user to create an
empty user database file (extension . UDB) and go on to add components via the
database edit and database import dialogs.
A typical display is shown in figure 13.3:
The procedure followed ia as follows:
Enter the database name and either select
Exit and Save to create an empty file or
Edit DataBase to begin populating the file with components (see User Database : Edit
Dialog).
The Set User Database Directory button brings up the User Database:Directory Dialog
which sets up where the file will be stored.
Petroleum Experts
3-6
This dialog is called from the Select Components dialog and from the various user
database screens. The dialog shown below allows the user to brows for a directory where
the user database files (extension . UDB) reside.
Selecting Browse will display a directory selection tree. When the selection has been
made click on OK to store the data within the prosper.ini file.
4-6
his dialog is called from the Database Create Dialog or from the Database Menu. The
feature allows the user to add or remove componets from a user database. The properties
of each component can be adjusted manually or calculated. All the data is read from and
saved to an ASCII *.UDB file. A typical display is shown in figure 13.5
The minimum amount of data required is a short name (16 characters) , a long name (50
characters) and a molecular weight.The Fill in Values option will give reasonable values
for all missing data based on several criteria , starting with molecular weight.All fields can
be edited.
The main control fields are as follows:
Figure 13.6:
Editing
database 2
This allows the user to select the database to be edited.The Set User Database Directory
button brings up the User Database:Directory Dialog which sets up where the file is
stored.This area also contains a field which indicates the version of database by giving
when it was last edited.
Figure 13.7:
Editing
database 3
Petroleum Experts
5-6
These combo boxes allow the user to select which correlations are used to determine the
propertie sif required of the larger species within the database. The same correlations are
used within the Pseudo Properties Dialog.
All changes are saved to the database file and the dialog is closed.
As indicated above this option allows the user to fill in any properties with reasonable
values based on the component's molecular weight etc.
This option brings up the Database Import Dialog. Within this display the user can select
components from any other user database or from the Petroleum Experts database to
import into the database being constructed. The p[roperties can then be adjusted within the
edit database dialog.
6-6
Within this display the user can select components from any other user database or from
the Petroleum Experts database to import into the database being constructed. The
properties can then be adjusted within the Edit Database Dialog.
A typical display would be as shown in figure 13.8.
The left hand area of the dialog allows the user to select any of the Petroleum Experts
components. To the right the user can call up any predefined user database and select
components for import. When all selections have been made click on Exit and Save to
import the values.
The Set User Database Directory button brings up the User Database:Directory Dialog
which sets up where the file is stored.
Petroleum Experts
14 Preferences
This section describes the options available from the Preferences section of the
main PVT menu The magor option is called: Adjusting the Equation of State
Calculation Tolerences
Figure 14.1:
Calculation
Tolerences
2-3
Chapter 14 -Preferences
3-3
regressing system to find a solution . No upper limit has been set , but any value
lower than 10 will be set to the lower allowed limit of 10.
Regression : Intermediate Gradient Steps (default value 10)
The compositional Gradient is a stepwise process. When a target depth is entered
for regression , the program must insert a series of intermediate depths to get a
meaningful result. More steps normally means a more accurate estimation. The
disadvantage is a much lower cycle time for regression.
10 steps represents a reasonable compromise value.
Regression: Optimise Regression for Speed/ Optimise CVD Regression for
Speed
Appendix A - Worked
Examples
A1 Example 1 - EOS calibration of oil sample using PVTP.
The aim of this exercise is to demonstrate how the PVT Package can be used to build an
equation of state (EOS) model for an oil sample. Even though the current example deals with
oil, the steps outlined is applied to any other type of hydrocarbon system.
The objectives of this example are:
This example will take the user through the following steps:
Building an EOS Model
How to set up a PVTP model
How to enter the composition of the fluid
How to characterise the heavy ends
How to define the binary interaction coefficients
Calibrating the EOS Model
How to match the saturation pressure
How to match the separator results
How to match the constant composition expansion results.
Using PVTP to Generate tables
How to generate black oil tables for MBAL
How to generate black oil tables for PROSPER.
How to generate black oil tables for Eclipse
How to generate the EOS input data for PROSPER.
This example is in the samples directory under samples/pvtp/example1.pvi
Input Data
Reservoir Fluid Composition
Component
N2
CO2
C1
C2
C3
C4
C5
C6
C7+
Reservoir Data:
Mole Percent
0.05
0.15
37.6
9.7
9.8
6.6
4.3
3.5
28.3
2 - 57
10000-10050 feet
4000 psig
199.4 degF
2800.0 psig
Separator Data
A multi stage separator experiment performed on the reservoir fluid resulted in the following
results:
Stage
Pressure
(Psig)
Temp. degF
GOR
(scf/stb)
Oil
(API)
#1
#2
500
0
90
60
500
300
34.2*
Density
Pressure in psig
Psat
Pres
Petroleum Experts
2800
3100
3400
3700
4000
Oil Density
(Kg/m3)
0.470
0.495
0.520
0.542
0.565
693.60
697.55
701.20
704.66
707.96
3 - 57
In this screen, we are indicating that we will use EOS modelling and the EOS we will use is
Peng Robinson. You hit on OK to complete this.
i)
ii)
i)
ii)
You can set the whole set to another system like French S.I.
You can also change the units of a particular variable within a unit
system by clicking on the unit next to it and selecting a new unit
from the list that is displayed.
4 - 57
Figure A.1.2:
Unit Selection Screen
3. Component Selection
In order to select the components, you hit on Data|Select Components. To select components
in the screen shown below click on the desired components. The selected ones will be
highlighted. Once you finish the pure component selection, enter the number of pseudocomponents in the bottom right hand corner of the screen.
Figure A.1.3:
Component Selection
Screen
i)
ii)
Petroleum Experts
5 - 57
On this screen, the reservoir conditions i.e., pressure temperature and depth at which the
sample is taken are also entered.
5. Defining the Pseudo-Component
The next step is characterising the C7+ component. Clicking on the Pseudo Props does this.
Button of the above screen. This takes you to the following screen, whereby you enter the
specific gravity and molecular weight of the C7+ component.
6 - 57
Figure A.1.5:
Pseudo-Component
Entry screen.
The specific gravity entered here is 0.871 and the molecular weight is 275. On basis of these
numbers, we calculate the boiling point and the Tc, Pc etc using the correlations.
Figure A.1.6:
Pseudo-Property Calc.
Petroleum Experts
7 - 57
To do so press Calc Values on the previous screen. The correlations used are Petroleum
Experts for boiling point and TWU / Edminister for critical properties. This thus calculates the
pseudo-properties on basis of the correlations.
i)
ii)
To do so on the above screen, hit the Quick Calc button. The following screen appears. On
this screen, select the flash to Standard Conditions as shown.
Figure A.1.7:
Quick Calc Screen.
Hit on Calc. On this screen, it gives the results of a single stage flash as shown below.
Figure A.1.8:
Single-Stage Flash
results.
8 - 57
As can be seen from the calculation, with the current pseudo-characterisation, the oil density
after flash using the equation of state modelling is 15 API, which is very different from the 32
API type oil we are getting.
To get a pseudo, which does give correct liquid density computation, we use the feature called
Automatch in PVTP. If we click OK on the previous screen, it will take us back to the following
screen, where by, you press Auto Match button at the bottom left hand corner.
i)
ii)
iii)
This usually provides a good starting point for calibrating the EOS
models further.
iv)
Figure A.1.9:
Using Auto Match
Petroleum Experts
9 - 57
Once automatch is done, using Quick Calc. again gives the following results for a single stage
separation.
Figure A.1.10:
Single-Stage Flash
results. After
Automatch
The density calculated now is much more reasonable and very near what we have in the
laboratory reports. To come back to the Pseudo-Property input screen click on OK.
Once the pseudo is acceptable, it is recommend to save this information in a archive. To do so
on the Pseudo-input screen click on Store button on the bottom right hand side as shown in
figure A.1.9. To view the stored data click on View on the same screen. You should see the
following information stored.
Figure A.1.11:
Stored PseudoProperties
Figure A.1.12:
Stored PseudoProperties
i)
You need to enter only the lower part of the full BI matrix. We have
used only 0.05 between the C1 and pseudo in this case.
ii)
You can also use the correlations for calculating theses values, by
hitting Calc. New Values.
iii)
There are also two Reset buttons at Top which allow you to set
specific (pure/ all components) values in the matrix to zero.
To see the effect of introduction of Binary interaction coefficient on the saturation pressure, we
can again use the Quick Cal. Utility that appears on this screen as well. If we press on Quick
calc. and then select phase envelope on the screen shown in figure A.1.7, the following phase
envelope appears.
Petroleum Experts
11 - 57
Figure A.1.13:
Phase envelope
with Quick Calc.
To see the impact of the binary interaction coefficient on saturation pressure, click on Set
Test Point on the above screen and enter the saturation pressure data as shown below
Figure A.1.14:
Entering saturation
pressure data point.
i)
Ensure that you have selected the data point to be plotted on the
phase envelope as indicated at the bottom of the above
Once this is done we can click on OK to take us back to the Phase envelope screen as
shown in figure A.1. 13. On this we can click on Expand he plot to see the whole plot. We can
see, the data point (shown as the blue +) with respect to the phase envelope as well.
Figure A.1.14:
Phase envelope
versus measured
saturation
pressure data
point.
i)
The EOS model we have at this stage is not respecting the fluid
behaviour as seen in the laboratory data. The fluid behaviour at this
step is strictly governed by the PR equation of State and Tc, Pc
etc., data entered.
ii)
iii)
Also Note that PVTP has indicated that the system is a bubble
point system, without the user having to define it using the in
built advanced phase detection algorithm.
Press Exit on the graph to come to Quick Calc screen in figure A.1.13, click Exit on this screen
to go to screen shown in figure A.1.7. Click Cancel on this screen to come to BI Coeff screen
shown in figure A.12.Press Exit and Save on this screen to save the data input. This takes you
to the component input screen shown in figure.A.1.4. Click Exit and save on this screen and
this take you to the main PVT screen.
At this stage you can save the file by going to File | Save as and the following screen appears.
You can browse to the directory you want to save the file in and save it there.
Petroleum Experts
13 - 57
Figure A.1.15:
File Saving Dialogue
This finishes the data entry of for building the EOS model.
To enter the CCE click on the CCE tab that appears on the screen shown above in figure
A.1.16 and this takes you to the next screen, where the data is entered.
Petroleum Experts
15 - 57
Figure A.1.17:
Entry of CCE data
Similarly enter the separator experiment data under SEP tab in the lab data screen as shown
Figure A.1.18:
Entry of Separator
data
The first step we take is to disable some data points in CCE density and viscosity
measurements to which the model will be matched to. To do so from the main Menu click on
Data | Enter lab data and select the CCE data tab as shown. On this select the both columns
of oil density and viscosity by holding the down the mouse and dragging across the cells you
want to disable. This selects the cells. Once the cells are selected, click on disable. This
disables the data, i.e. the data will not be used for matching.
Figure A.1.20:
Disabling Lab CCE
data
i)
ii)
The next step is to include minimum data from this elaborate experiment and match the EOS
to it. We will select the density and viscosity at reservoir pressure and bubble point. Selecting
the data point by clicking on it to make the cell active does this. Once the cell is active, click on
include to include the data. You can also browse the weighting and select a number e.g. 5 and
hit set weighting to set weighting of data in the active cell /cells to 5.
Petroleum Experts
17 - 57
Figure A.1.21:
Enabling Lab CCE
data / Setting
weighting
i)
ii)
The low weighting cells appear in blue compared to black for the
high weighting cells
iii)
i)
Note that you will need to scroll down to select all that against
which you will regress the model.
ii)
Figure A.1.22:
Selecting the data for
regression.
Click on Regress on this screen. This takes you to the next screen, where the parameters that
will be altered to match to lab data are chosen. Chose the Tc, Pc data of all components
except for the non-hydrocarbons and the binary interaction coefficient between heavy fraction
and methane, as indicated below and hit Regress.
Figure A.1.23:
Selection of
Parameters to be
varied in regression.
Once the regression is done, there automatically appears the following screen showing the
tuned properties of all the components.
Petroleum Experts
19 - 57
Figure A.1.24:
Tuned EOS
parameters.
On this screen, click on Exit and Save. It takes you back to the regression screen figure A.1.
23. On this screen click on Exit and save and it takes you back to the regression data
selection screen as shown in figure A.1. 22.
4. Matching viscosity.
Once the rest of data has been matched to, viscosity is matched separately. To do so unselect the other parameters in the following screen and select viscosity only as shown
Scroll down the list to ensure that no other property except for viscosity is
selected for regression.
Figure A.1.25:
Selecting viscosity for
regression.
Once this is done in a similar fashion, go to the next screen by clicking on Regress and only
select the Pseudo-component critical volume for fine-tuning. Make sure that no Tc, Pc,
omega, binary interaction is selected as shown in the screen below
Figure A.1.26:
Selection of Vc of
Pseudo to match
viscosity.
Once the matching is finished, the same screen as figure A.1.24 appears. Click on Exit and
save on this screen. This takes you to the regression screen on figure A.1.23. On this screen
press Exit and Save and it takes us to main regression screen shown in figure A.1.22. On this
Petroleum Experts
21 - 57
screen click on PVT Main and this takes you to the main PVT screen., where you can save the
data and the results.
5. Checking results of the calibrated model against lab data.
Once the model is calibrated, we need to check the model predictions against the lab data.
The first comparison is the CCE experiment. To simulate a CCE experiment in PVTP, from the
main menu go to Calculation | Constant Composition Expansion and the following dialogue
box will appear, where the range of pressure and temperature is entered.
Figure A.1.27:
Setting up CCE
Simulation input.
If we are also comparing oil FVF and GOR etc, we need to enter the
separator scheme that these values were calculated against in the
CCE data. If we leave it blank all the GOR and FVF values reported
in the simulated experiment assume single stage atmospheric flash.
On this screen Press on Calc. This takes you to the next screen as shown below. On this
screen press Calc. again and the CCE calculations are performed.
Figure A.1.28:
Simulated CCE
Results.
Once these calculation is finished, hit on plot and a plot will be displayed. On this plot select,
pressure versus the oil density (EOS) to be displayed. The selection is on the top of the plot in
the drop down menu as shown in the figure below:
Figure A.1.29
Simulated CCE versus
lab oil density Results.
Petroleum Experts
23 - 57
Similarly other experiments like phase envelope, separator tests can be simulated and
checked against the measured data.
This concludes the EOS calibration stage.
On this screen hit OK. This takes to the next screen, where the table pressures and
temperature is defined as shown below:
PVTP User Guide
Figure A.1.32
Black Oil Export
Dialogue Screen.
i)
ii)
iii)
iv)
You may also copy the CCE simulation experiment in the table to
be exported by clicking on copy CCE button shown on the screen.
You may define tables at ten temperatures.
You need not enter the saturation pressure for the table, PVTP will
calculate it automatically.
On the right hand side Select, the table type, i.e., whether oil, gas or
condensate.
As the table contains GOR and oil FVF information as well, you need to define a separator
train for this case. In case we do not define a separator train and atmospheric single stage
flash is considered. In this example we will define the separator train similar to the one used in
lab data. To do so on the above screen, click on Set Up under separator conditions and the
following dialogue appears,
Figure A.1.33
Defining separator set
up for black oil table
Petroleum Experts
25 - 57
On this screen enter the separator scheme. Click Use Separator to calculate GOR and oil
FVF.
Once this is done click on OK and it takes you back to the Export screen shown on Figure
A.1.32. On this hit Calc. Table button. If you have more than one table selected for export, hit
Calc. all. This populates the table with PVT data as shown below. Once the table is filled, on
the right hand side press MBAL select. This selects the columns to be exported.
Figure A.1.34
Populated
Black Oil table
On this click on Export and it will come up with the following dialogue
Figure A.1.33
Black Oil table
Export
On this screen select current table option as we have only one table. Click on Export and it
takes to the following screen, where we can save a *.ptb file, which can be read by Petroleum
Experts applications.
Figure A.1.33
Black Oil table Export
At the end of this step you have a black oil table that can be used.
1. Black Oil tables for Eclipse
The Black Oil tables for eclipse are generated following the same route as was followed for
Petroleum Experts Applications. We start from File | Export from the main menu. This will
result in the following dialogue screen as shown in figure A.1.31 to appear. On this screen
select table Type 6 which is Eclipse Black oil Tables and hit OK.
This takes us to the following screen. On this screen, you have to select the type of black oil
tables that are needed.
Figure A.1.34
Eclipse Black Oil table
Export
Petroleum Experts
i)
ii)
27 - 57
First you define the type of phase tables you want. In this case we
want a oil with dissolved gas, the gas being dry and no water type
tables.
Based on the phase types selected, applicable keyword Options
become available. We are using PVTO and PVDG for this example.
Once the proper options are selected, click on OK. This takes you the following screen, where
you define the pressure and temperature range for which the tables need to be generated.
You also define the separator scheme that will be used to calculate the GOR and oil FVF
values.
Figure A.1.35
Eclipse Black Oil table
Export, Pressure and
Temp. Range Input
Once the data is input, click on Export and it takes you to the following screen, where the
tables are displayed. Click on Calculate to populate the tables.
Figure A.1.36
Eclipse Black Oil table
Click on Export on the populated tables and it takes you to the save screen as shown below.
Figure A.1.37
Eclipse Black Oil table
saves
You can save the table as a *.inc file which can be used by Eclipse. Click on PVT Main to
come back to the main screen.
2. EOS input for PROSPER
The EOS input tables for PROSPER are generated following the same route as was followed
for the other two cases. We start from File | Export from the main menu. This will result in the
following dialogue screen as shown in figure A.1.31 to appear. On this screen select table
Type 1 which is PROSPER EOS Composition and hit OK.
This takes us to the following screen. On this screen, you have to select the appropriate option
Petroleum Experts
29 - 57
Figure A.1.38
EOS Export for
PROSPER
Once the option is selected, click on Export and it appears with a saving screen and as in
figure A.1. 37. Select the name for the file and it saves a *.prp file which can be imported
directly into PROSPER.
To familiarise the user with using the Advanced Pseudo-Splitting Option in PVTP
To use PVTP to calibrate the EOS models to measured laboratory experiments.
To perform wax and hydrate studies on the condensate sample
This example will take the user through the following steps:
Building an EOS Model
How to characterise the heavy ends using the advanced splitting method.
Petroleum Experts
Component
N2
CO2
C1
C2
C3
C4
C5
C6
C7+
31 - 57
Reservoir Data:
Producing Interval Depth
Reservoir Pressure
Reservoir Temperature
10000-10050 feet
5320 psig
255.0 degF
4800.0 psig
Separator Data
A multi stage separator experiment performed on the reservoir fluid resulted in the following
results:
Stage
Pressure (Psig)
Temp. degF
#1
500
100
GOR (scf/stb)
Oil Density
(API)
i)
ii)
iii)
There are two common ways of reporting the liquid drop out in
laboratory reports:
As a % of the cell volume at dew point pressure.
As a % of cell volume itself.
In the PVT Package, the dropout as % of the cell volume is to be
entered.
If the lab reports the dropout as % of the dew point volume, this has
to be corrected. These reports also have a column called relative
volume in the reported in the CCE experiment.
Vcell
Vdew
Vr = relative volume
Vcell = Total volume of the cell at given P,T
Petroleum Experts
33 - 57
i)
ii)
You start with one C7+ component and go through automatch etc
as indicated in example 1. The specific gravity is 0.8 and the
molecular weight is 180.
On this screen press the Advanced button on the Split option at the bottom of the screen.
If you have more than one pseudo defined in the above screen, the
advanced splitting is applied to the last pseudo only.
The advanced splitting dialogue takes us to the following screen on which using the internal
splitting algorithms, a distribution with carbon numbers of C7+ components is constructed as
shown.
Figure A.2.2
Advanced Splitting
Screen
i)
ii)
iii)
iv)
The plot of the distribution with Petroleum Experts2 Method is shown below. This can be
done by pressing Plot on the above screen.
Petroleum Experts
35 - 57
Figure A.2.3
Heavy end profile with
Petroleum Experts 2
If we want to choose the Petroleum Experts 1 as the splitting method, we click on Exit on the
above graph, which takes us to screen shown on figure A.2.2. On this select Petroleum
Experts1 and press Recalculate split. Once this is done hit again on plot.
Figure A.2.4
Heavy end profile with
Petroleum Experts 1
As indicated in above plot, this distribution is centred around C13 and thus has a maximum
there.
For this case we will use the default one i.e. Petroleum Experts 2. To switch back to it follow
the same sequence as was followed to construct Petroleum Experts1. Once this is done, we
will split this profile into two sub-groups by hitting on Set Even Split as shown in the following
screen.
PVTP User Guide
Figure A.2.5
Splitting the Pseudo
Once this is done, the program splits the heavy end into two groups, one from C7-C12 and
another C12+. If the user wants to change the range of carbon numbers in the sub-groups, it
can be done by scrolling up and down on the C13-C35 group.
Once the sub-groups are defined, click on Automatch. Once automatch is done, introduce a
binary interaction coefficient of 0.05 between C1 and C13+ by clicking BI Coeff on the above
screen as shown
Figure A.2.6
BI Coeff. Entry
Click on Exit and save and it takes you back to the screen on figure A.2.5. Click again Exit and
Save through all the screens, till you are again in the main PVTP screen. On the main screen
save the file.
Petroleum Experts
37 - 57
Figure A.2.8
CCE. Data Entry
Screen.
Figure A.2.9
Separator Data Input
Once the laboratory data is entered, we will disable, set weighting to the various options as
indicated below. To do so we will follow the same steps as indicated in example1.
i)
ii)
iii)
iv)
All liquid drop data except 9.86%, which is the highest number, and
5.51%, which is at 4500 psig, are disabled. The 5.51% has medium
weighting.
The Z factor at dew point is included with high weighting.
The saturation pressure is included.
The first stage GOR and last stage density in separator
experiments have high weighting. The other GOR values have low
weighting.
Once this is done we go to the regression screen following the same steps as in example 1
and select the properties as follows
Petroleum Experts
39 - 57
Figure A.2.10
Regression Data Input
After selecting regression properties click on Regress and this takes us to the screen below.
Chose the Tc, Pc data of all components except for the non-hydrocarbons and the binary
interaction coefficient between heavy fraction and methane, as indicated below and hit
Regress as was done in example 1
Figure A.2.11
Regression Screen
This finishes the calibration of the EOS model to the laboratory data.
If we are also computing oil FVF and GOR etc, we need to enter the
separator scheme that these values were calculated against in the CCE
data. If we leave it blank all the GOR and FVF values reported in the
simulated experiment assume single stage atmospheric flash.
On this screen Press on Calc. This takes you to the next screen as shown below. On this
screen press Calc. again and the CCE calculations are performed.
Petroleum Experts
41 - 57
Figure A.2.13:
Simulated CCE
Results.
Once these calculation is finished, hit on plot and a plot will be displayed. On this plot select,
pressure versus the liquid dropout to be displayed. The selection is on the top of the plot in the
drop down menu as shown in the figure below:
Figure A.2.14
Simulated CCE versus
lab liquid dropout
Results.
There are various methods available for calculating wax appearance temperature. We have
selected the Pederson wax method. The pressure range over which the temperature is to
calculated is specified as well. Next we hit calculate and the following screen appears. On this
screen click on Calc. to start the calculations
Petroleum Experts
43 - 57
Figure A.2.15
Wax appearance
temperatures
In this case the calculations show that for all the pressures the wax appearance temperature
is around 70.2344 F
To calculate the amount of wax that deposits, click on PVT main on the previous screen. This
takes us to the main PVTP screen. On the main screen go to Calc. Solids options. Under this
option select Wax Amount calculation. Once done the following screen appears
Figure A.2.16
Wax amount input
dialogue
There are various methods available for calculating wax appearance temperature. We have
selected the Pederson wax method. The pressure range over which the amount is to
PVTP User Guide
calculated is specified as well and so is the temperature of 70 F. Next we hit calculate and the
following screen appears. On this screen click on Calc. to start the calculations
Figure A.2.17
Wax amount
This table gives the amount of wax that is formed. It also indicates the separation of the
original fluid into various phases.
Petroleum Experts
45 - 57
There are various methods available for hydrate formation pressures prediction. We have
selected the Kihara Potential P.E.H. method. The temperature range over which the pressure
is to calculated is specified as well. Next we hit calculate and the following screen appears. On
this screen click on Calc. to start the calculations
Figure A.2.20
Wax appearance
temperatures
In this case the calculations show the minimum hydrate formation pressures for a range of
temperatures and inhibitor concentrations.
To Plot the results press Plot and the following plot appears.
Figure A.2.21
Hydrate formation plot
Hydrate Region
From the plot we can see that as the temperature and inhibitor concentration increase, the
hydrate formation pressures go up also and you need higher and higher pressure to form
hydrates. Click Exit to come out of the plot and click on PVT main to come to the main PVTP
screen.
Petroleum Experts
47 - 57
To familiarise the user with the decontamination procedure that can be used in PVTP
This example will take the user through the following steps:
Building an EOS Model
How to make the C7+ distribution in PVTP follow the carbon number versus mole% profile
measured in laboratory.
Decontaminating in PVTP
Step by step approach to estimate the uncontaminated sample properties from a
calibrated EOS model of a contaminated oil sample.
This example is in the samples directory under samples/pvtp/example3.pvi
Input Data
Mole Percent
0.05
0.15
37.6
9.7
9.8
6.6
4.3
3.5
28.3
Reservoir Data:
10000-10050 feet
4000 psig
199.4 degF
2800.0 psig
Pressure (Psig)
500
0
Temp. degF
90
60
GOR (scf/stb)
500
300
Oil Density
(API)
34.2*
Psat
Pres
Petroleum Experts
Pressure in psig
Oil Density
(Kg/m3)
2800
3100
3400
3700
4000
693.60
697.55
701.20
704.66
707.96
49 - 57
Extended Composition analysis of the C7+ fraction contaminated Reservoir Fluid sample
C7
0.5413
C25
0.17
C43
0.0534
C8
0.5076
C26
0.1594
C44
0.05
C9
0.476
C27
0.1494
C45
0.0469
C10
0.4463
C28
0.1401
C46
0.044
C11
0.4185
C29
0.1314
C47
0.0413
C12
0.3924
C30
0.1232
C48
0.0387
C13
0.3679
C31
0.1155
C49
0.0363
C14
13.165
C32
0.1083
C50
0.034
C15
1.0926
C33
0.1016
C51
0.0319
C16
3.0245
C34
0.0952
C52
0.0299
C17
0.9606
C35
0.0893
C53
0.028
C18
2.9007
C36
0.0837
C54
0.0263
C19
0.2501
C37
0.0785
C55
0.0247
C20
0.2345
C38
0.0736
C56
0.0231
C21
0.2199
C39
0.069
C57
0.0217
C22
0.2062
C40
0.0647
C58+
0.0203
C23
0.1933
C41
0.0607
C24
0.1813
C42
0.0569
On this screen, click on the Advanced option and it will take you to the next screen whereby
PVTP generates a mole % profile for C7+ using the default method.
Petroleum Experts
51 - 57
Figure A.3.2
Advanced PseudoProperty screen
On this screen, we want to enter the profile, we have measured in the laboratory. To do so,
click on Set up Split Profile button and the following dialogue comes up. Fill the measured
mole% data against carbon number in the screen.
Figure A.3.3
Setting up Profile
Once the profile has been set-up, click on Exit and Save and it takes you back to the
advanced split screen. On this screen press Recalculate Split as shown below.
Figure A.3.4
Recalculating the
Profile
Once this is done click on Exit and Save on all the screens that appears till you come to the
main PVTP screen.
3. Decontaminating the sample
Once the heavy end profile has been defined, from the main menu go to Data |
Decontaminate. This takes you to the decontamination input dialogue as shown below
Figure A.3.5
Decontamination Input
Dialogue
Petroleum Experts
53 - 57
This screen lists all the components along with their mole %, molecular weights etc. The C7+
components are listed in red.
The next step is to remove / re-estimate the excess mole % of heavy end hydrocarbon that
comes from the contaminant.
For this example we will try to estimate the contaminant mole % from the heavy end profile. If
we click on Plot on the previous screen, it gives the following plot.
Figure A.3.6
Carbon number Vs
Mole %
The initial peak that is seen in the profile is because of C1 which is as expected. To see the
profile after C7 we can hold down the mouse button and draw a box around the area and it
results in a following zoomed plot.
Figure A.3.7
Carbon number Vs
Mole %
Now after C7 the profile naturally is expected to be smooth as we had seen in example 1. The
peaks that we see in the profile from C14 to C18 are due the contamination from the oil based
PVTP User Guide
mud. From this plot assuming a uniformly decreasing smooth curve the mole % of the C14C18 can be estimated. The estimated mole percent are
Component
C14
C15
C16
C17
C18
Once the new mole percent are estimated, these are entered in the decontamination screen
as shown below
Figure A.3.8
Decontamination
Procedure
Once new compositions are entered, press on Quick Look. This takes us to the next
screen where the program creates a temporary decontaminated stream and we can
quickly look at its properties
Petroleum Experts
55 - 57
Figure A.3.9
Decontamination
Quick Calc.
On this screen press again Quick Calc. It takes us to the next screen as shown
Figure A.3.10
Decontamination
Quick Calc.
At this stage PVTP has created a temporary decontaminated stream called Decon_Temp and
we can perform the listed calculations on it. Begin by selecting Phase envelope and pressing
Calc. This takes us to the following screen. On this screen, on the left hand side all the fluid
streams are listed. Select both the contaminated and decontaminated one and hit Calc.
Figure A.3.11
Phase Envelopes
This picture shows how the phase envelopes compare. Because of decontamination the
saturation pressure goes up in this case. Click on Exit | cancel | Exit and it takes you to the
screen in figure A.3.8. On this screen click on Decontaminate, which take us to the following
screen.
Figure A.3.12
Decontamination
On this screen you get two options. One in which you can create a new stream in the file with
the decontaminated fluid model or you can overwrite the contaminated one. We choose to add
a new stream.
After this press Decontaminate and the program calculates the decontaminated fluid model
and displays the EOS parameters of the same as shown below
Petroleum Experts
57 - 57
Figure A.3.13
EOS Parameters of
the Decontaminated
sample
Enter Exit and Save on this and subsequent screens to go to the main PVTP screen. At this
stage you will have a decontaminated fluid model.
B1 List of Steps
Step 1:
Step 2:
Step 3:
Step 4:
Step 5:
Step 6:
Match the Surface Volumetric Properties (Density, GOR etc.) using the
Automatch feature ( Section B.6)
Step 7:
Step 8:
Step 9:
Step 10: Check and Refine the Fluid Characterisation ( Section B.10)
Step 11: Calculate, Report and Export ( Section B.11)
2 - 30
Create a new file by selecting the New command., from the File menu.
This can be done at any time.
See also:
File/New (Section 3.1)
Petroleum Experts
3 - 30
or use icon
The program will default to the most commonly used combinations i.e.
1 Method set to Equation of State and
2 Equation of State set to Peng Robinson
Clicking on OK is enough to move on to the next step
More detail on alternative entries is given in Options (Section 5.4 )
4 - 30
or use icon
A typical display is shown below :
Petroleum Experts
5 - 30
6 - 30
or use icon
Petroleum Experts
button
7 - 30
Enter the composition in mole % from the Reservoir or Wellstream analysis for each
component (1) and pseudo component (2).See Sample PVT Report Composition (Section
A.4.1). A running total of the entries is displayed (3).
At this point reference data , especially the temperature at which the sample was taken,
should be entered in area 4. This temperature will be used to conduct the Saturation
Pressure calculations within Step 7
When all entries are complete click on Pseudo Props.. (5) to move on to the next step.
More detail on alternative entries is given in Edit Composition (Section 7.2)
8 - 30
SAMPLES
Component
Separator
Liq. Mole %
Separator
Gas Mole %
GPM
Wellstream
Mole %
--------------------------------------------------------------------------------------------------------------Hydrogen sulphide
0.00
0.00
0.00
Carbon dioxide
0.16
0.90
0.50
Nitrogen
0.01
0.32
0.15
Methane
6.02
77.97
38.87
Ethane
4.94
12.58
3.364
8.4
Propane
6.53
5.51
1.518
6.06
i-Butane
1.45
0.56
0.183
1.04
n-Butane
4.84
1.38
0.435
3.26
i-Pentane
1.97
0.22
0.080
1:17
n-Pentane
3.35
0.29
0.105
1 95
Hexanes
4.81
0.15
0.058
2.68
Heptanes plus
65.92
0.12
0.053
35.89
Totals
100.00
100.00
5.796
100.00
Heptanes plus properties
Molecular weight :
225
103 (assumed)
225
Density at 600F (gloc) 0.8527 0.7370 (assumed)
0.8526
API
at 600F Cg/cc)
34.3
34.3
Important Information
1 Individual component compositions 0.00.....2.68% and C7+ pseudo composition 35.89%
2 Pseudo Component (C7+) molecular weight 225 and SG 0.8526
Petroleum Experts
9 - 30
At least one pseudo component should have been identified in step 3. After the pseudo
percentage(s) have been entered in step 4 , click on the Pseudo Props. button to display
to bring up the important Pseudo Properties Display
A typical display is shown below:
The purpose of this step is to give the pseudo component(s) an initial set of properties.
The pseudo is the greatest unknown within the composition and is always composed of a
mixture of many compounds with a wide variety of individual properties. It is therefore, not
surprising that the characterisation of these compounds is the key area of EOS PVT
matching.
The starting values for Tc, Pc , AF etc. are taken from correlations. Normally the PVT
report will give SG and Molecular Weight information for the plus component. See Sample
PVT Report Composition Section A.4.1). . Enter the values in the table (1). The
PVTP User Guide
correlation(s) will calculate a Boiling Point and use this with SG and Mwt. to fill in the other
properties (2). The default correlations are Petroleum Experts for BPt. and Twu/Edminster
for Tc, Pc , AF . Clicking on Calculate Values(3) or exiting the pseudo properties dialogue
will initiate the property estimation.
Choice of Correlation
The correlation can by changed by using the combo boxes in area (4)
Our recommendation for this selection is :
For All Fluids , try
1. Petroleum Experts Correlation for Boiling Point
2. TWU/Edmister for Acentric Factor etc.
NOTE : The properties of the pseudo(s) will only be recalculated if the Boiling Point value
for that pseudo is blanked out.
The mode (5) should normally be set at Automatic. Manual mode assumes the user will
type in all the properties.
When the initial properties are in place, the user should move on to step 6 for further
pseudo characterisation.
More detail on alternative entries is given in Pseudo Properties (Section 7.3)
Petroleum Experts
11 - 30
The effect of Automatching is to move the lower end of the phase envelope into a realistic
area giving close to the correct values for separator oil density GOR FVF etc.. The
matching of this area becomes minimal ,allowing the overall regression to move more
PVTP User Guide
smoothly to a solution. In general, the top end of the phase envelope is little changed for
oils during Automatch . With condensates, the Saturation Pressure may become
depressed enough to require remedial action i.e. splitting (see Step 7)
How to Automatch
Automatching is a very straightforward process. Enter the Pseudo Properties Dialogue as
described in Step 5.
A typical display would be :
Simply click on the Split in 2 button . Split into two each time . Check the effect on the
Saturation Pressure after each split (see Step 7)
A feature is provided within the program to store and restore pseudo component data. The
program will automatically store the first entries in this dialog. The Restore can be used to
undo a split if the Saturation Pressure becomes too large.
If this method proves to be unsuccessful more control over the Split by using the Advanced
function.
See also Decontamination Procedure(Apendix B)
NOTE: Automatch is not suitable for gases as it depends on liquid being formed
When Automatch is complete proceed to Step 7
More detail on alternative entries is given in Pseudo Properties (Section 7.3)
Petroleum Experts
13 - 30
All the operations required for this step are available within this dialogue. Make sure a
reference temperature is entered at point 4
After each operation the saturation pressure can be found by clicking on the Calculate
button at point 1. This brings up the Small Calculation Dialogue :
Select Saturation Pressure and press Calculate to bring up the message box containing
the result:
Petroleum Experts
15 - 30
Petroleum Experts
17 - 30
Adding the coefficients moves the phase envelope from values depicted by curve B to
those making up curve A. Although there is an increase in saturation pressure over most
of the temperature range e.g. T1, the envelope tends also to tilt leaving some areas with a
lowered PSat. e.g. T2.
In this example ,there is negligible movement at the reservoir temperature leaving the
match point PSat as far away as before. Adjusting BI Coefficients is not recommended for
condensates other than making up small (<10%) differences between calculated and
match PSat values. Splitting the last pseudo component is the preferred option with
condensates which exhibit the behaviour shown above.
See Using Splitting to Match Saturation Pressure (Section A.7.2)
Oils , in contrast, can benefit from adding BI coefficients. The saturation pressure is
normally closer to the initial calculated value and the phase envelope range is normally like
that of T1 in figure 2. Splitting with oils also tends to give an excessively high value which
cannot be easily brought back by regression.
Where the difference between the calculated and match values are small the difference
can be made up by manually adjusting the BI Coefficient(s) of C1 with the heaviest
component(s).This value has the greatest influence on the saturation pressure calculation
Petroleum Experts
19 - 30
Any coefficient can be changed by clicking on a cell and typing in a new value. Use the
combo boxes to give options on calculating a new set of values. Buttons are provided for
zeroing all components, or those of the pure (non-pseudo) components.
See BI Coefficients Dialog (Section 7.4) for more detail on the options available.
21 - 30
Simply click on the Split in 2 button . Split into two each time . Check the effect on the
Saturation Pressure after each split (see Step 7)
A feature is provided within the program to store and restore pseudo component data. The
program will automatically store the first entries in this dialog. The Restore can be used to
undo a split if the Saturation Pressure becomes too large.
If this method proves to be unsuccessful more control over the Split by using the Advanced
function.
See also Decontamination Procedure(see Appendix B).
Automatching should be done after each split (see Step 6) to ensure that surface
properties are maintained.
More detail on alternative entries is given in Pseudo Properties(Section 7.3)
23 - 30
approach causes can be very significant and will come out in many ways e.g. in the
inability to resolve reserves with production.
To avoid such problems we recommend that reservoir and separator matching must
always be done together Densities or density derived data must be included for reservoir
and surface to force a material balance on the system.
NOTE The EOS calculation initially calculates Zliquid and Zvapour. Densities are
calculated directly from the Zs. Matching Z matches density
The recommended minimum information to be used for matching is:
OILS
1 Bubble Point pressure
2 A measure of density (oil density or Zliquid) at reservoir or saturation pressure conditions
3 Some measure of Separator volumetric properties i.e. GOR or oil FVF
4 A measure of density (oil density or Zliquid) at separator or stock tank conditions
CONDENSATES
1 Dew Point pressure
2 A measure of density (gas density or Zvapour) at reservoir or saturation pressure
conditions
3 Some measure of Separator volumetric properties i.e. GOR or oil FVF
4 A measure of condensate density (oil density or Zliquid) at separator or stock tank
conditions
5 Liquid Dropout (CCE or CVD) from reservoir pressure to surface conditions
or use icon
will bring up the match table dialogue. This consists of a series of tables one for each
measurement/calculation.
Any cell can be filled in with data. Blanks are allowed where data is not available or
unreliable.
Make sure all pressure steps are entered for SEP(Separator) and CVD(Constant Volume
Depletion).
Figure 5 6 7 and 8 illustrates the data used for a real condensate example.
Petroleum Experts
25 - 30
The value at reservoir pressure ensures that any deviation of compressibility above the
dewpoint is properly modelled
Figure 7 : Separator GOR and Stock Tank Oil Density
Note that all separator stages have been included as the final oil density depends on the
path to Stock Tank conditions.. With multiple stage separators it is best to match first on
the main stage. In addition, when GOR numbers are much smaller in the subsequent
stages,it is unlikely that these values are as accurate. We suggest that a lower
weighting.eg. 3 is given to these numbers. see help on Match Data Tables for Weighting
and Inclusion/Exclusion.
The CVD process also includes all stages including the start point at the saturation
pressure value. Missing out any stage will alter the values for all stages below it.
There are many ways to approach dropout matching and no best way to do it. One thing to
keep in mind is that the values are not as accurately measured as density or saturation
pressure. For that reason the values should all be given a lower weighting e.g. 3. This
prevents important numbers like PSAT moving to help dropout to match. It is also better
not to start with all values included in the match. Give the program 2 or 3 representative
points, match to them and view the result. If required include more points until a reasonable
match is produced. See help on Match Data Tables(Section 7.8) for Weighting and
Inclusion/Exclusion
NOTE: for CCE dropout the values expected are relative to the volume at step not the
volume at reservoir volume . Most PVT reports give dropout relative to reservoir. To
convert the values devide the dropout figure by the relative volume at each pressure step.
When all entries are complete click on OK to move on to the next step.
More detail on alternative entries is given in MatchData Tables(Section 7.8)
Petroleum Experts
27 - 30
or use icon
Regression is a two stage process. In the first, the user must select which calculations
should be matched.
Selecting regression brings up the dialogue illustrated below:
Each column within the match table (Step 8) has an equivalent checkbox within this
dialogue.
It is recommended that all calculations with the exception of any CVD or GRAD variables
should be selected at once.
The total selected is displayed at point 4. Every calculation can be given a high , medium
or low weighting which changes its contribution to the overall error.
Unless the match value is suspect or of lower accuracy (e.g. a dropout), the weighting
should be left as high.
When the calculations have been selected, click on Regress... to move on to the next
stage
PVTP User Guide
Generalising a regression strategy is difficult. Fortunately,however, with the PVTP most oils
and condensates can be matched in a single shot. When using a full composition , it is
recommended that allTc Pcs should be selected for C1 and all components below. In
addition, any binary interaction coefficients should also be selected. See What Properties
to Use in Regression and Matching Viscosities for more information.
Vc is only used when viscosity is being matched (see Matching Viscosities)
Click on Regress to initiate the matching calculations. The process stops when a
maximum number of steps has been passed or the error term CHI falls to below 1e-09.The
process can be restated if not enough steps have been taken.
If the regression fails to converge satisfactorily, more component properties can be added.
See Regression for more information on options and strategies.
When the first round regression has been completed more difficult variables such as
dropout can be added and the process repeated.
Petroleum Experts
29 - 30
Petroleum Experts
Appendix C
Decontamination
Procedure
NOTE
This procedure represents one way of decontaminating a sample. It may not be
applicable to all situations and the results cannot be guaranteed. The flexibility of
the program also allows other paths to a solution to be followed.
The object of this exercise is to identify the effects of a contaminant within a fluid and to
remove this contamination in a controlled manner.
What should be available is
the characteristics of the contaminated fluid i.e. a PVT report
an extended analysis of the contaminated fluid and
an estimate of what the fluid composition would be without the contaminant
What we are going to do is a match to the known characteristics with a split history that
reflects the addition of the contaminant.
This is done by using the Split Profile feature.
Matching gives the properties of the pseudo components and the split history identifies how
they were put together.
In the decontamination display the program breaks the matched fluid back down into the
many split parts along with compositions and properties associated with each part.
The user can then set the compositions to that of the uncontaminated fluid. When this is
done the program adjusts the compositions and properties to reflect the change and
recombines the split parts to workable pseudo components.
This new working composition can be used to generate data for an uncontaminated model.
2-7
STEP 1 Follow the Step by Step Guide until you reach step 5. A single C7+ pseudo
component should be sufficient for most fluids.
STEP 2. Enter the pseudo component MWt and SG. within the Pseudo Properties page
and click on the Advanced button within the Split/Profile area at the bottom of the
display.
STEP 3. Within the Advanced Splitting Dialog select the Follow Profile method using
the combo box provided above the table. click on the Setup Split Profile button.
Petroleum Experts
3-7
STEP 4. Within the Split Profile Dialog enter the detailed composition of the
contaminated fluid. Only the areas of strong contamination are required. The program
will fill in the rest with a standard distribution. Click on Exit and Save.
STEP 5. Back within the Advanced Splitting dialog click on Recalculate Split to
implement the profile.
4-7
STEP 6. It is possible to undertake the tasks described as step 6 (Auto matching) and
step 7 (getting near reservoir PSAT)within the Step by Step Guide within this display.
Complete these operations now. this is preferable to exiting and coming back into the
Advanced Splitting dialog . The reason is that Advanced in the Pseudo Properties
Dialog applies to the last pseudo component. If splitting has been done, you must use
Restore the Original Numbers to get back to your starting point. When you are happy
with your entries click on Exit and Save.
STEP 7. The Stream now contains a set of partly matched pseudo components with a
full history of how they were put together. Continue to fully match this fluid as described
in the Step by Step Guide .
Petroleum Experts
5-7
STEP 8 When fully matched, select Decontaminate from the Data menu. This brings
up the Decontamination Control Dialog. The compositions presented are based on the
split history of stream. This will contain the profile created in Step 4. Click on Plot to
view the component distribution. the properties of the expanded pseudos are derived
form the matched pseudos. they therefore contain a measure of the effect of each
expanded component on the overall characteristics of the fluid.
STEP 9 Enter the estimated values for the composition of the undecontaminated fluid
in the New Mole% column. this can be derived from the amount and composition of the
contaminant and the original composition of the contaminated sample. Only the area of
obvious contamination needs to be entered. Click on Plot to view the results. Click on
the Quick Look button to view the effects of your entries. this option creates a
temporary stream containing the decontaminated fluid.
6-7
STEP 11. On returning to the Decontamination Control Dialog the display will contain
information on the results of the decontamination.
The decontamination calculation proceeds as follows:
The individual component mole percents are set equal to the New Mole%
values , where defined.
The remaining component mole percents are adjusted to make up the 100%
total and to follow the trend of the original values.
The new full composition appears as the Cald. %.
The Calcd% are used in conjunction with the initial properties to generate a new
set of properties for each component and a combined version for each of the
pseudo components. The pseudo component start and end values can be seen
by clicking on the View/Change button.
The trend in the individual compositions can be seen by using the Plot button.
Petroleum Experts
7-7
STEP 12 The decontamination procedure is now complete. Click on Exit and Save and
then File|Save to store the results.
STEP 13 An effort should be made to confirm the accuracy of the fluid model against
any other known properties of the reservoir fluid e.g. field separator data when it
becomes available or the reservoir fluid density from RFT measurements.
D1 Introduction
This user guide is designed to explain how to use OPENSERVER to access PVTP from
external programs.
This document gives an overview of the uses of the OPENSERVER. It then gives full
details of how to use the feature in PVTP.
2 -37
3 - 37
D2 Overview
The OPEN SERVER feature is designed to provide an Open Architecture for
Petroleum Experts products. This allows PETEX programs to be directly accessed
and driven by other programs.
Specifically, the OPENSERVER will allow other programs (such as Excel, programs
written in Visual Basic) to access public functions in PETEX programs. These can
then be accessed by an external program in an automated procedure.
D2.2 GetValue
This function allows an external program to query a data value in a PETEX program.
It should be possible to obtain the value of any data item that can normally be viewed
using the user interface of the PETEX programs.
Each data item is defined by a unique text string.
D2.3 SetValue
This function allows an external program to change a data value in a PETEX
program. It should be possible to change the value of any data item that can normally
be viewed using the user interface of the PETEX programs.
It should be possible to build a data set from scratch using the SetValue function.
However, it is recommended that the user interface is still used to build parts of a
data set which do not require any automation. This will allow the normal quality
checking to take place which is a very important aspect of the model building
process.
Each data item is defined by a unique text string.
D2.4 DoCommand
This function allows calculations to be performed in a PETEX program. Each
calculation type is defined by a unique text string.
Only a subset of calculations available via the normal user interface of the PETEX
products are available using the OPENSERVER. In particular, the DoCommand
function supports those calculations which are applicable to automated use e.g. a
GAP prediction. However it generally does not support those calculations that require
the user interface for correct use e.g. MBAL graphical matching.
4 -37
D2.6 Automation
The OPENSERVER feature can be accessed using Automation. This is a Microsoft
Windows standard for communicating between programs.
The OPENSERVER is an Automation server. This means that the public functions can
be called from any program that can act as an Automation client.
There are many programs that can act as an Automation client and can therefore be
used to call the public functions in the PETEX programs. These include:
Any VBA macro. These macros are available in Excel, Access and many other
Microsoft products.
Visual Basic programs can be written to act as an Automation client and
therefore call the public functions.
C++ programs can also be written to act as an Automation client and therefore
call the public functions.
Many other products can act as Automation clients. Check their individual
documentation.
5 - 37
D3 Potential Uses
This section outlines some of the possible uses of the OPENSERVER. It is not an
exhaustive list but should give some idea of its possibilities.
6 -37
D3.5 Running
PETEX
programs
engineering software applications
with
other
The OPENSERVER can be used to run the PETEX programs in conjunction with other
software applications and exchange data between them. For example, a visual basic
program or batch file could be used to successively:
Run a process simulator to calculate a feed separator pressure
Set the separator pressure in GAP
Optimize the production system in GAP
Pass the GAP rates onto the process simulator
Run the process simulator and so on
7 - 37
D4 Support
The main strength of the OPENSERVER is that users are now free to develop their
own applications which utilise the public functions within PETEX products. However
this does mean that a user of the OPENSERVER will require more computing
knowledge than a user of the standard PETEX programs. This is particularly the case
where a user writes a client application in VBA or Visual Basic. The user is expected
to have (or be trained in) the requisite computing skills to write these client
applications. Petroleum Experts will not be able to undertake to train users in these
computing skills.
The boundary of the PETEX products and the users applications needs to be defined
with respect to support provided by Petroleum Experts of the OPENSERVER feature.
Firstly, as with normal support, a maintainance agreement between the user and
Petroleum Experts must be in place.
Unfortunately, Petroleum Experts will not be able to undertake development of VBA
macros, batch files or other OPENSERVER clients for a particular user. The strength of
the feature is to allow the user to implement these client applications without any
further input by Petroleum Experts.
Similarly Petroleum Experts will be unable to assist in fixing bugs in users VBA
macros, batch files or any other OPENSERVER client.
Petroleum Experts will undertake to support any user who can demonstrate (through
a simple fragment of a batch file or VBA macro etc) that a public function call to a
PETEX product fails to work correctly.
8 -37
"MBAL.MB.TANK[0].PRESSURE" - This will use the 0th tank in the list - this is
a zero based index. This is most likely to be used if we are iterating through
the list of tanks.
9 - 37
D5.2 Automation
This section describes how to access the public functions using Automation. This is
a Microsoft Windows standard (formally known as OLE Automation). This method
requires software which can act as an Automation client to call the public functions.
Probably the most commonly used example of such an Automation client that is
used in the engineering industry is the VBA macro language within Excel. We will
therefore demonstrate how the public functions are called by such macros the
same rules should extend to other Automation clients.
Rather than describing the functions in isolation, an example of an Excel VBA macro
is presented that uses all the available public functions. Each function within this
example can then be described.
11 - 37
MsgBox Server.GetErrorDescription(lErr)
Set Server = Nothing
End
End If
While Server.IsBusy(AppName) > 0
StartTime = Timer
EndTime = StartTime + 2
Do
CurrentTime = Timer
DoEvents
bLoop = True
Rem Check first for the case where we have gone over midnight
Rem and the number of seconds will go back to zero
If CurrentTime < StartTime Then
bLoop = False
Rem Now check for the 2 second pause finishing
ElseIf CurrentTime > EndTime Then
bLoop = False
End If
Loop While bLoop
Wend
lErr = Server.GetLastError(AppName)
If lErr > 0 Then
MsgBox Server.GetErrorDescription(lErr)
Set Server = Nothing
End
End If
End Sub
Function DoGAPFunc(Gv As String) As String
AppName = GAP
DoSlowCmd Gv
DoGAPFunc = DoGet("GAP.LASTCMDRET")
End Function
D5.2.2 Framework
There are only a few lines that need to be in an Excel macro to use the OPENSERVER
Firstly before using any of the public functions, you must declare an object through
which you will communicate with the PETEX programs:
Dim Server As Object
Next, you must connect the object to the OPENSERVER using the line:
Set Server = CreateObject("PX32.OPENSERVER.1")
Once the server is connected, you can use the Server object to call any number of
functions from any or all of the PETEX programs, e.g.:
Server.DoCommand(Command1)
Server.DoCommand(Command2)
Server.GetValue(Var1)
Once you have finished calling the public functions in your macro, you may close the
server object using the line:
Set Server = Nothing
D5.2.3 DoCommand
This function is used to perform calculations (and other functions such as file opening
and saving) in the PETEX programs. Only a subset of the calculations available
using the user interface are available. The calculations that are not supported are
often those that require some graphical interaction e.g. graphical history matching in
MBAL.
In the above example, the DoCommand function is handled by the macro subroutine
DoCmd(). It is used in the DoAll() subroutine to open the OIL.MBI file. The command
to be performed is determined by the input text string. In our example this is
MBAL.OPENFILE=C:\PETEX\SAMPLES\OIL.MBI which tells MBAL to open the
specified file name. Check the following product specific sections describing each
PETEX program for a list of possible commands.
The return value of DoCommand indicates any error status for the function call. If the
return value is zero then the command completed with no error. If the return value is
a positive number, an error occurred in the command and the number indicates the
nature of the error.
The DoCmd() macro subroutine checks the return value of DoCommand() and if a
problem is detected, it calls another PETEX public function called
GetErrorDescription(). This function returns a description of the error which can then
be displayed to the user of the macro.
Unless you have good reason to do otherwise, it is recommended that you reuse the DoCmd() macro subroutine in the example macro for all your own
applications as it already has error handling built in.
D5.2.4 SetValue
This function is used to set the value of a data item. It should be possible to change
most of the values that can normally be accessed via the user interface. Each
variable is identified by the unique text string.
In the above example, the SetValue function is handled by the macro subroutine
DoSet(). It is used in the DoAll() subroutine to change the value of the initial oil in
place to 250.0. The variable to be changed is determined by the first input text string.
The new value for the variable is passed in the second input text string.
This function expects the value to be in the units currently displayed in the user
interface. It is the responsibility of the user writing the macro to ensure that the
second text string contains a valid number if the data item is numerical.
Unlike the DoCommand public function, the SetValue function does not return an
error number. As can be seen in the example macro subroutine DoSet(), you must
call another public function, GetLastError(), to check if any error occurred. This will
return zero if the last public function call was successful or an error number if not.
Unless you have good reason to do otherwise, it is recommended that you reuse the DoSet() macro subroutine shown in the example macro for all your own
applications as it already has error handling built in.
13 - 37
D5.2.5 DoCommandAsync
This function is a variation of the DoCommand function. It is nearly always used in
conjunction with the IsBusy() function.
When a VBA macro is run, it executes and completes each line before moving onto
the next line. So when you call the DoCommand function for a long prediction, it may
take several minutes (or even hours) before the VBA can move onto the next line in
the macro.
Unfortunately, VBA was designed for use with simple functions that take only a few
seconds. If a function is called that takes more than one minute to complete, a
timeout error in Excel may occur depending on operating system, Excel version,
setup etc..
The DoCommandAsync function allows you to call functions that take a long time to
complete without any risk of timeouts in your VBA. When you call
DoCommandAsync, the OPENSERVER starts the calculation in the PETEX program
but lets the VBA carry immediatley on to the next line in the macro. This avoids the
timeout error in Excel.
Unfortunately it introduces another problem. What if the next line in the macro was a
call to the GetValue function to get the results of the calculation? The macro is likely
to try to get the calculated value before the calculation is finished! So the VBA still
needs some way of knowing when the calculation has finished.
Therefore it is usually necessary to append some VBA code after a call to
DoCommandAsync which loops until the calculation is finished. The inserted code
uses another function called IsBusy() to check if the calculation is finished.
This VBA code to do this is in the macro subroutine DoSlowCmd() in the example
macro. The code loops round until the IsBusy function returns a value greater than
zero. The only input argument is the name of the PETEX program in which the
calculation was called. Within the loop the code will wait 2 seconds before looping
again. It also calls the VBA function, DoEvents, which will allow other windows
program to work whilst the VBA is waiting for the calculation to finish.
Unless you have good reason to do otherwise, it is strongly recommended that
you re-use the DoSlowCmd() macro subroutine shown in the example macro
for all your own applications as it already has error handling built in as well as
the code to wait for the function to finish.
D5.2.6 GetValue
This function is used to get the value of a data item. It should be possible to query
most of the values that can normally be accessed via the user interface. Each
variable is identified by a unique text string.
In the above example, the GetValue function is handled by the macro function
DoGet(). It is used in the DoAll() subroutine to get the value of the first oil rate in the
prediction tank results. The variable to be retrieved is determined by the input text
string. The return value of the function call is another text string containing the value
of the data item. If the value is numerical data, the return text string will contain the
formatted number this avoids having different functions for different data types. The
value will be returned in the units currently displayed in the user interface.
As with the SetValue function, you must use the GetLastError function to check for
errors in the SetValue function. Note that in the macro subroutine DoGet(), we use a
different function to get the actual error message GetLastErrorMessage(). This
function returns the error message corresponding to the last public function call for
the application specified by the input argument. If the last public function call was
successful, it will return a blank error message.
Unless you have good reason to do otherwise, it is recommended that you reuse the DoGet() macro function shown in the example macro for all your own
applications as it already has error handling built in.
15 - 37
The output PXR file from the above batch file is as follows:
250 ! MBAL.MB.TANK.OOIP
First oil rate =
16516.8 bbls/day
End of example batch file output
The second formatting command is PRINTTAB. This command simply writes a tab
character to the PXR file.
D5.3.3 DoCommand
This function is used to perform calculations (and other functions such as file opening
and saving) in the PETEX programs. Only a subset of the commands available using
the user interface are available. The commands that are not supported are those that
require some graphical interaction e.g. graphical history matching in MBAL.
In the example, DoCommand is used twice. The first time it is used to open a data
file. The second time it is used for running a prediction. The text string after the
DoCommand statement describes the command to be performed.
The text string always starts with the name of the program in which the calculation is
to be done. The rest of the text string describes the command check the following
sections describing each PETEX program for a list of possible calculations.
There is no output to the PXR file for this command. If there is any error, a message
will be written to PXBATCH.LOG.
Note that the abbreviation dc can be used in the batch file instead of DoCommand.
D5.3.4 SetValue
This function is used to set the value of a data item. It should be possible to change
most of the values that can normally be accessed via the user interface.
In the example we use SetValue once to change the original oil in place to 250.0.
The first text string after SetValue defines the variable to be changed. The second
17 - 37
text string defines the new value of the variable. This function expects the value to be
in the units currently displayed in the user interface.
There is no output to the PXR file for this command. If there is any error, a message
will be written to PXBATCH.LOG.
Note that the abbreviation sv can be used in the batch file instead of SetValue.
19 - 37
The file commands are demonstrated in the OPENPVT.XLS sample Excel file.
Each file can contain multiple streams. Each stream contains Base, Runtime and
Calculation data. Individual streams can be accessed by way of a zero-based index
or the stream name.
A typical string to get a piece of stream data would be:
PVT.STREAMBASE[{WellStream}].COMPOSITION[1]
This accesses the composition of the second component within the stream called
WellStream. Details of stream contents are described in Sections 8.4 and 8.5.
The stream commands are demonstrated in the OPENPVT.XLS sample Excel file.
Streams can be manipulated using the following:
CREATE_EMPTY_STREAM
SET_ACTIVE_STREAM
COPY_STREAM
COPYSTREAMBASE_TO_STREAMRUN
COPYSTREAMRUN_TO_STREAMBASE
D6.3 BLACKOIL
This section deals with access to the input data and calculations within the Blackoil
model of the PVTP program. Use of the model and data is demonstrated within the
OPEN_BLACKOIL_CALC.XLS sample Excel file.
The setting of the file to a blackoil model is done within the options section with the
DoSet command.
"PVT.OPTIONS.METHOD with value BLACKOIL"
The type of model is set by
PVT.OPTIONS.FLUIDTYPE to OIL,GAS or CONDENSATE
There is only one set of blackoil data per file so no stream indication is required. To
obtain a piece of blackoil data the command string would be:
"PVT.BLACKOIL.SEPPRESS".
CORRPB
CORRUO
CORRUG
SOLGOR
OILGRAV
GASGRAV
SEPPRESS
SEPTEMP
SEPGOR
SEPGASGRAV
TANKGOR
TANKGASGRAV
CGR
H2S
CO2
N2
DEWPOINT
RESTEMP
RESPRESS
WATER_SALINITY
PVT_MATCHED
21 - 37
D6.4 OPTIONS
This section deals with access to common options within the active PVTP file. The
options deal with many aspects of how and where models are used, which
calculations are carried out etc.
The Options sheet within the the OPENPVT.XLS sample Excel file, gives an
indication of how these data points can be accessed.
A typical DoSet command would be
" PVT.OPTIONS.VISCMETHOD with value LOHRENZ sets the model for EoS
calculations to Lohrenz Bray Clark.
The options available include:
METHOD
FLUIDTYPE
SEPARATORTYPE
EOSTYPE
COMPANY
FIELD
LOCATION
PLATFROM
ANALYST
COMMENT
CALC_TYPE
CALC_TYPE
VISCMETHOD
USE_VOLSHIFT
CALC_PSAT_IN_CMPGRAD
CALC_PSAT_IN_CCE
CALC_THERMALCOND_IN_
CCE
USE_ADV_PHASE_DETEC
TION
SHOW_CALCS
OPTIMISE_REGRESSION
OPTIMISE_CVD_REGRESS
ION
REGRESS_MAXSTEPS
PHASE_CALC_MAXITER
PHASE_CALC_MINPRESS
PHASE_CALC_VAPTEST
OVERRIDE_PHASE_CALC
FIXED_PHASE
FORTLIB_ITERATIONS
FORTLIB_PRECISION
SHOWPLOT_POINTS
CALC_GOR_CORRECTED_
WITH_SEPS
REGR_GOR_CORRECTED
_WITH_SEPS
TARGET_GOR_CORRECTE
D_WITH_SEPS
USE_INDIVIDUAL_SEP_CO
RRECTION
VOLSHIFT_D
VOLSHIFT_E
ECLIPSE_OILTYPE
ECLIPSE_GASTYPE
ECLIPSE_WATERTYPE
WAXTEMP_NUMSTEPS
WAXTEMP_MINTEMP
WAXTEMP_MAXTEMP
WAXTEMP_TESTSOLIDS
WAX_MODEL
HYDRATE_METHOD
HYDRATE_INHIBITOR
HYDRATE_USE_INHIBITOR
HYDRATE_USE_INHIBITOR
SLIMTUBE_TEST_RECOVE
RY
SLIMTUBE_TEST_POREVO
L
PHASE_ENV_THETA_VALU
ES
CREATE_MAX_ITERATION
S
CREATE_GOR_END_TEST
CREATE_PSAT_END_TEST
CREATE_PSAT_PHASE
23 - 37
PVT.STREAMBASE[{WellStream}].CRITTEMP[8]
This accesses the critical temperature of the ninth component within the stream
called WellStream.
The stream variables available include:
STREAMNAME
STREAMCOMMENT
NUMCOMPONENTS
NUMPSEUDOS
RESTEMP
REFPRESS
REFDEPTH
STANDPRESS
STANDTEMP
WATERSALINITY
COMPONENT[x]
COMPONENT_LONG[x]
COMPONENT_TYPE[x]
COMPONENT_INDEX[x]
COMPOSITION[x]
CRITTEMP[x]
CRITPRESS[x]
CRITPVOL[x]
ACCENFACT[x]
OMEGAA[x]
OMEGAB[x]
MOLEWT[x]
PARACHOR[x]
BOILPT[x]
SPECGRAV[x]
RHOAPP[x]
VOLSHIFTC[x]
VOLSHIFTS[x]
ZRACK[x]
ZCRIT[x]
MELTPT[x]
HEATFUSION[x]
SOLPAR[x]
SOLPARSOLID[x]
AROMATIC_PERCENT[x]
BINARY_INT_COMPS [x][y]
BINARY_INT_COMPS [x][y]
RECOM_RESULT_COMP [x]
RECOM_STOCKOIL_COMP [x]
RECOM_STOCKGAS_COMP [x]
RECOM_GAS_SEP_COMP [sep][x]
RECOM_SEP_GOR [sep]
RECOM_SEP_TEMP[sep]
RECOM_STOCKOIL_DENSITY
RECOM_GAS_DENSITY
RECOM_GAS_GRAVITY
RECOM_STOCKTANK_GOR
RECOM_STOCKTANK_TEMP
PSEUD_ARCH_COMPONENT[x]
PSEUD_ARCH_COMPOSITION[x]
PSEUD_ARCH_MWT[x]
PSEUD_ARCH_TCRIT[x]
PSEUD_ARCH_PCRIT[x]
PSEUD_ARCH_VCRIT[x]
PSEUD_ARCH_AFACT[x]
PSEUD_ARCH_TBOIL[x]
MIXCRITTEMP
MIXCRITPRESS
CRICONDENBAR
CRICONDENTHERM
BPT_CORRELATION
AFTCPC_CORRELATION
BIC_PURE_CORRELATION
BIC_PSEUDO_CORRELATION
QUALITY_PLOT_VAP_COMP[x]
25 - 37
27 - 37
CALC_CCE_MIN_TEMP
CALC_CCE_MAX_PRESS
CALC_CCE_MIN_PRESS
CALC_DIFF_PRESSURES[n]
CALC_DIFF_TEMP[0]
CALC_COMPOS_PRESSURES[n]
CALC_COMPOS_TEMP[0]
CALC_CVD_PRESSURES [n]
CALC_CVD_TEMP[0]
CALC_DEPL_PRESSURES[n]
CALC_DEPL_TEMP[0]
CALC_SWELL_TEMPS[n]
CALC_SWELL_COMPS[n]
CALC_SWELL_VOLS[n]
29 - 37
31 - 37
The first section reflects the CCE input dialog, sending the mode the calculation is to
operate with and the temperatures| pressures to be used. All that is required then is
to clear any existing calculation flags and to initiate the command using the keyword
from the list above. Note that the calculation has been set up to do one stream at a
time. To do multiple streams call the command again with a different stream
index|name.
Once the calculation is complete, any of the columns calculated can be accessed as
shown in the code fragment below:
'Find the number of results produced during the calculation
iNumRes = DoGetCheck("PVT.CALCUL[" + CStr(iStream) + "].CALC_NUM_RESULTS")
'Find the number of columns calculated for CCE
iNumCols = DoGetCheck("PVT.CALC_COLUMN_TOTAL")
For iCol = 0 To iNumCols - 1
'Get column names
Worksheets(Sheet).Cells(iLine, iCol + 1) = DoGet("PVT.CALC_COLUMN_NAME[" +
CStr(iCol) + "]")
'Get column units
Worksheets(Sheet).Cells(iLine
+
1,
iCol
+
1)
=
DoGet("PVT.CALC_COLUMN_UNIT[" + CStr(iCol) + "]")
For iRes = 0 To iNumRes - 1
'get all column values
Worksheets(Sheet).Cells(iLine + iRes + 2, iCol + 1) = DoGet("PVT.CALCUL[" +
CStr(iStream) + "].CALC_COLUMN_VALUE[" +
CStr(iRes) + "][" + CStr(iCol) +
"]")
Next
Next
The calculation results form a table which is normally displayed in PVTP results
dialog.The first step is to find the number of lines calculated using
CALC_NUM_RESULTS. The number of columns available for this calculation can
then be retrieved using CALC_COLUMN_TOTAL. Individual column names and units
are found by calls to CALC_COLUMN_NAME and CALC_COLUMN_UNIT with a
zero-based
index
for
the
column
number.
Repeated
calls
to
CALC_COLUMN_VALUE is then used to fill in the table.
33 - 37
D6.8.1 Analysis
Analysis is available with most calculations. This data can be retrieved using code
like the segment below:
' Get analysis number iRes
Worksheets(Sheet).Cells(4, 2) = iRes
' display the analysis block temperature and pressure
iErr
=
DisplayCellData("Temperature",
DoGetCheck("PVT.CALCUL["
+
CStr(iStream)
+
"].CALC_ANALYSIS[" + CStr(iRes) + "].STAGE_TEMP"))
iErr = DisplayCellData("Pressure", DoGetCheck("PVT.CALCUL[" + CStr(iStream) + "].CALC_ANALYSIS[" +
CStr(iRes) + "].STAGE_PRESS"))
Worksheets(Sheet).Range("A10:E200").ClearContents
'find number of components
iNumComp = DoGetCheck("PVT.STREAMRUN[" + CStr(iStream) + "].NUMCOMPONENTS")
iLine = 10
For icomp = 0 To iNumComp - 1
' get component name liquid composition vapour composition and K values
Worksheets(Sheet).Cells(iLine + icomp, 1) = DoGet("PVT.STREAMRUN[" + CStr(iStream) +
"].COMPONENT[" + CStr(icomp) + "]")
Worksheets(Sheet).Cells(iLine + icomp, 2) = DoGetCheck("PVT.CALCUL[" + CStr(iStream) +
"].CALC_ANALYSIS[" + CStr(iRes) + "].LIQUID_COMPOSITION[" + CStr(icomp) + "]")
Worksheets(Sheet).Cells(iLine + icomp, 3) = DoGetCheck("PVT.CALCUL[" + CStr(iStream) +
"].CALC_ANALYSIS[" + CStr(iRes) + "].VAPOUR_COMPOSITION[" + CStr(icomp) + "]")
Worksheets(Sheet).Cells(iLine + icomp, 4) = DoGetCheck("PVT.CALCUL[" + CStr(iStream) +
"].CALC_ANALYSIS[" + CStr(iRes) + "].KVALUES[" + CStr(icomp) + "]")
Next
iLine = iLine + iNumComp
' Get Extra data
iErr
=
DisplayCellData("Percent
Vapour",
DoGetCheck("PVT.CALCUL["
+
CStr(iStream)
+
"].CALC_ANALYSIS[" + CStr(iRes) + "].VAP_PERCENT"))
iErr
=
DisplayCellData("Percent
Liquid",
DoGetCheck("PVT.CALCUL["
+
CStr(iStream)
+
"].CALC_ANALYSIS[" + CStr(iRes) + "].LIQ_PERCENT"))
iErr = DisplayCellData("Oil Gravity", DoGetCheck("PVT.CALCUL[" + CStr(iStream) + "].CALC_ANALYSIS["
+ CStr(iRes) + "].OIL_GRAVITY"))
The individual analysis blocks are accessed via the label CALC_ANALYSIS[n] where
n is a zero-based index. Data is devided into
identification eg. STAGE_TEMP or STAGE_DEPTH
component data such as vapour composition K values etc. or
extra data such as Oil_GRAVITY , TOTAL_GOR etc.
The data available is listed below:
STAGE_TEMP
STAGE_PRESS
STAGE_DEPTH
TOTAL_COMPOSITION[n]
VAPOUR_COMPOSITION[n]
WATER_COMPOSITION[n]
LIQUID_COMPOSITION[n]
LIQUID_COMPOSITION2[n]
LIQUID_COMPOSITION3[n]
LIQUID_COMPOSITION4[n]
LIQUID_COMPOSITION5[n]
Analysis Temperature
Analysis Pressure
Analysis Depth
Total Composition for
component[n]
Vapour Composition for
component[n]
Waterl Composition for
component[n]
Liquid Composition for
component[n]
Liquid 2 Composition for
component[n] - Multiphase
Liquid 3 Composition for
component[n] - Multiphase
Liquid 4 Composition for
component[n] - Multiphase
Liquid 5 Composition for
component[n] - Multiphase
All the work of flash is done within the STREAMRUN structure and as such is done
with a temporary, intermediate type of data. The sequence followed is as follows.
Set up the compositions and properties within the STREAMRUN structure
Send the required flash temperature and pressure to RUNTEMP and
RUNPRESS respectively
Perform flash using the FLASH command
Read the vapour and liquid compositions and K values calculated from
STREAMRUN
Read the other calculated data eg. Vapour fraction,z factors phase densities
etc. from STREAMRUN .
A Visual Basic file (FlashDemo.*) which gives illustrates doing a flash is also
distributed with PVTP.
D6.10
35 - 37
The small separator calculation is called from the small calculation dialog within
PVTP. The inputs to it are the same as the larger separator calculation, but the
calculation has been slimmed down to run faster and give a smaller number of
D6.11
The Saturation Pressure at Reference calculation is called from the small calculation
dialog within PVTP. The use of this calculation is illustrated in
OPEN_CCE_PSAT_CALC.XLS from which the code fragment below is taken:
SendCellData "PVT.STREAMRUN[" + CStr(iStream) + "].RUNTEMP"
DoCmd "PVT.SINGLE_PSAT[" + CStr(iStream) + "]"
iLine = 7
iErr = DisplayCellData("PSAT", DoGetCheck("PVT.STREAMRUN[" +
CStr(iStream) + "].RUNPRESS"))
The use of this calculation is very styraightforward. Place the temperature required in
RUNTEMP. Then call the calculation using the SINGLE_PSAT command. The
resulting saturation pressure will be placed in the RUNPRESS variable.
D6.12
Recombination Calculations
The PVTP program contains 2 recombination calculations whch are accessed via the
Data|Select Components dialog. The 2 modes available are:
Simple: where compositions of 1 separator vapour are combined with stock tank oil
ans gas to give the recombined composition and
Extended: where up to 5 separator compositions can be used.
Both modes can be run via the OPENSERVER using the following commands.
RECOMBINE_SIMPLE[n]
RECOMBINE_COMPLEX[n]
COPY_RECOMBINE_COMPOSITION
It should be noted that the recombination data is held within the STREAMBASE
structure. If you wish to calculate with this composition it must be transferred to the
STREAMRUN area. An example of how the recombine data is read and set is
distributed in the OPEN_RECOMBINATION.XLS sample file. The code segment
below is taken from this file:
DoSet "PVT.STREAMBASE[" + CStr(iStream) + "].RECOM_STOCKTANK_GOR",
CStr(ThisGOR)
DoCmd "PVT.SET_ACTIVE_STREAM[" + CStr(iStream) + "]"
DoCmd "PVT.RECOMBINE_SIMPLE[" + CStr(iStream) + "]"
DoCmd "PVT.COPY_RECOMBINE_COMPOSITION[" + CStr(iStream) + "]"
DoCmd "PVT.COPYSTREAMBASE_TO_STREAMRUN"
Temp = Worksheets(Sheet).Cells(10, 7)
DoSet "PVT.STREAMRUN[" + CStr(iStream) + "].RUNTEMP", CStr(Temp)
DoCmd "PVT.SINGLE_PSAT[" + CStr(iStream) + "]"
Press = DoGet("PVT.STREAMRUN[" + CStr(iStream) + "].RUNPRESS")
37 - 37
D6.13
The allocation calculation is called from the stream menu in PVTP. The use of this
calculation is illustrated in OPEN_ALLOCATE_BLEND.XLS from which the code
fragment below is taken:
Worksheets("Allocate").Cells(3, 4) = DoGet("PVT.STREAMBASE[" + CStr(iStream) +
"].STREAMNAME[0]")
Worksheets("Allocate").Cells(4, 4) = DoGet("PVT.STREAMBASE[" + CStr(iStream2) +
"].STREAMNAME[0]")
iLine = 10
SendCellData "PVT.CALCUL[" + CStr(iStream) + "].UTILS_TARGETGOR"
DoSet "PVT.CALCUL[" + CStr(iStream) + "].CALC_SECOND_STREAM", iStream2
iLine = 12
SendCellData "PVT.OPTIONS.CREATE_MAX_ITERATIONS"
SendCellData "PVT.OPTIONS.CREATE_GOR_END_TEST"
DoCmd "PVT.CALCULATE_BLEND_GOR[" + CStr(iStream) + "]"
DoCmd "PVT.UPDATEDISPLAY"
iLine = 31
iErr = DisplayCellData("Mole Percent Blend Stream 1", DoGet("PVT.STREAMRUN[" +
CStr(iStream) + "].MOLE_PERCENT1_BLEND_GOR"))
iErr = DisplayCellData("Mole Percent Blend Stream 2", DoGet("PVT.STREAMRUN[" +
CStr(iStream) + "].MOLE_PERCENT2_BLEND_GOR"))
iErr = DisplayCellData("Weight Percent Blend Stream 1", DoGet("PVT.STREAMRUN[" +
CStr(iStream) + "].WEIGHT_PERCENT1_BLEND_GOR"))
iErr = DisplayCellData("Weight Percent Blend Stream 2", DoGet("PVT.STREAMRUN[" +
CStr(iStream) + "].WEIGHT_PERCENT2_BLEND_GOR"))