# 17.3: Solution Algorithms for VLE Problems

- Page ID
- 574

We have essentially reduced the typical VLE problem to that of solving a system of non-linear algebraic equations. The *objective function* is the nucleus of the VLE calculation. Rather than solve the material balance equations in their elemental form, the use of an objective function will allow for a more stable iteration scheme. We have seen that three objective functions are available for this calculation:

(17.7a)

(17.7b)

(17.7c)

Expression (17.7c) is the *Rachford-Rice Objective Function*; we have proven that its numerical solution is cleaner than that of equations (17.7a) and (17.7b). We also discussed that the key problem in solving for “α_{g}” is the need for values for the equilibrium ratios (K_{i}’s). With the aid of equations (17.5) and (17.6) these problems can be solved simultaneously by iteration techniques.

In the problem we have posed, we have (3n+1) unknowns:

y

_{i}i=1, 2, … n

x

_{i}i=1, 2, … n

and α_{g}.

And we also have (3n+1) equations:

i=1,2, … n ((17.8a)

i=1,2, … n(17.8b)

i=1,2, … n(17.8c)

(17.8d)

where P, T, and z_{i} are the values that we know. See how this is only a restatement of the original set of equations that contain the equilibrium conditions, material balances, and molar fraction constraints:

i=1,2, … n(17.9a)

i=1,2, … n (17.9b)

i=1,2, … n (17.9c)

or (17.9d)

Since we have the same number of equations as unknowns, this system is determined and has a unique solution. To solve this system of simultaneous non-linear equations, there are two categories of solution techniques:

- Newton-type methods,
- Substitution-type methods.

*Newton-type methods* for more than one unknown require finding (n x n) elements of a Jacobian matrix at every iteration step. This could be computationally expensive. Additionally, the Newton Raphson method requires a very good initial guess (i.e., close to the actual solution) to guarantee convergence to the true values. This is not always possible, especially at the start of the procedure.

The most popular method, and the easiest to implement, is the *substitution type*. However, substitution type methods can be quite slow for some conditions of interest. In these sort of cases, we either switch to a Newton-Raphson solver (that has a much better rate of convergence) or implement an acceleration procedure to the substitution method itself.

### Contributors

Prof. Michael Adewumi (The Pennsylvania State University). Some or all of the content of this module was taken from Penn State's College of Earth and Mineral Sciences' OER Initiative.