Concept
Numerical well testing is the method of solving well test problems by numerical solution (numerical simulation). SY/T 6174-2012 (which replaces SY/T 6174-2005; whether it has since been replaced by a newer version has not been verified) defines the numerical well test analysis method as: "a method in which the partial differential equations describing flow in the formation during a well test are solved by finite differences to obtain a dynamic model of the reservoir near the oil or gas well, and the pressure history produced by the dynamic model is then matched against and compared with the pressure history recorded in the well during the well test, in order to confirm the reservoir model and analyze the formation parameters."
Conventional modern well test interpretation is "model identification": the flow regimes are first judged from the measured log-log curve, and an analytical model is then selected from those already available in the software to match it. These models all simplify the formation geometry and fluid properties considerably, for example homogeneous, double-porosity, double-permeability, and circular or linear composite models, and the boundaries are likewise limited to regular shapes such as straight lines, intersecting, parallel, circular, or rectangular boundaries. Numerical well testing takes the opposite approach: instead of looking for a ready-made model from the curve, it constructs a model closer to reality from geological study results and measured data, including the shape, size, boundary type, and boundary position of the tested layer and the distribution of parameters throughout, and then computes the pressure response of that model and compares it with the measurements. It is therefore less a well test interpretation in the usual sense than a reservoir numerical simulation of the test process of a single well.
Flow problems in heterogeneous reservoirs of arbitrary shape and varying thickness can be solved only by numerical integration; numerical well testing applies this approach to the short-time, near-well region of a well test. For the general practice of gridding, difference schemes, and history matching, see Finite Difference Discretization, Grid System, and History Matching.
Classification (Workflow and Applications)
Basic Model
The mathematical model used in numerical well testing is the same as in analytical well testing: the flow differential equation derived from Darcy's law, the equation of state, and the continuity equation (the multiphase flow equations in the multiphase case), together with initial and boundary conditions consistent with the actual situation. The difference lies only in the way of solution: the analytical method requires the equations to be linear and the geometry regular, whereas the numerical method divides the formation into many grid blocks, each of which may be assigned a different thickness, porosity, oil saturation, permeability, fluid phase state, and viscosity, and computes the pressure of each block time step by time step.
Three Steps
- Build the reservoir model. Based on geological study results, set the reservoir type, the type, position, and distance of the outer boundary, the reservoir parameters such as permeability, porosity, and thickness, and the fluid parameters such as viscosity and compressibility together with their distributions, and give the position and rates of the tested well (and, if necessary, the surrounding wells).
- Discretization. Choose a grid to discretize the model. The commonly used Voronoi grid uses a refined local grid near the wellbore and a coarser base grid farther away, and connects the two; the grid is denser closer to the well because the pressure gradient is greatest near the well; see Well Model.
- Adjustment and matching. Each time a boundary, a parameter, or its distribution is changed, the pressures at all nodes are recalculated and the calculated value at the well point is compared with the measured value; this is repeated until the two agree, and the model and parameter distribution at that point are the result sought. To judge whether the two agree, in addition to the log-log plot, the pressure history of the entire test should be examined.
Problems to Which It Applies
| Problem | Limitation of analytical methods | Numerical well testing approach |
|---|---|---|
| Parameter distribution of the tested layer | Can handle only a homogeneous medium or a combination of a few homogeneous blocks | Construct and adjust the parameter field to determine the spatial distribution of the parameters |
| Irregular outer boundaries | Only regular boundaries such as straight lines, intersecting, parallel, circular, and rectangular | First judge the boundary qualitatively by conventional interpretation, then construct a roughly consistent boundary shape and adjust it step by step to the best match |
| Gas wells | Nonlinearity handled approximately with pseudopressure | Directly solve the nonlinear gas diffusion equation, and account for non-Darcy flow with the Forchheimer equation |
| Multiphase flow | Perrine's method assumes constant saturation | Simulate multiphase flow rigorously with relative permeability and PVT data; gas injection and water injection wells can also be simulated |
| Injection tests | The pressure falloff (after shut-in of injection) can use a radial composite model, but during injection the water-oil front moves and the problem changes with time | When reliable relative permeability data are available, a reasonable interpretation of the injection test can be made |
Analytical treatments of multiphase flow and composite models are described in Multiphase Well Test and Composite Reservoir Well Test Model, respectively, and gas well pseudopressure in Gas Well Testing. In addition, numerical well testing can also be used to check the reliability of conventional interpretation results.
Approaches in Field Examples
Several field examples illustrate typical uses of numerical well testing:
- Estimating the boundary angle from derivative steps, then constructing the boundary. In a homogeneous reservoir, intersecting sealed boundaries make the derivative show two plateaus of different heights, and the ratio n of the two is related to the included angle θ by n = 360/θ; see Boundary Identification in Well Testing. In one well the derivative showed two steps in succession, with ratios to the first plateau between 2 and 4 and between 4 and 6, respectively; from this, intersecting boundaries with included angles of 90°–180° and 60°–90° were inferred nearby. A numerical model was then used to construct the boundaries and match the data, and the resulting boundaries basically agreed with the structural contour map.
- Switching to an open shape when a regular model matches poorly. A closed rectangular model matched the buildup data of a gas well poorly; after changing to a long, strip-shaped model open at one end, the match was good, and the boundary distribution also agreed with the structural contour map.
- Correction with long-term production data. The buildup curve of a gas well showed closed-reservoir behavior, and the pressure history interpreted with a closed rectangular model agreed with the measurements for a little over a month after the test, after which the calculated pressure fell too fast, indicating energy replenishment (pressure support from outside the model); a neighboring well confirmed that the layer was a gas-water layer. After switching to a numerical model with a gas-water boundary on one side and sealed boundaries elsewhere, the results were K = 98 mD, S = 2.1, pi = 30.86 MPa, and a gas-bearing area of 0.56 km², in agreement with the 0.6 km² later delineated by geological study.
Influencing Factors and Considerations
- Non-uniqueness. A numerical model has far more adjustable parameters than an analytical model, and the same measured curve may be matched by many parameter distributions. The model should start from geological study results and be constrained by structural contour maps, logs, neighboring wells, and production performance, rather than adding parameters arbitrarily. When a well-matched model differs from the structural contour map, it may point to geological conditions not yet recognized, which merit further study.
- Do conventional diagnosis first. Numerical well testing does not replace model identification. First use the pressure derivative to judge the flow regimes and the general nature of the boundaries, use type curve matching to obtain initial values, and then build the numerical model on this basis.
- Grid and time steps. A grid that is too coarse near the well distorts the early pressure; the way the grid is refined, locally subdivided, and connected to the base grid affects the results, and the sensitivity of the results to the grid should be checked.
- Quality of input data. The results for multiphase and injection problems depend on the accuracy of the relative permeability and PVT data; when the rate history is incomplete, the pressure history match itself is unreliable.
- Verification must use the full pressure history. A log-log match covers only a single shut-in. Matching the full pressure history, and comparison with the pilot production performance after the test, can expose problems that conventional interpretation cannot find, such as the pressure support in the example above.
- Software. Many commercial well test packages already include a numerical well test module; the software only carries out what the interpreter specifies, and model construction and judgment of the results still depend on the interpreter's understanding of the geology.