Discretization and the Grid Block
Learning objectives
- Write the balance of one grid block, the oil its pore volume stores against the oil that passes through its faces and its well
- Measure the discretization error against an exact solution and say what it depends on
- Relate the error to the number of blocks the pressure change spans, and the cost to the blocks and the solver's work
- Explain why blocks are made smaller near a well, and what the well's block pressure means
One Value for Each Block
The pressure equation of Section 10.4 holds at every point of the reservoir. A simulator cannot carry that: it cuts the reservoir into blocks, keeps one pressure for each, and for each block writes a balance, the oil its pore volume stores against the oil that passes through its faces and its well (Section 10.3). The flow through a face is a transmissibility times a pressure difference, and Section 10.6 builds the transmissibility. As the blocks shrink the balance becomes the pressure equation; at any finite size the difference is the discretization error.
The figure measures that error on a case the continuous equation solves exactly. The book's producer, 1000 stb/d, opens in the middle of the Ogbon field's upper oil sand, the four layers of the flow grid above the contact taken as one layer 72 ft thick, 413 mD and 23.0 % porous, at 2735.6 psi, in a closed square 5280 ft across. The exact answer is the line source of Section 10.4. The kernel's solver, backward Euler in 74 steps, solves the same problem on n by n blocks, and the figure compares each block's value with the line source at the block's centre.
What the Blocks Lose
On the field's own grid, 25 by 25 blocks of 211 ft, the values are 3.5 % off at 3.0 hr (the root mean square of the difference, as a share of the root mean square of the line source's pressure drop, over the blocks outside the well's). The coarsest grid, 9 by 9, is 12.5 % off, 15 by 15 is 6.7 % and 35 by 35 is 2.5 %. Between the two finest uniform grids the error goes as the block width to the power 1.1: shrinking the blocks by 1.40 times cuts the error by about that factor, and in two dimensions it takes 1.40 times the blocks in each direction.
The block size alone does not set the error. The same 25 by 25 grid is 11.4 % off at 0.5 hr, 3.5 % at 3.0 hr and 2.3 % at 6.0 hr, and what changes is how much of the grid the pressure change fills. Its radius of investigation (Section 10.4) is 412 ft at 0.5 hr, 1 block beyond the well's own, 1009 ft at 3.0 hr, 4 blocks, and 1427 ft at 6.0 hr, 6 blocks. A grid sees a transient only when the transient spans several of its blocks. The block's time constant says the same. A block of side relaxes toward its neighbours in , its pore volume times the compressibility and the viscosity over the sum of its lateral transmissibilities, and for a flat square block of one rock that is , the time at which the radius of investigation reaches the block's side. For the field's block in the upper oil sand it is 0.14 hr.
The Well's Block
A block holds one value, and the well's block shows what that costs. At 3.0 hr the well's block on the 25 by 25 grid holds a pressure drop of 9.13 psi. The line source drops 24.38 psi at the wellbore, 0.35 ft from the well's axis, and 9.21 psi at 42 ft, 0.198 of the block width. Peaceman (1978) found that in single-phase flow into a well the block's pressure is essentially the flowing pressure at a radius of about 0.2 of the grid spacing, and the simulator uses such a radius in its well index to recover the flowing pressure from the block's. Here the well flows 0.07 psi above the line source's pressure on this grid and 0.42 psi above it on the 9 by 9 grid. Section 11.6 takes up the well in the simulator.
Refine Where It Pays
Uniform refinement spends blocks everywhere, though the pressure bends only near the well. The figure's graded grids keep the count of blocks but make the well's block a quarter of the uniform width and grow each block outward by a constant ratio, 1.21 on 25 by 25 blocks. That gives blocks of 53 ft at the well and 499 ft at the edge, and the error at 3.0 hr falls from 3.5 % to 1.2 %, better than the uniform 35 by 35 grid's 2.5 % with about half the blocks (625 against 1225). The price is in the solver: the small blocks make it work harder, about 2580 iterations against 1393, so the run costs 1.85 times the field's grid, against 2.53 times for the uniform 35 by 35. The figure prints the count your own machine takes: the solver stops at the first iteration its residual falls under the tolerance, and rounding in the last digits can move that by a few iterations, though not the cost of grading the blocks. Refinement is spent where the gradients are, near wells and across steep gradients; Section 4.4 takes up local refinement of a grid.
The Block in Three Dimensions
The block the figure's plate (c) picks is one cell of the field's own flow grid, 211 ft across and, in the upper oil sand, 18 ft thick. A block meets up to six neighbours, four beside it and two above and below within its bed. The shales between the beds are no-flow, so the top block of a bed has nothing above it, and at the sealing fault or the edge of the grid a lateral face has none either. Each connection has a transmissibility and each pair of centres, the nodes, a distance. For the well's block in the upper oil sand the lateral faces carry 32.1 rb cp/d/psi in all and the face below 1140, because the thin layer puts its neighbour 18 ft away. The block relaxes laterally in 0.14 hr and vertically in 14 s, so the layers of a bed equilibrate in seconds against the hours of the transient, which is why the figure treats the four layers of the upper oil sand as one. A block of the tight limestone, 7.0 mD, relaxes laterally in 3.2 hr, 23 times as slowly: the rock sets the pace a grid can follow.
What the Figure Leaves Out
The case is single-phase oil in a flat layer. The upper oil sand lies wholly above the contact, so oil is its only fluid, but the field's fault and dip are left out and its four layers are one. The closed walls of the square are not felt until 20.5 hr, after the last time on the slider, so the line source is the right reference throughout. The error is measured against the line source, so it includes the time steps' share as well as the grid's, and a finer grid alone does not take it to zero. The graded grids' ratio is the figure's own choice, and the cost counts the blocks times the solver's iterations, not the time of a real simulator.
References
- Peaceman, D. W. (1978). Interpretation of well-block pressures in numerical reservoir simulation. Society of Petroleum Engineers Journal, 18(3), 183-194. SPE-6893-PA.