Академический Документы
Профессиональный Документы
Культура Документы
Abstract
The paper describes a new robust and e$cient algorithm for liquid}liquid}liquid equilibria (LLLE) predictions and calculation.
The architecture of the algorithm is a two-level one, and a judicious combination of a stability analysis, carried out in the "rst stage,
with phase identi"cation routines and liquid #ash calculations, carried out in the second stage, is realised. The numerical routines
require modest computational e!orts and demonstrate excellent convergence characteristics. The thermodynamic model applied to
a system does not in#uence the robustness of the new algorithm, which can treat any model and handle any number of components
and phases. The usefulness and e$ciency of the new algorithm is exempli"ed by using two model systems, a water#oil#non-ionic
surfactant system and the system ethylene glycol#lauryl alcohol#nitromethane. ( 2000 Elsevier Science Ltd. All rights reserved.
0009-2509/00/$ - see front matter ( 2000 Elsevier Science Ltd. All rights reserved.
PII: S 0 0 0 9 - 2 5 0 9 ( 9 9 ) 0 0 4 7 0 - 4
2122 R.P. Stateva et al. / Chemical Engineering Science 55 (2000) 2121}2129
Nomenclature
G total Gibbs free energy, J c mass fraction of the amphiphile in the mixture
i number of carbon atoms in the hydrophobic of all three components
part of the amphiphile u fugacity coe$cient, component i
i
j number of ethoxy groups in the hydrophilic part U(y) function, Eq. (1)
of the amphiphile t phase split for the three-phase #ash
k (y) function of the chemical potential di!erence, Eq.
i
(1) Abbreviations
kH a number, corresponding to yH A water
N total number of components in the system B oil
P pressure, Pa C amphiphile
temperature, K LLE liquid}liquid equilibrium
yH zero of the function '(y) for the initial system LLLE liquid}liquid}liquid equilibrium
z mole fraction vector of the initial system
Superscripts
Greek letters * corresponding to a zero of the function '(y)
a phase split for the two-phase #ash
b mass fraction of the oil in the mixture of water Subscripts
and oil i number of components
a number of trivial solutions, corresponding with the quence of two-phase LL and one LLL #ash calculations
number of equilibrium phases present. The speci"c form to determine the correct number of the phases at equili-
of U(y) (its zeros are its minima) and the fact that it is brium, and the distribution of the components among the
easily di!erentiated analytically, allows the application of phases.
a non-linear minimisation technique for locating its The #ash calculations employed can either be based on
stationary points. We use the BFGS method with a the minimisation of the Gibbs energy, or can adopt the
line-search (Fletcher, 1987). Its implementation, as well K-value approach. We apply the `negativea #ash routine
as the implementation of any non-linear minimisation as discussed originally by Whitson and Michelsen (1989).
technique, requires a set of multiple `gooda initial To assure a steady and non-oscillatory convergence of
estimates. the LL #ash calculations it is very important to provide
To do that we introduce two groups of initial esti- as good initial estimates as possible. This is the point
mates. The "rst group, or starting initial estimates, is where the information from the stability analysis routine
used to begin the search, while the second * to resume should be used to the full.
the search with the BFGS method once a minimum is To generate a reliable initialisation scheme we intro-
located. The `startinga initial estimates are elements of duce an arrangement of the stationary points obtained,
`chainsa, each one of which originates from a corre- based on the notion of a heavy and a light liquid phase
sponding pure component of the system. Applying the (depending on their liquid-like or vapour-like density).
algorithm, suggested originally by Stateva and Tsvetkov Once all zeros of U(y) are located they are automatically
(1991), the `chainsa are continuously modi"ed during the divided into two groups * a group, which contains the
search in order to avoid the location of a minimum, zero with the vapour-like density and a group with all the
which has already been obtained. The `startinga initial rest of the zeros, arranged in an ascending order depend-
estimates allow performing the search with the BFGS ing on their density. For the case of a possible
method in parallel, from very di!erent points in the LLL equilibrium all zeros located are liquid. However,
composition space, if that is desired. among them there is a zero, with a vapour-like density,
The second group, or the auxiliary initial estimates, is which can be accepted as a model of the light-liquid
applied when a zero of the function is located, and the phase.
BFGS method needs a new estimate to restart the search. Then all zeros from the second group are combined
To "nd such an estimate an uni-dimensional search is with the zero of the "rst group to produce a set of initial
applied, which determines the best direction locally lead- estimates for the subsequent two-phase LL #ashes. Be-
ing to the smallest increase in the value of U(y). All details cause it is impossible to tell a priori which stationary
of the organisation and implementation of the initialisa- points correspond with the global solution, the applica-
tion strategy employed by the stability analysis proced- tion of this set of initial estimates guarantees a highly
ure are given by Stateva and Tsvetkov (1991) and will not diversi"ed search for the phase con"guration with the
be discussed here. minimum Gibbs energy. Thus, the chance of using
Thus, a method has been created which leads, in prac- guesses that may in the end lead to local optima or even
tice, to an `extensivea search in the multidimensional to infeasible solutions is eliminated. Furthermore, these
composition space. It has proved to be extremely reliable initial estimates guarantee a steady and non-oscillatory
in locating almost all zeros of the function at a reasonable convergence of the two-phase #ash calculations which
computational cost (Stateva and Tsvetkov, 1991). We practically do not exhibit a strong attraction to the
use the term `almost alla zeros because there is no trivial solution, as will be demonstrated further on. This
theoretically-based guarantee that our scheme will al- simple scheme is totally automated and very easy to
ways "nd them all. Only the global optimisation implement.
methods give such mathematical guarantee. If, however, The two-phase #ash calculations are performed in any
a zero is missed, unlike most of the `equation solvinga order and in parallel, if it is desired. They lead to a variety
methods which will eventually fail to determine correctly of two-phase LL solutions and that with the lowest value
the phase identi"cation of the system, our method is of the Gibbs energy is selected for further processing.
self-recovering, as will be demonstrated later. Further- To determine whether the inclusion of a third phase
more, the stability analysis is performed only once and will lead to a further minimisation of the Gibbs energy,
upon z only, which is a distinct di!erence from the one additional two-phase LL #ash calculation is re-
approach that `equation solvinga methods generally quired. If not, then the two-phase result is the "nal, stable
adopt. solution.
The stability analysis on its own, however, cannot
determine unequivocally which is the stable phase con"g- 1.1.1. Summary of the algorithm
uration of a system, identi"ed as unstable at the given The generalised scheme of the algorithm for LLLE
temperature and pressure. To do that the algorithm predictions and calculations is summarised as follows:
continues with the second stage, which involves a se- 1. Given z, , P.
2124 R.P. Stateva et al. / Chemical Engineering Science 55 (2000) 2121}2129
2. Run a stability analysis upon z. If the initial solution is this particular example because it provides a ground for
stable, the system is a homogeneous mixture. END. comparison of the performance of our algorithm with the
Otherwise, continue with step 3. performance of other algorithms.
3. Run two-phase LL #ash calculations upon z, using as The second example presents the solution of the LLLE
initial estimates the stationary points obtained in step problem for two water#oil#non-ionic surfactant
2. Choose among the LL solutions the one with the systems. We have chosen these systems because they
minimum G. demonstrate a complex phase behaviour with peculiar
4. Test this particular solution towards a LLL split by phase boundaries.
performing a liquid}liquid #ash on its lighter phase. If
the phase split upon convergence is outside the phys- 1.2.1. Ethylene glycol#lauryl alcohol#nitromethane
ically acceptable bounds, the equilibrium-phase con- system
"guration is a two-phase LL. END. Otherwise, the For this system, at "295 K and P"0.1 MPa, a va-
equilibrium-phase con"guration is LLL. Initial esti- pour phase is not formed and there is a potential for three
mates for the subsequent LLL calculations are found liquid phases at equilibrium. McDonald and Floudas
by performing an additional LL #ash upon the (1995,1997) use the UNIQUAC and UNIFAC (binary
heavier of the two liquid phases of the above LL interaction parameters for the prediction of LL equilibria
solution. Continue with step 5. from Magnussen et al., 1981) as the thermodynamic
5. Run a LLL #ash upon z. Use as initial estimates the models for the system. We apply the original UNIFAC
converged mole fractions of the solutions determined model (Fredenslund, Gmehling & Rasmussen, 1977) and
in step 4. END. three sets of feed conditions are tested and analysed with
Several characteristics of the above algorithm ensure our algorithm:
its #exibility and robustness, among which two deserve 1. z"(0.4;0.1;0.5)
additional brief comments. The commonly accepted 2. z"(0.2;0.3;0.5)
practice of equation solving methods for phase equilib- 3. z"(0.4;0.3;0.3).
rium predictions and calculations is to assume that if For the feed condition, represented by case (1), the
a postulated solution is found to be unstable then a phase stability analysis routine, performed on the "rst stage of
must be added or deleted. However, the true equilibrium our algorithm, "nds three distinct zeros of U(y), two of
solution may in fact be one with a di!erent distribution of which have negative kH. The zero rich in lauryl alcohol is
the components within the same phases (e.g. in a four- a model of the light liquid phase. The other two zeros
component system there might be several three-phase form the group of the heavy liquid zeros. The zeros of the
solutions found, of which only one corresponds to the two groups are paired and a set of initial estimates for the
global minimum). The present algorithm overcomes this subsequent LL #ash calculations is obtained. Two solu-
by selecting on each step the solution with the minimum tions are obtained * solution A (Table 1) and solution
Gibbs energy for further processing. B (Table 2).
Furthermore, the present algorithm requires only Solution B is with a lower Gibbs energy and is chosen
a single application of the stability analysis routine and, for further analysis while solution A is discarded from
in practice, a maximum of three two-phase #ash calcu- further consideration. If solution B represents the phase
lations to identify the stable-phase con"guration of the con"guration with the minimum Gibbs energy then both
system as either LL or LLL. To obtain the component its phases would be stable to a phase split. To test that
distribution among the phases for the latter case an assumption we perform a LL #ash calculation upon the
additional three-phase LLL #ash is performed upon z. In lighter phase of solution B. The converged solution is
comparison, any other `equation-solving, sequentiala shown in Table 3.
method will "rstly perform a sequence of a stability Since phase B of the solution with the lowest Gibbs
2
analysis and a LL #ash calculation on the initial system, energy among all initial phase splits is unstable (a is
followed by a stability check on one of the phases of the
converged LL solution. Then, if unstable, a phase is
added and a new #ash is run, etc. Table 1
Ethylene glycol, lauryl alcohol, nitromethane system at "295 K and
P"0.1 MPa. Feed conditions of case (1). Application of the algorithm,
1.2. Test examples step 3 Converged mole fractions of solution A
Table 2 Table 4
Ethylene glycol, lauryl alcohol, nitromethane system at "295 K and Ethylene glycol, lauryl alcohol, nitromethane system at "295 K and
P"0.1 MPa. Feed conditions of case (1). Application of the algorithm, P"0.1 MPa. Feed conditions of case (2). Application of the algorithm,
step 3 Converged mole fractions of solution B step 3 Converged mole fractions of solution 1
Table 5
Table 3 Ethylene glycol, lauryl alcohol, nitromethane system at "295 K and
Ethylene glycol, lauryl alcohol, nitromethane system at "295 K and P"0.1 MPa. Feed conditions of case (2). Application of the algorithm,
P"0.1 MPa. Feed conditions of case (1). Application of the algorithm, step 4
step 4 Converged mole fractions of the LL #ash upon phase B of
2
solution B Component Liquid F F
2 1 2
Component B H H C H O 0.285030 0.6891033 0.252575
2 1 2 2 6 2
C H O 0.540228 0.0748627 0.577606
12 26
C H O 0.6122 0.6665 0.2508 CH NO 0.174742 0.2360340 0.169819
2 6 2 3 2
C H O 0.1409 0.0763 0.5708
12 26
CH NO 0.2469 0.2572 0.1784 a"0.9235; G"!12.800515.
3 2
a"0.8693.
Table 6
Ethylene glycol, lauryl alcohol, nitromethane system at "295 K and
P"0.1 MPa. Feed conditions of case (2). Application of the algorithm,
step 4
inside the physically accepted boundaries), a two-phase
LL con"guration corresponds with a local rather than Component F H H
1 1 2
a global minimum of the Gibbs energy. The stable-phase
con"guration of the system is identi"ed as a LLLE. C H O 0.6891033 0.096779 0.690811
2 6 2
C H O 0.0748627 0.035292 0.074977
The correct phase identi"cation of the system with feed 12 26
CH NO 0.2360340 0.867929 0.234212
(1) is realised at a very early stage of the calculations and 3 2
is not computationally expensive * only three two-
phase LL #ash calculations are required and, because of
the excellent initial estimates applied, they converge in
less than three iterations. Let us for the sake of argument accept that the stability
The second feed condition, represented by case (2), analysis on the "rst stage of our algorithm fails to deter-
according to McDonald and Floudas (1995) exempli"es mine all zeros of the function. Then the available initial
the di$culties and the inherent dangers associated with estimates converge only to solution 1, which, obviously,
the correct determination of the global solution by any has a very large domain of attraction (Table 4).
local optimisation method. Further, they point out that Following the steps of the algorithm, solution 1 is
Sun and Seider (1995), who apply a homotopy-continua- tested for stability by performing a LL #ash calcula-
tion method to determine the stationary points of the tion upon its lighter phase. The result shows that
tangent plane distance function, report a local LL solu- the stable phase con"guration of the system is LLL
tion as the stable-phase con"guration for this particular (Table 5).
feed condition. To obtain the distribution of the components among
This example is interesting also because it demon- the three equilibrium phases a LLL #ash is performed
strates how the location of the feed in#uences the success upon z. To secure a steady convergence of the #ash
of the stability analysis and phase identi"cation rou- routine an excellent set of initial estimates are obtained
tines. Since the feed, represented by case (2) is located in by only one more LL #ash run on the heavier phase of
a close proximity to the L L boundary of the LLL the above solution (Table 6). The set of the initial esti-
1 3
triangle (Fig. 1), the zero rich in ethylene glycol is very mates is given in Table 7.
di$cult to locate. As a result a stability analysis routine, Applying these initial estimates, the LLL #ash con-
implementing a local optimisation method, might fail to verges in three iterations. The component distribution for
"nd it. the global solution is given in Table 8.
2126 R.P. Stateva et al. / Chemical Engineering Science 55 (2000) 2121}2129
Fig. 1. Liquid}liquid}liquid equilibria of the ethylene glycol#lauryl alcohol#nitromethane system at "295 K and P"0.1 MPa. The position of
the three studied feed conditions are shown as well.
Table 7
Ethylene glycol, lauryl alcohol, nitromethane system at "295 k and
P"0.1 MPa. Feed conditions of case (2). Application of the algorithm,
step 4 The set of the initial estimates (mole fractions)
Component H H F
1 2 2
C H O 0.096779 0.690811 0.252575
2 6 2
C H O 0.035292 0.074977 0.577605
12 26
CH NO 0.867929 0.234212 0.169819
3 2
Table 8
Ethylene glycol, lauryl alcohol, nitromethane system at "295 k and
P"0.1 MPa. Feed conditions of case (2). Application of the algorithm,
step 5 Actual global LLL solution, mole fractions
Component L L L
1 2 3
Fig. 2. Regions of one, two and three-liquid phases in the ternary
C H O 0.096766 0.691110 0.252738 system H O#n-C H #C E at atmospheric pressure. H O : n-
2 6 2 2 10 22 4 1 2
C H O 0.035232 0.074737 0.578284 C H ratio is 50 : 50 wt%. A surfactant-rich aqueous phase, in equi-
12 26 10 22
CH NO 0.868002 0.234153 0.168978 librium with an excess oil phase, is denoted as 2; a surfactant-rich oil
3 2
phase, in equilibrium with an excess water phase, is denoted as 21 ; the
t "0.0466, t "0.4692, t "0.4842. LLLE is denoted as 3.
1 2 3
R.P. Stateva et al. / Chemical Engineering Science 55 (2000) 2121}2129 2127
Fig. 3. In#uence of the temperature on the LLL equilibrium of the ternary system H O#C H (CH ) H#C E at atmospheric pressure.
2 6 5 28 4 2
2128 R.P. Stateva et al. / Chemical Engineering Science 55 (2000) 2121}2129
McDonald, C. M., & Floudas, C. A. (1995). Global optimisa- Stateva, R. P., & Tsvetkov, St. G. (1994). A diverse approach for the
tion for the phase stability problem. A.I.Ch.E. Journal, 41, solution of the isothermal multiphase #ash problem. Application to
1798}1814. vapor}liquid}liquid systems. Canadian Journal of Chemical Engin
McDonald, C. M., & Floudas, C. A. (1997). GLOPEQ: a new computa eering, 72, 722}734.
tional tool for the phase and chemical equilibrium problem. Com- Stateva, R. P., & Wakeham, W. A. (1997). Phase equilibrium calcu-
puters in Chemical Engineering, 21, 1}23. lations for chemically reacting systems. Industrial Engineering Chem-
Michelsen, M. L. (1982). The isothermal #ash problem. Part I: Stability. ical Research, 36, 5474}5482.
Fluid Phase Equilibrium, 9, 1. Sun, A., & Seider, W. D. (1995). Homotopy } Contiuation for stability
Stateva, R. P., & Tsvetkov, St. G. (1991). A rigorous approach analysis in the global minimisation of the Gibbs Free Energy. Fluid
to thermodynamic stability analysis as a "rst step when solving Phase Eqilibrium, 103, 213}249.
the isothermal multiphase #ash problem. Technology Today, 4, Whitson, C. H., & Michelsen, M. L. (1989). The negative #ash. Fluid
233}245. Phase Equilibrium, 53, 51}71.