18  Convergence Methods

Process simulation requires solving large systems of nonlinear algebraic equations. This chapter covers tearing algorithms for sequential-modular simulation and convergence acceleration techniques for iterative methods.

18.1 Tearing Algorithms

In sequential-modular simulation, recycle streams create algebraic loops that must be converged iteratively. The tearing approach identifies a minimal set of “tear streams” whose values are guessed, allowing the remaining equations to be solved sequentially.

18.1.1 Direct Substitution

The simplest convergence method: compute new tear stream values from the sequential calculation and use them as the next guess.

\[ x^{(k+1)} = g(x^{(k)}) \]

This converges when the spectral radius \(\rho(J_g) < 1\), where \(J_g\) is the Jacobian of the iteration function. Convergence is typically slow (linear rate) and often fails for tightly coupled systems.

18.1.2 Wegstein Method

A single-variable acceleration that estimates the iteration slope from two consecutive evaluations:

\[ s = \frac{g(x^{(k)}) - g(x^{(k-1)})}{x^{(k)} - x^{(k-1)}} \]

\[ x^{(k+1)} = \frac{q \cdot x^{(k)} + (1-q) \cdot g(x^{(k)})}{1}, \qquad q = \frac{s}{s - 1} \]

The acceleration factor is typically bounded: \(q \in [-5, 0]\).

18.1.3 Broyden’s Method

A quasi-Newton method that builds up an approximation of the inverse Jacobian from iteration history, avoiding the cost of computing the full Jacobian:

\[ B^{-1}_{k+1} = B^{-1}_k + \frac{(\Delta x_k - B^{-1}_k \Delta F_k)(\Delta x_k^T B^{-1}_k)}{\Delta x_k^T B^{-1}_k \Delta F_k} \]

The iteration update is:

\[ x^{(k+1)} = x^{(k)} - B^{-1}_k F(x^{(k)}) \]

18.1.4 Broyden on a Tear Loop

The stacked vector. In a sequential-modular flowsheet, the good Broyden update above applies to the stacked vector of every tear stream: for each tear, its component flows, temperature and pressure, with \(F(x) = g(x) - x\) and \(B^{-1}_0 = -I\) (Broyden 1965). One vector for all tears matters when the tears sit in series in one loop: the sensitivity of the loop then lies between the tears, in the off-diagonal blocks of the Jacobian, which a per-component method such as Wegstein’s cannot read and the secant pairs of Broyden’s method learn. On a linear map, with full steps, the method terminates in at most \(2n\) steps (Gay 1979). A damped direct-substitution first step gives the method its first secant pair.

The scale. The method works on scaled coordinates \(X = x / \sigma\). Each tear’s component flows share one scale, its largest component flow; temperature is scaled by a fixed reference temperature and pressure by itself (a relative pressure). The scale is frozen when the memory starts and rebuilt only at a restart: a scale recomputed every pass moves the coordinates under the inverse Jacobian estimate, and a per-component scale frozen in the transient can be wrong by an order of magnitude at the fixed point. When a tear’s largest flow leaves a band around its scale (a tear estimated at a tenth of its flow), its block takes the new scale by a change of coordinates, \(B^{-1} \to D B^{-1} D^{-1}\) with \(D\) the ratio of the old scale to the new: the memory keeps mapping the same steps to the same residuals.

The trust radius. A step \(d = -B^{-1} F\) is cut to a radius \(\Delta\) in the scaled 2-norm. The radius is adapted on the ratio of the actual to the predicted reduction of \(\lVert F \rVert\), the prediction being the Broyden model’s own, \((1 - \alpha)\lVert F \rVert\) for a step of length fraction \(\alpha\): halved below 0.25, doubled above 0.75 when the radius cut the step (Dennis and Schnabel 1996, ch. 6). The radius globalises the model; it is not a step limit, so a pressure estimate twenty times too low or a recycle estimated at a tenth of its flow is reached in a few passes once the model predicts well. The memory restarts (\(B^{-1} = -I\)) on a breakdown of the update (\(s^T B^{-1} y\) near zero relative to \(\lVert s \rVert \lVert B^{-1} y \rVert\)) or when \(\lVert F \rVert\) rises repeatedly well above its smallest value since the last restart: Broyden’s \(\lVert F \rVert\) is not monotone even on a linear map (Kelley 2003, ch. 7), so a single rise is no sign of a bad model.

The flow floor. A step keeps every component flow, and the pressure, at or above a fixed fraction of its current value. The floor acts on the entry that would cross it and leaves the other entries’ steps whole, rather than shortening the whole step for the most constrained trace component; the secant pair is the step actually taken, so the update stays consistent, and the radius does not grow after a floored step, whose reduction the model did not predict.

The per-component criterion. A tear loop is converged when, for every tear, the largest relative change of a component flow over one pass, \(\max_i |g_i - x_i| / \max(|x_i|, \epsilon F)\) with \(F\) the stream’s total flow and \(\epsilon\) a small fraction, is below the tolerance. A norm divided by the largest flow cannot tell a solute that is 30 % off from a converged one when the solvent flow is large; the floor \(\epsilon F\) bounds what a trace component can demand.

18.2 Newton-Raphson Method

For simultaneous (equation-oriented) solution of the full equation system:

\[ x^{(k+1)} = x^{(k)} - J^{-1}(x^{(k)}) F(x^{(k)}) \]

where \(J\) is the Jacobian matrix \(\partial F / \partial x\). In practice, solve the linear system \(J \Delta x = -F\) rather than computing \(J^{-1}\) explicitly.

18.2.1 Trust Region Methods

Newton-Raphson with a trust region constraint prevents divergence when the initial guess is far from the solution:

\[ \min_{\Delta x} \|J \Delta x + F\|^2 \quad \text{subject to} \quad \|\Delta x\| \leq \Delta \]

The trust region radius \(\Delta\) is adapted based on the quality of the quadratic model prediction.

18.3 Pseudo-Transient Continuation

Convert algebraic equations to a transient system:

\[ \tau \frac{dx}{dt} = -F(x) \]

The steady-state solution \(F(x) = 0\) is the desired result. This greatly expands the convergence basin compared to Newton methods. The time constant \(\tau\) controls the trade-off between stability and convergence speed.

18.3.1 Two-Phase Strategy: Dynamic Warmup + Newton Refinement

For stiff nonlinear systems (e.g., multi-component distillation columns), neither pseudo-transient continuation nor Newton methods alone are sufficient:

  • Newton methods (Levenberg-Marquardt, Trust Region, Newton-Raphson) stall when the initial guess lies outside their convergence basin — even with a physically reasonable initialization.
  • Pseudo-transient continuation converges robustly but typically reaches only moderate residuals (O(1)), not the O(10⁻⁶) accuracy needed for engineering calculations.

The two-phase strategy combines both:

  1. Phase 1 (pseudo-transient warmup): Integrate the dynamic equations forward with relaxed tolerances. The differential variables (holdups) provide natural damping. This brings the residual from O(100) to O(1).
  2. Phase 2 (Newton refinement): Use the pseudo-transient solution as initial guess for a Newton-type solver. With the solution now inside the convergence basin, Newton converges quadratically to O(10⁻⁶) in 15–20 iterations.

This is analogous to physical startup: the process finds approximate equilibrium through dynamics, then fine-tunes to exact steady state.

18.4 Inside-Out Method for Distillation Columns

The inside-out method (Boston & Sullivan, 1974) is the standard initialization and convergence technique for rigorous distillation column simulation. It decouples the expensive thermodynamic calculations (outer loop) from the relatively cheap MESH equation solves (inner loop), providing robust convergence even from poor initial guesses.

18.4.1 Structure

The algorithm alternates between two loops:

  1. Inner loop (MESH solve): Given a set of simplified K-value models and flow profiles, solve the material balance equations for compositions using the Wang-Henke bubble-point (BP) method. This involves a tridiagonal linear system that is cheap to solve.
  2. Outer loop (thermo update): Using the new compositions and temperatures, update the K-model parameters from rigorous thermodynamic calculations (equation of state or activity model). Update flow profiles from energy balances.

The key insight is that rigorous thermodynamic evaluations are only needed once per outer iteration, while the inner MESH solve may require several iterations with the simplified models.

18.4.2 Wang-Henke BP-Method: Tridiagonal Material Balance

For a column with \(N\) total stages (condenser through reboiler), the steady-state component material balance for component \(i\) at stage \(j\) can be written as a tridiagonal system:

\[ A_j \cdot x_{i,j-1} + B_j \cdot x_{i,j} + C_j \cdot x_{i,j+1} = D_j \tag{18.1}\]

where the coefficients are (Wang & Henke, 1966):

\[ \begin{aligned} A_j &= L_{j-1} \\ B_j &= -(L_j + U_j + (V_j + W_j) K_{i,j}) \\ C_j &= V_{j+1} K_{i,j+1} \\ D_j &= -F_j z_{i,j} \end{aligned} \tag{18.2}\]

where:

  • \(L_j\) = liquid flow leaving stage \(j\) [mol/s]
  • \(V_j\) = vapor flow leaving stage \(j\) [mol/s]
  • \(U_j\) = liquid side draw rate from stage \(j\) [mol/s]
  • \(W_j\) = vapor side draw rate from stage \(j\) [mol/s]
  • \(K_{i,j}\) = equilibrium ratio for component \(i\) at stage \(j\)
  • \(F_j\) = total feed rate to stage \(j\) [mol/s]
  • \(z_{i,j}\) = feed composition for component \(i\) at stage \(j\)
ImportantSuper-diagonal term

The super-diagonal \(C_j = V_{j+1} K_{i,j+1}\) captures the vapor coupling from the stage below. Dropping this term (setting \(C_j = 0\)) corresponds to assuming constant molar overflow (CMO) and eliminates the vapor-liquid interaction that drives separation near feed stages. The full tridiagonal with all three coefficients must be used for accurate results.

18.4.2.1 Boundary Equations

Total condenser (\(j = 1\)):

\[ B_1 = -(L_1 + D), \qquad C_1 = V_2 K_{i,2}, \qquad A_1 = 0 \tag{18.3}\]

Partial condenser (\(j = 1\)):

\[ B_1 = -(L_1 + D \cdot K_{i,1}), \qquad C_1 = V_2 K_{i,2}, \qquad A_1 = 0 \]

Reboiler (\(j = N\)):

\[ A_N = L_{N-1}, \qquad B_N = -(V_N K_{i,N} + B_{\text{rate}}), \qquad C_N = 0 \tag{18.4}\]

where \(D\) is the distillate rate and \(B_{\text{rate}}\) is the bottoms rate.

The tridiagonal system is solved efficiently by the Thomas algorithm (forward elimination and back-substitution) in \(\mathcal{O}(N)\) operations per component.

18.4.3 Temperature Update: Bubble-Point Calculation

After solving for new liquid compositions \(\{x_{i,j}\}\), stage temperatures are updated by solving the bubble-point equation at each stage:

\[ \sum_{i=1}^{n_c} K_i(T_j, P, \mathbf{x}_j) \cdot x_{i,j} = 1 \tag{18.5}\]

This nonlinear equation in \(T_j\) is solved by Newton-Raphson iteration with step limiting (\(|\Delta T| \leq 20\) K per iteration) to prevent divergence.

18.4.4 The Flow Update

At fixed temperatures, compositions and enthalpies, the steady total material balance and energy balance of every unit and the two operating specifications are linear in the flows \(L_j\), \(V_j\), the product rates \(D\), \(B\) and the duties \(Q_C\), \(Q_R\): \(2N + 2\) rows for \(2N + 2\) unknowns on \(N\) units (condenser, trays, reboiler). The flow update of each iteration is the solution of this linear system at the iteration’s profiles, damped like the compositions.

The product rates are iteration variables: the shortcut only seeds them, and a flow solve at the starting profiles gives the first flow set. Every specification row and every total balance is affine in the flows, so each damped iterate, a convex combination of flow solves, satisfies both specifications exactly. A march that fixes \(D\) and takes the reflux from the condenser specification alone converges instead to the column specified by (condenser specification, estimated \(D\)): another column’s root.

A singular system (for example two product-rate specifications, which fix \(D + B\) twice) or a negative flow means the profiles imply no feasible flow set: the iteration stops, not converged. No flow is clamped.

18.4.5 Multi-Feed Handling

When multiple feeds enter the column at different stages, each feed contributes independently to the RHS of the tridiagonal system:

\[ D_j = -\sum_{k \in \text{feeds at stage } j} F_k \, z_{k,i} \]

Each feed has its own composition \(z_{k,i}\) and temperature \(T_k\). Averaging feed compositions before the solve is incorrect and distorts driving forces near feed stages.

18.4.6 Convergence and Damping

The iteration is converged when the largest MESH residual of the iterate, the component, total and energy balances of every unit evaluated with each stage at the bubble point of its liquid, divided by the total feed flow, is at most a relative tolerance (default \(10^{-6}\)). A step criterion such as \(\max_j |T_j^{(k+1)} - T_j^{(k)}|\) is not a convergence test: on a slowly contracting mode the step is small far from the fixed point.

Adaptive damping prevents oscillation:

\[ x^{(k+1)} = \omega \, x^{(k+1)}_{\text{new}} + (1 - \omega) \, x^{(k)} \]

where the relaxation factor \(\omega\) is adjusted each iteration:

  • If the step grew: reduce damping (\(\omega \leftarrow \max(0.5\omega, \omega_{\min})\))
  • If the step shrank significantly: increase damping (\(\omega \leftarrow \min(1.2\omega, 1.0)\))

Typical values: \(\omega_0 = 0.7\), \(\omega_{\min} = 0.1\).

18.4.7 Robustness Safeguards

Industrial implementations require several numerical protections:

Guard Purpose
K-value clamping: \(K_i \in [10^{-6}, 10^{6}]\) Prevents extreme nonphysical ratios
Composition floor: \(x_i \geq 10^{-12}\) Avoids division by zero in K-value computation
Stage temperature The bubble point of the stage liquid, inside the bubble solve’s own physical bounds; no bound taken from the starting profile
Temperature monotonicity Enforces \(T_j \leq T_{j+1}\) (temperature increases from condenser to reboiler)
Infeasible flow set The iteration stops, not converged; no flow is clamped
NaN recovery If VLE fails at a stage, keep previous iteration values

18.4.8 Integration with the Two-Phase Strategy

The inside-out method serves as the initialization phase. Whether or not the inside-out reaches its verdict within its iteration budget, its temperature, composition, and flow profiles are the initial guess for the rigorous simultaneous solve (see Two-Phase Strategy above). The full pipeline is:

  1. FUGK shortcut (Fenske-Underwood-Gilliland-Kirkbride) — provides initial temperature, composition, and flow profiles
  2. Inside-out refinement: iterates toward the MESH root with rigorous thermodynamics
  3. Newton refinement (simultaneous solve) — converges to full machine-precision accuracy

18.5 Convergence Criteria

Standard convergence checks for process simulation:

Criterion Typical tolerance
Absolute residual \(\|F(x)\| < 10^{-8}\)
Relative change \(\|\Delta x / x\| < 10^{-6}\)
Material balance closure \(< 10^{-10}\) mol/s
Energy balance closure \(< 10^{-6}\) W

18.6 Sparse Jacobians

Process simulation Jacobians are sparse — each equation involves only a few variables. Exploiting this structure is critical for efficiency:

  • Sparsity detection: Determine the nonzero pattern by structural analysis or numerical probing
  • Sparse finite differences: Compute Jacobian columns efficiently by grouping independent columns (graph coloring)
  • Sparse linear algebra: Use specialized solvers (e.g., UMFPACK, KLU) for the Newton step

The density (fraction of nonzero entries) typically decreases with system size: a 5-stage column might be 16% dense while a 50-stage column is 2% dense.

18.7 References

  • Biegler, L.T., Grossmann, I.E. & Westerberg, A.W. (1997). Systematic Methods of Chemical Process Design. Prentice Hall.
  • Boston, J.F. & Sullivan, S.L. (1974). A new class of solution methods for multicomponent, multistage separation processes. Canadian Journal of Chemical Engineering, 52, 52–63.
  • Broyden, C.G. (1965). A class of methods for solving nonlinear simultaneous equations. Mathematics of Computation, 19(92), 577–593.
  • Burningham, D.W. & Otto, F.D. (1967). Which computer design for absorbers? Hydrocarbon Processing, 46(10), 163–170.
  • Dennis, J.E. & Schnabel, R.B. (1996). Numerical Methods for Unconstrained Optimization and Nonlinear Equations. SIAM, Classics in Applied Mathematics (reprint of the 1983 Prentice-Hall edition). DOI: 10.1137/1.9781611971200.
  • Gay, D.M. (1979). Some convergence properties of Broyden’s method. SIAM Journal on Numerical Analysis, 16(4), 623-630. DOI: 10.1137/0716047.
  • Kelley, C.T. (2003). Solving Nonlinear Equations with Newton’s Method. SIAM.
  • Wang, J.C. & Henke, G.E. (1966). Tridiagonal matrix for distillation. Hydrocarbon Processing, 45(8), 155–163.