Newton Convergence and Material Balance
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 in the unknowns . The solver cannot march through it cell by cell as an explicit scheme does. It uses Newton's method: linearize about the current guess, solve the linear system for the update, move, and repeat,
where is the Jacobian and the length of the move, 1 unless the line search shortens it. The residual 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 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.
Quadratic Convergence and Its Limit
Near the solution Newton's method squares the error at each iteration, so the residual obeys and the order 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.
Line Search
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.