Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
By
James L. Buchwalter, Ph.D.
Gemini Solutions, Inc. reserves the right to revise its software and publications with no
obligation of Gemini Solutions, Inc. to notify any person or any organization of such revision.
In no event shall Gemini Solutions, Inc. be liable for any loss of profit or any other commercial
damage, including but not limited to special, consequential, or other damages.
Information in this document is subject to change without notice and does not represent a
commitment on the part of Gemini Solutions, Inc. The software described in this document is
furnished under a license agreement or nondisclosure agreement. The 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 or nondisclosure agreement.
Copyright Notice:
©1996 Gemini Solutions, Inc. All rights reserved. This manual is protected by federal
copyright law. No part of this manual may be copied or distributed, transmitted, transcribed,
stored in a retrieval system or translated into any human or computer language, in any form
or by any means, electronic, mechanical, magnetic, manual, photographic, photocopy,
scanning, or otherwise, or disclosed to third parties without the express written permission of
Gemini Solutions, Inc.
Trademarks:
i
Microsoft, MS, MS-DOS, Microsoft Excel, Visual Basic are trademarks of Microsoft
Corporation.
ii
Printing:
1st Edition, 1rd Printing
Printed in the United States of America.
iii
iv
v
Contents
Contents
Limits of liability:______________________________________________________________ i
Trademarks: __________________________________________________________________ i
Acknowledgments ______________________________________________________________ 8
1___________________________________________________INTRODUCTION 9
5
Contents
3.1 - Introduction______________________________________________________________ 19
4.1 - Introduction______________________________________________________________ 35
INDEX ___________________________________________________________2
6
Contents
7
Contents
Acknowledgments
In the development and preparation of AVALON and this documentation, I have received
support and constructive suggestions from more people than I could ever adequately
acknowledge. To these people we would like to express our sincerest appreciation. There are
those, however, who have assisted us to such an extent that they must be acknowledged.
I would like to thank my father for imparting to me the humility to understand that for
everything we know, there is far more that we do not know, as well as the realization that only
by remarkable chance , have I been given the opportunities afforded to me in life.
I would also like to thank the women in my life - my wife, mother and sister for their
endless love, encouragement and support. In particular I would like to thank my mother for
keeping me along a straight and narrow line until I realized that was the proper line to follow,
and my beautiful wife for her hard work and countless personal sacrifices in the background
that has helped make Gemini Solutions a success.
8
Chapter 1: Introduction
1
Introduction
9
Chapter 1: Introduction
reservoir performance with accuracies not possible in AVALON alone. For example the simple
reservoir pressure drop equations used in AVALON’s reservoir module calculations are
replaced by the sophisticated reservoir model in MERLIN. With this link AVALON has the
ability to optimize well tubing designs not only on an average well design basis, but on an
individual well basis in a complicated reservoir with many heterogeneities.
1.2 - Setting Up
Before you install AVALON, make sure that your computer meets the minimum
requirements and that your AVALON package contains the required items. The system
requirements include:
• A CD ROM Drive
• A mouse.
1.3 Installation
1. Install the HASP: The HASP is a hard lock providing security to the GSI software
packages. It must be in place before any GSI software will work. Look on the back of the
computer and locate the parallel port. You may have your printer, a zip drive, or other
peripheral already plugged into it. If nothing is currently connected to the port, simply
plug the HASP directly into the port. It does not need to be terminated.
10
Chapter 1: Introduction
If other peripherals are currently connected, you may have several options. The HASP may
be installed anywhere in the chain of peripherals. It may be installed directly into the
computer and then the other peripherals may be plugged into the HASP or it may be
installed further down the chain. For instance, if (as I do) you have a parallel zip drive and
then a printer plugged into the zip, you may plug the zip directly into the printer and then
put the HASP between the zip and the printer. If you have HASP’s for other programs, you
may install them in any order by plugging them into each other.
2. Install the drivers:
Follow the instructions on the inset of the installation CD or:
a) Select the folder named Avalon. It will normally be installed under
C:\Gemini\Program Files\Merlin. Alternatively if Avalon has not yet been
installed select the \Drivers\ folder on the CD.
b) Double click the Setdrivs.bat file
c) When you get a message indicating that the drivers were installed successfully you
will need to Reboot the computer.
11
Chapter 1: Introduction
Avalon installs in it’s own directory. To uninstall, use the install programs procedure
provided by Microsoft for Windows. To do this select the Control Panel option and then
Add/Remove Programs to uninstall Avalon.
A single copy of AVALON may be used on only one machine at a time. If you have two
machines, perhaps a desktop at work and at home, or a desktop at work and a portable for
field work, you can install AVALON on both machines and then move the HASP between them
as needed.
1.6 Backups
Backups may be made of the installation disks. These disks may even be maintained on a
network to allow multiple users to always access the current installation.
1.7 Networks
It may be possible to obtain a true network copy with multiple users. It was not available at
the time of this printing. Please contact GSI about this option.
12
Chapter 1: Introduction
The chapters in this manual are organized to follow the work path you will use. In addition the
samples directory under the AVALON installation folder contains several oil and gas example
problems
13
Chapter 2: Using Avalon
2
Using AVALON
When you click the AVALON icon the last file that was opened will be read and appear on
the home form.
14
Chapter 2: Using AVALON
Choosing Commands
15
Chapter 2: Using Avalon
You can choose commands from the menus or press the shortcut key assigned to commonly
used commands. On the menus, the shortcut key is shown to the right of the commands. To
choose a command from a menu:
1 Point to a menu name and click the left mouse button for a right handed mouse.
-Or-
If a command name is followed by an ellipsis (...), a dialog box appears so you can set the
options you want.
Avalon contains a report option to build a standard report in a Rich Text format. The Rich Text
format (RTF) can be imported directly into most word processors including Microsoft Word.
The graphics for the RTF report are written in both Bit Map (BMP) and Meta File formats
(WMF). The graphics are only maintained for the current nodal analysis file and are located
under the Program Files\Gemini\Avalon\XFiles\Bitmaps folder or wherever AVALON was
installed. The graphics included in the RTF files are in the BMP format. Upon importing the
RTF file into a word processor the user may wish to replace the Bit Map graphics with the
Meta File graphics located in the graphics folder.
It is often convenient to export the other pictures and/or forms in AVALON to other
window programs. To accomplish this highlight the form, and simultaneously hold the Alt and
16
Chapter 2: Using AVALON
Print Scrn keys down to copy the picture to the clipboard. Now paste the captured screen to
the destination windows application. Most users find this the preferred way to print pictures -
maps can easily be integrated into word processor documents. This feature supplements the
graphics created in the previous section
The online Help system references nearly all aspects of AVALON. It contains extensive
information on the basics for using Avalon beyond what is found in this manual. You can
access online Help through the Help menu Content command, search for specific topics with
the Help Search tool, or press F1 to get context-sensitive Help.
To search Help
17
Chapter 2: Using Avalon
18
Chapter 3: Avalon the Basics
3
AVALON- the basics
3.1 - Introduction
The AVALON nodal analysis program can be used for 3 fundamental tasks. The first task
is basic tubing curve design with an option to include simple radial flow equations for
representing the reservoir. The second task is basic tubing curve design including two
sensitivity variables. Lastly tubing curves can be calculated and assigned to the Merlin
reservoir simulator automatically. Lets look at each of these tasks in detail.
19
Chapter 3: Avalon the Basics
This section will provide a cookbook approach for creating standalone nodal analysis
curves. These curves represent the oil, water and gas deliverabilities under different plumbing,
bottom hole and surface pressure conditions. Engineers can use these curves to design
acceptable tubular’s to meet the anticipated reservoir production rates. In conjunction with
the Merlin simulator as will be seen later the optimal plumbing can be estimated for each
reservoir produced.
The following recipe provides an acceptable work path for creating AVALON tubing curves,
and creating a report of the results.
20
Chapter 3: Avalon the Basics
2 Fill in a description of
the reservoir followed
and click the Oil/Gas box
under the Description
frame.
21
Chapter 3: Avalon the Basics
2 case study intervals are desired set the number of intervals to one.
7. Under Options – Setup an inactive gas lift design button is present. Gas lift
calculations were not included in this release.
22
Chapter 3: Avalon the Basics
23
Chapter 3: Avalon the Basics
As different segments are added to a well the picture of the well in the picture box
changes. For example in the well shown in this picture box there are 2 vertical
segments and one horizontal segment. The segment selected is node number 1 which
corresponds to the horizontal flow line segments that is 400 feet long. The surface
pressures specified (or calculated for a well with surface pressures calculated)
corresponds the surface pressure at the end of the horizontal flow line shown for well 1.
Clicking on different segments in the picture box automatically updates the well’s node
description in the Node Description box.
The Define Wells options allow the user to create new wells, delete wells, and add or
delete nodes for a well.
Once the wells are defined the nodal analysis curves can be calculated by clicking the
All Nodal Curves button under the Calculate Results For selection. If the tubular
design for only one well were changed click the Nodal Curve Selected button to
update the calculations for only this curve. Please note that all calculations must be
performed before any results can be displayed.
24
Chapter 3: Avalon the Basics
25
Chapter 3: Avalon the Basics
The resulting plots for the layout selected above is given below.
To blow up individual plots to full screen click on the plot desired. Click again to see all
of the original plots.
26
Chapter 3: Avalon the Basics
27
Chapter 3: Avalon the Basics
The next step is to select what will be displayed in the report. Under View select Report
Options, and choose the text and plots to be displayed. No plots can be displayed until first
included by clicking the Plot option on the Nodal Setup form. In the selection below all text
except the values for the nodal curves, and all graphics as well are displayed. Click Save to
save the reporting options.
28
Chapter 3: Avalon the Basics
Once the RTF file has been opened in a word processor you may find that the conversion was
not 100%. For example you may need to add tabs to keep columns lined up. We have found
that unfortunately the conversion process is not without errors. In addition you may wish to
replace the BMP graphics with WMF graphics stored under the \AVALON\Xfiles\BitMaps\
folder.
Avalon has the ability to generate a variety of plots depending on the setting chosen. As we
have seen nodal analysis curves can be created for either oil or gas reservoirs, a reservoir
module can optionally be included, and the pressures can be fixed at either bottom hole or
surface conditions. Lets look at each of the plot types graphically to understand what is
possible.
29
Chapter 3: Avalon the Basics
30
Chapter 3: Avalon the Basics
An alternative plot for a gas reservoir is to look at the effect of maximum deliverability for
different bottom hole flowing pressures. For example with a bottom hole pressure of 2000 psi
the maximum deliverability is seen to be approximately 7000 MCF/D.
31
Chapter 3: Avalon the Basics
3.4.3 – Oil reservoir with surface pressure fixed and reservoir curves
Another example given below is an oil reservoir with the reservoir curves included. Note the
intersection of the reservoir and tubing curves that shows the maximum deliverability for the
conditions chosen. In this case to achieve a oil rate of 6927 BOPD the bottom hole flowing
pressure is 7718 psi, and the corresponding reservoir pressure is 10000 psi.
32
Chapter 3: Avalon the Basics
Section 3.3 illustrated generation of tubing curves with sensitivities to both pipe roughness
and vertical tubing size. This plot has been reproduced below. A variety of other sensitivity
studies are possible for various combinations of variables listed on the Nodal Analysis Setup
form.
33
Chapter 4: Linking AVALON to MERLIN
4
Linking AVALON to
MERLIN
4.1 - Introduction
The real power of AVALON lies in its ability to quickly and efficiently link to the Merlin
reservoir simulator to allow precise optimal tubing curves to be designed on a well by well basis
taking into account the reservoir heterogeneities. This chapter will cover the tools and
procedures for making these links
35
Chapter 4: Linking AVALON to MERLIN
nodal analysis tables and then linking the various nodal curves to different wells in Merlin.
Let’s look at this last step in detail.
After generating nodal analysis curves the user must link the well names in Merlin to nodal
well curve names. Any Merlin well not assigned a tubing curve will use the conventional bottom
hole pressure constraint. To link the Merlin wells to tubing curves first select the Assign
Nodal Curves to Wells in Merlin button under the Nodal Setup form. Line up the Merlin
Well names and the Matching Nodal curve names and click the import arrow button to link the
two entries. Reassigning the nodal curves to the Merlin wells here will overwrite any previous
tubing curve assignments done in Merlin.
Lastly, under the home form select File/Save Merlin File to save the tubing curves and
corresponding well assignments to the various Merlin wells.
Avalon has a feature that allows horizontal tubing segments to automatically be edited to
go to different platforms or collection points. The procedure for accomplishing this task is
given below.
The first step is to create nodal analysis curves with one or more horizontal flow line
segments, the number of which depends on how many kinks are required to properly model to
surface flow line path. Assign some arbitrary length to each segment. These lengths will be
interactively modified to reflect the surface facility design chosen later.
Next assign to nodal curves to various wells in Merlin using the Assign Nodal Curves to
Wells in Merlin button discussed in the last section. The last step is to click the Design
Flow Lines button under the Merlin Link frame. This will open a picture box that contains a
plane view of the reservoir with the well locations specified in Merlin. The user can
interactively move the horizontal flow line segments and when the Form/Save button is
clicked the new length and position of each horizontal flow line segment is calculated. An
example of a horizontal flow line before and after correct placement using the mouse is shown
below.
36
Chapter 4: Linking AVALON to MERLIN
Separator facilities can also be deleted, added, or moved by first clicking the object to be
moved with the mouse.
Well Placement before adjusting the horizontal flow segments. Merlin well P1 assigned to nodal
curve well1.
Well Placement after adjusting the horizontal flow segments and separator position.
37
Chapter 4: Linking AVALON to MERLIN
After integrating tubing curves into a Merlin file with Avalon the next step is to perform
reservoir simulation with Merlin, and gain an understanding of how the pipe design will affect
production. The latest version of Merlin contains modifications to the Well Description form to
include changing tubing curves for any well at any time step. This particular feature is absent
in Avalon where only the initial tubing curves for making runs are set.
Often you may find that after making a few runs in Merlin you need to reenter Avalon,
adjust the tubing curves based on results observed in the Merlin simulator, and reassign the
tubing curves to the Merlin file. This iterative procedure allows a simple trial and error path
for optimizing tubing curves for different wells in different parts of the reservoir. An approach
like this represents something that is rarely done in modern reservoir simulation, and
represents a major step forward for designing the development of fields. This ability is greatly
enhanced by the surface facility interactive design features discussed in the previous section.
38
Chapter 4: Linking AVALON to MERLIN
Avalon does not have a stand alone history match feature at this time. To adjust the tubing
curves to match known flowing tubing head data the following work flow procedure is possible.
First generate approximate tubing curves in Avalon and assign to the appropriate wells in
Merlin. Next open Merlin and assign the historical flowing tubing head pressures for the
various wells. Run the model in Merlin and use the Output/Well Data to view the flowing
tubing head pressure history match. If it is unacceptable reenter Avalon and recreate adjusted
tubing curves (for example change the pipe roughness). Reassign the tubing curves to Merlin
and test the history match for flowing bottom hole pressures.
39
Chapter 4: Linking AVALON to MERLIN
40
Index
Index
A G
D M
2
Index
Save Image of Current Picture , 27
O
Save Merlin File , 36
Oil reservoir, 32 sensitivities, 33
sensitivity variables, 19
separator, 23
P separator position, 37
Surface Facilities, 36
pipe roughness, 21, 22
plot, 25
Plot Layout, 25 T
Plots, 29
Pressure Calculated At, 21 Toolbox, 35
Printing, 16 tubing curve design, 19
PVT, 22
V
R
vertical, 24
recipe, 20 vertical tubing size, 21
Report, 27 View Report, 29
Report Options , 28
Reservoir and Well Options , 23 W
reservoir module, 23
reservoir performance curves, 23 Well Placement, 37
RTF reports, 27 well test, 23
wellhead conditions, 23
Windows Metafile, 27
S
WMF, 27
safety valve, 24 Word Processors, 27