Professional Documents
Culture Documents
8.11 Chemical Reactors: Simulation and Modeling: A. B. Corripio, P. A. Holst A. B. Corripio B. G. Lipták B. G. Lakatos
8.11 Chemical Reactors: Simulation and Modeling: A. B. Corripio, P. A. Holst A. B. Corripio B. G. Lipták B. G. Lakatos
1711
determine the responses and stability of algorithms to the set means of the transfer function
point and simulated process load changes, respectively.
The next step is the simulation and checkout of the discrete 100 1 T s
M (s ) = + + D E (s ) 8.11(3)
functions, namely direct on/off control, interlock control, and PB TI s 1 + T0 s
sequential control. Using the simulator or the simulation pro-
gram, one can imitate normal or abnormal conditions and in which all three modes can be adjusted independently.
check the system responses. If a very large number of discrete In general, the proportional band should have an overall
I/O is required in order to check a very complicated sequential adjusting effect, which leads to the practical noninteracting
control strategy, a simulator program can be generated, and controller with the transfer function
the test can be conducted in the same manner as a dynamic
test for continuous (regulatory) control described earlier. 100 1 T s
In addition to the previously described simulation, when M (s ) = 1+ + D E (s ) 8.11(4)
PB TI s 1 + T0 s
the system is fully installed in the field, a test run is recom-
mended prior to actual start-up. Modern controllers often limit the derivative action to
respond only to measured variable changes and not to rapid set-
Control System Simulation point changes, which could upset the process. This is stated in
The simulation of instrumentation and control systems includes the modified transfer function
the measuring or detecting devices, the controllers, and the
actuating or manipulating of output elements. Most measur- 100 1 T s
M (s ) = 1+ E (s ) − D Y (s ) 8.11(5)
ing devices may be simulated by one or more simple lags for PB TI s 1 + T0 s
dynamic representation, with added static nonlinearities for
device characteristics, sensitivity, or operating point modeling. which is of the noninteracting type.
For special functions, such as logarithmic input/output
relationships (pH measurements), the general-purpose Digital Control Simulation
function-generating units may be used, or the functions may
be generated by implicit techniques. When the measuring Digital control may be simulated directly with a discrete con-
device puts out a discontinuous (pulse-type) signal, the signal- troller, where the measured variable y(t) and the set point r(t)
generating circuits may be applied. in the time domain are sampled at fixed intervals ∆T, called
A direct, three-mode (PID) controller has the transfer sampling period, and t = nT. Denoting now the actuating error
function: by e(nT ) = y(nT ) − r(nT ), or en = yn − zn, the numerical
approximation of the controller algorithm 8.11(5) is
100 1 TD s
M (s ) = 1 + 1 + E (s ) 100 TD ( yn − yn−1 )
n
∑e
8.11(1) T
PB TI s 1 + T0 s ∆ mn = e + − Sn 8.11(6)
PB n TI k
T0T
k =1
where (all variables are in Laplace representation)
M(s) = controller output where the term
E(s) = actuating error, E(s) = R(s) – Y(s)
Y(s) = measured (controlled) input variable ( n− k )T
n
∑
−
R(s) = set point Sn = e T0 8.11(7)
k =1
PB = proportional band
TI = integral (reset) time is due to the convolution of functions.
TD = derivative time This is referred to as the position form of the PID control
T0 = filtering (stabilizing) time constant algorithm, because the actual control output is computed. An
alternative form of this algorithm is the velocity form, in which
The filtering time constant is usually made as small as the change of the controller output from the preceding period
possible and is often a fraction of the derivative time constant is computed rather than the actual controller output itself. In
TD (such as T0 = TD /16). Often, the proportional band is this case, the velocity form corresponding to 8.11(5) becomes
replaced by the proportional gain expressed as
100 T T
100 mn − mn−1 = 1 + en − en−1 − D
Kc = 8.11(2) PB TI T0T
PB
The controller transfer function in Equation 8.11(1) is of × [SSn yn − (Sn + Sn−1 ) yn−1 + Sn−1 yn− 2 ]
the interacting type, which is the common case in most indus-
trial applications. A noninteracting controller is obtained by 8.11(8)
(a)
REACTOR MODELS
Reactant A
phase reactions the concentrations are proportional to the pres- actual mechanism of the reaction consists of a series of inter-
sure, and therefore the pressure also affects the rate of reac- mediate elementary steps that are summarized by Equations
tions. 8.11(13) and 8.11(14). When the functional relationship has
In case of a homogeneous reaction: the form of Equation 8.11(14), the reaction is said to be of
order α , β, ς and σ, with respect to the species, while the
aA + aB → qQ + sS 8.11(10) orders of the forward and reverse reactions overall are α +
β and and ς + σ, respectively.
where: “a” moles of species A react with “b” moles of In Equation 8.11(14), parameter kf is the rate coefficient
species B to produce “q” moles of species Q and “s” moles of the forward reaction, and K is the equilibrium constant for
of species S. A and B are therefore the reactants, Q and S which the relationship
are the products, and a, b, c, and d stand for the corresponding
coefficients in the stoichiometric Equation 8.11(10). Such a kf
reaction is called irreversible, and it will stop when either K= 8.11(15)
reactant is completely consumed. kr
For homogeneous irreversible reactions the rate of reac-
tion is measured as moles of one of the reactants transformed holds where kr is the rate coefficient of the reverse reaction.
per unit volume of reacting mixture and unit time: For irreversible reaction kr = 0, so that K → ∞ and the second
term in parentheses in Equation 8.11(14) becomes 0.
Both the rate coefficient and the equilibrium coefficient
1 dn A
rA = − 8.11(11) are functions of temperature. Experimentally, the influence
V dt
of temperature on the rate coefficient is well represented by
where rA is the rate of consumption of reactant A, and nA the Arrhenius equation
denotes the total moles of A in volume V. The rate of reaction,
E
however, can be expressed also in terms of other reactants −
and products. Because in this case the direction of change of k f = k f 0e RT 8.11(16)
species Q and S are reversed, these rates are related to rate
rA as where E is called the activation energy of the reaction, R is
the universal gas constant (1.98 BTU/(lb-mole °R) or in the
b q s SI system 8.314 J/(mol °K)), and T is the absolute tempera-
rB = r , rQ = − rA , rS = − rA 8.11(12) ture of the reacting mixture.
a A a a
A kinetic model is essential for the simulation of a pro-
The reaction that does not proceed to completion is called cess reactor. The functional relationship and the parameters
reversible, and it is necessary to include also the kinetics of are identified with the aid of reaction rate data measured in
the reverse reaction: the laboratory or pilot plant, fitting a rate equation of general
form to a set of experimental data. However, the kinetic
aA + bB ↔ qQ + sS. 8.11(13) model does not have to be as accurate for control simulation
as it would have to be for designing the reactor.
The arrow pointing to the left indicates that the reaction
is reversible; i.e., both forward and reverse reactions take Perfectly Mixed Flow Reactor
place simultaneously. Therefore, the state of chemical equi-
librium is regarded as a dynamic balance between the forward The essential feature of the continuous stirred tank reactor is the
and reverse reaction. assumption of complete uniformity of concentration and tem-
The equations that express the rate of reaction in terms perature throughout the reactor volume. Because with perfect
of concentrations of the reactants and products are called the mixing, the reactor contents are completely uniform, it is also
kinetic model of the reaction. A typical model for the revers- called the perfectly mixed flow reactor in which the conversion
ible reaction represented by Equation 8.11(13) could be takes place at unique concentration and temperature levels.
The mathematical model is developed using the principle
of the conservation of energy and mass:
1
rA = − k f cαA cBβ − cQς cSσ 8.11(14)
K
rate of rate of rate of
where cA, cB, cQ, and cS are the concentrations of the corre- quantity = quantity − quantity
sponding species in moles per unit volume. The exponents accumulation in out
in this expression are often equal to a, b, q, and s, respectively,
and then the reaction is said to be elementary. rate of rate of
If the exponents differ from the coefficients of Equation + quantity − quantity 8.11(17)
produced consumed
8.11(13), the reaction is not elementary, meaning that the
d (Vc A ) dc dV Mp
= V A + cA 8.11(21) ρ= 8.11(26)
dt dt dt RT
where M is the mean molecular weight of the reacting mix- vin vn , cAn , Tn , rn vN
ture and R is the universal gas constant. The concentration cAin cAN
Tj
of reactant A is expressed as Tin TN
rin rN
1 2 … n−1 n … N
py
cA = A 8.11(27)
RT
∆x
where yA is the mole fraction of species A.
In Equation 8.11(18), the outflow through the control FIG. 8.11e
The model of a plug flow reactor consists of a number of compart-
valve can be expressed as
ments.
p − pout
F = CV 8.11(28)
ρ carried out, is divided into a number of compartments, as is
illustrated in Figure 8.11e. The compartments are assumed
where CV is the valve sizing coefficient, and pout is the constant to be connected in cascade without any back-flow. The length
pressure controlling the out-flow. Equations 8.11(26)– of each compartment is ∆x and its volume is A∆x, where A
8.11(28) can be substituted into Equations 8.11(18), 8.11(20), is the cross-sectional area of flow. As a consequence, if the
and 8.11(24) to express them in terms of ρ, p, yA, and T to volume of the reactor is V and N compartments are used in
obtain the mathematical model of the gas phase reactor. Nat- the modeling, then the length of a compartment is derived as
urally, in this case the volume of the reactor V is constant. ∆x = V/NA. Further, if the linear velocity of flow is denoted
by v then the volumetric velocity is Av.
Plug Flow Reactor The mathematical model of the system now can be devel-
oped by sequentially applying the principle expressed in
Plug flow is a simplified and idealized view of the motion of Equation 8.11(17) for each compartment. The mass balance
a fluid, whereby all the fluid elements move with a uniform around the nth compartment, shown in Figure 8.11f, can be
velocity along parallel streamlines. It is also assumed that written as
the concentrations and temperature are uniform across the
cross-sectional area of flow. Tubular reactors, such as shown d ( A∆x ρn )
in Figure 8.11d, with very high velocities, tend to approach = Avn−1ρn−1 − Avn ρn , n = 1, 2 K N 8.11(29)
dt
plug flow conditions.
Whereas composition and temperature are functions of where ρn is the mean density and vn is the mean linear velocity
time only in the perfectly mixed reactor, in the plug flow of the reacting mixture in the nth compartment. For the first
reactor they are functions of time and distance x from the compartment ρ0 = ρin and v0 = vin, where the subscript in
entrance. Thus, the plug flow reactor is a distributed param- denotes the input variables to the reactor. In liquid phase
eter system, having a dynamic model, which consists of reactors, the density is assumed to be constant. In gas phase
partial differential equations. To solve a partial differential reactors Equation 8.11(26) is used to compute the density
equation it must be approximated by a number of ordinary from the pressure and temperature of the compartment.
differential equations. However, a special case of a model Because the parameters x and A are constant, Equation
containing N equal-size perfectly mixed tanks, called com- 8.11(29) can be simplified to give
partments in the present context, arranged in series forms, is
a useful and frequently used approximation of the plug flow d ρn 1
= (v ρ − v ρ ), n = 1, 2 K N ,
reactor. This method will be shown here. dt ∆ x n−1 n−1 n n
The tubular reactor in Figure 8.11d, in which an irrevers- v0 = vin , ρ0 = ρin 8.11(30)
ible, endothermic reaction A → Product is assumed to be
Tj
n vn
Tf cA, T, v vn-1 cAn
cA, n-1 Tn
cAin , Tin , vin Tn-1 rn
rn-1 Vn = A∆x
A
x ∆x
FIG. 8.11f
FIG. 8.11d The compartment model of the nth compartment of a plug flow
Plug flow reactor with heating jacket. reactor.
The mass balance equation on reactant A becomes 8.11(34), and 8.11(35), and this set of equations can be closed
by also applying Equation 8.11(26). If the temperature of the
d ( A∆xc An ) jacket Tj cannot be considered constant, then a heat balance
= Avn−1c A,n−1 − Avnc An + A∆ xrAn , equation, similar to Equation 8.11(33) without reaction term,
dt
should be added to the model.
n = 1, 2 K N , v0 = vin , ρ0 = ρin , c A 0 = c Ain 8.11(31)
The greater the number of compartments in this compart-
ments model, the better the model approximates the distrib-
where cAn is the concentration of reactant A in the nth com- uted parameter plug flow model. However, in accordance
partment, and rAn is the reaction rate. Again, this equation with the engineering heuristics, five compartments usually
can be simplified writing are sufficient to describe the performance and behavior of
plug flow reactors.
dc An 1
= (v c − v c ) + rAn , n = 1, 2 K N ,
dt ∆ x n−1 A,n−1 n An Nonideal Flow
v0 = vin , ρ0 = ρin , c A 0 = c Ain 8.11(32)
The flow patterns of process reactors often deviate from the
ideal flow conditions of perfect mixing and plug flow. In
The Energy Balance The energy balance equation around stirred tank reactors, this can be caused by such elements in
the nth compartment takes the form real equipment as corners, baffles that can lead to stagnant
regions, or nonuniform flow paths that can induce bypassing
of fluid.
d ( A∆ x ρnC pTn )
= Avn−1ρn−1C pTn−1 − Avn ρnC pTn The way to model this type of imperfections is to divide
dt the reactor into more compartments of different volumes.
+ A∆ x (− ∆ H r )rAn + Ua∆ x(Tj − Tn ) These compartments can be connected with each other using
n = 1, 2 K N , v0 = vin , ρ0 = ρin , T0 = Tin 8.11(33) volumetric flows of different flow rates. The sum of the
volumes of the compartments must equal the volume of the
reactor. A simple model of a real stirred tank with bypassing
where a is the perimeter of the tube, so that a∆x is the heat- and dead space is shown in Figure 8.11g.
transfer area of one compartment, and Tj is the temperature The nonideal flow in tubular reactors can be modeled
of the jacket assumed to be uniform along the tube, as it takes simply by adding back-flow from a compartment to the pre-
place, for instance, in a firing box. This last equation can also ceding one in the N compartments in series model. In this
be written in simplified form manner, one can allow for some mixing in the axial direction
of the tube, as it is illustrated in Figure 8.11h.
dTn vn−1ρn−1 1 Ua Increasing the rate of back-flow, the model will approach
= (T − T ) + (− ∆ Hr )rAn + (T − T )
dt ∆ x ρn n−1 n ρnC p AρnC p j n that of the perfectly mixed reactor. In the case of fixed finite
back-flow, when the number of compartments, N, approaches
n = 1, 2 K N , v0 = vin , ρ0 = ρin , T0 = Tin 8.11(34) infinity, the model approaches the so-called plug flow with
axial dispersion model.
Often, the pressure drop in the reactor is sufficiently large Another type of nonideal flow occurs in a tubular reactor
to be necessary to account for it, instead of using an average in which the velocity, temperature, and concentration varies
value. Then the velocity from each compartment to the next across the radius of the tube. If axial symmetry is present,
can be computed by using the usual Bernoulli equation these phenomena may be modeled by assuming some velocity
Bypassing
pn − pn−1 = kF ρn vn2 + α ρn vn (vn − vn−1 ),
When modeling on digital computers, one must recog- Douglas, J. M., Process Dynamics and Control 1. Analysis of Dynamic
nize the following: Systems, Englewood Cliffs, NJ: Prentice Hall, 1972.
Douglas, J. M., Process Dynamics and Control 2. Control System Synthesis.
Englewood Cliffs, NJ: Prentice Hall, 1972.
1. The digital computer is a discrete time device; therefore,
Froment, G. F., and Bischoff, K. B., Chemical Reactor Analysis and Design,
all the computations required to implement must be New York: John Wiley & Sons, 1979.
expressed in discrete time forms. Gershenfeld, N., The Nature of Mathematical Modeling, Cambridge: Cam-
2. Numerical integration involves approximating continu- bridge University Press, 1999.
ous differential equations with discrete finite difference Harriott, P., Process Control, New York: McGraw-Hill, 1964.
equations. The accuracy and stability of these approxi- Levenspiel, O., Chemical Reaction Engineering, New York: Wiley, 1999.
Luyben, W. L., Process Modeling, Simulation and Control for Chemical
mating equations must be constantly considered.
Engineers. New York: McGraw-Hill, 1973.
3. Interactive environments of digital computers provide Mayer, F. X., and Spencer, E. H., “Computer Simulation of Reactor Control,”
convenient and effective tools and some kind of graphical ISA Journal, July 1961, 58–64.
capabilities for modeling, simulating, and analyzing Morely, R., “Computer Control for the 1990s,” Automation, June 1991, 28–31.
dynamic, multidomain systems and control system Morely, R., “Faster than Real Time,” Manufacturing Systems, May 1992,
design. It lets you accurately describe, simulate, evaluate, 58–65.
Rao, M., and Qiu, H., Process Control Engineering, Chemin de la Sallaz:
and refine a control system’s behavior through standard
Gordon & Breach, 1993.
and custom block libraries, also allowing you to develop Shinskey, F. G., Process Control Systems. Application, Design, and Tuning,
and build your own special process and control elements. New York: McGraw-Hill, 1996.
Smith, C. A., and Corripio, A. B., Principles and Practice of Automatic
Process Control, New York: Wiley, 1985.
Bibliography Stephanopoulos, G., Chemical Process Control: An Introduction to Theory
and Practice, Englewood Cliffs, NJ: Prentice Hall, 1984.
Coulson, J. M., and Richardson, J. F., Chemical Engineering, Volume 3, Wen, C. Y., and Fan, L. T., Models for Flow Systems and Chemical Reactors,
(Richardson, J. F., and Peacock, D. G., Eds.), Oxford: Elsevier, 1994. New York: Marcel Dekker, 1975.