Documente Academic
Documente Profesional
Documente Cultură
January, 2011
2
Copyright Notice
The copyright in this manual and the associated computer program are the property of Petroleum Experts
Ltd. All rights reserved. Both, this manual and the computer program have been provided pursuant to a
Licence Agreement containing restriction of use.
No part of this manual may be reproduced, transmitted, transcribed, stored in a retrieval system, or translated
into any language, in any form or by any means, electronic, mechanical, magnetic, optical or otherwise, or
disclose to third parties without prior written consent from Petroleum Experts Ltd.
IPM Suite, GAP, PROSPER, MBAL, PVTP, REVEAL, RESOLVE, IFM and OpenServer are trademarks of
Petroleum Experts Ltd.
Microsoft (Windows), Windows 2000, Windows XP and Windows Vista are registered trademarks of the
Microsoft Corporation
The software described in this manual is furnished under a licence agreement. The software may be used or
copied only in accordance with the terms of the agreement. It is against the law to copy the software on any
medium except as specifically allowed in the license agreement. No part of this documentation may be
reproduced or transmitted in any form or by any means, electronic or mechanical, including photocopying,
recording, or information storage and retrieval systems for any purpose other than the purchaser's personal
use, unless express written consent has been given by Petroleum Experts Limited.
Address:
email: edinburgh@petex.com
Internet: www.petex.com
Table of Contents
0
I
II IPM Tr aining Co ur se No tes
1 Problem
...................................................................................................................................
21: Complex Horizontal Well Modelling 57
1.1 Objectives
Overall Objectives:
Agenda:
Day 1
Introduction to integrated production system and overall approach
Introduction to PROSPER
Pressure loss in wellbore
Importance of PVT
VLP correlations theory
Building a wellbore model, Matching PVT and flow correlations, and generation of
lift curves for output to GAP or simulator.
Day 2
Inflow performance models
Gas lift design
ESP Design
Use of Quick-look for gas lift
Day 3
Introduction to MBAL
Running and matching prediction, importing VLP's and IPR's from PROSPER
Introduction to Multi-PVT MBAL
Day 4
Introduction to GAP
Building surface network model- linking PROSPER well models
Generation of surface performance curves
Linking PROSPER, MBAL and GAP for full field optimisation and forecasting
Day 5
Workshop
The following elements need to be considered when studying the behaviour of such a
system:
For a given reservoir how much of oil / gas is recovered at separator level depends
on the facilities that connect the two.
Thus any strategy designed to maximise / optimise the oil and gas recovery of the
field requires simultaneous modelling of the reservoir, facilities and the separator.
Decision making process should be based on how these components interact with
each other.
This type of model could be used to fulfil different objectives such as:
Decision making process should be based on how these components interact with
each other.
Production Allocation
Maintenance Planning
January, 2011
IPM Course - Introduction 3
The Petroleum Experts toolkit is designed to build and study a complete integrated model.
The following tools are used for the different modelling aspect:
The following sketch is drawn to explain how these tools interact with each other.
RESOLVE, IPM controller, establishing the link between the IPM suite and third-party
tools.
IFM is a tool that provides the engineers with the ability to keep these Integrated
Models Valid and perform the various tasks (one of which is rate allocation for
instance) through pre-defined workflows that the engineers can follow.
January, 2011
IPM Course - Introduction 5
Then we will model each component of the system, the wells, the reservoirs and the
gathering network in a sequential manner.
At each stage we will be adding more information that may be available to us and see the
value of the added information.
At the end, we should be capable to use the field scale integrated model, to study the
response of our total system.
We will start by drawing the simple system we want to model and then proceed in a
sequential manner. The system sketch is given in below.
Also, in order to keep track of what we will be doing it is better to use the following directory
structure.
Objective:
This problem is designed to:
Given PVT, IPR and well completion data, calculate the flow rate for this naturally
flowing oil well if the flowing well head pressure is 450 psig.
Dataset:
Separator Single-Stage
EQUIPMENT DATA
DEVIATION SURVEY
January, 2011
PROSPER - Wellbore Modelling Exercises 7
0 0
1000 1000
1500 1500
1954 1950
2262 2250
3077 3000
8993 8000
12672 11000
12960 11200
13435 11500
DOWNHOLE EQUIPMENT
Label Equipment MD (feet) ID (inches) Roughness (inches)
Type
Wellhead Xmas Tree 0 N/A N/A
Tubing Tubing 1100 3.992 0.0006
Safety Valve SSSV 1100 3.6 N/A
Tubing Tubing 13000 3.992 0.0006
Casing Casing 13400 6.13 0.0006
GEOTHERMAL GRADIENT
Measured depth Temperature
(feet) oF
0 60
1000 50
13400 250
Method PI Entry
Water Cut 0 %
Total GOR 800.0 SCF/STB
Productivity Index 10 STB/day/psi
Compaction Permeability Reduction No
Relative Permeability No
RESULTS
January, 2011
PROSPER - Wellbore Modelling Exercises 9
Objective:
This problem is designed to:
Given PVT, IPR, well completion data and surface pipeline, calculate the flow rate for
this naturally flowing oil well if the downstream pressure at the delivery point (here
called Manifold, NOT well head) is 450 psig.
Dataset:
Separator Single-Stage
EQUIPMENT DATA
DEVIATION SURVEY
0 0
1000 1000
1500 1500
1954 1950
2262 2250
3077 3000
8993 8000
12672 11000
12960 11200
13435 11500
Note: The zero depth of the deviation survey refers to the MSL /rig depth.
PIPELINE DATA
Pipeline ID 4
Ambient Temp. 55 F
Overall Heat Transfer Coefficient 8.5 BTU/h/ft2/F
DOWNHOLE EQUIPMENT
January, 2011
PROSPER - Wellbore Modelling Exercises 11
GEOTHERMAL GRADIENT
Measured depth Temperature
(feet) oF
0 60
1000 50
13400 250
PROSPER requires the user to enter the temperature at the well head
Method PI Entry
RESULTS
January, 2011
PROSPER - Wellbore Modelling Exercises 13
Objective:
This is a review exercise of how to build well bore models. The input data is given
below. It is required to calculate the Oil Rate, FWHP, FWHT and FBHP for two cases,
one case considering the flow line and a second case without considering the flow
line.
Dataset:
Separator Single-Stage
Solution GOR 700.0 (SCF/STB)
Oil Gravity 42.00 (API)
Gas Gravity 0.80 (sp. Gravity)
Water Salinity 200000 (ppm)
EQUIPMENT DATA
DEVIATION SURVEY
Measured Depth (feet) True Vertical Depth (feet)
0 0
100.0 100.0
2500.0 2480.0
6500.0 6300.0
15000.0 14000.0
Note: The zero depth of the deviation survey refers to the mean sea level depth.
PIPELINE SKETCH
DOWNHOLE EQUIPMENT
Label Measured Depth Inside Roughness
Feet Diameter (inches) (inches)
Xmas Tree 100.0
Tubing 14000.0 3.96 0.0006
Casing 15000.0 6.00 0.0006
GEOTHERMAL GRADIENT
Measured depth Temperature
(feet) oF
0 60
100 50
15000.0 200
Overall Heat Transfer Coefficient 8.0 (BTU/h/ft2/F)
PIPELINE DATA
Pipeline ID 4
Ambient Temp. 50 F
Overall Heat Transfer Coefficient 8.5
January, 2011
PROSPER - Wellbore Modelling Exercises 15
Method PI Entry
Water Cut 20 %
Total GOR 700.0 SCF/STB
Productivity Index 15.0 STB/day/psi
RESULTS
Objective:
This problem is designed to:
Enter the PVT data, match the black oil correlation to the PVT lab data and
recompute the flow rate for this naturally flowing oil well if the flowing well
head pressure is 450 psig.
Dataset:
The PVT calculation method is identical for all reservoir fluid types (i.e. oil and water,
condensate or gas). The choice of fluid type affects the choice of IPR and VLP models
as well as the range of available sensitivity variables.
Temp. Pressure Bubble Point Gas Oil Ratio Oil FVF Oil Viscosity
F Psig (psig) (SCF/STB) RB/STB cP
250 3600 3600 800 1.25 0.31
RESULT
January, 2011
PROSPER - Wellbore Modelling Exercises 17
Objective:
This problem is designed to:
Enter the PVT data, match the black oil correlation to the PVT lab data and
recompute the flow rate for this naturally flowing oil well if the flowing well
head pressure is 450 psig.
Compare the results with Problem 2 (un-matched PVT case) and Problem 4
(matched with erroneous oil FVF).
Dataset:
Temp. Pressure Bubble Point Gas Oil Ratio Oil FVF Oil Viscosity
F Psig (psig) (SCF/STB) RB/STB cP
250 3600 3600 800 1.456 0.31
RESULT
January, 2011
PROSPER - Wellbore Modelling Exercises 19
Objective:
This problem is designed to:
Use the calibrated correlation to predict the well rate for future operating
Enter the PVT data, match the black oil correlation to the new PVT lab data,
Match the well test data with the most suitable VLP correlation
Use the calibrated model to predict the oil rate if the water cut increases to
35% while everything else remains unchanged.
Dataset:
Temp. Pressure Bubble Point Gas Oil Ratio Oil FVF Oil Viscosity
F Psig (psig) (SCF/STB) RB/STB cP
250 3600 3600 800 1.456 0.31
January, 2011
PROSPER - Wellbore Modelling Exercises 21
RESULT
Parameters Value
Objective:
The following dataset is available:
Build a PROSPER well model. Then, build a PVT model that reproduces the measured
data using PROSPER.
Use PROSPER to quality check the down-hole pressure data and then select a pressure
drop correlation based on it. Use this calibrated well bore model to find the flowing
BHP, WHT and production rates.
Dataset:
PVT DATA
Separator Two-Stage
EQUIPMENT DATA
January, 2011
PROSPER - Wellbore Modelling Exercises 23
DEVIATION SURVEY
Measured Depth (feet) True Vertical Depth (feet)
0 0
1856.96 1843.83
11358.30 8307.09
20544.60 12322.80
22385.20 12821.50
23845.10 13566.30
DOWNHOLE EQUIPMENT
Label Measured Depth Inside Roughness
Feet Diameter (inches) (inches)
Xmas Tree 85.3
Tubing 1857 4.13 6 E-5
SSSV 3.81
Tubing 11423.9 4.13 6 E-5
Restriction 3.75
GEOTHERMAL GRADIENT
Measured depth Temperature
(feet) oF
85.3 68
23218.5 313
Method Vogel
Water Cut 0 %
Total GOR 2800 SCF/STB
TEST DATA
RESULT
Parameters Value
Liquid rate if WHP = 450 psig and water cut = 35% (STB/
d):
January, 2011
PROSPER - Wellbore Modelling Exercises 25
Objective:
Use one of the well models generated previously, run a set of sensitivities on it and
compare the results obtained.
Dataset:
Part I
At what water cut will the well die (WHP = 450 psig) at the following reservoir
pressures?
5200 psig
4000 psig
Reservoir Pressure :
5200, 4000 psig
RESULT
Part II
Find the production rate at the two specific cases below (WHP=450 psig)
RESULT
January, 2011
PROSPER - Wellbore Modelling Exercises 27
Case 1 Case 2
Dataset:
Method Darcy
RESULT
AOF STB/day
January, 2011
PROSPER - Well Inflow Modelling Exercises 29
Dataset:
VARIABLES
RESULT
January, 2011
PROSPER - Well Inflow Modelling Exercises 31
3.3 Problem 11: Use PROSPER to build a Karakas and Tariq skin
Model
Objective:
A slanted well is going to be drilled to perforate the same pay as Well1.
Use the Karakas and Tariq model in PROSPER to model various components of skin
and analyse their contribution to total skin.
Dataset:
Method Darcy
Karakas and Tariq has been found to give good results in many field applications and is
explained here.
A sketch outlining the main geometric variables is shown below
January, 2011
PROSPER - Well Inflow Modelling Exercises 33
Penetration is the proportion of the total reservoir thickness that is completed. (e.g. a
200 ft thick reservoir with 100 ft of perforations would have a Penetration of 0.5)
Deviation skin is calculated using Cinco-Ley's method, and is therefore valid up to 75
degrees deviation.
The calculation is based upon the paper by Cinco-Ley, H., Ramey, Jr., H.J. and Miller, F.G.:
"Pseudo-Skin Factors for Partially-Penetrating Directionally-Drilled Wells", SPE 5589
presented at 50th Annual Fall Meeting of SPE of AIME, Dallas, TX, September 28 - October
1, 1975
RESULT
Dataset:
Gravel pack permeability (Enter the in-situ permeability for the gravel)
Perforation diameter (Diameter of perforation tunnel)
Shots per foot
Gravel pack length (Distance from the screen O.D. to the sand face)
Perforation interval (This affects the flow velocity in the perforations only)
Perforation efficiency (Proportion of perforations that are open and effective)
INPUT DATA
January, 2011
PROSPER - Well Inflow Modelling Exercises 35
Method Darcy
RESULT
What was the AOF in stb/d prior to the gravel pack installation?
With gravel pack, how much gravel pack dP is lost across the gravel if
the well produces 10,000 STB/d?
With gravel pack, what is the velocity in ft/second of the fluid at the
casing for a WHP of 350 psig:
Dataset:
1.1. PVT
From the discovery well, a gas sample was taken and analysed. The gas composition is:
January, 2011
PROSPER - Well Inflow Modelling Exercises 37
2. Questions
Question No.1:
Assuming a well head flowing pressure of 3000 psig, calculate the gas rate to be expected
with the fluid and reservoir parameters given above.
Answer:MMscft/day
Question No.2:
Is it possible to increase the performance of the well by selecting a different tubing size?
Which tubing size can be recommended?
Tubing Size (ID) available are: 2.9, 3.5, 3.9, 4.8, 5.5
Modify the model to take into account the tubing size that has been selected.
Question No.3:
If we take into account the skin caused by the perforations, how much would the well
productivity be affected assuming the WHP of ?
Skin Calculation:
Answer:.MMscft/day.
Question No.4:
If a gravel pack screen is used, by how much will the productivity of the well be affected
assuming the same WHP as Question 1?
Gravel Pack Permeability (mD) 10000 (5), 20000 (10), 35000 (15) *
Gravel Pack Length 2
Perforation Efficiency 80%
(* The number in brackets corresponds to the R value for the gravel pack)
Which Gravel Pack Permeability has to be selected in order to maximise the productivity of
the well?
Question Nr.5:
After drilling and completing this well (with the gravel pack selected), a test was made and the
following test data are available:
January, 2011
PROSPER - Well Inflow Modelling Exercises 39
Select the Correlation which best represents pressure losses in the well and match it to the
test data. Then determine if the IPR model used is representative of the well and determine
the most likely cause of the deviation.
Answer:
The . Flow Correlation was selected.
3.6 Problem 14: Building IPR Model for Horizontal well with closed
boundaries.
Objective:
Use PROSPER to build Horizontal Well inflow in close boundary rectangular system
and find the AOF. Find the effect of vertical permeability on inflow.
Dataset:
This model is based on the work of Kuchuk and Goode. The inflow model used here
assumes that the horizontal well is draining a closed rectangular drainage volume with
sealing upper and lower boundaries. The well can be placed anywhere in the drainage region.
Pressure drops along the well bore itself are not taken into account.
January, 2011
PROSPER - Well Inflow Modelling Exercises 41
RESULTS
0.0083 165500
0.015 199400
0.030 242100
0.100 316700
January, 2011
PROSPER - Well Inflow Modelling Exercises 43
Dataset:
PVT DATA
Separator Single-Stage
EQUIPMENT DATA
DEVIATION SURVEY
Measured Depth (feet) True Vertical Depth (feet)
0 0
1856.96 1843.83
11358.30 8307.09
20544.60 12322.80
22385.20 12821.50
23845.10 13566.30
DOWNHOLE EQUIPMENT
GEOTHERMAL GRADIENT
Measured depth Temperature
(feet) oF
0 68
23218.5 313
January, 2011
PROSPER - Well Inflow Modelling Exercises 45
Layer 1 Layer 2
Layer Pressure (psi) 7785.3 7800.2
Layer Height (ft) 100 150
Layer Skin 0 1
Gas Gravity 0.798 0.803
Oil Gravity (API) 39 39
CGR (STB/MMSCF) 5 6
WGR (STB/MMSCF) 0 0
Layer Permeability (mD) 12 35
Drainage Area (acre) 500 500
Dietz Shape factor 31.6 31.6
Wellbore Radius (ft) 0.354 0.354
Once the model is built, determine what is the well overall production and the
contribution from each layer when the wellhead pressure is 3000 psi.
RESULTS
Dataset:
January, 2011
PROSPER - Well Inflow Modelling Exercises 47
Layer 1 Layer 2
Layer Pressure (psi) 7785.3 7800.2
Layer Height (ft) 100 150
Layer Skin 0 1
Gas Gravity 0.798 0.803
CGR (STB/MMSCF) 5 6
WGR (STB/MMSCF) 0 0
Layer Permeability (mD) 12 45
Drainage Area (acre) 500 500
Dietz Shape factor 31.6 31.6
Wellbore Radius (ft) 0.354 0.354
Perforation Interval (ft) 100 150
Once the model is built, determine what the well overall production and the
contribution from each layer when the wellhead pressure is 3000 psi.
RESULTS
3.9 Problem 16: Building Multi-rate C & n inflow model for gas wells
Objective:
Dataset:
C and n values are determined from a plot of Q vs (Pr2 - Pwf 2) on log-log paper and directly
input by the user.
n is usually found in the range 0.5 (complete turbulence) to 1.
The multi-rate C and n determines the coefficients of the back pressure equation that best fit
measured flowing bottom-hole pressures.
PVT DATA
January, 2011
PROSPER - Well Inflow Modelling Exercises 49
Reservoir Pressure ?
Reservoir Temperature 302 (degree F)
WGR 0 STB/MMscf
TEST DATA
3600 250
3000 500
RESULTS
Sensitize on gas lift injection rate during the system (VLP + IPR) calculation
Select |Design |Gas Lift and enter the gas lift gas gravity of 0.7
Assuming a single point of injection (orifice only) perform a system calculation with:
Dataset:
January, 2011
PROSPER - Artificial Lift Design Exercises 51
VALVE DETAILS
Manufacturer Camco
Type R-20
Specification Normal
RESULTS
January, 2011
PROSPER - Artificial Lift Design Exercises 53
Objective:
Using the file PROB18_start.out perform a diagnostic using Quick look in PROSPER.
Calculate the total gas injection rate.
Dataset:
DIAGNOSTIC RESULTS
January, 2011
PROSPER - Artificial Lift Design Exercises 55
Use the well1.out file. Use this file perform an ESP design using PROSPER.
Then use the ESP selected to study various changed conditions by doing a sensitivity
analysis.
Use the sensitivity analysis to see if the selected ESP is appropriate for all the flowing
conditions the well is potentially going to encounter during its life.
Dataset:
SENSITIVITY PARAMETERS
DESIGN RESULTS
January, 2011
PROSPER - Multi-Lateral Well Exercises 57
Using the Multilateral option, build a model for a complex Horizontal well
Dataset:
COMPLETION DESCRIPTION
PVT DATA
Layer Properties
Top Node
Branch 1
January, 2011
PROSPER - Multi-Lateral Well Exercises 59
RESULT
6.1 Problem 22: Building Tank model for a reservoir with a known
production history
Objective:
How to perform fractional flow matching and how to verify the reliability of the
fractional flow
o Verify that the pseudo relative permeabilities can reasonably reproduce the
historical water cut and GOR.
Dataset:
PVT DATA
January, 2011
MBAL - Reservoir Modelling Exercises 61
Separator Single-Stage
Temp. Pressure Bubble Point Gas Oil Ratio Oil FVF Oil Viscosity
F Psig (psig) (SCF/STB) RB/STB cP
250 3600 3600 800 1.456 0.31
RESERVOIR PARAMETERS
RELATIVE PERMEABILITIES
PRODUCTION HISTORY
January, 2011
MBAL - Reservoir Modelling Exercises 63
Dataset:
PVT DATA
Separator Single-Stage
RESERVOIR PARAMETERS
RELATIVE PERMEABILITIES
January, 2011
MBAL - Reservoir Modelling Exercises 65
6.3 Problem 24: Use of MBAL for oil water contact monitoring
Objective:
Dataset:
0 11477.9
0.25 11520
0.5 11550
1 11577.9
Go to the relative permeability screen and change the water sweep efficiency to
70%.
Plot, compare and comment the evolution for the oil-water contact in both cases
Objective:
Dataset:
We want to know how the Reservoir Pressure / Water Cut and GOR would evolve if a
constant 3500 STB/d of liquid is produced from the end of the Production History until
1/1/2025
We plan to produce the reservoir with one well at a constant manifold pressure of 360
psi with a maximum liquid production constraint of 3500 STB/d.
We want to know how the Production / Reservoir Pressure/Water Cut and GOR would
evolve.
The well lift curves have been already generated using PROSPER and are in the file
PROB25.tpd.
January, 2011
MBAL - Reservoir Modelling Exercises 67
6.5 Problem 26: Building a Tank Model for a Reservoir with Know
Production History by Well
Objective:
Dataset:
PVT DATA
Separator Single-Stage
Temp. Pressure Bubble Point Gas Oil Ratio Oil FVF Oil Viscosity
F Psig (psig) (SCF/STB) RB/STB cP
250 2200 2200 500 1.32 0.4
RESERVOIR PARAMETERS
RELATIVE PERMEABILITIES
PRODUCTION HISTORY
Open the file in Prob26 - Production History.xls and import the table in to MBAL
PREDICTION WELLS
January, 2011
MBAL - Reservoir Modelling Exercises 69
Perform a Prediction using the wells described above using a manifold pressure of 1000 psi
until 1/1/2015
In this section, we will finalize the construction of our Integrated Production Model Simple.
Ensure the reservoirs and wells components in GAP are associated to the corresponding
MBAL and PROSPER files.
Step 2: Generating IPRs and VLPs using PROSPER files from GAP
In order to use the VLP/IPR intersection method for our well performance calculations in GAP
, we need to generate this data in advance.
Make sure an appropriate range of values (and and spacing) is used when generating Lift
Curves (VLPs) as this is key to keep the integrity of the well models.
Below there is a suggested range to be used for each well.
Well 1
After generating the values, replace the second value by 800 (solution GOR) as we know this
exact value will be required while the reservoir pressure remains above the Pb.
Well 2
January, 2011
GAP - Surface Network Modelling Exercises 71
After generating the values, replace the third value by 2800 (solution GOR) as we know this
exact value will be required while the reservoir pressure remains above the Pb.
a) How much would the field produce if both wells were fully open today (01/07/2005)?
When solving the network, the reservoir data used (Reservoir Pressure, WC, GOR, etc) is
that of the wells IPR screen.
Initialising the IPRs from tank simulations ensures the Wells IPRs are up to date as per
the reservoir model.
MBAL will run a simulation until the date specified (using the production history rates) and
update the IPRs with the Pr, GOR/CGR and WC/WGR.
The IPRs can also be updated manually (ie. no tank models are required for solving the
network)
Step 2: Solve Network (No optimisation) with a Separator Pressure of 200 psig
b) How could we control the field to maximise oil production if we have a maximum
liquid constraint at the Separator of 22000 bbl/d?
Step 1: Set the wells controllable (Wellhead choke can be changed by the optimiser)
January, 2011
GAP - Surface Network Modelling Exercises 73
b) With a maximum liquid rate constraint at the Separator of 22000 bbl/d (Optimisation)
How much water (injection rate) would we need if the pressure is to be maintained at 5300
psig? From when?
How much more could we produce if the maximum liquid rate handling were increased to
35000 bbl/d?
e) Artificial lift for Well 1 is being considered as soon as the facilities are upgraded.
Analyse both Gas lift and ESP artificial lifts methods impact in the overall production.
Use previously created Well1GL.out and Well 1ESP.out.
VLPs are provided
Available Gas Lift: 10 mmscfd
A simple Water Injection System GAP model will be built and then coupled to the existing
production system
Step 5: Link PROSPER file and Res1 MBAL model to the corresponding components
in GAP
Step 8: Analyse the whole system performance. (Injection Manifold 1000 psi)
Is one well enough? How many well do we need?
Discuss how the Target pressure feature works when having an Injection
System linked.
January, 2011
GAP - Surface Network Modelling Exercises 75
Use the GAP Optimiser to analyse if oil production can be increased by reallocating
the same amount of gas lift gas among the wells
Dataset:
TEST DATA
Well Gas Injection Rate WHP Liquid rate Water cut GOR scf/
MMscf/d psig STB /day % stb
Well 1 - 198.3 6720 85 1200
Well 2 3 208.3 820 80 300
Well 3 3 208.3 1135 75 300
Well 4 3 208.3 1400 70 300
Well 5 1 208.3 3090 30 300
TASKS
Step 1: Build the Production System Layout in GAP (all components) and link them
Pipeline Data
Step 2: Link the Well models in GAP to the corresponding PROSPER files given
Step 5: Compare the Well models against test data by using the Model Validation feature in
GAP
Step 6: Enter the surrent amount of gas being injected in the wells in the \Edit\Equipment
Control screen
Step 7: Solve the Network (no optimisation) to calculate the total oil production of the field.
Step 8: Set the wells gas lift gas controllable and solve the network this time optimised (using
the same total amount of gas lift gas)
January, 2011
GAP - Surface Network Modelling Exercises 77
MACRO 1
1. Exercise Objective
2. Data Provided
MACRO 2
1. Exercise Objective
Generate Sensitivities on Well Length and Vertical Anisotropy for a Horizontal Well.
The Performance of the Well for different Well Lengths and Vertical Anisotropy is required.
2. Data Provided
January, 2011
OpenServer - OpenServer Tutorial 79
1. Exercise Objective
Generating a Production Forecast and determining the time for drilling Well-2
2. Description
A second Well (Well 2) is planned to be drilled when Well 1 Production falls below 7000 bbl
An automatic way of running the model (and enabling the second well when required) is
required as there will be plenty of sensitivities run on this model and manually checking for
the drilling date is not practical.
3. Data Provided
VBA Functions
CStr(Number): Converts the number into a string. This is useful for concatenating strings
and numbers
with j=3.
This is equivalent to
GAP.MOD[{PROD}].WELL[{W1}].PREDRES[ 3].LIQRATE
Which is the string required to extract the Liquid Rate of well W1 of the 4th prediction
timestep
Val(String): Converts a string into a number. This is useful when extracting values using
OpenServer (they are extracted as strings) and need to compare in numerical values (e.g. if
Rate > 4000..)
There has been a new discovery and few data available on the discovery.
On the basis of the information available, we want to study the best way to manage
the development of the field.
The Platform maximum capacity is 35000 bbl/d and the target Recovery Factor are
22% for Res 1 and 35% for Res 2 in 10 years.
Dataset:
FIELD DESCRIPTION
January, 2011
IPM Review - Workshop 81
The wells are naturally flowing, and their unchoked production is:
Processing limits at the manifold of 2500 STB/d water and 3.8 MMscf/day gas are given, and
the task is to choke back the wells to meet these limits in an optimal way, where optimal in
January, 2011
Appendix A: GAP Constrained Network Optimisation 83
This reduces to a mixing problem of a type frequently seen in all forms of process industry,
since each well supplies oil gas and water in its own particular proportions and we are mixing
the wells at the manifold. There are therefore many techniques available for solving problems
of this type.
Before we look at the actual technique used in GAP, let us solve the problem manually. We
therefore define x1 and x2 as the fraction of unchoked production from each well, o1 and o2
as the unchoked oil production, w1 and w2 as the unchoked water production and finally g1
and g2 as the unchoked gas production. The problem can be stated with the following
equations:
We can draw a diagram of the problem (Fig 2) by plotting x1 along the x axis and x2 along the
y axis. Any point within the square region defined by the 0,1 limits (OAHD) represents a
possible mixture of the two wells.
Taking the water constraint first, if we plot a line on the diagram where the water production
from both wells adds up 2500, we get the line EI on the diagram. Any point on or below this
line will satisfy the water production constraint. We plot a similar line representing the gas
constraint, line FG. The lines intersect within the square at point B. To satisfy both
constraints, a point has to lie below or on both lines simultaneously. The region containing all
the possible mixtures which satisfy all the constraints is the four sided region OEBG, the
feasible region.
Now consider the oil production. Two lines representing all mixtures of the two wells which
produce 5000 and 4000 (JK and KL) are plotted. The 5000 line lies entirely outside the
feasible region, while the 4000 line divides it. If we visualise moving a production contour from
5000 to 4000, it can be seen that the contour will first touch the region at point B. This
therefore must be the optimal point, since all points in the region below must have lower oil
production.
At point B, the actual production is 5031, and both the gas and water production are at their
limits. This corresponds to a fraction x1=0.513728 of unchoked production for Well 1, and x2-
0.615679 of unchoked production for Well 2. Note that the combination of constraints has led
a solution where both wells are choked.
Since we have performed curves for the wells relating production to WHP, we can
immediately look up the desired WHP for each well. This in turn gives us the choke settings
(as pressure differences), since they must equal the difference between the manifold
operating pressure and the desired WHP.
To get to this stage, we used the production data and constraints to form a set of linear
equations, and solved then simultaneously with a graphical method. It should be clear that we
can construct a similar set of equations for any system of naturally flowing wells, with
constraints at different levels affecting all of the wells connected below. Since the equations
are linear, this can be classed as a linear programming problem, and GAP solves this using
the simplex method, since this is reliable and computationally efficient.
To solve the problem therefore, we need to step through the points at the vertices, ending
with the point whose objective value is the highest. The simplex method is a procedure which
ensures that the objective increases at each step, and that the optimum point is reached after
a number of steps of order N (or M, whichever is larger).
The first step is to express the system of equations in a standard form as follows:
They yis are called slack variables and are introduced to transform the inequality constraints
January, 2011
Appendix A: GAP Constrained Network Optimisation 85
to equality constraints. All the variables are defined to be non-negative. We now form a matrix
representation of the equation (the tableau):
z x1 x2 y1 y2 y3 y4
Row 2 0 5 2 0 1 0 0 3.8
Row 3 0 1 0 0 0 1 0 1
Row 4 0 0 1 0 0 0 1 1
As a starting point, take x1 and x2=0. This satisfies all constraints. We now want to take a
step which increases the objective. Choose the variable which has the largest negative
coefficient in row 0 in this case x1. Let x2 stay at zero. As we increase x1, the variables y1
will change value, but by definition, we cannot allow any y1 to become negative. Taking each
y1 in turn (and setting x2 to zero), we can say
Where the upper limits on x1 are simply the ratio of the limit to the coefficient. Clearly we can
set x1 to min{2500/1250, 3.9/5, 1/1} = 0.76, which will set y2 to zero. This is called the ratio
test, and in this case, row 2 (i.e. the y2 row) is the winner. We now use matrix arithmetic to
pivot around the intersection of the x1 column and the y2 row, in other words use matrix
arithmetic (row operations) to make the coefficient of x1 1 in row 2 and 0 in all other rows.
That is, we divide row 2 by 5 to make the row 2 coefficient 1, subtract 1250 times row 2 from
row 1 to make the row 1 coefficient 0, and so on. This yields the following tableau
z x1 x2 y1 y2 y3 y4
Row 4 0 0 1 0 0 1 1 1
The step has made x1 non-zero, and the equation represented by the top row is now:
z 2000.x2 + 1000.y2 = 3800, or z = 3800 + 2000.x2 1000.y2
January, 2011
Appendix A: GAP Constrained Network Optimisation 87
Clearly, the next step in increasing z is to set y2 to zero, and increase x2. To find out how
much, we perform another radio test, using the four variables, y1, x1, y3 and y4 :
So, we can set x2 to min {1.9 , 0.615812 } = 0.615812, which will make y1 zero. We now
pivot around the y1 row (row 1) and the x2 column getting
z x1 x2 y1 y2 y3 y4
The step has made x2 non zero, and the equation represented by the top row is now:
z = 5031.625 0.794597.y1 801.3508.y2
We can stop here, since the only way to maximize z is to set y1 and y2 to zero. Thus the
optimal solution is x1=0.615679 , x2=0.513728 , z=5031 as we obtained graphically above. A
value of zero for y1 and y2 means that these constraints are binding.
Special steps must be taken to cope with the situation where the back pressure caused by a
group of strong wells kills or severely attenuates production from a weaker group, and the
operator wishes the weaker wells to achieve a minimum production. In practice, this
minimum must be achieved by choking back the stronger wells, thus reducing the back
pressure and allowing the weaker wells to flow. The algorithm described above, however, is
not aware of the minimum production set by the operator. GAP therefore detects when
conditions could allow this, and sets the weaker wells production level, artificially, to the
minimum before performing the simplex step. This allows the simplex algorithm to attenuate
the stronger wells in favour of the weaker ones.
We now have choked settings, but in general we would not obtain correct results if we
applied them and performed a network pressure calculation. This is because the choke
settings were based in the operating pressures as calculated for the unchoked system. In
general, these pressures will change as the wells production is modified, because the
pressure drops in the surface network will change. GAP therefore performs a loop,
calculating and applying choke settings as described above, then performing a network
pressure calculation until a stable situation is reached. This is essentially linearising an
inherently non-linear problem, and is known as a Successive Linear Programming (SLP)
approach.
This is in fact requires a much more complex algorithm than simplex, since there are many
special cases and problems which have to be catered for, and the solution almost always
requires a significant number of search steps, complex logic to maintain an active constraint
set, as well as the gradients and even second order derivatives of the objective function and
the constraints. For descriptions of many common techniques, see [nonlinear programming,
M.S. Bazaraa, H.D. Sherali & C.M. Shetty, Wiley]. Briefly, GAP solves the non-linear
programming problem by forming a quadratic approximation to the Lagrangian of the
problem, solving this approximation to obtain a direction to step in, then maximizing a merit
function (The L1 penalty function) along that direction, where the merit function measures
both the increase in the objective and the violation of the constraints.
These steps are repeated until an optimum is found. This can be quite computationally
expensive for some systems. The output of this step is a set of desired productions for
naturally flowing wells, and a set of gaslift amounts for gaslifted wells. The naturally flowing
wells then have their choke settings calculated. If the algorithm decides to attenuate a
gaslifted wells production, the well is converted to a naturally flowing well and choked. To
ensure a smooth transition from gaslifted to choked regimes, which is required by the
nonlinear programming model, a blending function is used to merge the two.
As above, this step is followed by a network pressure calculation, and the two steps are
repeated until stability is reached.
January, 2011
Petroleum Experts
PROSPER
Course Notes
Petroleum Experts
Multiphase Flow
Course Notes
Petroleum Experts
MBAL
Course Notes
Petroleum Experts
GAP
Course Notes
Petroleum Experts
Step-By-Step Guide in building
the Simple.GAP model
In this section of the manual we shall be exploring the procedure taken in order to build a full
GAP model. These are the steps taken during the first four days of the course including
calculations and generation of results.
and then choose the most appropriate options for your model:
Point the mouse cursor in the middle of one joint, left click, drag keeping the mouse button
selected and drop in the middle of the second joint:
GAP requires a set of VLPs and an IPR for the well to work (When using the VLP/IPR
intersection Model). These are the two fields which are highlighted red. They can be created
through a well analysis package such as PROSPER.
We can start entering the data required and performing the matching for this well.
Petroleum Experts Ltd 7 IPM GAP Manual
IPMTCSBS.5.00.20.09.2007
2.1 Entering the well data (PVT, IPR and VLP)
In PROSPER, we can follow a logical sequence from left to right and top to bottom on the
main menu:
First we go to Options in order to make sure the well is set up correctly. The defaults are
OK for this example:
We will now match all the correlations and select the one for which Parameter 1 is as close
to 1 as possible and Parameter 2 as close to 0. Select Match All:
The reason for selecting a single correlation for the first three parameters is to respect
material balance. This is one of the fundamental strengths of BO models as opposed to EOS
models which do not inherently respect material balance.
In this case we select Glaso and Beal. These correlations have to be set in the main PVT
screen:
In this screen we are asked to choose the IPR model to use. Select PI entry, enter the data
on the right section and then go to Input Data in order to enter the PI of the well:
The input data is now entered and we can start matching the well model to some tests.
Enter the match data as provided in Problem 6. For the Gas Oil Ratio, we know that the
value of 600 is incorrect as the reservoir pressure is above the bubble point and the solution
GOR for the fluid is 800 scf/stb. Therefore we will enter the correct value of 800 scf/stb
Note down the number and go back to the equipment section, Geothermal Gradient and
enter this number:
We go back to the Matching screen, select the point and then Correlation Comparison:
Petroleum Experts Ltd 19 IPM GAP Manual
IPMTCSBS.5.00.20.09.2007
Select OK:
Select these two correlations and then Calculate and Calculate again in the next screen.
Select Plot to see if the match point is between the two limit correlations:
Select match as shown above and from the list of correlations only select the one you are
intending to match:
The square point represents the bottom hole pressure and rate as observed in the well test
data.
The same procedure can be repeated with the other well, using the data in Problem 7.
We need to build the reservoir model using MBAL. Please select Run MBAL so that we
create a new MBAL file:
Now the next step is building you tank model. In the main menu bar go to Input | Tank Data,
and supply the following information:
This finishes our setting up of basic tank model. It is advisable to save the file at this point.
Next step would be to fine-tune the model, in terms of identifying and quantifying its various
drive mechanisms.
Note that in the graphical methods the plot shown in the screen above is the Campbell plot.
You may not get this initially. You should click on the graphical method screen and in the
menu bar of the above screen as shown appears. Select Method | Campbell Plot.
The Campbell Plot is showing the typical shape corresponding to additional energy required
(in this case an aquifer), so the next step before proceeding to the matching will be to
include an Aquifer to our model.
On this screen if you click on plot you get the following plot.
From the main menu we select History Matching | Run simulation as shown above. On
the following screen select Calc:
Then we select plot in order to compare the simulated results to the history:
Go to:
Now, in order to confirm that the relative permeabilities have been matched properly, we will
do a prediction of history. Please go to:
Select Copy in order to transfer the average rates from the simulation over to this section:
This concludes the History matching and verification process. We can now go to the main
screen of MBAL and select GAP (after saving the file), in order to go back to GAP:
Click All in order to select all the wells in the model. Then the following screen will appear:
Click Generate
Click on data in order to access the screen where the variables are entered:
After the table is finished, we can copy and paste this onto the other well using the following
procedure:
Then select the well 2 and Paste and then update the information for the GOR as shown
below.:
When the VLPs are finished, the red circles around the wells will disappear:
You can now select OK and the colourless box will become Cyan: