You are on page 1of 76

XDIAG

E xper t Diagnostic Analysis


of Rod Pumping Systems

Theta Oilfield Services, Inc.


1901 E. Lambert Rd. Suite 108
La Habra, CA 90631 USA
Telephone #: (562) 694-3297
Fax #: (562) 694-8641
www.gotheta.com or www.xspoc.com

Email Addresses:
Terry Treiberg - Vice President: terry@gotheta.com
Software Support: support@gotheta.com
Orders: Christy Kukula - Off. Manager: christy@gotheta.com
Theta Oilfield Services, Inc., 2010.
All Rights Reserved. This manual may not be reproduced in whole or in part without the written per-
mission of Theta Oilfield Services, Inc.

RODSTAR, RODSTAR-D, RODSTAR-V, RODDIAG, XDIAG, CBALANCE, and XTOOLS are


trademarks of Theta Oilfield Services, Inc..

Printed in the United States of America


First Edition, November 2010
XDIAG| iii

Contents
Customer Support . . . . . . . . . . . . . . . . . . . . v
System Requirements. . . . . . . . . . . . . . . . . . . v
Introduction. . . . . . . . . . . . . . . . . . . . . . . v
Program Features. . . . . . . . . . . . . . . . . . . . vi

1 Software Installation 1
1.1 XDIAG Installation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
1.2 Questions about Installation . . . . . . . . . . . . . . . . . . . . . . . . 1
1.3 Installing the Software Sentinel. . . . . . . . . . . . . . . . . . . . . . . 2
1.4 Starting and Setting Up XDIAG . . . . . . . . . . . . . . . . . . . . . . . 2
1.4.1 Starting XDIAG . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
1.4.2 The XDIAG Window. . . . . . . . . . . . . . . . . . . . . . . . . . 2
1.4.3 Selecting a Printer. . . . . . . . . . . . . . . . . . . . . . . . . . 6
1.4.4 Setting up XDIAG. . . . . . . . . . . . . . . . . . . . . . . . . . . 6
1.4.5 How the Automatic Batch Run Works . . . . . . . . . . . . . . . . . 17

2 Running XDIAG 19
2.1 XDIAGs User Interface. . . . . . . . . . . . . . . . . . . . . . . . . . . 19
2.1.1 Using the Keyboard. . . . . . . . . . . . . . . . . . . . . . . . . 20
2.1.2 XDIAGs Help System. . . . . . . . . . . . . . . . . . . . . . . . . 21
2.2 Entering Rod Pumping System Data . . . . . . . . . . . . . . . . . . . . 21
2.2.1 Entering Well Information Data . . . . . . . . . . . . . . . . . . . . 23
2.2.2 Entering Production Information. . . . . . . . . . . . . . . . . . . 25
2.2.3 Entering Pump and Tubing Information. . . . . . . . . . . . . . . . 26
2.2.4 Entering Rod String Information. . . . . . . . . . . . . . . . . . . 28
2.2.5 Entering Pumping Unit Data. . . . . . . . . . . . . . . . . . . . . 29
2.2.6 Entering Motor Information. . . . . . . . . . . . . . . . . . . . . 32
2.3 Storing Cases/Files. . . . . . . . . . . . . . . . . . . . . . . . . . . . 32
2.4 Running XDIAG. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33
2.4.1 Dynamometer Animation. . . . . . . . . . . . . . . . . . . . . . 34
2.4.2 Setting Horizontal and Vertical Lines . . . . . . . . . . . . . . . . . 35
2.4.3 Exporting the Balanced Maximum Counterbalance Moment or Structural
Unbalance. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36
2.5 Printing the Output Report. . . . . . . . . . . . . . . . . . . . . . . . 37
2.6 Loading Data from Disk. . . . . . . . . . . . . . . . . . . . . . . . . . 37
iv | Table of Contents

2.6.1 Recent Files Feature. . . . . . . . . . . . . . . . . . . . . . . . 39

3 Expert Diagnostic Analysis 41


3.1 Explanation of XDIAGs Output . . . . . . . . . . . . . . . . . . . . . . . 41
3.2 Diagnosis of System Problems. . . . . . . . . . . . . . . . . . . . . . . 54
3.2.1 Recording Dynamometer Card in the Field . . . . . . . . . . . . . . . 54
3.2.2 Downhole Pump Dynamometer Card Interpretation. . . . . . . . . . 58
3.2.3 Avoiding Rod Compression . . . . . . . . . . . . . . . . . . . . . . 60
3.2.4 Gearbox Torque and Unit Balancing . . . . . . . . . . . . . . . . . . 60
3.2.5 Using XDIAG with RODSTAR-V or XROD. . . . . . . . . . . . . . . . 61
3.2.6 Setting Lines on Downhole Pump Cards. . . . . . . . . . . . . . . . 62
XDIAG| v

Customer Support bad pumps


overloaded rods

If you have any questions or problems using XDI- overloaded gearboxes


AG, please call Theta Oilfield Services at (562) out of balance units
694-3297 or send an email to support@gotheta.
the cause of low system efficiency
com.
tubing leaks

Before calling Theta Oilfield Services, be ready to excessive rod-tubing friction due to paraffin
explain the problem or what kind of information or scale
you need. If you get an error while running XDI- incorrect pump spacing that may cause the
AG, try to reproduce it and make note of the steps pump to hit up or hit down
you took and the data you entered that caused the
etc.
error. Make sure youre at your computer when you
call.
XDIAG is the only program of its kind to detect
and correct input data errors caused by:
System Requirements
a load cell that is not calibrated properly
which may cause a load shift or load span
Minimum Re- Recommend-
quirements ed an incorrect fluid level measurement
Computer Pro- 1 GHz 1.6 GHz or an incorrect stroke length
cessor: faster
a phase shift of the surface positions in the
Operating Windows
dynamometer data
System: 2000 / XP /
Vista / 7 non-kinematic surface positions in the dyna-
Computer 256 MB 512 MB or mometer data
Memory: more a dynamometer file with data that is out of
Screen Resolu- 800 x 600 1024 x 768 order
tion: pixels pixels or higher
Available Hard 30 MB
Disk Space: In general, XDIAG is a tool that can help you
improve efficiency, reduce maintenance and lifting
costs, and determine common problems with any
Introduction part of the pumping system. Also, XDIAG can
help you balance pumping units, check system en-
ergy consumption, calculate additional production
XDIAG is a powerful yet easy-to-use rod pump-
(if you have IPR data) and if your prime mover is
ing system expert diagnostic analysis tool. XDIAG
correctly sized.
uses advanced expert system and pattern recogni-
tion techniques to detect problems with existing
rod pumping systems such as: The XDIAG user interface is very easy to use,
extremely flexible, and fast. With a single click of
vi | Introduction

the mouse you can access any input screen at any- or you can open the XBAL file from the pumping
time. You can change an input by simply clicking unit information window in XDIAG to import the
on it, and when you have a question, simply press value. After you run XDIAG, you can enter the
F1 for context sensitive help for any input item. maximum counterbalance moment or structural
With XDIAG you can take advantage of standard unbalance back into XBAL to find out where to
Windows features such as being able to copy the move the counterweights in order to balance the
dynamometer or torque plots to the clipboard and pumping unit.
then paste then in any other Windows document.

XDIAG is a diagnostic tool for existing wells. It Program Features


relies on input of actual dynamometer data for
its calculations. Please keep in mind that you can
XDIAG is a very powerful software program that
only use XDIAG to find problems with existing rod
combines expert system and pattern recognition
pumping systems. XDIAG is not a design program
technology with wave equation diagnostic model-
and so, you should not use it to make predictive runs.
ing. XDIAG uses exact pumping unit kinematics
To design rod pumping systems or to evaluate
which allows it to analyze rod pumping systems
the effect of changes on system performance you
with any pumping unit geometry. XDIAG deter-
must use RODSTAR-V/D or XROD computer
mines the condition of the pump and calculates
programs developed by Theta Oilfield Services.
fluid level, pump intake pressure, and net pump
RODSTAR-V/D and XROD accurately predict
displacement from the downhole pump card shape.
system performance, loading, efficiency, power
consumption, and the expected surface dynamom-
eter card for any rod pumping system. Also, since XDIAG will recall information you entered for a
RODSTAR-V/D and XROD can read XDIAG new case if you exit the program in the middle of
files, it saves you time because you do not reen- entering the data. When you open XDIAG again,
ter well data into RODSTAR-V/D or XROD. it will prompt you if you would like to recall the
RODSTAR-V/D and XROD can also overlay last case you were entering before it closed. This
the measured dynamometer card for easier history works the same way if the program or the comput-
matching and troubleshooting. er crashes. If you click yes at the prompt, you will
be returned to the data entry window you were
using before you exited XDIAG, with all the data
XDIAG uses the wave equation to model the
you had already entered in place.
behavior of the rod string and exact kinematic
models to simulate pumping motion. With XDI-
AG you can analyze the performance of any rod XDIAG contains data for all common rod-pump-
pumping system regardless of depth, rod material, ing equipment: pumping unit types and sizes, rod
or pumping unit geometry, including long stroke grades and sizes, tubing sizes etc. Also, XDIAG
units like the Rotaflex. will warn you of possible problems you can run
into in the field such as the need of slimhole
couplings or a thin wall pump, what rods fit the
XDIAG works with XBAL so you can enter the
tubing size you selected, etc.
existing counterbalance for your unit. You can ei-
ther use the toolbar function to copy and paste
the calculated existing counterbalance (maximum XDIAG allows you to take maximum advantage
counterbalance moment for crank balanced units of centralized pump off control systems. It can
and structural unbalance for beam balanced units)
XDIAG| vii

analyze hundreds of wells in a 24 hour period, and dynamometer files.


can create spreadsheet files that present results in
Start analyzing wells with new dynamometer
an organized way. XDIAG has many capabilities
data at any time with in a 24 hour period.
including the following:
Save a concise summary of all runs in an Excel
spreadsheet.
Determines pump condition using built in
expert knowledge and pattern recognition
techniques. The best way to take advantage of XDIAG diag-
nostic capabilities is to use Thetas XSPOC soft-
Detects and corrects input data errors such as
ware which uses XDIAG to automatically analyze
a load cell that reads too low or too high or an
all wells with rod pump controllers that communi-
incorrect fluid level.
cate with radio. For more information on XSPOC,
Lists recommendations for fixing downhole visit www.gotheta.com.
problems, for balancing the unit, etc.
Scores the well based on full pump conditions.
XDIAG can model all common pumping unit
This allows you to evaluate the design when
geometries. Also, it allows you to enter your own
any problems with the well are corrected. This
pumping unit dimensions in case your pumping
avoids the problem of fixing, for example, the
unit is not in the programs database. Advanced er-
rod string design if the pumping unit would be
ror trapping and warning messages prevent errors
overloaded with a full/pumped off pump.
and make you aware of special requirements neces-
Prints an expert analysis report that is similar sary for proper system operation.
to a report written by a human expert, and
plots surface and downhole dynamometer cards
and gearbox torque plots. Also, it can print
single page output that includes all the quanti- Advanced Capabilities
ties calculated by the program, including the
dynamometer and torque plots.
and Program Limitations
Calculates gross pump stroke, pump volumet-
ric efficiency, overall system efficiency, peak XDIAG has many advanced features that allow
torque and gearbox loading for existing and you to accurately calculate system performance for
balanced conditions, and the counterbalance any well depth, production rate, or pump condi-
you need to balance the unit. Also, it shows tion. Also, you can analyze wells that produce
the difference between balancing the unit heavy crude or other conditions with increased
for minimum gearbox torque and minimum friction (for deviated wells use XDIAG-D). By cal-
energy usage. culating the minimum stress at the bottom of each
rod section, XDIAG shows if the rods experience
From the downhole pump it automatically compression during operation. This is especially
calculates fluid load, fluid level, pump intake important for fiberglass rods that must never be in
pressure, net stroke, fluid production from net compression.
stroke, and pump fillage.
When using XDIAG with a centralized pump
off control system you can set it up to do the XDIAG accurately calculates electricity consump-
following: tion and the monthly energy bill. The results are
very accurate because it uses actual motor curves
Automatically load an analyze cases with new for these calculations. This provides you with data
viii | Introduction

you can use in economic calculations.


Artificial Lift Glossary and
XDIAG assumes that the friction between the
Help System
rods and tubing is equally distributed along the
length of the rod string. It also assumes the tubing XDIAG takes full advantage of Microsoft Win-
is full of fluid and the rods are made of homoge- dows to bring you context sensitive help and even
neous material. an electronic Artificial Lift Glossary. This glossary
is full of definitions for many specialized terms.
This is a very powerful help system that allows
XDIAG does not consider the effect of pumping you to run the program without a manual. You
unit moments of inertia on net gearbox torque. can access the Artificial Lift Glossary at any time
This results in a conservative calculation for net by clicking on the Help tab on the menu bar at
gearbox torque and gearbox loading. If your system the top of XDIAGs main window. You may find
is equipped with an ultra high slip motor, this will faster concise help by hitting F1 in the input field
affect the shape of the measured dynamometer you have a question with. This will open the help
card by lowering the peak polished rod load and window to the topic on the input field in question
raising the minimum polished rod load. Since and can help you with your problem with one push
XDIAG uses this actual dynamometer card for its of a button.
calculations, the effect of the ultra high slip prime
mover is partially accounted for. So, the results
are close to actual results. Also, XDIAG uses the
actual motor efficiency curves to calculate energy
consumption and monthly energy bill very accu-
rately.

When scoring your well, XDIAG only considers


the worst case scenario which is a full pump with
the fluid level at the pump. XDIAG cannot score
the current condition of the well. The reason for
this is the well could become pumped off in the fu-
ture, if it isnt already. If the design is not overload-
ed and the fluid level is not at the pump, there is a
risk that when the well is pumped off the rods or
pumping unit will become overloaded and encoun-
ter a failure. This works the same way for pump
problems or tubing leaks. If the score was based on
these conditions the equipment (pump, plunger,
rod string design, etc.) could receive a good score.
Then when the problems are fixed the system could
run into problems because the conditions changed
when the equipment was fixe
XDIAG| 1

1 Software Installation

Before you install the program, make sure you before I install?
have the hardware and software you need to run
XDIAG for Windows.
No. When updating versions of XDIAG, the pro-
gram defaults to install to the C:\Program Files\
Theta\XDIAG directory. If your previous copy
1.1 XDIAG Installation of XDIAG is in another directory, you can specify
to install over it. It will not replace any of you case
files, just the previous version of the program.
XDIAG is installed from the Theta Software Suite
installation CD that you received. Load the CD
into your PC and the installation program should The installation defaults to setting C:\THETA
load automatically. After the Welcome screen as the common folder for your case files. Using a
you will have options for whether you are using common folder is a good idea since several of the
a Network or Standalone license. After selecting Theta Oilfield Services applications that you might
the proper choice, the next screen will prompt you have can all share the same case files.
for the programs to install. That screen also has a
button that lets you display and print the detailed
Installation Guide for your specific installation. Although a new version of XDIAG can read files
created with previous versions, a previous version
may not be able to read files created with the latest
After installing the program, put your original CD version of the software.
away in a safe place. If the Software Installation
Suite CD becomes damaged or lost, please call
Theta Oilfield Services, Inc. at (562) 694-3297 for What happens to files I have created with previ-
a replacement. ous versions of XDIAG?

Nothing. When you install or reinstall XDIAG,


1.2 Questions about only program files are replaced. The latest ver-
sion of XDIAG can open older XDIAG files. The
Installation saved output will not be available for viewing. This
is because changes in the new version of XDIAG
might change the output report of the older files.
The following are some answers to questions you This is due to additions to the pattern recognition
may have about installing XDIAG for Windows. database that could improve the results of the older
XDIAG files.
Do I need to delete earlier versions of XDIAG
2 | Software Installation

If the latest version might get better results that sent out to you. When XDIAG first starts, it reads
the previous version, does that mean the calcula- and displays the serial number of your sentinel on
tions from the previous version are incorrect? the opening screen. You will also find the sentinel
serial number in the About XDIAG window. To
open the About XDIAG window simply click
No. This is simply the nature of advancement of the About command on the Help tab of the
technology. We do the best we can with what we menu bar.
have. If the pattern recognition database improves
and changes the results, the changes will be slight
changes. Do to the differences we require that you Theta Oilfield Services, Inc. uses Sentinel Super-
rerun cases to obtain output when updating to a Pro for software protection. If you use software
new version of XDIAG. sentinels from vendors, you may be able to cascade
Sentinels as long as the LPT1 port has only one
Sentinel C on it. If you have one or more Sen-
tinel PRO and one Sentinel C, then plug the
1.3 Installing the Sentinel C at the end of the Sentinel PROs or
SuperPros. USB type Sentinels can be plugged
Software Sentinel into any available USB port or hub on the PC.

Your XDIAG license is validated and protected


by a security bitlock called a Sentinel. For stand-
alone installations, this is either a USB key or a
1.4 Starting and Setting
Parallel Port key that is attached to your PC. For Up XDIAG
Network Licenses, the key is attached only to the
Network License Server. See the Detailed Instal-
lation Guide that is available for printing from the 1.4.1 Starting XDIAG
Software Installation Suite CD for more informa-
tion. XDIAG communicates with the sentinel You can start XDIAG by double clicking the icon
and although the program can be copied, it will on your desktop. You may also click the XDIAG
not operate without a sentinel supplied by Theta icon in the Start menu under All Programs/Theta
Oilfield Services, Inc.. Software/ XDIAG.

If the sentinel is not installed correctly, the pro- 1.4.2 The XDIAG Window
gram will warn you that the sentinel does not ap- The following figure shows the main XDIAG
pear to be connected. If this occurs, make sure the window that appears when you start the program.
sentinel is properly installed and the connection is XDIAG behaves like any other standard Windows
not loose. If the sentinel is properly installed but is program. You can use the mouse to move and
not working, it may have been damaged. Frequent size windows, select text, choose commands from
plugging and unplugging, and static electricity can menus and dialog boxes, and complete almost any
damage the sentinel. If you think your sentinel is other task in XDIAG aside from typing text.
damaged, contact Theta Oilfield Services Inc. to
determine if you need a replacement. Do not dis-
card the damaged sentinel. Even if it is damaged, The following is an explanation of each part of
you must return the sentinel to Theta Oilfield XDIAGs main window.
Services Inc. before a replacement sentinel can be
XDIAG| 3

The control-menu box is in the upper-left corner The toolbar gives you quick access to the menu
of each window. The control menu is most use- commands using your mouse. When you first load
ful if you use the keyboard. You can use the con- XDIAG, only some of the toolbar buttons are
trol menu commands to resize, move, maximize, active. When you enter data or read a file from
minimize, and close windows. Also, you can use it disk, then the buttons will activate. This helps you
to switch to other applications. These are the same move through each input window and enter the
functions that are commonly performed with the necessary data to run XDIAG. The following is an
mouse. Double clicking on the control menu box explanation of each toolbar button as they appear
closes XDIAG. from left to right.

The title bar shows the name of the application.


If more than one window is open, the title bar New file Click on this button to refresh
for each active window is a different intensity the XDIAG to begin entering data for a new case.
other title bars. Any unsaved data will be lost.

Open file Click on this button to read


The menu bar lists the available menus. A menu a Theta software file. This includes XDIAG,
contains a list of commands, or actions, you can RODDIAG, RODSTAR-V, and RODSTAR-D.
carry out with XDIAG. XROD files saved in the non-AI mode format are
4 | Software Installation

similar to RODSTAR-V files and can be opened the Pumping Unit Information Window. In this
in XDIAG. RODSTAR-V and RODSTAR-D window, select the pumping unit, stroke length,
files will not contain dynamometer data. You must and direction of rotation. You can also enter the
open the dynamometer file after loading one of counterbalance information.
these files types. Opening RODSTAR file types
makes it easier for you to input all the data for an Motor Click this button to open the Motor
existing well without the need to enter the data for Information Window. In this window, select the
each input window manually. type of motor, size of the motor and motor set-
tings.
Save data to disk Click this button to save
the current case to an XDG file. If you run the Previous window Click this button to open
case the results will be saved in the file and the the previous input window. The data entry win-
next time you open the file you can open the re- dows go in order from left to right on the toolbar.
sults without running it. If you are entering data for the pumping unit,
clicking this button will change your focus to the
Setup Click here to open XDIAGs Setup Rod String Information Window (it will open the
window. The details of the Setup feature will be window if it isnt already open).
explained in the next section.
Next window - Click this button to open the
Well information Click this button to open next input window. The data entry windows go in
the Well Information Window. In this window, order from left to right on the toolbar. If you are
enter general information about the well such as entering data for the pumping unit, clicking this
name, watercut, pressures, pump depth, etc. button will change your focus to the Motor Infor-
mation Window (it will open the window if it isnt
Production information Click this button already open).
to open the Production Information Window. In
this window, enter the pumping speed and gross Run Click this button to run XDIAGs
production. You can also choose to enter fluid expert diagnostic calculations.
level, pump intake pressure, no fluid level, or IPR
information. View output Click this button to view the
output results. This button is only active if there
Pump and tubing information Click this are output results to display. Older files with saved
button to open the Pump and Tubing Information output will not show output results when open-
Window. In this window, enter specific informa- ing in a newer version of XDIAG. This is because
tion about the pump and tubing such as the pump improvements in the pattern recognition database
plunger size, tubing size, anchor depth, etc. may generate better results. You must re-run these
cases for output results.
Rod string Click this button to open the
Rod String Information Window. In this window, Email Click this button to send an email
enter the rod string information which includes to our technical support team. This function will
service factor, and the rod grade, rod diameter, and allow you to address the problem and attach up to
length of each taper in the rod string. three files to the email without opening your email
client.
Pumping unit Click this button to open
XDIAG| 5

Print Click this button to send the output Help Click this button at anytime to get
results to your default printer. You can only print if context sensitive help. You may also press the F1
there is an output report available. key to get context sensitive help.

Export counterbalance to XBAL After Visual input Click this


running a case, click this button to export the button to open the Visual Input Window. This
balanced counterbalance moment (crank balanced window make it easy to change a parameter of the
units) to the Theta clipboard. This makes the case by clicking on the part of the well you wish
value available to import into XBAL and balance to change a parameter in. Click the rod string to
your unit in just a few clicks. If XDIAG calculated change a value that pertains to the rod string.
a counterbalance moment to balance for minimum
energy as well as minimum torque you will be
Alphabetical list Click this button to open
prompted to chose one of the two to export. For
the alphabetical list of input parameters. Click on
beam balanced units, this function will export the
an item in the list to open the input window where
structural unbalance required to balance the unit.
the input field for the parameter is located.

Start automatic analysis mode Click this


button to start XDIAGs automatic analysis mode. The Status Bar is located at the bottom of the
XDIAG will run in the background and will start main window. It shows useful messages during
analyzing wells at the time of the day you specified data entry or when running XDIAG.
in Setup.
6 | Software Installation

The Getting Started window appears in the middle ing Tools on the menu bar and clicking XDIAG
of the main XDIAG window when you open Setup. This window allows you to specify informa-
XDIAG. This window shows the most common tion and choose options that usually do not change
toolbar icons you need to know to begin using with each run. The following describes each Setup
XDIAG. This is especially useful for new users. tab in the order they are presented in XDIAG.

1.4.3 Selecting a Printer General


XDIAG allows you to select any printer installed Click on the General tab to specify measurement
on your system. Simply click on File on the menu units and also to select whether to have XDIAG
bar, and then click on Print Setup to see a list display the visual input window by default.
of installed printers as the following figure shows.
To select a printer, simply click on the printer
name in the list. For measurement units you can select English,
Canadian, or Metric/SI. English units are mainly
used in the USA and South America. If you select
this option XDIAG will ask for pump depth in
1.4.4 Setting up XDIAG feet, production rate in BFPD, plunger and rod
Click on the Setup button on the toolbar (fourth diameters in inches, etc. The Canadian option
button from the left) to open XDIAGs setup win- provides you with the common mix of English
dow. You can also open the setup window by click- and Metric units used in Canada. The Metric/SI
XDIAG| 7

option will change the input units to Metric units. to create spreadsheet files using different spread-
In any measurement unit setting you can press the sheet formats. XDIAG will not rerun each case
F2 key to convert from English to Metric and vice and this speeds up the process of creating multiple
versa. This works for numeric input fields only. spreadsheets for a given batch run. For example,
When you press F2 to convert units, the back- let us assume there are two users (John and Paul)
ground of the input field changes color (from cyan who use XDIAG and they each have their pre-
to green). ferred spreadsheet formats. John can run 20 cases
in batch mode and create a spreadsheet that sum-
marizes the batch run as he prefers. Since John ran
Batch Mode the cases, the 20 XDG files contain recent results
saved to the files. When Paul runs the same cases
Click the Batch Mode tab to adjust the batch run
in batch, he checks the Dont re-run cases with
capabilities. This affects the manual and automatic
saved output option to save time. XDIAG will
batch mode runs. The top portion of this window
compile the spreadsheet without re-running each
allows you to select whether you want XDIAG to
case and this will execute quickly because XDIAG
print results of each case it runs in batch, to create
only has to extract the saved results to create the
a summary spreadsheet file, to run the cases using
spreadsheet file.
your setup options or the setup options saved on
the file, or to rerun cases that contain saved output.
The middle section of the window contains options If you check the Update file with Setups infor-
for spreadsheet file formats. The bottom section mation, the batch mode runs will use the setup
contains options for the automatic batch mode. options in setup, not the setup information in the
files. These setup options will replace the options
in the files because batch mode runs resaves the
General batch mode options
files. If you check the Update the Setup with
If you check the Make printouts check box, files information the setup will be updated with
XDIAG will print the output report for each case the information on the files that are in the batch
in the batch. mode run. We recommend saving a file with your
preferred setup information in case you use this
feature and change your settings and you wish to
If you check the Create spreadsheet file check change them back. You can simply use that file to
box, XDIAG will summarize the results of all the change setup to your preferred settings
files you run in batch in a, Excel spreadsheet (xls
file format).
Spreadsheet batch mode options

If you check the View spreadsheet file check box, This section displays a list of the spreadsheet for-
XDIAG will open Excel and display the spread- mats you created. If you have not created any for-
sheet created in the batch run. mats then the only format available is the Default
format. Click on the + button to create a new
spreadsheet format. Select and existing format and
If you check the Dont re-run cases with saved click the pencil icon to modify the format. Select
output checkbox, XDIAG will skip case files an existing format and click on the X button to
that have saved output from previous runs. When delete the format from the list. The following im-
you run XDIAG in batch mode, XDIAG resaves age shows the window you will see when creating
the files, which saves the output results into the or modifying a spreadsheet format.
XDG files. This feature is useful if you would like
8 | Software Installation

On the left side of this window is a list of variables XDIAG to make the batch run and specify the di-
in the order they will appear in the spreadsheet. rectories of the files XDIAG will use in the batch
On the right side you see an alphabetical list of run. The three directories you need to specify
all other variables that are available and can be are for the XDIAG files, dynamometer files, and
added to the spreadsheet. You can drag and drop where to save the Excel files. Details about how
the variables from one list to the other or you can the automatic batch mode works are in the next
use the command buttons located between the two section (1.4.5).
lists. To add a value to the spreadsheet you must
highlight a variable from each list, and then click
either Add Before or Add After. Clicking Add Defaults
Before button will add the available variable to the The Defaults allows you to initialize inputs for
spreadsheet list right above the highlighted vari- new cases such as electricity cost, plunger size, ser-
able on the left. Clicking the Add After button vice factor, run time, etc. This Setup page, shown
will add the available variable to the spreadsheet in the following figure, shows a list box containing
list right below the highlighted variable on the all the defaults you can set. As you select the de-
left. You can also change the order of the variable faults item from the list the input field will change
already in the spreadsheet list by using the Move accordingly. The following is a list of the default
Up and Move Down buttons. Highlight the vari- items you can set using this feature:
able on the left and click the Move Up or Move
Down button to move it up or down in the list. To
include the rod string design in the spreadsheet, 1. Casing pressure
simply check the Include rod string in spread-
sheet checkbox. To name the spreadsheet format, 2. Company name
enter the name in the input box on the bottom 3. Electricity cost
right of the window labeled Name of Format.
4. Folder for Open/Save files
5. Folder for XBAL/CBALANCE files
Automatic batch mode options
6. Folder for T1 Dynamometer files
In this section of the batch mode options win-
7. Folder for Lufkin Automation Dynamometer
dow you can set the time at which you would like
files
XDIAG| 9

8. Folder for Import files 28. Water specific gravity


9. Folder for PDF files
10. Include buoyancy effects Output Options
11. IPR correlation This Setup option gives you more control over
12. Most common pumping unit type what appears on XDIAGs output report. You can
select exactly which parts of the output will be
13. Motor type displayed and available to print. You can choose
14. Oil gravity from the expert diagnostic report, scoring page,
one-page calculations report, inflow performance
15. Plunger size
(IPR) chart, and separate dynamometer and torque
16. Pump type plots. You can also remove the dynamometer cards
17. Pumping speed and torque plots from the one-page calculations
report. To help you visualize exactly what will be
18. Rod-tubing friction displayed, XDIAG shows a miniature representa-
19. Run time tion of each page you have chosen. The preview
changes dynamically as you select the pages you
20. Second company name would like in the report.
21. Second company telephone number
22. Steel rod service factor
Pumping Unit Options
23. Stuffing box friction
Customize Pumping Unit List
24. Tubing pressure
The Customize Pumping Unit List tab, under
25. Tubing size Pumping Unit Options, allows you to customize
26. User name the list of pumping units that XDIAG displays
on the Pumping Unit Information Window. This
27. Water cut makes it easier to locate your pumping unit. For
10 | Software Installation

example, if you only have 12 different sizes of your custom list, highlight it by clicking it in the
Lufkin Conventional units, 10 different sizes of list box and observe the Name/API and Other
Mark II units, and 14 different sizes of Ameri- fields on the bottom of the screen. These fields may
can Conventional units, you can set up XDIAG contain additional information about the pumping
to show only these units when you are selecting unit to correctly identify the pumping unit. This is
a pumping unit. The following explains how to especially useful for manufacturers (for example:
customize the pumping unit list. American Conventional) who have more than one
unit with the same designation but different crank
types. In such a case, the Other field shows the
1. From the Setup Window, click the Pumping crank type of other information that helps identify
Unit List tab under Pumping Unit Options the pumping unit.
tab.
2. Click the arrow on the Manufacturer drop-
This is not the only way to customize the pumping
down and select the manufacturer list you
unit database. As discussed in the next chapter,
would like to customize. All units that are not
you can also select a unit you want to add to the
already in the custom list will appear in the list
customized pumping unit list by first selecting it
box on the right of the window.
from the full database and then checking the Use
3. Add units to the custom list by dragging them custom pumping unit list check box. When you
from the available list on the right to the cus- check the check box XDIAG will ask if you would
tom list on the left. You can also select the unit like to add the selected unit to your custom unit
in the available list and click the Add button to database. Click yes to add the unit to your custom
add the unit to the custom list or select the unit database.
in the custom list and click the Remove button
to remove it from the custom list.
Measured Pumping Unit List
4. After you add your units to the custom unit list
click OK to save your changes. XDIAG allows you to enter data for pumping
units that are not in XDIAGs main database. If
you have the dimensions you need for these units,
To make sure you select the correct unit to add to you can enter them here to use them in XDIAG
XDIAG| 11

(once you entered them in XDIAG they can be dow.


transferred to other Theta programs such as ROD-
STAR and XROD: when you save an XDIAG file
with a measured pumping unit then open that file If you need help with the input window click the
in another program, you will be asked if you would help button. To get help with a pumping unit
like to add that measured unit to the programs dimension hit the F1 key while the cursor is in the
measured pumping unit list). The following ex- input field. The help topic for that input field will
plains how to add a measured unit to XDIAG. open automatically.

1. Click on the Setup icon on the toolbar, and To modify the data of a measured unit, select the
click on the Pumping Unit Options tab then pumping unit and click the pencil icon. To delete
click on Measured Pumping Unit List tab. a unit from the measured unit database, select the
unit and click the X button.
2. To enter data for a new pumping unit click the
+ button.
3. Enter the pumping unit data for your pumping Measured Pumping Unit Dimensions
unit. The data you must enter consists of geometric
4. To save your pumping unit to the measured dimensions as defined in the API 11E publication.
database, click OK. You can get these dimensions from the pump-
ing unit manufacturer or measure them yourself.
For old units without an API designation on their
The measured pumping unit will be under Mea- nameplate, you may be able to put together an
sured Pumping Units when selecting the manu- equivalent API designation. Look at the gearbox
facturer on the Pumping Unit Information Win- nameplate for the gearbox rating. Measure the
12 | Software Installation

stroke length, and try to decipher additional infor- B = Beam balanced geometry
mation from the units nameplate for the structure
M = Mark II geometry
rating and structural unbalance. If the nameplate
is legible then write down the units serial number A = Air-balanced geometry
or order number. If the units manufacturer is still R = Rotaflex or long stoke geometry
in business, you may be able to get the data you
need from them using the serial number or order LP = Low profile belted geometry
number. For help in locating dimensional data for H = Hydraulic geometry
pumping units not in the database call Theta Oil-
field Services Inc.
Structural unbalance
Structural unbalance is a term used for pumping
XDIAG allows you to enter data for Conventional,
units with a walking beam. It is defined in the
Mark II, Air-balanced, Enhanced Geometry,
API 11E as the force needed at the polished rod
long stroke, Hydraulic, and Low Profile Belted
(parallel to the polished rod) to hold the walking
units. When you enter your own pumping unit
beam in the horizontal position while the pitman
dimensions, XDIAG calculates and displays the
arms are disconnected from the crank pins. This
stroke length based on the dimensions you enter.
force is positive when the force is acting down and
For all pumping unit types you must first enter
negative when acting up. See the figure for a visual
the name of the manufacturer, the unit name or
representation of structural unbalance.
model number, the gearbox rating in thousands
of inch pounds (excluding hydraulic units), the
structure rating in hundreds of pounds, and the Structural unbalance for conventional units can be
maximum stroke length in inches. From these either positive or negative. Mark II units always
numbers XDIAG puts together the API pumping have a negative structural unbalance because their
unit designation. The API pumping unit designa- geometry places the saddle bearing on the back of
tion is a standard way of describing the size and the walking beam. This eliminates the possibility
capacity of the pumping units. The hydraulic units of balancing the walking beam on the saddle bear-
are given a unit designation because there is not ing. The walking beam will always want to rotate
gearbox rating. The following is an example of an to that the horsehead rests on the ground. The
API designation: structural unbalance will be filled in with the value
that is in the database. You can manually change it
if you would like. When you enter a custom unit in
C-228-246-100
Setup, if you do not know the structural unbalance
for the unit you are analyzing then enter zero. In
The C means this is a conventional unit. The most cases the structural unbalance will not affect
228 describes the gearbox rating (228,000 the results significantly.
in-lbs). The 246 describes the structure rat-
ing (24,600 lbs). This means to avoid overloading
the unit the maximum polished rod load cannot
exceed 24,600 lbs. The 100 describes the stroke
length (100 inches). Other unit types have the fol-
lowing designation:

C = Conventional or Enhanced Geometry


XDIAG| 13

Definition of crank offset angle


The crank offset angle (or crank phase angle) is the
angle between the crank pin bearing and the coun-
terweight arm. The figure shows the crank offset
angle is defined.

XDIAG requires a positive crank offset angle for


Mark II units and a negative one for enhanced ge-
ometry units such as Torqmaster, Lufkin Reverse
Mark, or American Producer II. For conventional
units the crank offset angle is zero. For belted low Conventional and enhanced pumping unit data
profile units the crank offset is typically entered as For conventional and enhanced units you must en-
zero. This is because XDIAG analyzes the units ter unit dimensions R, A, C, I, P, and K in inches,
beginning at the bottom of the stroke. Belted low the structural unbalance in pounds, and the crank
profile units are typically designed in such a way offset angle in degrees. The crank offset angle is
that at the bottom of the stroke the counterweight negative for enhanced geometry units. The follow-
arm is directly vertical pointed upwards. With this ing explains each dimension with respect to the
orientation, entering a zero for crank offset angle pumping unit.
will result in correct calculations.

R Radius of the crank for each crank hole


The following explains the rest of the required unit measured from the center of the slow-speed
geometry to add units to XDIAG for each unit shaft to the center of the crank-pin in inches.
type.
A Distance from the centerline of the saddle
bearing to the centerline of the polished rod in
14 | Software Installation

inches. the name beam balanced. This requires the units


to have elongated walking beams. The E dimen-
C Distance from the centerline of the saddle
sion is the distance from the back end of the beam
bearing to the centerline of the equalizer bear-
to the center of the equalizer bearing. This di-
ing in inches.
mension is not required to enter a beam balanced
I Horizontal distance from the centerline unit to XDIAG. XDIAG does require the crank
of the saddle bearing to the centerline of the maximum counterbalance moment (in thousands
crankshaft (slow-speed shaft) in inches. of inch pounds). This allows XDIAG to accurately
P Effective length of the pitman arm (from calculate the required counterbalance while taking
the center of the equalizer bearing to the center into account the counterbalance obtained from the
of the crank-pin bearing) in inches. cranks.

K Distance from the center of the crankshaft


to the center of the saddle bearing in inches. Mark II pumping unit data
Some manufactures will supply G and H di-
Mark II unit entry also requires pumping unit
mensions instead of the K dimension.
dimensions R, A, C, I, P, and K in inches, the
H Height from the center of the saddle bear- structural unbalance in pounds, and the crank
ing to the bottom of the base beams in inches. offset angle in degrees. The crank offset angle for
G Height from the center of the crankshaft Mark II units is positive. The following explains
to the bottom of the base beams in inches. each dimension with respect to the pumping unit.

You can find the K dimension using the G, H, and R Radius of the crank for each crank hole
I dimensions in the following equation: measured from the center of the slow-speed
shaft to the center of the crank-pin in inches.
A Distance from the center of the Sampson
Post bearing to the centerline of the polished
rod in inches.
C Distance from the centerline of the Samp-
Beam balanced pumping unit data
son Post bearing to the center of the equalizer
Beam balanced units require the same dimensions bearing (or cross yoke) in inches.
as conventional units. The major difference be-
I Horizontal distance between the centerline
tween beam balanced units and conventional units
of the Sampson Post bearing and the centerline
is beam balanced units carry the counterweights
of the crankshaft (slow-speed shaft) in inches.
on the walking beam instead of the cranks, hence
P Effective length of the pitman in inches
(measured from the center of the equalizer
bearing or cross yoke to the center of the
crank-pin bearing).
K Distance from the center of the crankshaft
to the center of the Sampson Post bearing in
inches.
XDIAG| 15

inches.
M Geometry constant in inches squared. M
is the distance from the Sampson Post bearing
to the air tank bearing (distance X) multiplied
by the area of the piston in the air cylinder
divided by the A dimension.


Ap refers to the area of the air cylinder piston in
square inches.
S Pressure in the air cylinder required to off-
set the weight of the walking beam, horsehead,
equalizer, pitman arms, etc. in psig.
V0 Minimum air volume in the air tank be-
tween the plunger and cylinder at the bottom
Air-balanced pumping unit data of the stroke in cubic inches.
Air-balanced unit entry also requires pumping
unit dimensions R, A, C, I, P, and K in inches. In
addition, you must enter pumping unit dimensions Long stroke pumping unit data
M, S, and V0. The figure displays most of the data Long stroke pumping unit entry requires the
required for entering air-balanced units. The fol- sprocket diameter (dimension D), the centerline
lowing explains each dimension with respect to the distance between the top and bottom sprockets
pumping unit. (dimension C), the pitman arm length (dimension
P) if one exists, and the top drum diameter ratio
(usually 1).
R Radius of the crank for each crank hole
measured from the center of the slow-speed
shaft to the center of the crank-pin in inches.
A Distance from the center of the Sampson
Post bearing to the centerline of the polished
rod in inches.
C Distance from the centerline of the Samp-
son Post bearing to the center of the equalizer
bearing in inches.
I Horizontal distance between the centerline
of the Sampson Post bearing and the centerline
of the crankshaft (slow-speed shaft) in inches.
P Effective length of the pitman in inches
(measured from the center of the equalizer
bearing to the center of the crank-pin bearing).
K Distance from the center of the crankshaft
to the center of the Sampson Post bearing in
16 | Software Installation

pumping unit.
You can use this geometry to model other non-
beam unit types with long slow strokes. You can
R Radius of the crank for each crank hole
do this by entering data that will produce the
measured from the center of the slow-speed
required stroke length. The stroke length can be
shaft to the center of the crank-pin in inches.
calculated using the following equation:
D Diameter of the drum in inches.
I Horizontal distance between the centerline
Stroke = C + D
of the drum and the centerline of the crank-
shaft (slow-speed shaft) in inches.
For example, to simulate a long stroke unit with K Distance from the center of the crankshaft
a stroke length of 200 inches, you can enter a to the top of the drum in inches.
sprocket diameter (D) of 20 inches and a center-
H Height from the center of the drum to
line distance of 180 inches. This technique can be
the bottom of the base beams in inches.
used as long as the units upstroke and downstroke
velocities are approximately equal. G Height from the center of the crankshaft
to the bottom of the base beams in inches.

Hydraulic pumping unit data


You can find the K dimension using the D, G, H,
Hydraulic pumping unit entry only requires the
and I dimensions in the following equation:
structural rating and the maximum stroke length.
All calculations pertaining to the gearbox are not
performed on hydraulic units. Hydraulic unit types
allow you to adjust the stroke length when you
select the unit in the pumping unit information
window. For example, if you select a unit with a
maximum stroke length of 200 inches but the unit
had been adjusted to a 165 inch stroke, you can XDIAG analyzes units beginning with the pol-
enter 165 inches when running the case so that ished rod at the bottom of the stroke. This orienta-
XDIAG will analyze the actual conditions. tion usually has the counterweight in the vertical
position perpendicular to the base. If this is correct
then the crank offset angle (Theta) is 0. If at the
The unit designation generated for hydraulic units bottom of the stroke the counterweights are not
is not an API standard. The unit designation is in the vertical position then Theta is not equal to
created the same way as other unit types but omit- zero.
ting the gearbox rating. For hydraulic unit with
a maximum stroke length of 200 inches and a
structural rating of 25,000 lbs the unit designation Customize Rod Grades
is H-250-200. You can enter custom rod grades for steel rods
only. To enter a rod grade that is not in XDIAGs
database do the following:
Belted low profile pumping unit data
Belted low profile unit entry requires pumping unit
dimensions R, D, I, and K in inches. The follow- 5. Click on the Custom Rod Grades tab on the
ing explains the dimensions with respect to the Setup window.
XDIAG| 17

6. To add a new sucker rod or sinker bar click match the calculated stroke length, and correct
on the + button. This opens a new window out of order dynamometer data. You can allow the
where you enter the following information friction to be entered for each case, allow XDIAG
about the rod, rod grade or manufacturer to calculate friction if there is a traveling or stand-
name, minimum tensile strength in psi for ing valve leak detected and set a friction limit. You
English or kPa for Metric data entry, and stress can also set a target pump intake pressure. If you
analysis method. Also, there is a check box on enter IPR data, XDIAG can use your target pump
the bottom of the window to identify the rod intake pressure to calculate additional possible
as a sinker bar. This changes the available rod production capacity.
diameters of the custom rod grade. XDIAG
follows the API 11B for rod sizes.
7. When you are done entering the information 1.4.5 How the Automatic Batch Run
for the rod, click on the OK button to save the Works
custom rod. Before XDIAG can run in automatic batch mode,
you must specify the directories and the time you
want to start analyzing the wells. XDIAG will
After you enter one or more custom rod grades,
first look at the XDIAG data directory for data
you can modify or delete any of them by clicking
files for each well (.xdg files). Then, it will look at
on the rod name and them clicking on the appro-
the dynamometer file directory for dynamometer
priate option. Once you enter a rod grade to your
files that are newer than the XDIAG files. If a
custom list, it will appear on the same list as the
new dynamometer file exists in this directory with
rest of the rod grades that are built into XDIAG.
the same name as the XDIAG file, then XDIAG
will analyze the well. For example, if you have an
Expert Diagnosis XDIAG file named ABC101.xdg in the XDIAG
directory which was saved on December 5, 2009,
This Setup option allows you to specify expert and a dynamometer file named ABC101.dyn in
input data corrections to be performed by XDAIG. the dynamometer file directory which was saved
For example, to have XDIAG correct load shifts of on December 9, 2009 then XDIAG will analyze
3% or larger, enter a 3 in the input field after you the well.
check the check box labeled Correct load shift
of at least. This is a powerful option that allows
XDIAG to correct bad data so that you can get The automatic batch mode option is primarily for
an accurate analysis without having to re-measure use with a centralized pump off control system that
the dynamometer card. Also, you can select to can generate the dynamometer files needed. How-
have XDIAG correct a load span shift, an entered ever, as explained in the next chapter, this is not
fluid level, a measured stroke length that does not the only batch mode available in XDIAG. If you
18 | Software Installation

do not use centralized pump off control systems or


if you want to create new XDIAG files yourself,
you can still run XDIAG in batch mode. Simply
select to load more than one file from the file menu
(you can select multiple files by highlighting all the
files in the batch when opening a file). The next
chapter will explain this method in more detail.
XDIAG| 19

2 Running XDIAG

To start XDIAG, double click the XDIAG icon An item followed by an ellipsis () opens a
on your desktop. After a few seconds you will first dialog box or another window. For example,
see XDIAGs introductory window then XDIAGs click File and then click Open.
main window. When XDIAG first loads, only a
few of the toolbar buttons are active. This feature
helps guide you through the input windows to be The Visual Input Window and Other Ways to
sure all the required values are entered. The ac- Change Data
tive icons include the following: new case, open
The following figure shows XDIAGs Visual Input
file, setup, email, automatic batch mode, and help.
If you have not set up XDIAG then do so before
you begin entering data for a new case (see Chap-
ter 1 section 1.4.4 for information on setting up
XDIAG). To enter data for a new case, click the
first icon on the toolbar (New) or click File on the
menu bar and then click New.

2.1 XDIAGs User Interface


XDIAG has a user friendly interface that simpli-
fies and speeds up data entry. The program uses
standard Windows features along with other
unique features designed to make entering and
changing data as easy as possible. Windows fea-
tures utilized by XDIAG include the following:
menu bar with drop down menus, control box at
the top right of the main window, and the ability
to resize and move windows.

When selecting an item from the menu, visual


clues tell you what will happen next.

An item followed by no markings starts an


action. For example, click File and then click
New.
20 | Running XDIAG

Window that makes it easy to locate an input pressing ALT. For example, follow this sequence
item you wish to change. When you have entered to open a file using accelerator keys and the arrow
all the required data for a new case, or you have keys: ALT, F, down arrow, and Enter. To close an
loaded a case from disk, the Visual Input Window open menu drop down, press the ESC key. You
will appear if you have it set to open by default. can also move to other menu drop down while you
See the General tab in XDIAGs Setup Window. have on open by pressing the left or right arrow.
The Visual Input Window shows an image of a For example, if you pressed ALT then the F key,
conventional pumping unit system. As you move press the right arrow to move to and open the Edit
our mouse over the picture, tool tips appear nam- menu drop down.
ing the various parts of the system. Whenever a
tool tip is showing, right-click the mouse to see
a popup list box of the input variables associated Shortcut Keys
with that part of the system. Left-clicking opens Shortcut keys give you the fastest access to impor-
the data entry window associated with the part of tant functions. A shortcut can be a single keystroke
the system you clicked. or keystroke combination (usually two keys). For
example, you can use the shortcut key combina-
tions for such features as Cut, Copy, Paste, Open
Another way to change data is to click the Alpha-
File, Save File, etc. There are also keystrokes for
betical List button at the bottom of the Visual
insertion point movement and moving from input
Input Window or on the tool bar. This button will
box to input box in XDIAGs input windows.
open a list of all input parameters in alphabetical
order. Double-click an item in the list or select the
item and clock the OK button to open the input For example, to switch between XDIAG and
window associated with that item. the Program Manager, press ALT + TAB. This
keystroke takes you to the Program Manager but
does not quit XDIAG. XDIAG is still running
2.1.1 Using the Keyboard and may be partially visible on the desktop. At this
Most of the functions you can access with the point, you could start another application or return
mouse, you can also access with the keyboard. For to XDIAG by pressing ALT + TAB until you
example, to open a file using the mouse, click the cycle back to XDIAG in the Program Manager.
Open File button on the toolbar. Using the key-
board, first open the File menu, and then select
Open to open a file from disk. The quickest way to Following is a list of the most common keystrokes
perform these steps is to use XDIAGs accelerator for XDIAG.
keys or shortcuts.
ALT Activates the menu bar. Arrow keys or
accelerator keys select menus and items. The
Accelerator Keys down arrow will open the selected menu.
To use accelerator keys to access menus, first press
ALT + F4 Quits XDIAG and other applica-
ALT to activate the menu bar, the press the ap-
tions. Also, closes dialog boxes and specialized
propriate accelerator key. The accelerator key is
windows.
underlined in the word on the menu. For example,
if you press ALT then the F key, the File menu CTRL + F4 Closes the active window.
will open. You can also use the arrow keys to ALT + Space bar Opens the application
select a function after you activate the menu bar by Control menu.
XDIAG| 21

ALT + - Opens input window Control Index Allows you to search for topics by
menu. Input windows include the Well In- keyword.
formation Window, Production Information Search Allows you to search topic content for
Window, Pump and Tubing Information specific words or phrases.
Window, etc.
About XDIAG Displays information about
Enter Initiates the selected action. your version of XDIAG.
ESC Cancels dialog boxes, menus, etc.
ALT + ESC Cycles through open applica- Click on the About XDIAG option in the help
tions and icons. menu dropdown to find XDIAGs version number.
ALT + TAB Cycles through open applica- To see information about your system click the
tions. System Info button on the About XDIAG
window. You can view information such as Win-
CTRL + F6 Cycles through open input
dows version, operating mode, free system memo-
windows.
ry, and free resources.
Home Moves cursor to the beginning of the
input field or text box.
Click on Contents to see a list of items XDIAG
End Moves the cursor to the end of the input
can provide help with. For example, to get help
field or text box.
with the toolbar, click on Toolbar Options.
F2 Switches the measurement system from XDIAG displays a picture of the toolbar. Click on
English to Metric and vice versa for the current an item in the image for information on that item.
input field. To exit help, click on the control-menu box X or
F1 opens the context sensitive help. The help press ALT + F4. Help saves the window viewing
system will open to the topic related to the position and size so that when you return it will
input field that the cursor currently occupies. remain in your preferred orientation.

Click on Help and then click on Glossary to see


an alphabetical listing of artificial lift terms. To see
2.1.2 XDIAGs Help System the definition of any of the terms in the glossary,
XDIAG has a powerful help system that provides click on the term.
context sensitive help for every single input item.
Also, it allows you to easily locate help on any sub-
ject relating to system simulation and diagnostics.
It even includes a complete artificial lift glossary 2.2 Entering Rod
that provides instant access to definitions for hun-
dreds of artificial lift terms. Pumping System Data

Click on the help drop down on the menu bar to When entering data in XDIAGs input windows,
see the following options: it helps to know the following:

Contents Start page for navigating through The insert mode is on by default. To toggle the
the help system. insert mode on and off press the Insert button.
22 | Running XDIAG

To replace the contents of an input box, double


click the input field to select all of the content Yellow Denotes a required data input field.
in it and enter the new data to overwrite the You must fill in the yellow input fields before
old information. you can move on to the next input window.
If an input window contains information that Cyan Denotes the active input field. If you
is made up of more than one word, double click press the F2 key to change the measurement
any word to select it. You can know type a new units, this color changes to green.
word to replace that word only.

You can move around an input window by clicking


To enter rod system data into XDIAG for the input fields with the mouse are using the TAB key.
first time, click on the first toolbar icon or go to As you press the TAB key, the cursor will jump
the menu bar and click File then click New. This forward to the next input field. You can also move
opens the Well Information Window as the next backward through the input fields by pressing
figure shows. This window acts like a standard Shift + TAB. Completed input fields will change
window and can be moved and resized. from yellow to white.

XDIAGs input windows use the following color You can get context sensitive help for any input
scheme to help with data entry: field by pressing the F1 key. Use the context sensi-
XDIAG| 23

tive help as often as possible because the help sys- the current date that is on your computer, click the
tem contains important information that will allow Today button next to the date input field to over-
you to make better use of XDIAG (this includes write the old date. If the date on your computer is
assumptions and limitations built into XDIAG). incorrect you can manually enter the date.

2.2.1 Entering Well Information Data Comment

Company name You can type up to 100 characters in the comment


field. The comment field allows you to enter obser-
If you entered a accompany name in Setup, it ap- vations or other useful information about the well.
pears in the Company name field. You eliminate
the need to enter your company name each time
you create a new case by utilizing the defaults fea- Source of Dynamometer Data
ture in Setup. See section 1.1.4 of this manual for
The source of the dynamometer data drop down
information about the Setup feature of XDIAG.
list allows you to select either a Theta dynamom-
eter file (.DYN), a Lufkin Automation dyna-
Well name mometer file (.DAT), a Dynostar file to extract a
dynamometer card from it (.DNS), or Automatic
The well name is required because XDIAG uses it Batch Mode where it will locate the dynamometer
to create the default file name when you save the files when it runs. To change the source of dyna-
case to disk mometer data, select one of the options above. If
you select a file type you will be asked if you would
like read in a new file. If you click yes you will see
Date a dialog box to find and open the dynamometer
The date defaults to the current date on your com- file. You can also read in a new file without chang-
puter. If you load a file and you would like to insert ing the source of the file by clicking the Read new
24 | Running XDIAG

file button. After you load a dynamometer file


XDIAG will generate a miniature plot of the card
Run time
shape. If you use an Echometer dynamometer sys-
tem, select the Theta dynamometer file because The run time you enter allows XDIAG to ac-
the Echometer system files are saved in the Theta curately calculate the production rate and daily
format. You can also read a card directly from a energy consumption. If the well is operating
Dynostar file by selecting Import from Dynostar throughout the day then the default 24hrs/day ap-
File. You dont have to export the card to a .DYN plies. Adjusting the run time is generally done for
file first. XDIAG has the ability to extract a spe- wells that use pump off controllers.
cific dynamometer card from a Dynostar file. You
can open a Lufkin Automation Dynamometer file
which has a .DAT extension by selecting Lufkin Pump depth
Automation Dynamometer File. Pump depth is used to calculate fluid loads and
check the rod string depth entered in the Rod
String Information Window. If there is a discrep-
Options ancy, you will be informed after you enter the rod
You can manage the dynamometer input data string information.
using the Options button on the Well Informa-
tion Window. These options include adjusting the
load cell measurement, detecting and correcting Tubing and Casing Pressure
non-kinematic surface positions, and detecting The tubing and casing pressures are used in the
and correcting phase-shifted surface positions. IPR calculations. The rest of the required informa-
You can set the options to use the configuration tion for IPR calculations are found in the Produc-
in Setup (Expert Diagnosis tab) or select one of tion Information Window.
the available options. You can have XDIAG us
the calculated kinematic positions instead of the
measured positions on the dynamometer card and Stuffing box friction
you can manually adjust the position shift and top The default stuffing box friction is 100 pounds.
of stroke. A position phase shift refers to a problem This friction can be adjusted for tight stuffing box-
with the position measurements in the dynamom- es. The best way to estimate the stuffing box fric-
eter card. If the position recordings have a lag time tion of you well is by performing a history match
then there is a shift as the card is generated. Ad- using a predictive program such as RODSTAR.
justing position phase adds or subtracts an amount
of time which will correct the problem caused by
the lag when recording the surface card. There can Fluid Properties
also be a shift in the card if the top of the stroke
was incorrectly set when the card was recorded. The water cut percentage, along with the oil API
Some dynamometer recording equipment requires gravity, is used to calculate a default specific
the user to press a button when the unit is at the gravity for the produced fluid. This affects the
top of the stroke. If this is done incorrectly, the weight of the fluid on the plunger when running
adjustment input field can correct the top of stroke XDIAGs diagnostic calculations. These values are
shift by adding or subtracting a few inches from also used to calculate lifting costs per barrel of oil
the points in the dynamometer card. You can also and to calculate specific gravity of the fluid in the
set XDIAG to not correct or detect such problems. casing-tubing annulus. The fluid specific gravity
can be entered manually or XDIAG can use the
water cut percentage, water specific gravity, and
XDIAG| 25

the oil API gravity to calculate the fluid specific pressure has been measured for the well. XDIAG
gravity. This fluid specific calculation is accurate allows pump intake pressures that are 14.7 psi
when the produced fluid is liquid. If free gas occurs greater than the casing pressure. If the wellbore
in the well then you should enter a fluid specific contains a packer, you must enter a low casing
gravity that is less than the calculated fluid specific pressure to be able to enter a pump intake pressure
gravity. Performing a history match is the best way lower than the measured casing pressure.
to adjust the fluid specific gravity.

Pumping speed (SPM) and Gross production


XDIAG assumes that the tubing-casing annulus XDIAG uses these two variables to detect prob-
is full of oil. It calculates the specific gravity of the lems with the well. If the calculates production
oil from the API gravity you enter. If you do not from the entered SPM does not match the entered
agree with this assumption then change the oil production rate then XDIAG knows that some-
API gravity to correspond to the specific gravity thing may be wrong with the well. Along with the
you would like simulate in XDIAG. For example, pattern recognition system, XDIAG can inform
if you want to simulate water in the casing-tubing you of problems with the well that could reduce
annulus instead of oil, then enter an API gravity of the production rate.
10.

Inflow Performance Data


2.2.2 Entering Production Information The Production Information Window gives you
Fluid level the capability to calculate additional production
Please not that when you enter a measured fluid rates if you reduce the pump intake pressure. Click
level and you do not select to have XDIAG to the IPR Data button to expand the window to
correct the fluid level in Setup, XDIAG uses the enter inflow performance data.
entered fluid level in its calculations because it
assumes that the entered value is accurate. If you
Required data includes calculation method (cor-
want XDIAG to use the fluid level that it calcu-
relation), depth from surface to middle of perfora-
lates from the downhole pump card lines then do
tions, static bottom-hole pressure, and bubble point
not enter a fluid level.
pressure. You can also enter up to 10 test points.
The pressure that corresponds to the production
Pump intake pressure test points can either pump intake pressure or
flowing bottom-hole pressure (in the middle of the
Use this production input if the pump intake perforations). If you do not know the value of the
26 | Running XDIAG

bubbling point pressure, but you know you are pro-


ducing below the bubble point pressure, then leave
the bubble point pressure field blank and check the 2.2.3 Entering Pump and Tubing
Producing below bubble point check box. After Information
you enter the last IPR input item, click on the Up- Tubing size
date prod button to allow XDIAG to calculate the
maximum oil, water, and fluid production rates. Select the tubing size of your well from the drop
You can also see the IPR plot by clicking the IPR down list. The inner and outer diameters of the
Plot button. When the IPR plot is displayed, tubing size will be displayed to the right of the
you can move the horizontal line that you see drop down. You can select other in the drop down
on the plot with the mouse to see the calculated to input custom tubing dimensions. The tubing in-
production rate for any bottom-hole pressure. You ner and outer diameter fields become activated and
can print the IPR plot by clicking the Print button you can enter these measurements for your custom
at the bottom of the IPR plot window. Click the tubing size.
Close button to return to the IPR input window.
Tubing anchor
You can check the tubing anchor checkbox to enter
the tubing anchor depth. XDIAG used this input
XDIAG| 27

as part of the calculation to determine the stretch


of free tubing.
Rod-tubing friction coefficient
Include buoyancy effects
You can enter your own rod-tubing friction fac-
Use this checkbox to include the force of the fluid tor in this field. If you do not know what to enter
on the rods when calculating the rod string stress have XDIAG calculate the rod-tubing friction
loading. coefficient for you. The rod-tubing friction number
primarily affects the calculated downhole pump
card shape and the gross pump stroke.
For steel rods we recommend always excluding
buoyancy effects. If the bottom minimum stress
of bottom sucker rod section is in compression If you are analyzing a well with high friction,
(without buoyancy effects), you must add enough you may want to use a higher rod-tubing friction
sinker bars to make this number positive to avoid coefficient to get a more accurate downhole pump
buckling problems. For example, if you are using card and sucker rod stress analysis. However, it is
a three-tapered rod string with 1, 7/8, and on better for most cases to allow XDIAG to calculate
the bottom, check the bottom minimum stress on the friction coefficient for you; if you use a friction
the rods. If this number is negative, add sinker factor that is too large, you may get a distorted
bars or sinker rods to make this number positive. downhole pump card shape.

The bottom of the sinker bar section will always Even if the actual friction between rods and tubing
be negative (due to the resistance on the plunger as is much larger than the calculated friction coef-
it moves down on the downstroke). This is normal ficient, the calculated downhole pump card shape
and is not a problem. will be easy to diagnose. You can remove frictional
loads from the actual fluid load on the pump
plunger by setting horizontal lines on the calcu-
For fiberglass & steel rod strings, also do not lated downhole pump card. This is explained later
include buoyancy effects when analyzing the steel in this chapter (setting lines).
section of the taper. Run the case again with buoy-
ancy effects to check if the fiberglass rods are in
compression.
28 | Running XDIAG

Plunger size and pump type empty rows will be created so that you can add the
required information for each taper. You can enter
XDIAG will use the pump type to inform you if
up to 10 rod tapers.
the pump with the selected plunger size will not fit
into the tubing of the well. Insert pumps fit inside Rod grade
the tubing, tubing pumps attach to the tubing and This field is populated with a drop down which
are connected with an on-off tool, and large bore contains all rod data (including custom rod data
pumps are thin walled to allow for even larger entered in Setup). The rods are separated by type
plungers. You can select the plunger size from the (steel, fiberglass, continuous, and sinker bars).
drop-down list or select other and enter a custom
plunger size in the input field next to the drop-
down. Rod size
The rod sizes follow production information (API
and manufacturer information for available rod
2.2.4 Entering Rod String Information diameters). There is also a custom rod diameter
XDIAG can analyze steel (including continuous feature. Select Other from the drop-down and you
rods) and fiberglass rods, by performing the appro- can enter the rod diameter in the Actual diameter
priate stress analysis calculations depending on the field. After you select a rod diameter for the top
type of rods you specify. taper, simply click the diameter fields for the rest
of the tapers and XDIAG will automatically select
the next size down to create a common string
Number of tapers or segments design. When proceeding to the next input screen,
Click the button with the pound or number XDIAG will warn you if the selected rod sizes will
symbol to select the number of rod tapers in the not fit the selected tubing size or if they require
string. Once you select the number of tapers, the slim-hole couplings.
XDIAG| 29

the rod section and then click the remove button.


Actual diameter When you select a rod section, XDIAG outlines
the section with a light blue rectangle.
This field shows the actual diameter of the rod
taper as a decimal. The actual diameter may differ
from the selected rod diameter depending on the To add a rod section, click a rod section and then
manufactures specifications. click the add button. XDIAG automatically creates
a new slot for the new section, moves the other
sections below the new section, and increases the
Length number of rod sections by one.
Enter the length of the rod taper in this input field.
Once you enter the length for each taper above the
last, XDIAG will automatically enter a rod taper 2.2.5 Entering Pumping Unit Data
length for the last taper to match the rod string
length to the pump depth. You can change this en-
try if you wish. XDIAG will run if the rod string This input screen handles all pumping unit data
is no less than 50ft from the pump depth. XDIAG entry. You can select a pumping unit from the
will not run if the rod string is longer than the database that comes built into XDIAG by using
pump depth. There are two displays on the bot- the drop down or entering the pumping unit ID
tom section of the window which show the pump and you can select a pumping unit from the list
depth and the rod string length. This makes it easy of measured units that you entered into XDIAG
to enter the correct length and run XDIAG. yourself through Setup. Once you select a pump-
ing unit, you can enter/select all other associated
information.
Steel rod service factor
The steel rod service factor is used to adjust the rod Manufacturer
loading calculations. The service factor enables you
to degrade the stress rating of your rods based on This drop-down contains all of the available
corrosive conditions or other reasons that lead to pumping unit manufacturers. If you entered a
premature rod failures. A service factor between measured unit using Setup, you can find your cus-
.8 and .9 is recommended in most cases. For wells tom pumping unit entry by selecting the (Mea-
that produce large amounts of H2S you may want sured pumping units) option at the top of the
to use a service factor of 0.75 or even 0.7. The drop-down. Once you select a manufacturer you
smaller the service factor you enter, the stronger can select the specific pumping unit from the list
(larger diameter or higher stress rating) the rods box that is populated directly below the manufac-
must be to avoid becoming overloaded. The default turer drop-down. This list box shows the data that
service factor in the program is 0.9. If you enter you entered: manufacturer name, API designation,
this service factor it means that you do not want to Unit Name, and Other Info.
exceed 90% of the calculated maximum allowable
stress.
If your unit is not in the built in database and you
do not have the measurements to add the unit in
Adding and removing rod sections Setup, then use a unit that is close to it. As long as
you use the same unit geometry and you select a
XDIAG allows you to add and remove rod sec- unit with the same stroke length and gearbox rat-
tions from anywhere in the rod string. For exam- ing, the results should be very close to the results
ple, if you want to remove a rod section, first click
30 | Running XDIAG

using the actual unit. assigned a unit ID. This feature makes it easy to
jump to common pumping units with a short ID
entry. If you are maintaining lists of pumping units
If after you enter a pumping unit ID XDIAG in your field for analysis, add the pumping unit ID
displays The pumping unit ID you entered is not to the lists. Using the pumping unit ID makes it
valid this means that the ID you entered is not easy to select the pumping unit without the need
recognized. This can happen for two reasons: to first select the manufacturer then finding the
exact unit.

You entered the wrong ID such as CL901


instead of CL91. Use custom pumping unit list checkbox
You have erased the pumping unit file by ac- Check this checkbox to filter the pumping unit
cident or it has been changed, or the pumping database. Only units that you assign to be in the
unit files are not in the same directory as the custom pumping unit list will be displayed in the
XDIAG.EXE file. list box once this checkbox is checked. For in-
formation on how to add pumping units to the
custom pumping unit list see section 1.4.4 of this
Unit ID manual under Pumping Unit Options. To auto-
Each pumping unit in the built in database is matically add units to the custom pumping units,
XDIAG| 31

select a unit then check the custom pumping unit unbalance for conventional units can be either
list checkbox. XDIAG will ask you if you would positive or negative. Mark II units always have a
like to add the selected unit to the custom pump- negative structural unbalance because their geom-
ing unit database. etry places the saddle bearing on the back of the
walking beam. This eliminates the possibility of
balancing the walking beam on the saddle bearing.
Crank rotation The walking beam will always want to rotate to
Select the crank rotation using this drop-down. that the horsehead rests on the ground. The struc-
XDIAG will default to a recommended crank tural unbalance will be filled in with the value that
rotation that should give the least gearbox loading. is in the database. You can manually change it if
If the unit is one-directional then this feature will you would like. When you enter a custom unit in
be disabled. Setup, if you do not know the structural unbalance
for the unit you are analyzing then enter zero. In
most cases the structural unbalance will not affect
Crankhole the results significantly.
Select the crank hole using this drop-down. The
measured stroke length is displayed next to the Counterbalance options
crankhole number. When you select a crankhole,
the calculated stroke length is displayed below the There are several options available for entering the
drop-down. The crankhole numbers are labeled by counterbalance information. Counterbalance infor-
number beginning with the closest to the slow- mation used in XDIAG changes depending on the
speed shaft. This is because some pumping units type of unit you are analyzing. Conventional units
have optional cranks that have extra crankholes are balanced using a counterbalance moment about
(such as 4 instead of 3 or 5 instead of 4). This the slow speed shaft. Air-balanced units are coun-
extra crankhole is always the farthest crankhole terbalanced using tank pressure. Beam balanced
from the slow-speed shaft. If the crankhole on units are balanced by the structural unbalance.
the end of the crank (farthest from the slow-speed Long-stroke units are balanced by counterbalance
shaft) is identified as crankhole number 1, the weight. If you do not know the existing counter-
same pumping unit using crankhole number 1 can balance XDIAG will only run the gearbox calcula-
have a different stroke lengths depending on which tions using the balanced conditions.
crank is on the unit. By identifying the crankhole
closest to the slow-speed shaft as crankhole num-
ber 1 we can avoid this confusion. For crank balanced units you can enter the existing
maximum counterbalance moment, counterbalance
effect (moment and angle), import the CBE from
Structural unbalance the dynamometer file (if it is in the file), or use
XBAL to import the existing counterbalance.
Structural unbalance is a term used for pumping
units with a walking beam. It is defined in the
API 11E as the force needed at the polished rod For air-balanced units you can enter the existing
(parallel to the polished rod) to hold the walking tank pressure at the bottom of the stroke, counter-
beam in the horizontal position while the pitman balance effect, or import the CBE from the dyna-
arms are disconnected from the crank pins. This mometer file (if it is in the file).
force is positive when the force is acting down and
negative when acting up. See the figure for a visual
representation of structural unbalance. Structural For long-stroke and hydraulic units you can enter
32 | Running XDIAG

the counterbalance weight, counterbalance effect, Motor type


or import the CBE from the dynamometer file (if Select the motor type from the drop-down list.
it is in the file). The most common electric motors are available.
The available motor sizes are populated after a mo-
tor size is selected.
2.2.6 Entering Motor Information

Motor size
XDIAG contains the most common electric mo-
tors which allow XDIAG to calculate the lifting Once the motor type is selected, the available
cost and warn you of problems that might occur motor sizes are populated in this drop-down list.
such as small motor size. XDIAG will inform you if the motor size may be
too small or too big for the well.

Electricity cost
Motor setting
XDIAG uses the electricity cost to calculated lift-
ing cost. XDIAG uses the instantaneous efficiency Motors such as the Sargent Econo-PacII have
at many different points throughout the stroke to different motor settings. If you select one of these
find electricity consumption. These electricity con- motors then the motor setting drop-down will ap-
sumption values are then used with the electricity pear. Select the appropriate motor setting from the
cost to calculate the cost to lift the fluid. drop-down list.
Power meter type
Select detent if you are given no credit for generat-
ed power. Select non-detent if you are given credit 2.3 Storing Cases/Files
for generated power. This variable is used to adjust
the lifting cost calculation. The generated power
will lower the lifting cost if the power meter type After you finish entering data, you can save the
is non-detent. data to disk by clicking on the quicksave button
on the toolbar (diskette icon), or by selecting File
from the menu bar and then choosing Save As...
This opens a standard Windows dialog box used
for storing files. XDIAG will use the first non-
blank characters from the Well Name input from
the first input window as a default file name. The
XDIAG file extension is .XDG. We suggest
saving a new file if you change something in the
case so that you can recover previous input data.
If you wish to save over the previous file (use the
same name) simply click the quicksave icon on the
toolbar to save over the file.

XDIAGs Permanent Memory Feature


Like all software developed by Theta Oilfield
Services, XDIAG has a unique feature that saves
XDIAG| 33

the data you enter automatically as you fill in each


input field. You will never lose data if XDIAG or
2.4 Running XDIAG
your machine shuts off unintentionally due to a
computer crash or loss of power. This works even The run button on the toolbar will be activated
if you exit the program without saving your data. after you enter all the required data to perform
If any of these scenarios occur, the next time you diagnostic calculations. Click on the run button to
open XDIAG you will be prompted with the run XDIAGs diagnostic calculations and receive
following message: The previous XDIAG for a complete report. You can also click Run on the
Windows session ended while data was still being menu bar to run XDIAG. If XDIAG detects any
entered. Do you want to continue entering data? problems with the input data you will be prompted
Click Yes and XDIAG will start from where you after clicking the Run button.
left off from the last time you ran the program.

XDIAG will automatically display the output re-


port after the calculations are complete. The pages
34 | Running XDIAG

of the report that are displayed can be managed in cards to see the stroke at the surface and the pump
Setup. See section 1.4.4 in this manual to set up simultaneously. Click on the play button to see
XDIAG. the actual pumping speed at the surface and at the
pump. A dot on each card indicates the movement
at the surface and at the pump. You can observe
When the results window opens, you can jump to the delay between the surface and downhole cards
different plots by use of the buttons on the bottom as the stroke is translated through the rod string.
of the window. You can open the dynamometer
plot, torque plot, IPR plot (if IPR data was en-
tered) and you can return to the output report by This animation helps you to understand the dy-
clicking the Report button. namics of the pumping system with respect to
stretch of the rods, the speed of the plunger versus
the speed of the polished rod, and the load fluctua-
2.4.1 Dynamometer Animation tions of the pump plunger. This feature allows you
to learn and understand more about how the rod
pumping systems work. You will be able to see
When the dynamometer plots are displayed (af- different operating characteristics such as under-
ter clicking the Dynamometer button) you can travel, overtravel, compressive wave reflections of
animate the surface and downhole dynamometer the sinker bars when you have fluid pound with
XDIAG| 35

fiberglass rods, plunger speed versus polished rod 2.4.2 Setting Horizontal and Vertical
speed during fluid pound, effect of overtravel or Lines
undertravel on plunger speed, etc. This animation
may reveal reasons for the surface card shape with
respect to the downhole card shape. The controls The purpose of setting horizontal lines on the
at the bottom of the window allow you to play, calculated downhole pump dynamometer card is
stop, or move forward through each time step to calculate fluid load, pump intake pressure, and
one frame at a time. fluid level. The purpose of setting vertical lines
on the downhole pump card is to calculate net
stroke and production through the pump. Chapter
Exporting Dynamometer Card Files 3 explains the theory behind line setting and the
You may use XDIAG to export surface dynamom- limitations of this method of calculating fluid level
eter card files. XDIAG saves these files in the and pump intake pressure. This section discusses
Theta dynamometer file type. There must be data the mechanics of setting the lines once the down-
in memory before using this option. If you export a hole pump card is calculated.
file before running XDIAG, the dynamometer file
will be a copy of the imported dynamometer file.
First, please note that you do not have to set lines
After running XDIAG, when you export a dyna-
yourself. XDIAG has the expertise necessary to
mometer file, you will be asked if you would like to
decide when and where to set lines. In some
export a modified dynamometer card if any correc-
cases XDIAG will not set lines because it is dif-
tions were made to the card by XDIAG. The files
ficult to determine where to set the lines. Although
exported by XDIAG have a DYN file extension
XDIAG sets these lines for you, you may still set
(for example, ABC#1.DYN).
36 | Running XDIAG

the lines yourself if you wish. XDIAG will use the values calculated from your
line settings. However, on the calculated results
page of the output report, in the section labeled
To set lines manually, click on the Set Lines Tubing, pump and plunger calculations, your line
button at the bottom of the Output Report Win- settings will be reflected in these calculates results
dow. This will open a window which displays the regardless of whether or XDIAG uses them or not.
downhole dynamometer card with horizontal and
vertical lines.
2.4.3 Exporting the Balanced Maximum
Counterbalance Moment or Structural
To move a line, move the cursor over the line. The Unbalance
cursor will change shape. Click and hold the left
mouse button then drag the line to the desired
location. While the line is selected it changes from After XDIAG runs, it calculates the balanced
red to orange. When the line is at the desired maximum counterbalance moment to balance the
location, release the left mouse button. When you unit with the existing conditions (structural unbal-
release a line it will become red again. As you ance for beam balanced units). Simple enter the
change the distance between the horizontal lines, counterbalance data into XBAL and XBAL will
you can see the fluid over the pump, fluid level, calculate where to move the counterweights or to
and pump intake pressure values dynamically add/remove counterweights to balance the unit.
change at the bottom of the window. Please note that this will balance the unit for the
current conditions. If there is a problem with the
well, you should fix the problems before attempt-
Follow the same procedure to move the vertical ing to balance the unit.
lines to calculate net pump stroke and production
through the pump. As you change the distance
between the vertical lines, you see the net pump Crank balanced units
stroke and production values dynamically change
After XDIAG runs, it calculates the max. CB mo-
at the bottom of the window.
ment needed to balance the unit for either mini-
mum torque or minimum energy consumption. For
To go back to the line settings made by XDIAG more information see the Torque Analysis section
just click the XDIAG settings button under the in Chapter 3.
horizontal line header or vertical line header on
the bottom right of the window. If you need help
XDIAG works with XBAL to make data ex-
setting lines or if you have questions regarding
change very easy. To transfer a balanced max CB
how and why line setting works, press the F1 key
moment from XDIAG to XBAL, click on the
for context sensitive help on the setting lines. After
XBAL button on the XDIAG toolbar. It shows
you finish setting lines on the downhole pump
an arrow and XBAL on it indicating that it sends
card, click on the OK button to go back the Out-
information to XBAL. If XDIAG calculated a
put Report Window.
balanced max CB moment for minimum torque
only, clicking the XBAL button will send that
Please note that even though XDIAG allows you value to the Theta Clipboard with no other ac-
to change the line settings, the program does not tion required. If XDIAG calculated a balanced
necessarily use the numbers calculated from your max CB moment for minimum energy along with
line settings. If your line settings make sense then one for minimum torque, you will be prompted
XDIAG| 37

Once you define the output pages


you want in the report, XDIAG
will continue to generate this re-
port until you change the settings
again.

When using the print button on


the toolbar, XDIAG will automat-
ically print to your default printer.
as to which value you would like to send to the If you would like to send the report
Theta Clipboard. to a different printer, click the print button on the
top right of the Output Results Window. This will
open a standard Windows printing dialog box. You
The Theta Clipboard is a separate file that stores
can then access the printer properties and select
the exported data to be retrieved by Theta soft-
the printer like most Windows programs.
ware. It is a single file which means that every
time you export a value, the previous value will be
overwritten. These values will be saved in this file
even after XDIAG is closed. 2.6 Loading Data from
Beam balanced units
Disk
The same procedure for crank balanced units
applies. XDIAG will use structural unbalance After you enter and store your input data, you can
instead of maximum counterbalance moment to easily modify it by loading it back in memory. You
balance the unit. This allows XBAL to calculate may need to do this if you want to analyze a new
the amount of counterweight and the position on dynamometer card or make an equipment change
the beam to balance the unit. on the same well.

To load a previously saved file, click on the open


2.5 Printing the Output file button on the toolbar. Or, you can click on File
on the menu bar and then on Open. A standard
Report Windows open file dialog box will open. Select
the file you wish to load by double clicking on it or
selecting the file and clicking the Open button.
To print XDIAGs output, click on the printer icon
located on the toolbar. To change what the pro-
gram prints, open Setup from the toolbar and then If there is data in memory from a current case you
click on the Output Options tab. Select the out- are building, XDIAG will warn you that loading
put pages you want generated then click OK. Now a file will erase the current data in memory. This
that you defined the pages in the report, when alert will help you to avoid accidental loss of input
XDIAG prints the report you will have printed the data so you will have a chance to save it.
desired pages.

XDIAG can read all Theta Oilfield Services Inc.


38 | Running XDIAG

file types (RODSTAR-V/D, RODDIAG, and card if you chose to use a RODSTAR file to run
XDIAG). By default, the open file dialog box XDIAG. Being able to open RODSTAR file types
shows the XDIAG files when it opens. To load is a quick way to enter the required well data that
a different file type, such as a RODDIAG file, is shared between the programs. This eliminates
click on the drop-down list labeled Files of type the need to re-enter the well name, pump depth,
and select the file type (.rdg for RODDIAG files). run time, etc.
This applies a filter to the list of files you see so
only RODDIAG files are displayed. To load one
of these files, double click the file or select the file To locate a file, you can click on the scroll bar
and click the Open button. If the file you are look- next to the file list, or you can press the Page Up
ing for is not in the list you can change the direc- or Page Down keys to quickly move through the
tory like other standard Windows programs. list. To move to the beginning or the end of the
list, press the Home key or End key respectively.
If the current directory contains many files, it
When you open predictive program file types, the may be faster to press the first few characters of
loaded data will not contain any dynamometer the file name to find the file you are looking for.
card data. You will have to load a dynamometer For example, if you are looking for a well named
XDIAG| 39

PR100.xdg then enter PR1 and the dialog box


will jump to the file that begins with PR1. It may
be equally beneficial to simply use the first letter of
the file name.

2.6.1 Recent Files Feature

XDIAG has a feature that makes it easy to re-


load a file you recently worked with. Instead of
clicking on Open icon on the toolbar, click on the
arrow next to it to open a list of recent files used in
XDIAG. You can also click on the File menu and
click Recent Files to open the recent files list. This
list is made up of the last 20 files ran and or saved
with XDIAG. Click on a file in the list to load the
file.
XDIAG| 41

3 Expert Diagnostic Analysis

XDIAG is a sophisticated diagnostic tool that


combines expert knowledge and pattern recogni-
Also, XDIAG can calculate fluid level, pump
tion with state of the art wave equation and pump-
intake pressure, net stroke, and fluid rate through
ing unit kinematic models. You can use XDIAG
the pump. For wells with packers, or foamy fluid
to quickly analyze the performance of existing
in the annulus, XDIAG may be the only way to
rod pumping systems. XDIAG can simulate any
get a pump intake pressure. If you have IPR data,
pumping unit geometry and gives accurate diag-
XDIAG can even calculate additional production
nostic results regardless of pump depth, rod string
potential based on your target pump intake pres-
type, or production rate. You must make sure that
sure. Combining these calculations with XDIAGs
your input data is accurate to get accurate results
scoring capability and expert diagnostic analy-
from XDIAG. However, because of its sophisticat-
sis report and you can use XDIAG to optimize
ed input data error detection features, XDIAG can
the well. The following sections explain how to
even detect and correct common input data errors
use XDIAG as a diagnostic tool of common rod
such as incorrect load cell calibration, incorrectly
pumping problems. As you become more familiar
measured fluid level, wrong stroke length, etc.
with XDIAG you will discover many different
ways of using the program to help you identify
XDIAG automates the expert diagnostic analysis problems with your rod pumping wells.
of large numbers of rod pumping systems whether
they are connected to centralized pump off control
systems or not. XDIAG has unique features that
have been specifically designed to allow you to ef- 3.1 Explanation of
fectively use the results of the program. The capa-
bility of XDIAG to run in batch mode, creating
XDIAGs Output
summary spreadsheet files, makes it easy to man-
age the information XDIAG provides to you about To maximize the benefit of using XDIAG, it is
your wells. important to understand its output. After XDIAG
runs, it displays the expert diagnostic report
(including a scoring page to show the areas of the
XDIAG can help you detect almost all surface and
system that need improvement) along with the
downhole system problems which include the fol-
predicted surface and downhole dynamometer
lowing: incorrectly sized prime mover, overloaded
card plots, torque plots, and IPR plots. The expert
gearbox, overloaded pumping unit or rod string,
report created by XDIAG simulates the report a
worn traveling or standing valve, incomplete pump
human expert may write about the rod pumping
fillage, low pump efficiency, undertravel, pump
system. In many cases, the expert report is the only
hitting up or down, etc. Also, because XDIAG
part of the output you may want to read. How-
can accurately calculate the prime mover energy
ever, XDIAG provides you with a calculations
consumption, you can use it to help you identify
page that summarizes all the important system
costly or unprofitable wells.
42 | Expert Diagnostic Analysis

parameters. Following is a detailed explanation of dynamometer card cuts into the straight line sec-
XDIAGs output. tion of the permissible load, this indicates that the
structure of the pumping unit is overloaded be-
cause the polished to load is larger than the struc-
Dynamometer and permissible load plots ture rating of the unit.
These plots show the surface and downhole dy-
namometer card plots, and the permissible load
For the exact numbers of peak net gearbox torque
diagram. XDIAG uses a permissible load dia-
and gearbox loading, look at the torque analysis
gram that shows if the gearbox or structure of
section of the output results page. The permissible
the pumping unit is overloaded or if the mini-
load diagram corresponds to existing conditions if
mum polished rod load is negative. This is differ-
you entered a counterbalance moment. If you do
ent than the traditional permissible load diagram
not enter existing counterbalance information then
which only shows whether the gearbox is overload-
the permissible load diagram corresponds to the
ed. This extended permissible load diagram can be
balanced condition.
made up of several curved lines only, a combina-
tion of curved and straight lines, or straight lines
only. If the upstroke part of the predicted surface Note: The above discussion about XDIAGs
dynamometer card cuts into the curved line of the permissible load diagram refers to beam pumping
permissible load diagram, this indicates that the units and low profile belted units. The permissible
gearbox torque is overloaded at that point. If the load diagram for long stroke units such as Rotaflex
XDIAG| 43

units will have straight line segments that cor- to the of the system. If the permissible load has
respond to the gearbox loading or the structural a trend that is opposite than the predicted dyna-
loading. Hydraulic units do not have gearboxes so mometer card, it may indicate that the pumping
the permissible load diagram corresponds to the unit you selected is not the best geometry for this
structural loading. Please look at the structure application.
loading and gearbox loading value and percentage
for the exact percent unit loading.
Torque plots
When you click on the Torque button on the
In addition to showing whether the gearbox is bottom of the output report window, XDIAG
overloaded, the permissible load diagram also displays the net gearbox torque plots for existing
shows how well the pumping unit matches the and balanced conditions. If you entered an existing
load requirements of your system. If the predicted maximum counterbalance moment (crank balanced
polished rod dynamometer card fits nicely in the units) or structural unbalance (beam balanced
permissible load envelope, this indicates a good unit), you may have a torque plot with as many as
agreement between the pumping unit and the rest three curves: one for existing conditions, one for
of the system. However, if the predicted surface balanced conditions for minimum torque, and one
dynamometer card shows a trend that is opposite for balanced conditions for minimum energy con-
that the permissible load diagram, this indicates sumption. XDIAG will not display the balancing
that design changes are necessary to avoid over- information for minimum energy if the lifting cost
loading the pumping unit and to better match it
44 | Expert Diagnostic Analysis

is close to the lifting cost when balanced for mini- shows. Also, if you entered IPR data, the report
mum torque. If balancing the unit for minimum shows a table of calculated production rates versus
energy will reduce lifting costs by 1% or more the pressures.
balancing calculations for minimum energy will be
displayed.
Set lines
Click this button to go to the line setting window
The torque plot will also be displayed on bottom of where you can change the placement of the vertical
the calculations page by default. You can change and horizontal lines used to calculate fluid level,
this as well as other displayed pages by going to net pump stroke, and net pump displacement.
Setup. More details about this feature can be found in
section 2.4.2 of this manual.
IPR plots
When you click on the IPR Plot button, XDIAG Report
displays the IPR plot for the well as the figure Click the Report button to go back to the default
XDIAG| 45

output report display. The first part of the out- well to determine if it is a good design. Because
put report is the Expert Diagnostic Report Page XDIAG is a diagnostic tool, the data entered into
which has four sections. The Downhole Equip- XDIAG is rarely of an optimized well. The fluid
ment Analysis section shows the condition of the level may be high or pump may be in poor condi-
pump and the fluid level determined by XDIAG. tion. Scoring a well with these conditions will
The Rod String Analysis section shows if any of yield incorrect scores. This is because the fluid load
the rod sections of the rod string are overloaded may be reduced due to the high fluid level. Imag-
and by how much. The Surface Equipment Analy- ine a well received a good score then the operator
sis section shows if the gearbox or pumping unit changed the speed of the unit to pump off the
structure is overloaded. The balancing recommen- well. The structural loading will increase as the
dations are also in this section. The Input Data fluid level drops and there is a possibility of fail-
Analysis section shoes possible input data errors ure due to the increased fluid load. If the operator
that were detected by XDIAG and any input data based his decisions on the scoring of the well with
corrections that are made (such as load cell drift a high fluid level, he may be unaware of this po-
correction). tential problem. For this reason XDIAG scores the
well for the worst case scenario (full pump with
the fluid level at the pump). The score given to the
The next page in the output report is the Scoring well is for the optimized condition, balanced and
Page. XDIAG looks at six vital components of the pumped off with a full pump in good condition.
46 | Expert Diagnostic Analysis

The sections scored are as follows: components for the well. Each section will display
Balanced Gearbox Loading an explanation of the score and how to improve it.

Maximum Rod Loading


Structural Loading After the Scoring Page, XDIAG shows all the
parameters it uses for the calculated results and the
System Efficiency results. Following is a detailed explanation of the
Bottom Minimum Stress Input Data and Calculated Results Page.
Minimum Polished Rod Loading
Input Data
Each section will receive reduced scores if they Along the left side of the Input Data and Calculat-
are over loaded or under loaded except for System ed Results Page you will see the input data for your
Efficiency. System Efficiency will only receive a well. The data is separated into sections to make it
reduced score if it is low. Reduced scores are given easy to read. The top section contains the generic
to sections that are under loaded because these information about the well (run time, SPM, sur-
areas can be optimized to reduce initial costs of the face stroke, fluid level, tubing and casing pressures,
well. You may be able to use a smaller pump jack gross production, and stuffing box friction). As you
or rods which will save money when ordering these move down the page you will see more detailed
XDIAG| 47

information. The following list shows the detailed Minimal tensile strength
sections and the input data in each section:
Fluid Properties
Calculated Results
Watercut
Along the right side of the page you will see the
Water specific gravity calculated results for your well. These values are
Oil API gravity separated into sections to make it easy to read. The
top section contains generic information about the
Fluid specific gravity well (peak and minimum polished rod load, min/
Motor and power meter peak polished rod load ratio, system efficiency,
buoyant rod weight, maximum rod loading, pol-
Power meter type ished rod HP, permissible load HP, polished rod/
Electricity cost permissible load HP ratio, unit structure loading,
and gearbox loading). As you move down the page
Motor type
you will see more detailed information.
Motor size
Pumping unit
The following list shows the detailed sections and
API designation the calculated data in each section:
Crank hole number Required prime mover size for existing condi-
Calculated stroke length tions

Crank rotation Nema D motor

Maximum CB moment (existing) Single/double cycle engine

Structural unbalance Multicylinder engine

Crank offset angle Torque analysis and electricity consumption


(listed for existing, minimum torque, and
The dynamometer file information is in the minimum energy balancing when applicable)
bottom part of this section
Peak gearbox torque
Tubing and Pump information
Gearbox loading
Tubing outer and inner diameter
Maximum counterbalance moment (struc-
Plunger size tural unbalance for beam balanced units)
Tubing anchor depth Counterbalance effect
Rod-tubing friction Daily electricity use
Pump type Monthly electric bill
Pump depth Electricity cost per bbl of fluid
Rod string (listed for each rod segment) Electricity cost per bbl of oil
Rod diameter Tubing, pump, and plunger calculations
API rod grade Tubing movement
Rod segment length Gross pump stroke
48 | Expert Diagnostic Analysis

Gross pump displacement Top minimum stress


Apparent net stroke Bottom minimum stress
Effective net stroke Stress calculation method
Net stroke displacement
Fluid load on the pump The following is a detailed explanation of calcu-
Fluid level lated results.

Pump intake pressure


Pump volume efficiency General calculations
Pump fillage Peak and minimum polished rod loads

Estimated pump friction These values are single polished rod loads. The
peak polished rod load is the maximum load ex-
Rod string stress analysis (listed for each rod perienced by the polished rod while the minimum
segment) polished rod load is the least amount of load expe-
Stress load % rience by the polished rod. The ratio of these values
is also displayed as MPRL/PPRL. This value is
Top maximum stress
XDIAG| 49

used to understand how aggressively the rods are system designs.


oscillating. Some companies use this value as a fac-
tor when determining if their design will run for
an extended period of time without a problem. System efficiency
The system efficiency is calculated using instanta-
neous efficiencies which are calculated throughout
Polished rod horsepower
the stroke. These instantaneous efficiencies are
The polished rod horsepower is the power required used to calculate an overall efficiency which is the
at the polished rod to run the pump. This value is amount of energy supplied to the motor which is
affected by parameters such as pump depth, fluid usable and lifts fluid.
level, plunger size, pump condition, rod-tubing
friction, etc. It is proportional to the area of the
measured polished rod dynamometer card. Buoyant rod weight
The buoyant rod weight is the weight of the rods
in fluid. The fluid creates a force on the rods which
Permissible load horsepower
make them seem lighter than normal. When run-
The permissible load horsepower is the area ning cases with fiberglass rods it is important to
bounded by the upper permissible load line, lim- include buoyancy forces because fiberglass cannot
ited by the structural rating of the pumping unit, be in compression. This will allow you to avoid
and the lower permissible load line, limited by zero this hazard. When running cases with steel it is
minimum load. It can be described as the capac- important to run without buoyant forces because
ity of the pumping unit as the area between these you need to design the rod string so that it will not
lines makes up the recommended operational buckle. It has been proven that buoyant forces to
range of the systems surface dynamometer card for not cause buckling. Removing buoyant forces al-
the given conditions. lows you to look at the linear forces that may cause
buckling.

PRHP/PLHP
The ratio of the polished rod horsepower divided Unit structure loading
by the permissible load horsepower is another value This value is the percent loading on the structure
used to evaluate the design. The ratio of the per- of the pump jack. This number shows whether
missible load horsepower divided by the polished the measured peak polished rod load exceeds the
rod horsepower should be as large as possible with- structural rating of the unit. It must be less than
out overloading the pumping unit. If we were to 100% to avoid pumping unit structural damage or
use all of the available capacity of a pumping unit, failure. If this number is too small (less than70%)
the ratio would be equal to 1. This is not possible then it shows that the unit structure may be too
so it is our goal to maximize this value. For exam- strong for this application.
ple, one case has a polished rod horsepower of 28.9
and a permissible load horsepower of 75.5. The
ratio comes out to 0.38 which means the system Gearbox loading
is only using 38% of the pumping units capacity. This shows how much the gearbox is loaded as
Another system has a polished rod horsepower of a percent. It is recommended that the gearbox is
26 and a permissible load horsepower of 44.5. This loaded between 70% and 95%. For more detailed
system is using 58% of the pumping units capac- information on the gearbox loading and torque
ity. This ratio gives you another way to compare calculations, see the Torque Analysis and Gearbox
50 | Expert Diagnostic Analysis

Torque Plots sections of this output report page. Cyclic loading factor
The cyclic load factor shows how smooth the
gearbox torque changes throughout the stroke. The
Max. rod loading
smaller this value is, the less the gearbox torque
This value is the largest percent loading of all rod fluctuates. The cyclic loading factor is also related
segments. This gives you an idea of how your rod to the thermal losses in the motor. A small cyclic
string design is handling the well at a quick glance. loading factor will result in lower thermal losses in
More detailed information on the rod string can the motor and therefore higher system efficiency.
be found in the Rod String Analysis section of this
output report page.
Counterbalance information
If you enter a maximum counterbalance moment
Required prime mover size for existing or counterbalance effect, the program calculates
conditions the above values for both existing and balanced
This value calculated the required power needed to conditions. If you did not enter an existing coun-
run the pump with the existing conditions. Ex- terbalance moment XDIAG will calculate these
isting conditions refers to the way the pump is values for balanced conditions only. The same
operating which includes leaks, high fluid levels, or applies for beam balanced units with a difference
other production problems. This does not include in the balancing method. XDIAG calculates the
the balancing of the unit. This allows XDIAG to required structural unbalance to balance beam
show you the required prime mover size required if balanced units. This value will replace the maxi-
the unit is balanced for minimum energy or mini- mum counterbalance moment in the output report.
mum torque. Air-balanced units will show tank pressure in place
of both the maximum counterbalance moment
and counterbalance effect on the output report.
Torque analysis Longstroke units (like the Rotaflex) will show
counterbalance weight which will also replace both
Peak gearbox torque the maximum counterbalance moment and coun-
This is the maximum required gearbox torque to terbalance effect.
operate the pump for the current downhole condi-
tions. This value is reflected by the peaks in the
Gearbox Torque Plots. Daily electricity use
The daily electricity use is calculated as Kilowatt-
hours per day. Using the prime mover size and
Gearbox loading instantaneous system efficiency throughout the
This shows how much the gearbox is loaded as stroke, XDIAG can accurately calculate the
a percent. It is recommended that the gearbox is amount of electricity required to operate the sys-
loaded between 70% and 95%. To see more de- tem over a 24 hour period.
tailed information about how the gearbox is oper-
ating you can look at the Gearbox Torque Plots or
the Permissible Load Diagram which is overlayed Monthly electric bill
onto the dynamometer card plots. Using the daily electricity use and the cost of
electricity you enter, XDIAG calculates the cost of
operating the well for one month.
XDIAG| 51

Electricity cost per barrel of fluid or oil Tubing, pump, and plunger calculations
This value is calculated using the production rate Tubing movement
and the cost of electricity to show you the cost
The only calculation in this section which pertains
of electricity to lift a barrel of fluid or oil. Other
to the tubing of the well is tubing movement.
costs such as payroll and maintenance come into
This will give you an idea of the effectiveness of
play when calculating the total cost to lift the fluid
the tubing anchor. If there is no tubing anchor on
from the well. XDIAG can only calculate the
your well, this value might indicate the need for
lifting cost for electricity per barrel with the data
a tubing anchor. Tubing movement reduces the
entered in each case.
efficiency of the well because the pumping unit
is lifting the tubing along with the plunger for a
How to read additional columns for torque and small distance. During the time the tubing is be-
energy consumption calculations ing lifted the plunger is not producing fluid.

For balanced conditions, XDIAG may show one


or two different columns of all Torque analysis Gross pump stroke
and Electricity Consumption calculations: one for
The gross pump stroke is the total distance trav-
balancing the unit to minimize torque and one for
eled by plunger from the bottom to the top of the
balancing the unit to minimize energy consump-
stroke. This value shows the total travel of the
tion. XDIAG will not run balancing calculations
plunger.
to minimize energy if the difference in lifting costs
between balancing to minimize torque and energy
is less than 1%. This is because balancing the unit Gross pump displacement
for minimum energy will cause higher peak loads
on the gearbox. The savings in lifting costs must This value is the maximum amount of produc-
justify the added wear on the gearbox. tion possible given the gross pump stroke calcu-
lated. If the pump us full and the pump produces
fluid throughout the stroke it would produce the
You can use the XBAL program developed by amount of fluid shown here.
Theta Oilfield Services to find out where to move
the counterweights for crank balanced and beam
balanced units. Clicking the XBAL button on the Apparent net stroke
toolbar will record the balancing information to The apparent net stroke is the stroke calculated
use in XBAL. If both balanced columns are dis- where the fluid load is transferred from the travel-
played (for minimum torque and minimum energy) ing valve to the standing valve. Understanding the
you will be prompted as to which value you would mechanics of the pump, some may assume that
like to use when you click the XBAL button on this stroke can be used when calculating the pro-
the XDIAG toolbar. You can also use the maxi- duction of the well. This is incorrect because if the
mum counterbalance moment or counterbalance fluid load isnt very large and the well is producing
effect in conjunction with manufacturer charts to gas, the transfer of the fluid load from the traveling
figure out where to position counterweights to bal- valve to the standing valve may occur while some
ance the units. However, the easiest way to balance of the fluid in the pump is gas. This is because
units is with the XBAL program. the gas pressure may be able to open the traveling
valve before it is compressed into liquid.
52 | Expert Diagnostic Analysis

Effective net stroke amount of produced liquid.


The effective net stroke is always equal to or small-
er than the affective net stroke. This is because it
Net stroke displacement
is the stroke that produces fluid, which omits the
part of the stroke that may have compressed gas. This value is calculated using the effective net
The following figure shows the relationship be- stroke and should be in closer agreement with the
tween apparent net stroke and effective net stroke. actual production of the well. It is the amount
The difference between the apparent and effective of production that this well should be producing
net strokes increases as the fluid load decrease. given the stroke at the pump and the strokes per
This is because the pressure of the compressed gas minute.
doesnt need to be as large to open the traveling
valve. A low pressure corresponds to a larger vol-
ume of gas when gas is present which reduces the
XDIAG| 53

Fluid load on the pump with the pump by recognizing the calculated
This value is calculated using the specific gravity downhole dynamometer card shape.
of the fluid, pump depth, and the fluid level. This
value is the load on the plunger cause by the fluid.
A tubing leak can cause a low pump volumetric
The horizontal lines set on the downhole card are
efficiency. Tubing leaks usually do not affect the
used to calculate the fluid load on the pump.
shape of the downhole pump card. The only clue
you may have that there is a tubing leak is a low
Fluid level pump volumetric efficiency. This also reduces the
overall system efficiency. But to detect tubing leaks
This value is displayed as fluid level from the sur- from pump volumetric efficiency you must have
face or fluid level over the pump. Adding these two accurate production data. So, before you decide to
values together will equal the pump depth. This pull tubing thinking that you have a tubing leak,
value is affected by the placement of the horizon- pressure test the well to verify that leak exists.
tal lines. The horizontal lines that are set on the
downhole card are used to calculate the fluid load
on the pump which is used to calculate the fluid Pump fillage
level. As the fluid level get closer to the surface the
This value is calculated using the gross pump
fluid load on the pump decreases. This is because
stroke and the net pump stroke. This will tell you
all the fluid in the casing annulus is pushing back
if the pump is pumping free gas due to fluid pound
on the fluid in the tubing so the plunger has to
or gas interference.
carry less of the load.

Estimated pump friction


Pump intake pressure
The pump intake pressure is also calculated using
Rod string stress analysis
the fluid load. If you change the horizontal lines This section shows all of the calculated rod data for
on the downhole card you can see how the pump each rod segment and displays the stress analysis
intake pressure is related to the fluid load. method used for each rod segment. It also shows
the maximum and minimum stresses at the top,
and the minimum stress at the bottom of each
Pump volume efficiency rod section. For systems with fiberglass rods the
This value is calculated using the net stroke dis- calculated bottom minimum stress shows whether
placement and the entered production rate. This the fiberglass section is in compression. A negative
will tell you how well the pump is pumping fluid. bottom minimum stress can cause fiberglass rods
If this value is over 100% then the input data has to part prematurely. Also, to maximize rod life,
an error which implies that the pump is produc- stress loading must be less than 100%. If XDIAG
ing more fluid than the volume of the pump can shows a negative stress at the bottom of the fiber-
realistically pump given the stroke length. Pump glass section, or if rod loading for any rod sec-
volume efficiencies from 85% to 95% are excellent. tion exceeds 100%, then the rod string should be
High pump volume efficiencies suggest the pump redesigned. Then, if the rods part you can replace
is in good mechanical condition and it pump little them with a new rod string design. This will help
to no free gas. Lower pump efficiencies indicate maximize rod string life. However, keep in mind
the pump is in poor mechanical condition, or there that you must use a predictive computer program
is incomplete pump fillage due to fluid pound or such as RODSTAR or XROD to redesign the rod
gas interference. XDIAG tells you what is wrong string.
54 | Expert Diagnostic Analysis

For sinker bars XDIAG calculates stresses and The dictionary defines the word dynamometer as
stress loading based on the elevator neck. XDIAG an instrument for measuring force. It comes from
is programmed with the latest API standards and two Greek words: Dynamis meaning force and
uses the appropriate elevator neck diameter for metron meaning a measuring device. Therefore,
each sinker bar size. dynamo-meter simply means force-meter. A
dynamometer records polished rod load (force) as
a function of polished rod position. This is com-
monly called the dynamometer card. Early
3.2 Diagnosis of System technology used equipment to draw an X-Y plot
(dynamometer card shape) on a piece of paper. A
Problems common dynamometer system to date has a load
cell, a position transducer, and a recorder box.
Instead of plotting dynamometer cards on paper, as
Dynamometer and pump off control systems are
the early style dynamometers do, current systems
commonly used with wave equation diagnostic
store data on disk or in the computers memory.
programs, such as XDIAG, to help diagnose com-
The latest technology will send this information
mon pumping system problems. Diagnostic tech-
wirelessly to a server where well information is
nology is based on a mathematical solution of the
stored. These systems can monitor and control
wave equation. The one-dimensional damped wave
wells. The recorded data can be analyzed automati-
equation models the behavior of the rod string
cally and if the data shows a problem the well can
and allows calculation of downhole loads at any
be shutoff automatically. XSPOC is automation
point in the rod string. The wave equation model
software that can do this.
in XDIAG calculates the downhole dynamometer
card from the polished rod dynamometer card that
you enter. Downhole dynamometer cards are much To record a dynamometer card you must insert the
easier to interpret than surface cards because their load cell between the polished rod clamp and car-
shape depends only on the condition of the pump rier bar. The position transducer has a string that
(for most wells). clamps on the polished rod. The load cell contains
strain gauges. Strain gauges are devices that use
the change of electrical resistance of a wire to
Before running XDIAG you must record a quan-
measure load. The strain gauges inside of the load
titative dynamometer card and you must complete
cell contract when a load is applied to the load cell.
an XDIAG data sheet. You can find copies of the
This increases the cross sectional area of the thin
XDIAG data sheet in the back of this manual.
wire. The change in area causes the change in re-
sistance to the flow of electricity though the strain
gauge. The electronic circuits in the dynamometer
3.2.1 Recording Dynamometer Card in box translate changes in resistance into polished
the Field rod load.

You can find most pumping system problems from
The position transducer box contains a potenti-
a dynamometer card analysis with XDIAG. This
ometer attached to a spring loaded pulley that
chapter describes practical, step by step procedures
has string wrapped around it. As the polished rod
of how to use a dynamometer system to get the
moves up and down, the string movement causes
data you need to run XDIAG.
the potentiometer to turn. The electronics of the
XDIAG| 55

dynamometer system translate the number of times good unit brake is vital to ensure operator safety
the shaft of the potentiometer turns into polished especially when installing or removing the load
rod position. cell from the polished rod. If possible, well analysts
should work in teams of two for added safety.

Commonly Used Dynamometer Equip-


ment: Steps for Installing the Transducers
To record a dynamometer card you need a dyna- 1. Stop the pumping unit close to the bottom of
mometer system with a set of polished rod load the downstroke. Engage the units brake and
and position transducers. In addition, you need the make sure that it holds.
following tools: 2. If there is a polished rod liner, put the polished
rod clamp about 6 inches above the stuffing
box. Do not put the clamp on the polished sec-
A set of two or three polished rod clamps for tion of the polished rod since it will be in the
the polished rod sizes in your field.
way when the unit starts to pump. Tighten the
A wrench for the polished rod clamp bolts. clamp to hold the polished rod load without
A load transducer leveling plate. slipping.

A Knock-off which is a piece of pipe one to 3. If you have a Hercules stuffing box (usually
two feet long, cut in half lengthwise, with a red with bolts), insert the stuffing box protec-
tor (metal wedge) to support the load that may
safety latch.
otherwise damage the stuffing box bolts.
A stuffing box protector.
4. Lay out all cables on the ground and zero the
Protective gloves. load and position transducers.
A strong chain that is 12-15 feet long. 5. Turn the unit on and raise the polished rod
A piece of pipe to give you leverage when close to the top of the stroke. Then turn the
tightening the polished rod clamp. unit off and engage the brake.
An empty bucket. 6. Put the knock-off on top of the stuffing box
and secure it by closing the safety latch.
7. Restart the unit and turn the power off just be-
Installing and Removing the Load and fore the polished rod clamp hits the top of the
Position Transducers knock-off. You need to get the clamp to rest on
the top of the knock-off as smoothly as possible
To record a dynamometer card, you need to install
while trying to throw slack between the per-
the load and position transducers on the polished
manent polished rod clamp and the carrier bar.
rod. You must insert the load cell between the
If the pumping speed is high, you may need
permanent polished rod clamp and the carrier bar.
Clamp the position transducer string to the pol- to run the motor on and off every few mo-
ished rod after you install the load cell. You must ments. This is so that you can transfer the load
be very careful when recording data in the field, to smoothly from the carrier bar to the knock-off.
avoid injury. The power switch must be off when When you created enough room to insert the
installing the transducers or making measurements load transducer, turn the unit off and immedi-
around the pumping unit. Also, dynamometer ately set the brake. Make sure the brake is on
measurements are not recommended on units that tightly enough to hold the polished rod load.
do not have brakes in good working condition. A 8. Load transducers are U-shaped and they usu-
56 | Expert Diagnostic Analysis

ally have three buttons that must be pressed 2. Turn the unit on and off to get the carrier bar
to record polished rod load. For accurate load to gently rest on the knock-off and to throw
measurement, at least two of these buttons slack between the carrier bar and the perma-
must be pressed. If the carrier bar is so skinny nent polished rod clamp. Then, turn the unit
that only one button will be pressed, then in- off and set the brake tightly.
sert the load transducer with the buttons facing
3. Remove the load cell safety pin and then
upwards. If you put the leveling plate between
remove the load cell. Do this as quickly as pos-
the carrier bar and the buttons you can be sure
sible to avoid hand injury if the pumping unit
at least two of the buttons will be pressed.
brake does not hold.
Otherwise, insert the load cell with the buttons
down and insert the safety pin to hold it in 4. Remove the position transducer clamp and
place. Some load cells have this leveling plate slowly release the brake until the carrier bar
as part of the load cell itself to avoid having to picks up the polished rod load. Make sure
perform the above steps. there is enough space to allow removal of the
knock-off. Then turn the power off and reset
9. Narrow the distance between the carrier bar
the brake.
and the load cell using the brake. When they
are about 2 inches apart, let off on the brake 5. Remove the knock-off and the polished rod
and let the carrier bar come up fast. If the unit clamp you installed, and restart the unit.
cannot pick up the load, you need to turn the
motor on momentarily until you pick up the
polished rod load. Make sure there is some After you record the dynamometer card and while
space between the carrier bar and the top of the load and position transducers are still on the
the knock-off. Apply the brake as soon as you polished rod, you can do traveling and standing
pick up the polished rod. valve checks. These checks help you find out if the
pump barrel, plunger, or valves are worn.
10. Remove the knock-off, put the bucket as close
to the well head as possible, and put the posi-
tion transducer on top of the bucket to keep it Counterbalance Effect Measurement
clean. Attach the position transducer string to
the polished rod. Make sure the cables are not To have XDIAG do a torque analysis that shows
tangled and then turn on the unit. the existing gearbox loading and unit balancing,
XDIAG needs information about the existing
11. Wait for a few strokes until the well stabilizes counterbalance. One way to enter existing counter-
(which is when the dynamometer card shape balance data in XDIAG is by entering a measured
does not change from stroke to stroke). Then counterbalance effect (CBE). XDIAG uses the
record the dynamometer card, counterbalance measured CBE to calculate the maximum counter-
effect, and the traveling and standing valve balance moment and from this, the existing peak
checks. gearbox torque, etc. An easier and more accurate
way is to use the XBAL computer program (please
contact Theta Oilfield Services for more informa-
Steps for Removing the Transducers tion).
1. To remove the load position transducer, stop
the unit at the beginning of the downstroke.
Insert the stuffing box protector (if needed), The CBE is an indirect measurement of the unit
place the knock-off on top of the stuffing box, counterbalance. To measure the counterbalance ef-
and set the safety latch on the knock-off. fect you must stop the unit with the cranks as close
as possible to 90 or 270, then, with the brake off,
XDIAG| 57

record the polished rod load at that position. You 5. Remove the chain.
must also record the corresponding counterweight
crank angle or record the point on the dynamom-
eter card plot when the counterbalance effect was If the unit is rod heavy then the unit has the ten-
recorded (with respect to position). When you re- dency to stop with the horse head at the bottom of
cord the CBE as a point, you must record whether the stroke and the cranks at the 12 oclock posi-
the unit was in the upstroke or downstroke where tion. In this case you must prop the polished rod
the CBE measurement was measured. You can up using the following steps:
then read in the counterbalance effect from the dy-
namometer file. XDIAG uses the CBE measure-
ment to calculate the maximum counterbalance 1. Stop the unit as close to 90 or 270 as possible,
moment. on the upstroke, and engage the brake. We
stop the unit on the upstroke so that when we
want to remove the clamp we simply turn it on
If the unit is not perfectly balanced then the for a moment and it will pick up the polished
cranks will not stop close to the horizontal posi- rod load off of the clamp.
tion. Instead, they tend to stop close to the 12 2. With the brake on, attach a clamp onto the
oclock or 6 oclock positions. In such cases, to polished rod just above the stuffing box.
record an accurate counterbalance effect you must
chain off or prop up the polished rod. 3. Slowly release the brake. When the clamp rests
on the stuffing box and the unit stop moving,
record the counterbalance effect load.
If the unit is weight heavy then the unit has the 4. Turn the unit on for a moment then off to pick
tendency to stop with the horse head at the top of up the polished rod load off of the clamp. As
the stroke and the cranks at the 6 oclock position. you turn the unit off, engage the brake to hold
In this case you must chain off the unit using the the unit in place.
following steps:
5. Remove the clamp.

1. Stop the unit as close to 90 or 270 as possible,


on the downstroke, and engage the brake. We Stroke Length and Strokes per Minute
stop the unit on the downstroke so that when Accurate stroke length and strokes per minute
we want to unchain the unit we simply turn it measurements are very important when analyz-
on for a moment and it will create slack in the ing the performance of a pumping system. Still,
chain. when using XDIAG you do not need to measure
2. With the pumping unit brake on, wrap a the stroke length since the program calculates it
strong chain around the polished rod clamp from pumping unit dimensions. You only need to
and tie it down to the well head. Be sure to tie measure the stroke length for units that have been
the chain to a strong part of the well head to altered from their original design, when analyzing
avoid damaging it. a hydraulic unit which has a variable stroke length,
or checking the accuracy of the pumping unit
3. Release the brake and record the counterbal- dimensions that you measured.
ance effect (the polished rod load at that point).
4. Turn the unit on for a moment then off to re-
lease tension in the chain. As you turn the unit To calculate stroke per minute (SPM) accurately,
off, engage the brake to hold the unit in place. use a stop watch and record the time it takes for
the pumping unit to cycle through several strokes
58 | Expert Diagnostic Analysis

(for example 10 strokes). Divide the number of 3.2.2 Downhole Pump Dynamometer
strokes by the time in minutes and you will calcu- Card Interpretation
late strokes per minute. In the following example,
we timed a pumping unit which took 50 seconds to
complete 10 strokes. XDIAG combines expert knowledge and pattern
recognition with a wave equation sucker rod mod-
el, accurate calculations of gearbox torque, unit
Tip: When measuring the time for calculating balancing, power consumption, structure loading,
strokes per minute, use a point of reference in the etc. With XDIAG you can answer practically all
stroke to start your stop watch. For example, if you questions about system performance quickly and
start at the bottom of the stroke, then do the fol- accurately.
lowing:

However, because all wells are not the same, you


must be aware of the differences between different
types of rod pumping systems. Rod pumped wells
must be divided into two groups. The first group,
that we will call Group 1, includes wells that
are deeper than 4000 feet of are less than 4000
1. Wait for the polished rod clamp to approach
feet but have pump plungers that are 2.0 inches in
the bottom of the stroke. Start the stop watch
diameter or less. The second group, that we will
just as the clamp stops moving downward and
call Group 2, includes wells that are less than
reverses direction.
4000 feet and have pump plungers larger than 2.0
2. Wait for the clamp to move upward then inches. These two groups have unique character-
downward to the bottom of the stroke. When istics that you must be aware of to diagnose prob-
the clamp is at the bottom of the stroke this lems more accurately.
is stroke number one. Continue to count the
number of strokes in this way.
3. As you are completing the tenth stroke, stop Characteristics of Group 1 Wells
the stop watch as the clamp reaches the bottom Since this group includes all wells deeper than
of the stroke and stops just before it reverses 4000 feet and all wells less than 4000 feet with
direction. pump plungers with a diameter of 2.0 inches or
4. Record the time and calculate the strokes per less, it represents the majority of rod pumped
minute as described above. wells. For group 1 wells, dynamometer card shape
depends on several factors including the follow-
ing: pump depth, rod string material and design,
To run XDIAG you need a recorded dynamometer pumping speed, pumping unit type, pump fillage,
card and an XDIAG data sheet. You must carry prime mover type, etc. This makes surface dyna-
XDIAG data sheets when collecting data in the mometer card analysis very difficult. However, for
field to make sure you have the data you need to these wells downhole dynamometer card shape
run the program. depends only on the condition of the pump. For
example, the pump dynamometer card shape cor-
responding to fluid pound is the same regardless
of depth, pumping unit type, rod string, pumping
speed, etc. Verified downhole dynamometer card
shapes for Group 1 wells are available (see the
XDIAG| 59

appendix for shapes of Group 1 downhole cards) dead fluid alone.


and several papers have been published on diag-
nostic techniques for these wells. XDIAG alone
is sufficient to diagnose pump problems accurately The fluid inertia effects on the pump depend on
for Group 1 wells. You can do this by comparing plunger size, pumping speed, and fluid compress-
the calculated downhole pump dynamometer card ibility. This makes diagnostic analysis of Group
shapes to shapes that correspond to known condi- 2 wells very difficult. For Group 2 wells, both
tions. The figures at the end of this manual show surface and downhole dynamometer card shapes
several downhole pump card shapes that you can depend on pump condition, pump depth, plunger
use for this purpose. size, pumping speed, and the fluid compressibil-
ity. Therefore, unlike Group 1 wells, you cannot
identify the downhole pump condition by simply
Characteristics of Group 2 Wells comparing the calculated pump card shape to
known pump card shapes.
Compared to Group 1 wells, Group 2 wells ac-
count for few of todays rod pumped wells. Group
2 wells include all wells of less than 4000 feet Up to now, the peculiar characteristics of Group
with pump plunger sizes larger than 2.0 inches. In 2 wells had not been well documented. Since the
this group there are many high volume wells that downhole pump dynamometer card shape for any
can cause large production losses when they are given pump condition depends on so many factors,
down. Group 2 wells are separated from Group conventional diagnostic techniques (such as those
1 wells because they are affected by large fluid in- used on Group 1 wells) are insufficient. Compar-
ertia forces. These forces are caused by large plung- ison of calculated downhole pump dynamometer
ers, fast pumping speeds, and low fluid compress- cards for Group 2 wells with known downhole
ibility. card shapes developed for Group 1 wells can
result in incorrect conclusions. For example, the
downhole pump dynamometer card shape corre-
In deeper wells, rod loading is the main factor
sponding to a full pump for a Group 2 well may
limiting production rates. Therefore, to reduce
be similar to the shape for a severely worn pump
rod loading you must use a smaller pump plunger.
for Group 1 wells. This can cause unnecessary
Also, in deeper wells (deeper than 4000 feet) the
pulling jobs and frustration due to misdiagnosis
rod string behaves more like a shock absorber, of pump condition. To diagnose pump problems
stretching when the pump plunger load increases. correctly for Group 2 wells you need an ad-
This effectively absorbs the shock of picking up
ditional tool known as predictive wave equation
the fluid load on the upstroke and no dynamic program. A predictive wave equation program can
fluid forces appear on the downhole pump dyna-
model not only the behavior of the rod string but
mometer card. However, in the shallow high rate
also the fluid inertia effects. RODSTAR-V/D or
Group 2 wells, fluid inertia is significant and XROD (developed by Theta Oilfield Services) is
sometimes can more than double the load on the
such a tool. Because RODSTAR-V/D and XROD
pump plunger. Because the plungers in these wells can model fluid inertia effects, they can accurately
are large, they must pick up the fluid in the tub- simulate the behavior of Group 2 wells and can
ing and accelerate it upward at rates that are much
predict the shape of both surface and downhole
higher than for deeper wells. Also, because of the dynamometer cards for a full pump. If the predict-
shallow depths of Group 2 wells, the rod string
ed dynamometer card shape matches the measured
is practically rigid and does not provide any shock
one, then you know that the pump is in good
absorption. This results in significantly higher
mechanical condition.
loads than would be predicted by considering the
60 | Expert Diagnostic Analysis

Also, XDIAG understands Group 2 wells and If you detect rod compression, you can add more
recognizes strange downhole dynamometer card sinker bars, reduce the pumping speed, or use a
shapes. Using its built-in experience with Group pumping unit with a slower downstroke polished
2 wells, XDIAG can accurately diagnose prob- rod velocity. These changes will reduce rod com-
lems with these wells. pression. To find out how many sinker bars you
need to eliminate rod compression, use ROD-
STAR-V/D or XROD. With RODTAR-V/D or
Downhole Dynamometer Card Shape XROD you can design a rod string with minimum
Analysis for Group 1 Wells rod compression. You can even have the programs
design a rod string for you using its expert system
The figures at the end of this manual show a col- design capabilities. When you have RODSTAR-
lection of downhole dynamometer card shapes that V/D design a fiberglass rod string, you must be
correspond to most pump operating conditions or sure to add enough sinker bars so that the fiber-
problems for Group 1 wells. Although XDIAG glass rods are not in compression. XROD can do
interprets the downhole pump card shape for you, this for you automatically.
it is still useful to know what these shapes are so
that you can figure out the pump condition. Keep
in mind that these shapes are only valid for Group
3.2.4 Gearbox Torque and Unit Balancing
1 wells.

Sometimes, using the largest available stroke


3.2.3 Avoiding Rod Compression length may not be the best way to maximize
production since this can overload the gearbox.
You may be able to use the next smaller stroke and
Because XDIAG calculates stresses at the bot-
speed up the unit to get the production rate you
tom of each rod section in the rod string, you
want without overloading the gearbox. Another
can use it to check for compression. This feature way of reducing gearbox torque is by using a small-
is especially useful for fiberglass rods that must
er pump plunger and faster pumping speed. You
never be in compression. Compression in fiberglass
may use a lighter rod string by using high strength
rods will surely cause the rods to part. If you use
or fiberglass rods which may decrease the gearbox
RODSTAR-V/D or XROD to design fiberglass loading. Sometimes XDIAG will show that energy
rod strings then you can prevent this problem from consumption will increase if you balance the unit
ever occurring. Rod compression is also detri- for minimum torque. This is normal because mini-
mental to steel rods. Excessive rod compression mizing torque doesnt directly relate to minimizing
can cause buckling related failures. According to energy consumption. Balancing the unit for mini-
research done by Norris Sucker Rods, you must mum torque makes the peak torque on the up-
maintain a minimum load of +2000 pounds at
stroke equal to the peak torque on the downstroke
the top of the lowest sucker rod section to avoid but also changes the torque throughout the cycle.
buckling problems. This load corresponds to a The instantaneous efficiency calculated for each
minimum stress of 3300 psi doe 7/8 inch rods and point throughout the cycle or stroke changes with
4530 psi for inch rods. We recommend design- the changes in the torque values. In some applica-
ing a rod string with sinker bars so that the bottom tions the energy consumption can increase when
minimum stress of the lowest sucker rod segment you balance the unit for minimum torque because
(just above the sinker bars) is between 300 and 600 the prime mover now spends more time in the less
psi. efficient part of its performance curve.
XDIAG| 61

shape and load range of the measured dynamom-


eter card versus the one predicted by the program.
3.2.5 Using XDIAG with RODSTAR-V or Also, the predictive programs can help verify
XROD downhole problems such as a worn pump, leaking
traveling or standing valves, deep rod parts, stuck
XDIAG helps you find problems such as over- pump, etc. You can simulate a worn out pump or a
loaded rods, worn pump, overloaded gearbox, deep rod part by entering a fluid level at the sur-
poor system efficiency, excessive fluid pound, etc. face (zero feet from the surface). This will result in
Once you find a problem that requires redesign- a zero fluid load on the pump plunger.
ing the system, you must predictive program such
as RODSTAR-V or XROD to help you evaluate
RODSTAR-V and XROD cannot simulate a
different changes to the system. For example, if
traveling valve leak, a hole in the pump barrel,
you find that the second section on the rod string
or a sticking pump. But it can predict what the
is overloaded you may want to redesign the rod
dynamometer card should look like if there were
string to eliminate this problem. Possible solutions
no problems. You can use this comparison of the
include creating a balanced rod string design to
actual dynamometer card shape with the predicted
minimize rod loading, using stronger rods such
card shape and have confidence in XDIAGs
as Norris 97, Weatherford EL, or LTV HS, using
diagnosis of system problems. For example, if you
a smaller plunger size, etc. RODSTAR-V and
have a traveling of standing valve leak or a worn
XROD can help you evaluate different solutions to
out pump, then the pump will be doing less work
this problem. They allow you to predict the effect
and the measured surface dynamometer card will
of each change on system performance and load-
contain less area than the predicted surface dyna-
ing. RODSTAR-V and XROD do not depend
mometer card.
on input of a measured dynamometer card but
instead simulates the pumping system you specify.
RODSTAR-V and XROD predicts the surface If the pump is sticking, or if there is more friction
dynamometer card along with other important that normal between rods and tubing (which may
parameters relating to system performance. be due to paraffin, scale, etc.) then the predicted
surface dynamometer card from RODSTAR-V or
XROD will be smaller than the measured dy-
Although RODSTAR-V and XROD are primarily
namometer card. This is especially true for steel
design tools, they can be very powerful diagnostic
rods. By entering a larger rod-tubing friction, you
aids when used in conjunction with XDIAG. This
can obtain a better match between the measured
is due to the powerful overlay feature that allows
and predicted dynamometer cards (cause this will
direct comparison of predicted versus measured
increase the predicted surface dynamometer cards
cards.
area) which can aid in improving future designs.

Using RODSTAR-Vs and XRODs Note: Rod-tubing friction is especially important


Dynamometer Overlay Feature for fiberglass rods. Higher friction than normal
This feature can have many different uses. For may actually reduce the area of the predicted sur-
example, it can help you to verify whether the load face dynamometer card because it causes the rods
cell is out of calibration, if the fluid level you mea- to stretch and give a small stroke at the pump.
sured is accurate, etc. RODSTAR-V and XROD
can help you find these problems by comparing the
62 | Expert Diagnostic Analysis

3.2.6 Setting Lines on Downhole Pump occurs because the wave equation removes only a
Cards part of the frictional load. The remaining frictional
forces appear as extra load on the calculated down-
hole dynamometer card. For example, Figure 3.1
XDIAG automatically sets the horizontal and would look more like Figure 3.2 with the added
vertical lines, unless the pump is not in good frictional forces. You can see how XDIAG didnt
condition, to calculate pump intake pressure, fluid remove all fractional loads from the calculated
level, net pump stroke and production through the downhole dynamometer card and it appears fat-
pump. Also, XDIAG allows you to modify the ter. However, you can still use this downhole card
line settings after the run. To understand how to to identify problems at the pump.
set these lines it is necessary to discuss some of the
assumptions made when XDIAG does its calcula-
tions. If all you want to do is to identify the pump condi-
tion, then the friction coefficient makes little dif-
ference. However, if you can separate the frictional
Setting Horizontal Lines: loads from the actual fluid load on the plunger,
you can calculate pump intake pressure and fluid
level from a downhole dynamometer card. You can
To calculate the downhole dynamometer card do this by setting two horizontal lines as shown
using the wave equation, XDIAG assumes an in Figure 3.2. The area above the top line and
average friction between rods and tubing. If you below the bottom line represents frictional work
were to enter the exact friction coefficient between at the pump. The distance between the two hori-
rods and tubing, then XDIAG would calculate a zontal lines is the true fluid load on the plunger.
downhole dynamometer card that shows exactly Once you know the fluid load, you can calculate
how much fluid load the pump plunger carries the pump intake pressure and the fluid level as
(assuming it is in good mechanical condition)/ explained in Figure 3.3. The fluid load on the
For example, in a case with fluid pound, XDIAG pump plunger corresponds to the pressure differ-
would calculates a downhole dynamometer card ence across the pump plunger. If we assume that
similar to Figure 3.1. However, because rod-tubing the pressure in the pump barrel on the upstroke is
friction is different in each well, it is impossible to about the same as the pump intake pressure, then
know that friction coefficient to use. Fortunately, you can use equation 1 in Figure 3.3 to calculate
it is not necessary to know the exact friction to get the fluid load on the plunger. You can calculate the
useful results with XDIAG. When calculating a pressure above the pump plunger using equation 2,
downhole dynamometer card, it is better to under- and the plunger area using equation 3. Then, you
estimate rod-tubing friction than to over-estimate can solve equation 1 for the pump intake pressure
it. If you enter a friction coefficient that is too as shown in equation 4.
large, the wave equation model will remove more
load than it should from the calculated downhole
dynamometer card. This will distort the downhole The fluid load, Fo, is the distance in pounds
dynamometer card shape. This is why it is better to between the two horizontal lines you set on the
use a friction coefficient that is lower than actual. downhole dynamometer card. Because the pump
The default friction coefficient of 0.5 in XDIAG intake pressure is also a function of the fluid level
is a safe number to use for most applications. The in the tubing-casing annulus, it also can be calcu-
only side effect of using a lower than actual fric- lated using equation 5. Since we know the pump
tion coefficient is that the calculated downhole intake pressure from equation 4, we can solve
dynamometer cards are fatter than actual. This equation 5 for fluid level over the pump as shown
XDIAG| 63
64 | Expert Diagnostic Analysis
XDIAG| 65

in equation 6. This is how XDIAG calculates the sible production gains if you can increase the net
fluid level from horizontal line settings. XDIAG stroke. For example, if the pump card shows gas
assumes that the casing fluid is oil and uses the oil interference, you can move the second vertical line
API gravity to calculate the casing fluid specific to the right to see how much more liquid produc-
gravity. tion you could get by using a gas anchor or by
lowering the pump intake below the perforations.

Using the above method you can calculate pump


intake pressure and fluid level even in wells with Tips for Setting Horizontal and Vertical
packers or with foamy fluid over the pump. Shoot- Lines:
ing a fluid level with a fluid level sounder (echo
meter) will not give meaningful results in this case
because you do not know the gradient of the fluid To accurately set horizontal and vertical lines you
in the annulus. By setting horizontal lines on the must have experience with dynamometer card
downhole pump dynamometer card you can get shape interpretation. Otherwise, it will be bet-
more accurate results because pump intake pressure ter to let XDIAG set the lines for you. For hori-
affects plunger load. If you have foamy fluid over zontal lines you must have an idea of how much
the pump, XDIAGs calculation of fluid level will rod-tubing friction your well normally has. If we
not agree with the shot fluid level. This is because assume that friction is about equal on the upstroke
using the above method, XDIAG calculates an and downstroke, then for a fluid pound case you
effective fluid level by assuming the annulus is can draw the lines as shown in Figure 3.2. The
full of oil and not mixed with gas. This works top horizontal line intersects the nose of the
because when you have foam over the pump the dynamometer card. This splits the friction equally
fluid level is meaningless since it does not tell you between the upstroke and the downstroke. Then
if more production is possible. Fluid level is easier you can set the bottom line so that it removes
to visualize than pump intake pressure. But, if you about the same amount of friction as the top one
have foam over the pump then pump intake pres- does (equal to half the thickness of the nose). It
sure is the only meaningful quantity you should is easier to set lines on the downhole pump cards
look at. with fluid pound or gas interference because of the
nose in the card shape. Also, since the well pounds
fluid, the fluid level (from the surface) is close to
Setting Vertical Lines: the pump intake.

XDIAG separates the net stroke from gross pump Once you figure out where to place the lines when
stroke with a set of vertical lines that it sets on the the well is pounding fluid then you can use the
calculated pump card. The gross pump stroke is same horizontal line setting when the pump is full.
the total distance the plunger moves. Figure 3.2 If the well does not pump off then shoot a fluid
shows the gross pump stroke on a downhole card level reading and record the dynamometer card at
of a pumped off well. The net stroke is the portion the same time. Then, after XDIAG calculates the
of the gross pump stroke during which the plunger downhole dynamometer card, set the horizontal
moves through fluid in the pump (on the down- line so that the calculated fluid level matches the
stroke). In other word, net stroke is the part of the fluid shot reading. Remove the same amount of
pump stroke that produces fluid. By setting vertical friction on the upstroke as the downstroke. From
lines, XDIAG estimates the amount of fluid going now on, use the same horizontal line settings
through the pump. This also lets you estimate pos- whenever you analyze the same well. You should
66 | Expert Diagnostic Analysis

only set lines on a downhole pump dynamometer zontal lines will be in error. Often XDIAG may
cards that show a good mechanical pump condi- detect possible input data errors in plunger size or
tion. If the traveling valve or plunger is worn, it fluid specific gravity when setting horizontal lines.
cannot pick up the entire fluid load which means For example, if you enter the wrong plunger size,
setting horizontal lines will yield incorrect results. then the fluid level calculated from horizontal lines
Figure 3.4 and Figure 3.5 show example line set- may be too low or too high depending on whether
tings for many common pump card shapes. Use you entered a plunger that is larger or smaller than
the examples along with measured fluid levels and actual.
see how XDIAG sets the lines to learn how to set
horizontal and vertical lines yourself.
When setting horizontal lines, XDIAG does not
let the calculated pump intake pressure go below
Vertical line placement is easier than horizontal casing pressure. If plunger size or fluid specific
line placement. When setting vertical lines you are gravity is smaller than actual, you will not be able
estimating the net pump stroke. The gross pump to move the horizontal lines as far apart as they
stroke is the total plunger travel. The net stroke is should be. If you set the lines yourself and start
the portion of the gross pump stroke that produces with the top line first, you will not be able to move
fluid. For fluid pound or full pump cases, you can the bottom line close to the bottom of the dyna-
place vertical lines as shown in Figure 3.4 and mometer card.
Figure 3.5. For gas interference cases the net pump
stroke should account for both gas expansion on
the upstroke and gas compression on the down- If the pump plunger size or specific gravity of the
stroke. For downhole pump cards that show severe produced fluid is larger than actual, you cannot
problems, XDIAG will not set the lines on the get a low enough pump intake pressure even if
downhole pump dynamometer card. you move the horizontal lines as far apart as they
can go. If you set the top line first, you will see a
higher than expected pump intake pressure even
If the downhole pump card calculated by XDIAG after you move the bottom line all the way to the
corresponds to a worn pump, stuck plunger, or any bottom of the card.
other condition for which line placement is not
possible, do not set the lines yourself. Sometimes,
it is possible to set either vertical or horizontal lines
on these problematic wells but not both. XDIAG
provides you the flexibility to set either pair of
lines.

Effect of Plunger Size and Fluid Specific


Gravity on Line Placement:

As Figure 3.3 shows, the fluid level calculation


from horizontal lines depends on plunger diameter
and fluid specific gravity. If you make a mistake
when entering either the plunger diameter or fluid
specific gravity, the calculations from the hori-
Theta Oilfield Services, INC., 1901 E. Lambert Rd. Suite 108 La Habra, CA 90631 USA
Telephone #: (562) 694-3297, Fax #: (562) 694-8641 www.gotheta.com

You might also like