Mass Conservation and Continuity

Chapter 10, Flow Physics, Governing Equations, and Initialization

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 ii over a time step Δt\Delta t, in stock-tank barrels a day, is

VictBo pin+1−pinΔt=∑jTijμBo(Φj−Φi)−qi\dfrac{V_i c_t}{B_o}\,\dfrac{p_i^{n+1} - p_i^{n}}{\Delta t} = \sum_j \dfrac{T_{ij}}{\mu B_o}\left(\Phi_j - \Phi_i\right) - q_i

where ViV_i is the pore volume of the cell, ctc_t the compressibility, BoB_o the formation volume factor, TijT_{ij} the transmissibility of the face between cells ii and jj (Section 10.6), Φ=p−γz\Phi = p - \gamma z the potential, and qiq_i the well. The left side is the accumulation; the sum is the flow through the faces; the last term is the well.

Ogbon-1 has produced 1000 stb/d for 30 days: the well has taken 30 000 stb, and thesolver's pressures release 30 000 stb from the expansion of the oil, so its booksclose to rounding. In the cell 3 cells (634 ft) east of the well, the faces bring in−0.32 stb/d and the cell stores −0.32 stb/d: its books close to 10⁻⁷ stb/d, thoughthe largest flow through it is 11 stb/d. The same equations solved loosely, stoppedat a residual of 10⁻⁵, leave a few tenths of a percent of the take unaccounted for,and a few tenths of a percent of the 29-day step's alone.(a) The books of one cell (stb/d)westeastsouthnorthupdownwellnetstored−20020−117.51.91.1−0.0180.0290−0.32−0.32(b) One cell: solver, loose (stb/d)instoredinstored−0.5000.50−0.32−0.32−0.12−0.32(c) What each step leaves (power of ten)129335-16-12-8-40Length of the step (days)solverloose(d) The field's balance to day 30OilSolverLooseTaken at the well30 000 stb30 008 stbReleased by expansion30 000 stb30 109 stbNot accounted for10⁻⁸ stb−101 stbShare of the take10⁻¹²0.34 %Key: faces (teal), the well (blue), net flow in and the stored oil (black) in (a) and (b); the loosesolve, stopped at a residual of 10⁻⁵ (red) in (b) and (c), the solver black in (b) and teal in (c).Positive flow is into the cell.Stored in the cell −0.32 stb/d. The cell's books, left over 10⁻⁷ stb/d. The field's books, solver:closed to rounding. Unaccounted for, loose solve: a few tenths of a percent of the take to day 30, itsworst cell a few stb/d out.This picture was computed once, when the page was built. The loose solve's numbers in it (its bars in(b), its column of (d)) and the solver's share in (d) are that machine's: their last digits are set byrounding and differ from machine to machine, and the live figure computes them on yours.

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 10−710^{-7} 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 ii across it is minus the flow written for cell jj. 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 10−1010^{-10} 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 10−1210^{-12} 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 10−510^{-5}, the loose solve leaves a few tenths of a percent of the take to day 30 unaccounted for; stopped at 10−310^{-3}, 81 %, and even at 10−610^{-6}, 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 10−510^{-5} against the solver's 10−710^{-7} 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 10−510^{-5} 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.

This page is prerendered for SEO and accessibility. The interactive widgets above hydrate on JavaScript load.