Part III: Reservoir & Production Engineering
Chapter 12
Nodal Analysis and Well Performance
Why This Chapter Exists
A well that has been drilled, cased, cemented, perforated, and completed is not automatically productive. The reservoir may contain millions of barrels of oil, but how much of it actually reaches the surface depends on the entire production system working together --- the reservoir rock, the perforations, the wellbore, the tubing, the choke, and the surface facilities. A restriction at any point in that chain limits the whole system.
Nodal analysis is the method petroleum engineers use to diagnose where the restriction is and what to do about it. It works by dividing the production system into components, modelling each one mathematically, and finding the operating point --- the flow rate and pressure at which the system naturally settles. If that operating rate is lower than expected, nodal analysis tells you why and points you toward the fix: a larger tubing size, a different choke setting, artificial lift, or a stimulation treatment.
This chapter builds the complete nodal analysis toolkit in Python. By the end, you will be able to construct inflow performance curves from reservoir data, model tubing performance under multiphase flow conditions, find the operating point for any well configuration, and run sensitivity analyses that quantify how each parameter affects production.
infoWhat You Will Learn
- Construct IPR curves using the Vogel, Fetkovich, and composite models
- Calculate tubing performance relationships for vertical multiphase flow
- Find the operating point where inflow meets outflow
- Evaluate artificial lift options quantitatively
- Run sensitivity analyses and generate tornado charts
- Diagnose underperforming wells systematically
The Production System
Before writing any code, it is important to understand what the production system actually consists of and why each component matters.
Fluid in the reservoir exists at high pressure --- typically thousands of psi --- held in place by the weight of the overlying rock and the surrounding formation. When a well is drilled and completed, it creates a pressure sink. Reservoir pressure pushes fluid through the porous rock toward the wellbore. This is inflow.
Once fluid enters the wellbore, it must travel up through the tubing to the surface. Along the way, it loses pressure to gravity (the weight of the fluid column), friction (the fluid rubbing against the pipe walls), and acceleration (changes in velocity, especially as gas comes out of solution and the fluid expands). This is outflow.
At the surface, fluid passes through a choke and into the processing facilities, where it is separated into oil, gas, and water. Back-pressure from the surface equipment further reduces the driving force available to move fluid from the reservoir to the surface.
The key insight of nodal analysis is this: the well produces at the rate where the pressure supplied by the reservoir exactly matches the pressure required to lift the fluid to the surface. If you plot inflow pressure against rate on one curve and outflow pressure against rate on another, the intersection is your operating point. That single point tells you your well's flow rate and flowing bottomhole pressure.
Inflow Performance Relationships
The inflow performance relationship (IPR) describes how much fluid the reservoir can deliver to the wellbore at a given flowing bottomhole pressure. It is the supply side of the system.
Productivity Index --- The Simplest Case
For an undersaturated oil reservoir (where the flowing bottomhole pressure stays above the bubble point), the relationship between rate and pressure is linear:
where:
- = oil flow rate (STB/day)
- = productivity index (STB/day/psi)
- = average reservoir pressure (psi)
- = flowing bottomhole pressure (psi)
The productivity index is a single number that captures everything about the reservoir's ability to deliver fluid: permeability, thickness, viscosity, wellbore radius, drainage radius, and skin factor. A higher means a more productive well. This linear model works well when the reservoir pressure is high and no gas comes out of solution in the formation.
The linear model is a starting point, but most wells do not operate entirely above the bubble point. Once the flowing bottomhole pressure drops below the bubble point, gas comes out of solution in the reservoir rock around the wellbore. This gas reduces the effective permeability to oil --- a phenomenon called the relative permeability effect --- and the IPR curve bends away from the straight line.
Vogel's IPR --- Below the Bubble Point
In 1968, Vogel published a dimensionless IPR equation for solution-gas drive reservoirs that accounts for the two-phase flow effect:
This equation is empirical --- it was derived from simulation studies, not from first principles --- but it has been validated extensively against field data and is one of the most widely used IPR models in the industry.
The parameter is the maximum theoretical flow rate if the bottomhole pressure were reduced to zero (absolute open flow potential). In practice, wells never operate at , but is a useful reference point for comparing wells.
The difference between the linear model and the composite model is significant. At low flowing pressures, the linear model overestimates the well's deliverability because it ignores the gas interference effect. Using the linear model alone to size equipment or plan production would lead to oversized facilities and disappointed production targets.
Fetkovich's IPR
Fetkovich proposed an alternative empirical model based on isochronal well test data:
where is the deliverability coefficient and is the deliverability exponent (ranging from 0.5 to 1.0). When , the equation reduces to a form similar to the linear PI. When , it represents fully turbulent flow near the wellbore.
The Fetkovich model is particularly useful for gas wells and for oil wells where you have multi-rate test data to determine and .
Tubing Performance Relationships
The outflow side of nodal analysis models what happens to the fluid as it travels from the bottom of the well to the surface through the production tubing. This is called the tubing performance relationship (TPR) or the vertical lift performance (VLP).
The pressure at the bottom of the tubing must overcome three components to deliver fluid to the surface:
where:
- = wellhead pressure (what the surface facilities impose)
- = the hydrostatic weight of the fluid column in the tubing
- = frictional pressure losses
- = pressure changes due to velocity changes (usually small)
In single-phase liquid flow, this calculation is straightforward. In multiphase flow --- which is the norm in oil production, where oil, gas, and often water flow simultaneously --- the calculation becomes complex because the fluid density, velocity, and flow regime all change with depth as pressure decreases and gas comes out of solution.
Several correlations exist for multiphase vertical flow: Hagedorn and Brown, Beggs and Brill, Duns and Ros, and others. Each has strengths and limitations depending on the flow conditions. For this chapter, we implement a simplified gradient approach that captures the essential physics.
The TPR curve shows that higher flow rates require higher bottomhole pressures --- the well has to push harder to move more fluid up the tubing. The curve rises steeply at high rates because friction losses increase with the square of velocity.
Finding the Operating Point
The operating point is where the IPR and TPR curves intersect. At this point, the pressure the reservoir can deliver at a given rate exactly matches the pressure the tubing system requires to lift that rate to the surface.
Sensitivity Analysis
The operating point depends on multiple parameters, and in practice, engineers need to know which parameters have the greatest impact on production rate. A sensitivity analysis systematically varies each parameter while holding the others constant, then measures the effect on the operating rate.
This is one of the most practical applications of nodal analysis. It answers questions like:
- Would a larger tubing size increase production enough to justify the cost?
- How much does wellhead pressure affect the rate?
- What happens to production as reservoir pressure declines over time?
- Would reducing skin (through stimulation) be more effective than installing artificial lift?
The tornado chart shows at a glance which parameters most affect production. This is the tool that supports capital allocation decisions: if tubing size has the biggest impact, the investment goes toward a workover to upsize the tubing. If productivity index dominates, the money goes toward stimulation or re-perforation.
Artificial Lift Selection
When a well cannot flow naturally --- either because reservoir pressure has declined or because the fluid is too heavy for the available pressure to lift --- artificial lift is required. The main options are:
- Rod pump (sucker rod) --- a surface-mounted beam pump that mechanically lifts fluid. Common for low-rate onshore wells.
- Electrical submersible pump (ESP) --- a downhole centrifugal pump driven by an electric motor. Handles high rates but is expensive to replace.
- Gas lift --- gas is injected into the tubing to reduce the fluid density, allowing reservoir pressure to push the lightened column to the surface.
- Progressive cavity pump (PCP) --- a positive displacement pump suited to viscous oils and sandy conditions.
Each has a range of applicability defined by rate, depth, fluid properties, and economics. Nodal analysis helps quantify the benefit of each option by modifying the TPR curve and recalculating the operating point.
Exercises
-- Linear IPR
A well has a productivity index of 12 STB/day/psi and a reservoir pressure of 3,800 psi. Calculate and plot the IPR curve. Determine the flow rate at ...
-- Vogel IPR from Test Data
A well test gives a flow rate of 1,200 STB/day at a flowing bottomhole pressure of 2,400 psi. The reservoir pressure is 4,200 psi and the bubble point...
-- Composite IPR Construction
A reservoir has Pe = 5,000 psi, Pb = 3,600 psi, and J = 10 STB/day/psi. Construct the composite IPR (linear above Pb, Vogel below). At what rate does ...
-- Fetkovich from Multi-Rate Test
A well was tested at four stabilized rates. Fit the Fetkovich model to determine C and n: Rate (STB/day)Pwf (psi)8003,2001,4002,6002,0001,9002,8001,00...
-- Tubing Size Comparison
For a well producing from 10,000 ft TVD with Pwh = 150 psi, calculate and plot TPR curves for tubing IDs of 1.995", 2.441", 2.992", and 3.958". At wha...
-- Operating Point Determination
Using Pe = 4,000 psi, Pb = 2,800 psi, J = 7 STB/day/psi, Pwh = 250 psi, depth = 8,500 ft, and tubing ID = 2.441", find the operating point. Report the...
-- Wellhead Pressure Sensitivity
For the well in Exercise 12.6, calculate the operating rate at wellhead pressures ranging from 50 to 600 psi in 50-psi increments. Plot rate vs. Pwh. ...
-- Gas Lift Optimization
A well produces 800 STB/day under natural flow. Using gas lift injection rates of 200, 500, 1000, 1500, and 2000 Mscf/d, calculate the incremental oil...
-- Declining Reservoir Pressure
A well starts with Pe = 5,000 psi. Over five years, reservoir pressure declines to 3,000 psi in 500-psi increments. For each pressure, calculate the o...
-- Full Nodal Analysis Report
Build a complete nodal analysis for a well of your choosing (use realistic parameters from any basin). Your report should include: the IPR curve with ...
Summary
- Nodal analysis divides the production system into inflow (reservoir) and outflow (tubing) components, finding the operating point at their intersection.
- IPR models describe reservoir deliverability. The linear PI model works above the bubble point. Vogel's equation handles two-phase flow effects below the bubble point. The composite approach combines both. Fetkovich provides an alternative based on well test data.
- TPR models account for gravity, friction, and acceleration pressure losses in the tubing. Multiphase flow makes this calculation complex; correlations like Hagedorn-Brown and Beggs-Brill handle the physics.
- The operating point is where IPR equals TPR at the same rate and pressure. It determines the well's natural flow rate.
- Sensitivity analysis identifies which parameters most affect production and guides investment decisions.
- Artificial lift becomes necessary when reservoir pressure can no longer sustain natural flow. Gas lift, ESPs, rod pumps, and PCPs each have specific applicability ranges.
- The tools built in this chapter ---
composite_ipr(),tubing_performance(),find_operating_rate()--- form a reusable nodal analysis library applicable to any well.