Bubble and Dew Point Calculations in Multicomponent and Multireactive Mixtures
Bubble and Dew Point Calculations in Multicomponent and Multireactive Mixtures
net/publication/43996212
CITATIONS READS
8 8,866
4 authors, including:
Some of the authors of this publication are also working on these related projects:
Statistical physics modeling of phosphate adsorption onto chemically modified carbonaceous clay View project
Book: Adsorption Processes for Water Treatment and Purification View project
All content following this page was uploaded by Adrian Bonilla-Petriciolet on 04 June 2014.
BubbleandDewPointCalculationsinMulticomponentandMultireactiveMixtures
A. Bonilla-Petriciolet,* A. Acosta-Martínez, U. I. Bravo-Sánchez, and J. G. Segovia-Hernández**
Instituto Tecnológico de Aguascalientes, Departamento de Ingeniería Química,
Av. López Mateos 1801, CP 20256, Aguascalientes, Ags. México Original scientific paper
**Universidad de Guanajuato, Facultad de Ciencias Químicas, Received: August 28, 2005
Noria Alta s/n, C.P. 36050, Guanajuato, Gto. México Accepted: February 1, 2006
Bubble and dew point calculations are useful in chemical engineering and play an
important role in the study of separation equipments for non-reactive and reactive mix-
tures. To the best of the authors’s knowledge, few methods have been proposed for these
calculations in systems with several chemical reactions. The objective of this paper is to
introduce new conditions for performing bubble and dew point calculations in reactive
mixtures. We have developed these conditions based on the application of transformed
variables of Ung and Doherty (1995). Using these transformed variables, the solution
space is restricted to compositions that are already at chemical equilibrium and by conse-
quence the problem dimension is also reduced. The reliability and efficiency of three
equation-solving methods are tested and compared using our equilibrium conditions: a) a
simultaneous equation-solving approach using Newton method (SESN), b) an equa-
tion-decoupling approach using successive substitution method (EDSS) and c) an opti-
mization approach using the stochastic optimization method Simulated Annealing
(OSA). Our results indicated that even for simple reactive systems, bubble and dew point
calculations are challenging for classical equation-solving methods and require robust
strategies. We conclude that OSA and EDSS methods are reliable to locate bubble and
dew points in reactive systems. EDSS is more efficient than OSA; however, OSA does
not need initial guesses and is more suitable for difficult problems.
Key words:
Chemical equilibrium, phase equilibrium, bubble point, dew point, global optimization,
equation-solving method comparison
*Corresponding author: Ung and Doherty13 showed that the Gibbs en-
(52) 4499105002 ext. 127, [email protected] ergy in a reactive system behaves as in a non-reac-
112 A. BONILLA-PETRICIOLET et al., Bubble and Dew Point Calculations in …, Chem. Biochem. Eng. Q. 20 (2) 111–118 (2006)
tive system if transformed composition variables and the transformed mole fractions x$ i are given
are used instead of the conventional composition by8,9,13
variables. Using transformed compositions, we re-
strict the solution space to the compositions that are x i - v i N -1 x ref
x$ i = 0 i = 1,¼ , n - n R (6)
already in chemical equilibrium. This reduces the 1- v TOT N -1 x ref
problem dimension by the number of independent
reactions and makes it possible to represent phase where xref is the column vector of nR reference com-
equilibrium in reactive systems in a similar way as ponent mole fractions, vi is the row vector of
in non-reactive mixtures. So, the reactive phase dia- stoichiometric number of component i for each re-
grams look similar to the non-reactive ones and the action vTOT, is a row vector where each element cor-
non-reactive flash algorithms can be easily modi- responds to reaction r and it is the sum of the
fied to account for the equilibrium reactions.12 stoichiometric number for all components that par-
Also, Ung and Doherty13 showed that the chemical ticipate in reaction r, and N is a square matrix
potential follows all the thermodynamic relation- formed from the stoichiometric number of the refer-
ships of a non-reactive system as long as all the ence components in the nR reactions.8,9,13 The refer-
thermodynamic properties are functions of the ence mole fractions are calculated using Eq (6) and
transformed composition variables. Considering from the equilibrium constants for each reaction
this, equilibrium conditions among two phases of a K ¢eq by solving a system of nR nonlinear equations
reactive mixture, with n components and nR inde- given by
pendent chemical reactions, are met when
n
vr
$ ai
Dm $ ib
Dm K ¢eq = Õ a i i r = 1,¼ , n R (7)
= i = 1,¼ , n - n R (1) i=1
RT RT
where ai is the activity of component i and v ir is the
where
stoichiometric number of component i in reaction r,
$i
Dm
j
$ i {x$ }- m i0
Dm
j respectively. When we know the reference mole
= (2) fractions, the remaining mole fractions are calcu-
RT RT lated using Eq (6).
We write the phase equilibrium condition in
with R the universal gas constant, m 0i the chemical terms of transformed variables, using Eq (4) – (6),
potential of the pure component and m $ ij the trans- as follows
formed chemical potential of component i at phase j b
which is a function of the transformed mole fraction x$ i = x$ ia K$ i q + d i i = 1,¼ , n - n R (8)
x$ . Eq (2) can be expressed in terms of fugacity or
activity coefficients as follows and
D$m i æ xi j
$ i {x$ }ö 1- v TOT N -1 x ref
a
= lnç
ç
÷= ln ( x y {x$ }) i=1, ¼ , n- n (3)
÷ q= b
(9)
RT è ji ø
i i R
1- v TOT N -1 x ref
b
where xi is the mole fraction of component i, j$ i is v i N -1 ( K$ i x ref
a
- x ref )
the fugacity coefficient of component i in the mix- di = b
i = 1,¼ , n - n R (10)
1- v TOT N -1 x ref
ture, ji is the fugacity coefficient of the pure com-
ponent, and gi is the activity coefficient of compo-
The material balance on component i is
nent i, respectively. Using Eq (1) and (3), we can
deduce the following relation for mole fractions at b b b
x$ F .i - (1- x$ F ) x$ ia - x$ F x$ i = 0 i=1,¼ , n - n R (11)
phase equilibrium
b
æ j$ a ö æg a ö and the transformed mole phase fraction x$ F is de-
b ç i ÷ ç i ÷
x i = x iaç b ÷= x iaç b ÷ i = 1,¼ , n - n R (4) fined as
è j$ i ø èg i ø
j j
j x F (1- v TOT N -1 x ref )
Then, we define the transformed phase equilib- x$ F = j = a, b (12)
(1- v TOT N -1 x Fref )
rium constant K$ i as
j
where x F is the conventional mole fraction of
j$ ai g ai
K$ i {x$ a , x$ b }= b
= b
i = 1,¼ , n - n R (5) phase j whose feasible domain is (0, 1) and xFref is
j$ i gi the column vector of nR reference component mole
A. BONILLA-PETRICIOLET et al., Bubble and Dew Point Calculations in …, Chem. Biochem. Eng. Q. 20 (2) 111–118 (2006) 113
fractions in the initial overall composition. Using and dew points are calculated by solving simulta-
Eq (8) – (11), x$ ia is given by neously the following n – nR equations
b
b
x$ F , i - x$ F Fi = x$ i - x$ ia K$ i q - d i i = 1,¼ , n - n R - 1 (18)
x$ ia = b
i = 1,¼ , n - n R (13)
1+ x$ F ( K$ i q - 1) Fn-nR = f F b (19)
From the transformed mole fraction restriction where f F b is the bubble or dew point function,
n-nR Eq (16) or (17), respectively. The unknowns are
å x$ i, j = 1, we have n – nR – 1 transformed mole fractions of vapor or
i=1 liquid phase and the temperature or pressure. In this
work, the above equations are solved using the Nu-
n-nRé b ù
K$ i q ( x$ F , i - d i x$ F ) merical Recipes Fortran subroutine NEWT.
åê ê
b $ b
+ d i ú- 1= 0
ú
(14)
i=1 ë 1- $
x F + K i q x$ F û Equation-decoupling with Successive
Substitution method (EDSS)
n-nRé
x$ F , i - x$ F d i ù
b
This approach is often described in textbooks
åê b $
ê ú- 1= 0
ú
(15) on thermodynamics for flash calculations in non-re-
i=1 ë 1+ $
x F ( K i q - 1) û
active mixtures and is based on the Rachford-Rice
b b formulation. This method is reliable for flash calcu-
By applying the conditions x$ F = 0 and x$ F =1, lations in non-reactive systems and has a linear rate
we obtain the following new functions for bubble of convergence.16 The procedure used for bubble
and dew point calculations in multireactive mix- and dew point calculations in reactive systems is as
tures follows: in the inner loop, we have applied a New-
n-nR ton method, using the Numerical Recipes Fortran
subroutine NEWT, to update the temperature or
f bubble = 1- å ( K$ i q x$ F, i + d i ) = 0 (16)
pressure by solving Eq (16) or (17), while in the
i=1
outer loop the transformed mole fractions are up-
n-nR
é x$ F - d i ù dated with a successive substitution method using
f dew = 1- å êë ú= 0
K$ i q û
(17) Eq (8) or (13). In this work, we have not applied an
i=1 acceleration technique for this approach.
In contrast with other formulations,11,15 our Optimization approach using Simulated
functions are independent of reaction extents and Annealing method (OSA)
have fewer unknowns. Eq (16) and (17) are a func-
tion of temperature or pressure and n – nR trans- We have tested an optimization technique for
formed mole fraction x$ i of the liquid or vapor solving our equilibrium conditions. As indicated by
phase, respectively. On the other hand, these equi- Henderson et al.,17 the formulation of thermody-
librium problems are nonlinear and multivariable so namic calculations for optimization problems offers
that conventional numerical methods may present some advantages: a) the use of a robust optimiza-
difficulties, such as poor initialization or divergence tion method, b) the possibility of using a direct op-
behavior. We have performed a comparison of three timization method which requires only calculations
approaches to solve our bubble and dew point func- of the objective function and c) the use of an itera-
tions. In the next section we describe the strategies tive procedure whose convergence is independent
applied in this work. on the initial guess. Thus, the calculation of bubble
and dew point conditions can be performed by min-
imizing the next objective function
Solution approachs n-nR
This is the classical approach used for perform- where Fi is described by Eq (18) for i = 1,…, n – nR
ing flash calculations in non-reactive and reactive and f F b is the bubble or dew point function, re-
systems since it is conceptually simple and straight- spectively. At the bubble and dew point conditions,
forward. The popular Newton method is used be- the global minimum of the objective function must
cause it provides quadratic convergence when the be zero, but we assume that a solution is found
initial estimates are close to the solution and it is when we find the transformed mole fractions and
readily available in computer programs.16 Bubble temperature or pressure that make the value of the
114 A. BONILLA-PETRICIOLET et al., Bubble and Dew Point Calculations in …, Chem. Biochem. Eng. Q. 20 (2) 111–118 (2006)
objective function less than 1 · 10–6. The stochastic considered a tolerance of 1 · 10–6 for the conver-
global optimization method Simulated Annealing gence of all methods. All examples are solved 25
(SA) is used to minimize our objective function. SA times to evaluate the reliability and efficiency of
is inspired in the thermodynamic process of cooling solving methods, using in each time different ran-
of molten metals to achieve the lowest free energy dom initial values for unknowns x$ i , T or p. All cal-
state.18 The SA algorithm presents ease of computa- culations were performed on a Processor Intel
tional implementation and, if the values for its algo- Centrino 1600 MHz with 1.00 GB of RAM. The
rithm parameters are properly selected, it can con- performance of the three equation-solving methods
verge to the global optimum independently of ini- is tested using the following criterions: a) success
tial guesses. This optimization method has been rate of finding the bubble or dew point in the per-
successfully used in the resolution of several ther- $
formed calculations, b) average number of K-value
modynamic problems.17,19–24 It is important to note evaluations and c) computation time.
that other phase equilibrium problems (e.g. calcula- Phase stability of all calculated bubble and dew
tions of critical points and homogeneous azeo- points is evaluated by minimizing the tangent plane
tropes) have been solved using an optimization ap- distance function for reactive mixtures12
proach coupled with the SA method.17,24
n-nR
In our calculations, we have used the algorithm
proposed by Corana et al.25 because of its high reli-
RTPDF = å x$ i ( m$ i {x$}- m$ i {x$ F }) (21)
i=1
ability in thermodynamic calculations. In this algo-
rithm, a trial point is randomly chosen within the The RTPDF function is globally minimized us-
step length VM (a vector of length n variables) of a ing the Simulated Annealing method. Bonilla-Petri-
starting point defined in the feasible domain of op- ciolet24 has tested the SA method with several reac-
timization variables. The function is evaluated at tive systems and found that this method is robust
this trial point and its value is compared to its value for reactive phase stability analysis. All calculated
at the initial point. The Metropolis criterion,26 with bubble and dew points are stable.
a parameter called annealing temperature T, is used
to accept or reject the trial point. If the trial point is Example 1.
accepted, the algorithm moves on from that point. If isobutene + methanol « methyl ter-butyl ether
it is rejected, another point is chosen instead for a
trial evaluation. Each element of VM is periodically Our first example is the equilibrium reaction of
adjusted so that half of all function evaluations in that isobutene (1) and methanol (2) to produce methyl
direction are accepted. A fall in T is imposed upon ter-butyl ether (3), A1 + A2 « A3. This system has
the system with the R T variable by Tj+1 = R T × Tj, been analyzed by Okasinski and Doherty,28 Maier et
where j is the iteration counter and R T is the tem- al.29 and Harding and Floudas30 in the context of
perature reduction factor. Thus, as T declines, calculation of reactive homogeneous azeotropes.
downhill moves are less likely to be accepted and We have considered non-ideality in the liquid phase
the percentage of rejections rises. Given the scheme and ideal gas in the vapor phase. We use the Wilson
for the selection for VM, VM falls. Thus, as T de- equation for the activity coefficient in the liquid
clines, VM falls and SA focuses upon the most phase and the Antoine equation to calculate the
promising area for optimization. A full description properties of vapor phase. Maier et al.29 report the
of this algorithm is found in Corana et al.,25 and the parameters for both equations. The reaction equilib-
FORTRAN subroutine implemented by Goffe et rium constant is assumed to be independent of tem-
al.27 is used in this work. perature Keq = 0.04, and methyl ter-butyl ether
The choice of the cooling schedule is a crucial (MTBE) is the reference component so that the
aspect in the implementation of SA because it affects x1 + x 3
transformed mole fractions are x$ 1 = and
the numerical performance of the optimization pro- 1+ x 3
cedure. Based on preliminary calculations, we pro- x2 + x3
x$ 2 = = 1- x$ 1 .. We use x$ 1 and temperature
pose the following values for the quantities of SA: T0 1+ x 3
= 10.0, R T = 0.85 and NT = 5, where NT is the itera- as unknowns for all equation-solving methods. The
tion number before temperature reduction. initial values are randomly generated in the feasible
domains of (0, 1) for x$ 1 and (0.01, 300) °C for tem-
perature. These domains are also used in the imple-
Results and discussion mentation of the OSA method. Bubble and dew
point calculations are performed at different pres-
For the present study, four examples are used sures for a feed of x$ F (0.5, 0.5) and the results are
to compare the numerical performance of the three reported in Tab 1. The numerical performance of
equation-solving methods. In all examples, we have tested methods appears in Tab 2. In all calculations,
A. BONILLA-PETRICIOLET et al., Bubble and Dew Point Calculations in …, Chem. Biochem. Eng. Q. 20 (2) 111–118 (2006) 115
T a b l e 1 – Bubble and dew point calculations for isobutene + methanol « methyl ter-butyl ether. Wilson equation and ideal gas,
Keq = 0.04 and x$F (0.5, 0.5).
T a b l e 2 – Performance of equation-solving methods tested in bubble and dew point calculations in reactive systems
$
Success rate in percent (No. of K-values evaluations)1
2atm 16 (73) 100 (56) 100 (21089) 16 (30) 100 (142) 100 (21345)
4atm 44 (72) 100 (52) 100 (21409) 36 (54) 100 (59) 100 (21329)
1
6atm 44 (84) 100 (48) 100 (21265) 20 (33) 100 (102) 100 (21145)
8atm 60 (84) 100 (43) 100 (21289) 24 (44) 100 (106) 100 (21273)
50°C 68 (55) 100 (371) 96 (42977) 4 (22) 100 (379) 100 (43297)
2 70°C 76 (53) 100 (247) 100 (43345) 20 (32) 100 (275) 100 (43377)
90°C 68 (59) 100 (208) 100 (43297) 40 (56) 100 (220) 100 (43505)
1atm 76 (86) 100 (270) 100 (32341) 4 (22) 100 (591) 100 (32677)
3 5atm 28 (50) 100 (329) 100 (31861) 12 (29) 100 (420) 100 (32233)
10atm 64 (64) 100 (370) 100 (32005) 8 (22) 100 (300) 100 (32449)
1atm 28 (20) 88 (92) 100 (21337) 28 (23) 100 (49) 100 (21217)
4atm 36 (16) 80 (46) 100 (21257) 28 (24) 100 (33) 100 (21241)
4
6atm 28 (15) 56 (40) 100 (21305) 56 (23) 100 (27) 100 (21417)
8atm 28 (13) 48 (35) 100 (21169) 72 (24) 100 (35) 100 (21433)
1Both parameters are calculated based on 25 calculations with random initial values.
DESS and OSA methods find the bubble and dew Example 2.
points without problems while SESN diverged sev- isobutene + methanol « methyl ter-butyl ether with
eral times. We observe that SESN shows more fail- n-butane as inert
ures in dew point calculations. These results indi-
cated, that even for simple reactive systems, bubble In the second example, we use the same reac-
and dew point calculations are challenging for clas- tion as before but include n-butane (4) as an inert.
sical equation-solving methods and require robust Ung and Doherty,9 Harding and Floudas30 and
$
strategies. The number of K-value evaluations of Maier et al.29 have also studied this reactive equi-
solving-methods is given by: OSA >>> DESS > librium problem. The transformed mole fractions
SESN. Computation time maintains around of 6 s x1 + x 3 x2 + x3
for this mixture are x$ 1 = . x$ 2 = and
for OSA, 0.03 s for DESS and 0.02 s for SESN, re- 1+ x 3 1+ x 3
spectively.
116 A. BONILLA-PETRICIOLET et al., Bubble and Dew Point Calculations in …, Chem. Biochem. Eng. Q. 20 (2) 111–118 (2006)
T a b l e 3 – Bubble and dew point calculations for isobutene + methanol « methyl ter-butyl ether with n-butane as inert. Wilson
equation and ideal gas. xz (0.3, 0.3, 0.4)
T a b l e 4 – Bubble and dew point calculations for acetic acid + isopropanol « isopropyl acetate + water. NRTL equation and
ideal gas, Keq = 8.7 and x$F (0.5, 0.3, 0.2).
T a b l e 5 – Bubble and dew point calculations for a hypothetical quaternary mixture A1+A2 « A3 and 2A3 « A4+A2. Ideal solu-
tion and ideal gas. x$F (0.5, 0.5)