Newton Convergence and Material Balance

Chapter 12, Running a Simulation, History Matching, and Forecasting

Learning objectives

  • Write one Newton iteration on the implicit step and say what the residual measures
  • Read quadratic convergence from the residuals of successive iterations
  • Explain what the line search and the step cut do when a step is too large, and what they cost
  • Say what the material balance error checks, and why it follows the tolerance

Solving the Nonlinear Step

A fully implicit step (Section 12.1, IMPES and Fully Implicit) writes every cell's balance at the new time, so the new saturations and pressures appear on both sides of the equations: a nonlinear system F(s)=0F(s) = 0 in the unknowns ss. The solver cannot march through it cell by cell as an explicit scheme does. It uses Newton's method: linearize FF about the current guess, solve the linear system for the update, move, and repeat,

J(sk) δsk=−F(sk),sk+1=sk+α δsk,J(s^{k})\,\delta s^{k} = -F(s^{k}), \qquad s^{k+1} = s^{k} + \alpha\,\delta s^{k},

where JJ is the Jacobian and α\alpha the length of the move, 1 unless the line search shortens it. The residual rr is the largest imbalance left in any cell, each cell's balance times the step over its pore volume, which makes it a saturation (the convergence measure of MRST's solver, Lie, 2019, Chapter 10); the step has converged when rr is under the tolerance, here between 1e−3 and 1e−9, and the solver gives up after 25 iterations. The figure floods a slab of the Ogbon field's fluids, the case of Section 11.3 (The Buckley-Leverett Displacement), to one pore volume with the book's fully implicit solver, and lets you set the step, the line search and the tolerance. The step is measured against IMPES's step on the same slab, 0.0026 pore volumes, which the kernel takes at 0.9 of the CFL limit (Section 12.2, Timestep Control and the CFL Limit, takes up that limit and shows that past it the explicit run overfills the injector's cell): 0.10 pore volumes is 38 times it.

With the line search on and a tolerance of 1e−9, a step of 0.100 PV (38 timesIMPES's stable step) needs 2 attempts: the first fails to converge within the cap of25 iterations and each failure halves the step, to 0.050 PV, which converges in22 iterations. The flood to 1.0 PV takes 14 steps and 183 Newton iterations, 25 ofthem wasted on failed attempts; near the solution the residual's order is 2.0; thematerial balance closes to 3.0e−12.(a) Residual, first step, 2 attempts, 0.050 PV05101520251e−121e−91e−61e−31e0Newton iterationtolerance 1e−9(b) Residual against the previous, order 2.01e−121e−91e−61e−31e01e−121e−91e−61e−31e0Residual of an iteration(c) Iterations a step, 14 steps, 183 iterations0.000.250.500.751.000510152025Pore volumes injected(d) Balance error, 3.0e−12 at most0.000.250.500.751.001e−141e−111e−81e−5Pore volumes injectedKey: (a) the attempt that converges in brown, the attempts that fail in grey; (b) iterations near thesolution as brown dots, those far from it grey, the quadratic law the solid line, no progress the dashedline; (c) iterations a step as blue dots, a ring-sized dot where failed attempts preceded the step, thecap on iterations dashed; (d) the water balance in blue, the oil balance in brown; the tolerance dashedin (a) and (d).Step 38 times IMPES's step (0.100 PV a step; IMPES's 0.0026 PV). Order of convergence 2.0 (median of 29iterations; the least 1.4). Balance error 3.0e−12 (tolerance 1e−9). Newton iterations in all 183 (14steps, 25 wasted on 1 cut).

Quadratic Convergence and Its Limit

Near the solution Newton's method squares the error at each iteration, so the residual obeys rk+1≈C rk2r_{k+1} \approx C\,r_k^{2} and the order ln⁡rk+1/ln⁡rk\ln r_{k+1} / \ln r_k tends to 2. Plate (b) shows it: against the residual of the previous iteration the residuals fall on a straight line of slope 2 on log scales once they are below 1e−2, and lie along the diagonal, no progress, before. With the default settings the last four residuals of the first converged step are 1.4e−2, 1.3e−4, 6.9e−9 and 1.7e−13, and over the whole flood the median order near the solution is 2.0, the least 1.4. The practical meaning is that a step that gets close needs very few iterations to finish, and that the tolerance costs little: tightening it from 1e−6 to 1e−9 adds less than one iteration a step.

Quadratic convergence holds only near the solution. A step that is too large starts too far from it: the first guess, the old saturations, is not inside the region where the linearization is good, and the iteration wanders. At 0.10 pore volumes the first step, which sends the injector's water into a single cell, does not converge in 25 iterations. The solver then cuts the step in half and retries from the same state; at 0.05 pore volumes the step converges in 22 iterations, but the 25 iterations of the failed attempt are wasted. This is the rule of MRST's two-phase solver, which the kernel follows: halve after a failure, and after five successful steps in a row grow the step by half. Over the flood the solver takes 14 steps and 183 iterations, 25 of them wasted. Smaller steps waste nothing: at 0.01 pore volumes the 30 steps cost 217 iterations, none wasted, but the first step already needs 8 iterations and the rest from 3 to 15; a larger step is cheaper in all until it fails. At one pore volume in one step, 380 times IMPES's step, the solver fails 5 times, cuts down to 1/32 of the step, and wastes 125 of its 298 iterations.

The iterations that precede the quadratic tail are the slow part: at 0.05 pore volumes the first step's residual creeps from 5 to 0.1 over 18 iterations. They are held together by the line search. After each linear solve the update is halved until the residual has fallen below 0.99 of its value on entry (at most 20 halvings, again MRST's rule), so the iteration never takes a full step that makes things worse; the converged attempt above makes 51 such halvings and the failed one 114. Without it, plain Newton overshoots on this front, where the mobilities change sharply with saturation: with the line search off the same flood at 0.10 pore volumes fails at 0.1, 0.05, 0.025, 0.0125 and 0.0063 pore volumes and converges only at 0.0031, wastes 200 iterations and needs 511 in all, against 183 with it. The line search is what allows a step of dozens of IMPES steps.

Material Balance

The material balance error is a separate check on the converged step: the water stored in the cells, less the water injected and produced, over the water injected. A step accepted with a residual under the tolerance has a little imbalance left in each cell, and these leftovers accumulate. The error is therefore set by the tolerance, not by the step: at 0.10 pore volumes it is 3.1e−4 at a tolerance of 1e−3, 1.3e−8 at 1e−6 and 3.0e−12 at 1e−9, each below the tolerance. On the Ogbon field itself (2450 cells, Section 12.1) the same solver at a year a step, 62 times IMPES's stable step, takes 60 Newton iterations over 10 steps, 10 in the first year and 5 or 6 in each later one, cuts no step, and closes both balances to about 1e−15.

A balance that closes is not a step that is accurate. Newton may converge and conserve mass and still have solved a coarse problem: the oil recovered at one pore volume is 70.0 % with the default steps and 70.7 % with steps of 0.01 pore volumes, against 71.4 % from Welge's closed form (Section 11.3), the difference being the error of large steps that Section 12.2 measures. A drifting balance is a red flag even when Newton reports convergence, and a balance that closes is a necessary check only.

What This Case Leaves Out

The slab is one dimension of the field's fluids with incompressible fluids, no capillary pressure and no gravity, and every number is in pore volumes, so the slab's size does not matter. It is a hard case for Newton because its first step puts a front into one cell; the field's flood, with gravity, wells at fixed pressure and a spread of cells, never needed a cut at the steps the book uses. The kernel solves each Newton iteration's linear system with a preconditioned Krylov method; Section 12.1 counts those iterations, and this section does not. The solver's rules and tolerances are the book's own choices, following MRST's, with a tolerance stricter than MRST's 1e−6 by default.

References

  • Lie, K.-A. (2019). An Introduction to Reservoir Simulation Using MATLAB/GNU Octave. Cambridge University Press.

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