Rigorous Distillation Dynamics Simulations
Rigorous Distillation Dynamics Simulations
Dynamics Simulations
Using a Computer Algebra
ZAKIA NASRI, HOUSAM BINOUS
National Institute of Applied Sciences and Technology, BP 676 Centre Urbain Nord, 1080 Tunis, Tunisia
ABSTRACT: In the present paper, Mathematica1, the famous computer algebra, is used to perform steady-
state and dynamic simulations of a multi-component distillation column. In order to describe the vaporliquid
equilibrium (VLE) relationships and to compute the vapor- and liquid-phase enthalpies, the Soave
RedlichKwong equation of state (SRK EOS) is chosen. Rigorous modeling is performed where both mass and
energy balance equations are solved. The Francis weir formula is selected to model column hydraulics. All steady-
state results of the column simulations are found to agree very well with those obtained using HYSYS. Finally,
some insight into column control is given through the application of both the slope and sensitivity criteria. The
computer code, developed at the National Institute of Applied Sciences and Technology (INSAT) in Tunis by the
authors, has served to teach several aspects of chemical engineering to senior undergraduate students at INSAT.
Indeed, students gain from such code a good understanding of energy and mass balances, column dynamic and
control, equations of state and VLE as well as some applied mathematics such as nonlinear algebraic equations,
differential-algebraic systems of equations, and how they can be solved using computer algebra such as
Mathematica1. In addition, they learn about major process simulators such as HYSYS. ß 2009 Wiley Periodicals,
Inc. Comput Appl Eng Educ; Published online in Wiley InterScience (www.interscience.wiley.com); DOI 10.1002/
cae.20385
Keywords: distillation; Mathematica1; applied thermodynamics; SRK EOS; simulation dynamic and control
INTRODUCTION study, the authors humbly attempt to unveil some of the secrets
about such rigorous multi-component distillation simulations
Effluents from chemical reactors need to be separated in order to using a computer algebra that is widely available in universities
achieve product purity commercial specifications. Several unit around the world and a simple quaternary example. In addition to
operations are available for this purpose such as adsorption, steady-state simulations, the dynamic behavior of a distillation
absorption, and stripping, liquidliquid extraction, leaching, and column was studied in the present work. Indeed, in order to model
last but not least distillation. More than 40,000 distillation units column start-up and shut-down operations, one has to perform
operate in the United States of America alone. This makes the dynamic simulations. Also, a column can be subject to distur-
study of such ubiquitous separation method very important in any bances, in the feed composition or feed flow rate, for example, a
good standing chemical engineering undergraduate curriculum. situation that requires the good grasp of basic ideas about column
Usually, such teaching is based on presenting the McCabe and dynamic and control. Process dynamic and control is usually
Thiele method for binary mixtures and some short-cut methods taught in a separate course. Distillation columns are generally a
for multi-component mixtures. Rigorous simulations are usually good example of a process unit to be selected in order to particle
performed using commercial process simulators such as ASPEN such techniques.
PLUS and HYSYS by Aspen Technology, Inc. (http://www.as- In the first section, we present the fluid package used, which
pentech.com/). Thus students often fail to see the details behind is the SoaveRedlichKwong (SRK) Equation of State (EOS).
such calculations and the level of complexity of the problems at The system of DAEs that must be solved in order to obtain
hand (several hundreds of differential-algebraic equations information about the column’s temperature, composition, etc. is
(DAEs) sometimes of index superior to one). In the present given in The Mass and Energy Balance Equations Section. Then,
the Francis weir formula is given. This formula allows one to
model the column hydraulics. We perform steady-state simu-
Correspondence to H. Binous ([email protected]). lations and compare our results with those obtained with
ß 2009 Wiley Periodicals Inc. HYSYS 3.2, a major process simulator by Aspen Technology,
1
2 NASRI AND BINOUS
problems [8] despite the fact that the dynamics of the energy
equations are usually very fast.
where
PNc
P i¼1 xk;i Mw;i
rk;l ¼ ð28Þ
Zk;l RT
For the total condenser and partial reboiler, we make the
following assumption concerning their volume, V0:
Zk;l RT
V0 ¼ 0:5 m3 ¼ Mk for k ¼ 1 or N ð29Þ
P
The Francis formula is only used in the dynamic simulation
where the liquid molar hold-up in all trays must be determined.
Figure 1 Schematic of a distillation column.
Figure 2 Mole fractions of ethane, propane, n-butane, and n-pentane versus stage number: (a) present
work and (b) HYSYS simulation. [Color figure can be viewed in the online issue, which is available at
www.interscience.wiley.com.]
Figure 3 Temperature profile in the column. [Color figure can be Figure 4 Equilibrium constants for ethane, propane, n-butane,
viewed in the online issue, which is available at www.inter- and n-pentane. [Color figure can be viewed in the online issue,
science.wiley.com.] which is available at www.interscience.wiley.com.]
RIGOROUS DISTILLATION DYNAMICS SIMULATIONS 5
Figure 5 Vapor and liquid flow rates in kmol/h. [Color figure can
be viewed in the online issue, which is available at www.
interscience.wiley.com.]
Figure 9 Mole fractions versus time in the distillate for a step in the reflux ratio: (a) ethane, (b) propane,
(c) n-butane, and (d) n-pentane.
Figure 10 Mole fractions versus time in the bottom for a step in the reflux ratio: (a) ethane, (b) propane,
(c) n-butane, and (d) n-pentane.
RIGOROUS DISTILLATION DYNAMICS SIMULATIONS 7
Figure 11 Mole fractions versus time in the distillate for a step in the reboiler heat duty: : (a) ethane,
(b) propane, (c) n-butane, and (d) n-pentane.
Figure 12 Mole fractions versus time in the bottom for a step in the reboiler heat duty: : (a) ethane,
(b) propane, (c) n-butane, and (d) n-pentane.
8 NASRI AND BINOUS
Figure 13 Mole fractions versus time in the distillate for a step in the feed flow rate: : (a) ethane,
(b) propane, (c) n-butane, and (d) n-pentane.
Figure 14 Mole fractions versus time in the bottom for a step in the feed flow rate: : (a) ethane,
(b) propane, (c) n-butane, and (d) n-pentane.
RIGOROUS DISTILLATION DYNAMICS SIMULATIONS 9
Mathematica1 in order to find the transfer function. These temperature from tray to stray. Indeed, large changes in
functions were obtained using two built-in functions of temperature from stage to stage are indicative of a section of
Mathematica1: FindFit and LaplaceTransform. They are given, the column where mole fractions of important components are
for instance, for the ethane mole fraction in the distillate and changing. Thus, one must maintain temperature at this column
bottom (GD and GB, respectively), for a 5% step in the reflux ratio position. This method is called the slope criterion [11]. We have
at t ¼ 0 h, by computed the slope of the temperature profile given in Figure 3.
Result is shown in Figure 17 and clearly indicates that stage 10
e0:05s ð1:0279 þ ð6:8874 þ 1:3879sÞe0:05s Þ
GD ¼ ð30Þ and stages near the reboiler and the condenser as candidate
4:9621 þ s locations where temperature should be controlled.
and In order to apply the sensitivity criterion [11], we apply a 7.5%
step change in the reflux ratio, which is one of the two
0:0173e0:05s ð1:0341 þ ð8:66675 þ sÞe0:05s Þ manipulated variables (i.e., the reflux ratio and the reboiler heat
GB ¼ ð31Þ
8:6675 þ s duty). We look for the locations where there are the largest
Figures 15 and 16 show the dynamic response of the ethane changes in temperature. Results, shown in Figure 18, are in
mole fraction in the distillate and bottom using the transfer agreement with those found using the slope criterion. They
function, shown in red, given above as well as the data points, clearly indicate that stage 10 and the condenser as candidate
shown as blue dots, from the dynamic simulation. One can readily locations for temperature control.
apply such transfer functions in order to control the distillation
column using the well-known Wood and Berry [10] method and
SIMULINK1. CONCLUSION
Figure 16 Ethane mole fraction in the bottom for a 5% step in Figure 18 Application of the sensitivity criterion to the dis-
the reflux ratio at t ¼ 0. tillation column.
10 NASRI AND BINOUS
respectively. The steady-state and dynamic results were com- x liquid composition (mole fraction)
pared to those obtained using HYSYS. Then, they were used to y vapor composition (mole fraction)
perform slope and sensitivity analyses in order to gain insight Z compressibility factor
regarding column control. All computer codes are available, in
the form of a Mathematica1 notebook, upon request from the
corresponding author. These codes are among a series of Greek Letters
computer programs, developed by Dr. Housam Binous at the
fl, fv fugacity coefficients
National Institute of Applied Sciences and Technology (INSAT)
o acentric factor
in Tunis, in order to help his senior and junior students gain
r density (kg/m3)
insight into unit operation problems such as distillation,
absorption, leaching, liquidliquid extraction, etc. In addition,
the nontrivial nature of the mathematical problem at hand (i.e., Subscripts and Superscripts
large complex systems of DAEs and nonlinear algebraic
equations) makes these codes useful to the applied mathematics i component number
course taught by the corresponding author at INSAT. Finally, a N total number of stages including the condenser and the
new computer laboratory, where Mathematica1 and MATLAB1 reboiler
are taught simultaneously to senior students, has also profited k stage number
from these recent developments and new way of teaching science. v vapor phase
l liquid phase
NOMENCLATURE
BIOGRAPHIES
Zakia Nasri is a PhD student at the National Housam Binous is a full-time faculty member
Institute of Applied Sciences and Technology at the National Institute of Applied Sciences
in Tunis. She earned a Masters degree and a and Technology in Tunis. He earned a Diplôme
Diplôme d’ingénieur in Industrial Chemistry d’ingénieur in Biotechnology from the Ecole
from the National Institute of Applied Sciences des Mines de Paris and a PhD in Chemical
and Technology in Tunis. Her research inter- Engineering from the University of California
ests are in applied thermodynamics and at Davis. His research interests include the
petroleum engineering. applications of computers in chemical
engineering.