<<

$5::j class and home problems )

The object of this column is to enhance our readers' collections of interesting and novel prob­ lems in chemical engineering. Problems of the type that can be used to motivate the student by presenting a particular principle in class, or in a new light, or that can be assigned as a novel home problem, are requested, as well as those that are more traditional in nature and that elucidate dif­ ficult concepts. Manuscripts should not exceed 14 double-spaced pages and should be accompanied by the originals of any figures or photographs. Please submit them to Professor James 0. Wilkes (e-mail: [email protected]), Chemical Engineering Department, University of Michigan, Ann Arbor, Ml 48109-2136.

Applications of THE PENG-ROBINSON Using Mathematica

HousAM Brnous National Institute ofApplied Sciences and Technology • Tunis, Tunisia onsider a single component characterized by its critical where , temperature, acentric factor, Pc Tc, and w. The CPeng-Robinson equation of state[24J is given by: (7) P=~- a (1) (V-b) [v(v+b)+b(V-b)] (8)

where (9) i=l i=l b = 0.07780 R Tc (2) P, p pc Ai= 0.45724ai T; and B = 0 07780_l.. (10) I • T (RT )2 2 ri ri (3) a= 0.45724----t"-[ 1 +m( I-Jr:)] For each component, we define the reduced pressure and C temperature using P,, = P / Pc, and T,, = T / Tc, , and ai is (4) identified by an equation similar to Eq. (3) - given for the pure component case. The binary interaction parameter, kii , and 2 m = 0.37464 + 1.54226w-0.26992w . (5) Housam Binous is a full-time faculty member at the National Institute of Applied The Peng-Robinson EOS* is part of a family of equations Sciences and Technology in Tunis. He called cubic because the , Z = PV /RT, earned a Dip/6me d'ingenieur in biotech­ nology from the Ecole des Mines de Paris is a of the following cubic equation derived from Eq. and a Ph.D. in chemical engineering from (1) and written for a multi-component mixture: the University of California at Davis. His research interests include the applications 3 2 2 2 3 Z +(1-B)Z + ( A-3B -2B)z+ (-AB+B + B ) = 0 of computers in chemical engineering. (6)

*All these computations are available in the form of notebooks upon request from the author or the Wolfram Research Information CenterJ11 © Copyright ChE Division of ASEE 2008

Vol. 42, No. I, Winter 2008 47 is obtained from HYSYS 3.2, a major process simulator by 22.91 % toluene. This mixture is sent to a stabilizer to remove Aspen Teclmology, Inc.,l5l or assumed to be equal to zero if hydrogen and methane. The feed pressure is decreased adia­ the simulator is not available. batically from 485 psia to 165 psia by valve and pipe line The liquid and vapor fractions are related by: pressure drop. Find the vapor-phase fraction, the temperature Yi= Ki xi with i = 1,2, ... , C (11) and other relevant variables. where Ki is the . Solution This equilibrium constant is obtained using the ¢-

SOLUBILITY OF METHANOL IN NATURAL GAS For[i = 1,i < 15, T = {329.67,347.67,365.67,383.67,401.67, Problem statement { 419.67,437.67,455.67,473.67, Methanol is used as a in the sweetening of natural 491.67, 509.67, 527.67, 545.67, 563.67}[[i]], gas (i.e., removal of carbon dioxide and hydrogen sulfide). Loss of methanol by transfer from liquid phase to gas phase sol[i] = FindRoot[{ Eq[l],Eq[2],Eq[3],Eq[4], ty[i] == 1, can become an important economic consideration. Compute 3 the gas phase of methanol[ l in treated natural 5 gas leaving the sour gas absorption unit vs. temperature at EQ[l],EQ[2],EQ[3],EQ[4], I)[i] == 1, a pressure of 145.038 psia. Treated natural gas is composed i=l of 70% methane, 10% nitrogen, 10% carbon monoxide and 5 I)[i](K[i]-1) / (1 +

{¢var'¢var / .sol[i-l]},{z1,z1 / .sol[i-1]}, {Zv ,Zv / .sol[i-1]}, 0 C Maxlterations- > 1000] / /Chop,Print[i],i + +}] (ll ..c Q) 0.1 Figure 1 depicts the computed of methanol E in treated natural gas vs. temperature at 145.038 psia. We -0 observe an increase in solubility at higher temperatures. We C 0 f5 see that these solubility values can become large enough to ~ present serious economic drawback due to excessive loss of 0.001 -Q) methanol. 0 ~ HIGH-PRESSURE COMPUTATION Problem Statement 0.00001 Nitrogen and hydrogen react to form ammonia. This reac­ tion is favored by low temperatures and high pressure. Kinetic considerations, however, oblige us to use high temperature. Thus, reactors are operated at very high pressures to get a reasonably high conversion of reactants. High gas-phase pressures imply significant deviation from ideality and the 350 400 450 500 550 need to take into account the fugacity coefficients_[4l In fact, Temperature in °R the equilibrium constant depends on Kv as follows:

K, ~ tJa: ~ ;;",, iK, ~ ~ K,(17) Figure 1. Solubility of methanol in treated natural gas 1~1 y N, y H2 I1 -X ff3 t~ 1 X ir vs. temperature at 145.038 psia. 2 2

Vol. 42, No. I, Winter 2008 49 where Kv is given by: p .: critical pressure (psia) C,1 T .: critical temperature (0 R) (18) C,1 p .: reduced pressure f,1 (19) T .: reduced temperature f,1 and Xis the extent of reaction. Plot Kv and X vs. pressure at w: acentric factor temperatures ranging from 900 °R to 1440 °R. Z: compressibility factor Solution l' v: fugacity coefficients The unknowns in this type of problems are five: the mole K: equilibrium constant fraction in the gas phase, the extent of reaction, and the gas I phase compressibility factor. Once again, the calculation 1.0 uses the built-in function FindRoot to solve five nonlinear algebraic equations simultaneously. The Mathematica com­ mands, which allow the determination of the five unknowns, 0.8 are the following: P= 0.001; KV For[i = l,i < l 7,{soll260 = 0.6 . {Ka[T] (0.5 (1- X)) /\ 0.5 (1.5 (1- X)) FmdRoot[ /\l.5 q>v[l] /\ 1.5 q>v[2] /\ 0.5 == X (2 - X) / P v[ 3], y[3] (2 - X) == X, y[2] (2- X) == 0.5 (1- X), y[l] (2- X) == 1.5 (1- X), Zv /\ 3 + (-1 + Bv) Zv /\ 2 + Zv ( Av - 3Bv /\ 2 - 2B v) -Av Bv + Bv /\ 2 + Bv /\ 3 == 0}, 0 2000 4000 6000 8000 10000 12000 14000 {y[2],0.2}, {y[l],0.1}, {y[3],0.4}, { X,0.6}, {Zv,0.95},Maxlterations--+ 10000], Pressure in psia Pp[i] = P,Kv[i] = q>v[3] / ( q>v[l] /\ 1.5 q>v[2] /\ 0.5) / Figure 2. Kv vs. pressure at various temperatures . .s011260,X[i] =XI .soil 260, Print[i," ",P],P = P + 1000,i = i + l}] In Figure 2, we plot Kv vs. pressure at various temperatures (900, 1080, 1260 and 1440 °R). Values ofKv are significantly C different from unity, indicating that this factor must be taken 0 ~ 0.8 into account at high pressures. The extent of reaction at equi­ ro librium vs. pressure, for the same temperatures, is represented ~ 0 in Figure 3. The extent of reaction approaches unity at high -+-' C 0.6 pressures. xQ) w CONCLUSION 0.4 We have shown through simple examples how one can take advantage of the numerical and graphical capabilities 900° R of Mathematica to perform flash calculations for multi-com­ 0.2 1080° R ponent mixtures, solubility determination, and high-pressure 1260° R chemical equilibrium computations. Similar computations can be performed very easily using MatlabYl 1440° R 0 2000 4000 6000 8000 10 000 12 000 14 000 NOMENCLATURE x: liquid mole fraction Pressure in psia y: vapor mole fraction Figure 3. Extent of reaction vs. pressure at various temperatures. 50 Chemical Engineering Education departure from ideality enthalpy (cal/mol) REFERENCES 1. 2. Tester, J.W, and M. Modell, Thermodynamics and Its Applications, C: number of components 3rd Ed., Prentice Hall, Upper Saddle River, NJ (1996) 3. Prausnitz, J.M., R.N. Lichtenthaler, and E.G. deAzevedo, Molecular z: feed mole fraction Thermodynamics of Fluid-Phase Equilibria, 3rd Ed., Prentice-Hall, Englewood Cliffs, NJ (1998) R: universal (cal/mol. 0 R) 4. Sandler, S.I., Chemical and Engineering Thermodynamics, Wiley, NY, 3rd Ed. (1999) a:I activity of species i (psia) 5. v.: stoichiometric coefficient 6. Henley, E.L, and J.D. Seader, Equilibrium-Stage Separation Opera­ I tions in Chemical Engineering, Wiley, NY (1981) liquid phase fugacity coefficient 7. 0 ¢var : fraction vaporized= V/F

Vol. 42, No. I, Winter 2008 51