Petroleum Knowledge Base

Local Grid Refinement

Local grid refinement uses fine grids only in the parts of the solution region that need them most and coarse grids elsewhere, and the refinement lines need not extend to the region boundary. It comes in fixed and dynamic forms, any grid block can be subdivided through several levels without affecting neighboring blocks, and the flow discretization at coarse-fine interfaces, grid ordering, and the solution of the coefficient matrix each have dedicated treatments. It is used near wells, in tracking displacement fronts, in coning, and in reservoirs with an aquifer.

Concept

Local grid refinement means placing fine grids only in the parts of the solution region that need the most detailed description, and coarse grids in the rest of the region; the grid lines of the fine grids need not reach the boundary of the solution region, and appear only where refinement is needed. An industry standard defines it by where it applies: in a grid model, fine grids are used in regions of the reservoir where saturation and pressure change sharply and in parts singled out for detailed study, and coarse grids are used elsewhere.

Compared with a conventional grid system, this approach is distinctive in one respect: in the grid system, the way any grid block touches its neighboring blocks can vary, and one edge of a grid block can adjoin several grid blocks at once. Take grid block A as an example: on the left side of one of its edges lie two grid blocks at once. In other words, with local grid refinement, any grid block can be subdivided on its own while the neighboring blocks keep their shapes; this property also has a name, arbitrary connectivity between grid blocks.

By whether the grid configuration changes or not, local grid refinement is divided into two types, fixed and dynamic. In fixed refinement, the grid configuration stays the same from start to finish, and it is commonly used for refinement near wells; in dynamic refinement, the grid configuration changes with time: during a given period, any grid block that was originally coarse can be refined as needed around the displacement front, and a refined block can later revert to a coarse block when refinement is no longer needed there, for example after the front has passed it.

The drawback of the conventional approach is this: with nonuniformly refined grids, the grid lines refined as needed near the well must still extend all the way to the boundaries at both ends, so fine grids appear far from the well where they are not needed at all, adding work for nothing. Chemical flooding simulation has a similar problem: the chemical slug is sometimes small, and fine grids are needed around the front to see how the displacement front moves, but the front keeps moving with time, so a conventional grid system can only handle this by covering the whole region with fine grids and relying on them to track the movement of the front, which greatly increases the computational effort.

To make a planar grid serve a particular region, grid blocks must be placed in the corresponding target region of the reservoir. The target region depends on the object of the simulation study, and in most cases it lies around production wells and injection wells. The center of a grid block should lie as close as possible to any oil well that may be present, and existing wells and wells to be drilled in the future are all included: production wells, injection wells, and infill wells alike. For refinement in the target region, either fine grids or locally refined grids may be used.

Calculation Methods

Finite Difference Discretization

A two-dimensional problem illustrates best the distinctive features of a locally refined grid system in finite difference discretization. In a conventional grid system, each edge of a grid block adjoins only one grid block, so calculating how fluids are exchanged between grid blocks is relatively simple; a locally refined grid system is different, because one edge of some grid blocks adjoins more than one grid block, and the discretization of the flow rate between adjacent grid blocks therefore has special features.

The nodes of adjacent grid blocks do not lie on the same axis, and they are also separated by a distance in the other direction; the flow-rate formula above omits this factor, so it is only a simplified treatment. Analyzing this formula for truncation error shows that its error causes local inconsistency; however, deeper theoretical analysis shows that the effect of local inconsistency is in fact small, and the error it causes in pressure is also consistent. Computational practice likewise shows that this simplified treatment is fully acceptable for engineering calculations and is widely used. A more accurate treatment has also been proposed: interpolation in the other direction. Interpolation avoids local inconsistency, but it is rather complicated and weakens the diagonal dominance of the system of pressure equations, making iterative solution difficult, so it is used much less often.

Refining Part of the Grid

Earlier ways of refining were subject to many restrictions; what follows is an approach in which any grid block can be refined without restriction and without affecting other grid blocks. This grid subdivision proceeds by levels: first, first-level grids, that is, the base grids, are generated in the solution region; any first-level grid block that needs refinement is then subdivided to give second-level grids; second-level grids can likewise be subdivided further to give third-level grids. In practical applications, subdivision to the third level is generally enough. It works for fixed refinement and for dynamic refinement alike; it is also possible to fix only part of the grid, in places such as near wells and near faults, and refine the rest dynamically when tracking the front. Whether a grid block is refined or coarsened, and to which level it is refined, depends on a saturation threshold set in advance.

Grid Ordering and the Structure of the Coefficient Matrix

The contact relations between grid blocks vary under local grid refinement, and even more so under dynamic refinement; changing the ordering method changes the structure of the coefficient matrix, so choosing well matters a great deal. Natural ordering, D4 ordering, and similar methods are already common in conventional grid systems, and they can also be used in a locally refined grid system; before use, they must be selected and adapted to the characteristics of local refinement. The difficulty lies in how to number the refined grid blocks, and how the resulting order relates to the order without refinement. Some methods in the literature produce many ineffective grid block numbers that serve no purpose, wasting storage; other methods produce a matrix structure so disordered that it is hard to solve and the computational effort grows greatly. Dynamic refinement is more troublesome still: as grid refinement changes with time, a grid block may be coarse at one moment and fine at another, and vice versa, so the numbers of the grid blocks must change accordingly; a grid block may even keep its own state unchanged and still have its number changed only because a preceding grid block was refined. All these issues must be taken into account when choosing an ordering method.

The ordering of the grid blocks in the figure is much like natural ordering: when ordering, blocks of all levels are numbered together in one pass in the order shown in the figure, regardless of the level they belong to. Numbered this way, every number is effective. Under dynamic refinement, the resulting coefficient matrix is still fairly regular in structure and not hard to solve. What does the coefficient matrix look like? The nonzero entries are mostly crowded into a narrow band on either side of the main diagonal, with only a few scattered outside the band. At another time, when the refinement has changed, the number of grid blocks and the refined locations have both changed, so the coefficient matrix must change too: both its order and its structure change.

Solving the Coefficient Matrix and the Data Management System

However good the ordering method, the coefficient matrix cannot be made simple: the matrix produced by a conventional grid system is pentadiagonal and highly regular, while the one here is much more complex; dynamic refinement also makes the structure of the coefficient matrix change with time, raising the difficulty of solution another notch. Fortunately, the matrix structure of this method is relatively simple, so many solution methods are available: the block relaxation method can be used, and preconditioned conjugate gradient methods can be used too, except that in actual use, the time-varying matrix structure and other complex features mentioned above must be taken into account. Take the preconditioned conjugate gradient method as an example: the symbolic factorization must be redone at every time step; where fill-in occurs and at which refinement level it lies may differ each time, and these complex cases must of course be handled specially, as must the nonzero entries scattered on either side.

Without a flexible and easy-to-use data management system, no step of local refinement can be carried out. The steps of local refinement are already complicated, and dynamic refinement adds another layer of complexity; accordingly, such a system should provide these functions: dynamically tracking the front, deciding whether to refine and to which level, refining and coarsening grid blocks, ordering, recording, and control. Writing these functions into a program and building such a data management system is very difficult.

Applications

Local grid refinement is still developing, and there are other methods for grid subdivision, ordering, and solving systems of linear equations; its applications are already growing wider, and the near-well treatment and displacement-front tracking and refinement mentioned above are two of them. One more point should be added: in simulating near-well problems, local refinement can be used areally and also vertically, which helps in simulating coning; in that case a coarse grid is enough for the bottom-water zone, even a single grid block, while the oil-bearing zone needs a finer grid. Reservoirs with an aquifer can also be simulated with local refinement: coarse grids are placed in the aquifer zone and finer grids in the reservoir zone; when several oil (gas) reservoirs share the same hydraulic system, this method makes it convenient to simulate the interference between the reservoirs. Complex geological settings such as fault-block reservoirs, lithologic pinch-out reservoirs, and reservoirs whose parts are connected through fractures can all be simulated usefully with this method. There is another case: an oil layer cut by a fault but not completely severed can also be handled by means of arbitrary connectivity between grid blocks. Connectivity between blocks that are not adjacent can likewise be handled through arbitrary connectivity between grid blocks.

Influencing Factors and Considerations

  1. Choosing the refined region. The refined region should be placed where saturation and pressure change sharply, and in parts singled out for detailed study; the target region of a planar grid is generally around production wells and injection wells, and the center of a grid block should lie as close as possible to any oil well that may be present.
  2. Fixed or dynamic. Refinement at a fixed location, such as near a well or near a fault, uses fixed refinement; refinement whose location moves with time, such as a moving displacement front, uses dynamic refinement; after the front has passed, a refined block can revert to a coarse block.
  3. Treatment at the coarse-fine grid interface is the key point. At the interface, one edge of a grid block may adjoin more than one grid block, so the flow-rate discretization has special features; the simplified treatment commonly used causes local inconsistency, but its effect is small and the pressure error is also consistent, so it is acceptable for engineering calculations; interpolation in the other direction is more accurate, but it weakens diagonal dominance and makes iterative solution difficult, so it is used much less often.
  4. Time variation of ordering and solution. Under dynamic refinement, when the refinement changes, the order and structure of the coefficient matrix change with it; when solving with preconditioned conjugate gradient methods, the symbolic factorization must be redone at every time step.
  5. Rule of thumb for grid size. How is the best model grid size determined? At the start of a study, take one grid as the starting point, run a sensitivity analysis on it, and progressively reduce the grid-block size until the simulation results are no longer sensitive to the grid system; that grid-block size is the one to use in the study. As a rule of thumb, in primary recovery 3 to 5 grid blocks between boundary wells are enough, while in waterflooding 5 to 10 grid blocks are needed between boundary wells.
  6. Relation to the Grid System. This entry covers the practice of local refinement and the treatment at interfaces; for an overview of grid types and the relation between grid size and numerical dispersion, see Grid System; grid upscaling, which handles scale conversion of geological models, is covered in Grid Upscaling.

References

  1. Han Dakuang; Chen Qinlei; Yan Cunzhang. Fundamentals of Reservoir Numerical Simulation (in Chinese). Petroleum Industry Press, 1993.
  2. SY/T 6744—2008 Technical Specification for the Application of Oil and Gas Reservoir Numerical Simulation (in Chinese).
  3. Zhang Liehui. Fundamentals of Oil and Gas Reservoir Numerical Simulation (in Chinese). Petroleum Industry Press, 2005.