Mass Conservation and Continuity
Learning objectives
- Write the balance of oil on one cell: accumulation, flow through the faces, and the well
- Explain why a face with one flux makes the whole field's balance close
- Read the books of a cell and of the field from a solver run on the Ogbon field
- Say why a solve stopped too soon loses the balance, and more so at a long step
A Balance on Every Cell
A simulator divides the field into cells and keeps one account for each. The oil in a cell changes only through its faces and through a well: accumulation equals what comes in, less what goes out, less what the well takes. For a slightly compressible oil the account of cell over a time step , in stock-tank barrels a day, is
where is the pore volume of the cell, the compressibility, the formation volume factor, the transmissibility of the face between cells and (Section 10.6), the potential, and the well. The left side is the accumulation; the sum is the flow through the faces; the last term is the well.
One Cell, and the Whole Field
The figure runs the book's producer, 1000 stb/d at Ogbon-1, on the field's flow grid of 7840 cells with the pressure solver of the book's simulator kernel. In the cell 3 cells (634 ft) east of the well, at 30 days, the stored oil falls by 0.32 stb/d while 11 stb/d moves through its busiest face. The oil a cell stores is a small difference between large flows, so the flows must be right to a small fraction of themselves for the account to close. The solver leaves about stb/d unaccounted for in this cell and in the worst of the 7840: the size of the tolerance it stops at.
A face has one transmissibility, so the flow written for cell across it is minus the flow written for cell . Added over every cell the faces cancel, and only the storage and the wells remain: the oil released by the expansion of the oil in the pores equals the oil the wells take. At 30 days the well has taken 30,000 stb and the solver has released 30,000 stb, and the two agree to rounding, under of the take, at 1, 30 and 365 days alike. That is conservation of mass, and it holds at every step length because it is a property of how the faces are written down, not of how accurate the pressures are.
A Solve Stopped Too Soon
The faces cancel whatever the pressures are, so the field's books are exactly the sum of what each cell's own account leaves over. A step is one linear system for the change of pressure in every cell, and an iterative solver stops when what is left of that system, its residual, is small. Each cell's row of the residual is its leftover, so the balance closes only as well as the system is solved. The book's solver stops at a residual of and then corrects each group of cells so its leftovers sum to zero.
To see what that costs, the figure runs a wrong setting of its own, not the kernel's: the same equations on the same steps, solved by conjugate gradients with only the diagonal as preconditioner and stopped at a looser residual, as a reader writing a first simulator might set it. Stopped at , the loose solve leaves a few tenths of a percent of the take to day 30 unaccounted for; stopped at , 81 %, and even at , under a tenth of a percent. Every face still carries one flow, so nothing is written twice: what is missing is the cells' leftovers, a few stb/d in the worst cell at against the solver's stb/d. The figure prints the share your own machine computes, and it is not the same on every machine: where the solve stops sets the size of what it leaves, and rounding in the last digits of its arithmetic, not the physics, sets the exact value.
The leak grows with the step. At the loose solve leaves a few hundredths of a percent of the 1-day step's take, a few tenths of a percent of the 29-day step's and about 6 to 7 % of the 335-day step's. A long step's storage term is small against its faces, so the faces rule its system, and the solve stops before the field's pressure has fallen as far as the take requires: over the 335-day step the field's pressure falls 132 psi on the pore-volume mean, and the loose solve's falls about 9 psi short of it, which is the oil it does not account for. A material balance error is the first thing a simulator reports for this reason, and Sections 10.4 and 10.5 set up the one system it comes from.
What Couples the Grid
Each cell's outflow through a face is its neighbour's inflow through the same face, so the account written on every cell at once is one coupled system, and the simulator solves it for all cells together. This single-phase run carries oil through the water leg too, so it is a pressure transient of the oil column and not a waterflood; the waterflood of Chapter 11 keeps the same accounts, one for each phase.