Professional Documents
Culture Documents
Sistemas de Control: Isothermal Chemical Reactor
Sistemas de Control: Isothermal Chemical Reactor
1 Introduction
2 Non-linear Model
3 Linearized Model
4 Simulation
1 Introduction
2 Non-linear Model
3 Linearized Model
4 Simulation
1 Introduction
2 Non-linear Model
3 Linearized Model
4 Simulation
A+B → P
The overall mass balance, considering a perfectly mixed tank, is given by:
dV (t )ρ
= fi (t )ρi − f (t )ρ
dt
The liquid-phase density is not a function of concentration thus the densities
are equal at the inlet and outlet. The expression is the following:
dV (t )
= fi (t ) − f (t ) (1)
dt
rA (t ) = −kCA (t )
where k is the reaction rate constant, the minus sign indicates that A is
consumed in the reaction.
douplaza@espol.edu.ec (FIEC-ESPOL) Sistemas de Control 8 / 22
Modelling the reactor
Each mole of A reacts with a mole of B (from the stoichiometric equation) and
produces one mole of P (per unit volume) is:
rP (t ) = kCA (t )
dVCA
Expanding the expression dt
:
dV (t )CA (t ) dCA (t ) dV (t )
= V (t ) + CA ( t ) (4)
dt dt dt
The dynamics concentration of A is derived by combining equation 1, with
equation 2 and equation 4 as follows:
dCA (t ) fi (t )
= (CAi − CA (t )) − kCA (t ) (5)
dt V (t )
Similarly, the concentration of P is obtained by combining equation 1 with 3
and 4.
dCP (t ) fi (t )
=− CP (t ) + kCA (t )
dt V (t )
douplaza@espol.edu.ec (FIEC-ESPOL) Sistemas de Control 9 / 22
Modelling the reactor
dV (t )
= fi (t ) − f (t )
dt
dCA (t ) fi (t )
= (CAI − CA (t )) − kCA (t )
dt V (t )
dCP (t ) fi (t )
= − CP (t ) + kCA (t )
dt V (t )
As it can de seen, the model of the reactor in this case is represented by three
differential equations, two of them are non-linear.
We will consider that the there is a loop in the system which is closed in order
to regulate the level of the reactor. In closed-loop, the volume V (t ) remains
constant V , thus, the system is represented by the following two differential
equations.
dCA (t ) F (t )
= (CAI − CA (t )) − kCA (t )
dt V
dCP (t ) F (t )
= − CP (t ) + kCA (t )
dt V
1 Introduction
2 Non-linear Model
3 Linearized Model
4 Simulation
dCA (t ) F (t )
= f (F (t ), CA (t )) = (CAI − CA (t )) − kCA (t )
dt V
dCP (t ) F (t )
= f (F (t ), CP (t ), CA (t )) = − CP (t ) + kCA (t )
dt V
the linear approximation of non-linear two-variables functions is:
∂ f (.) ∂ f (.)
f (x , y ) ≈ f (xss , yss ) + |xss ,yss (x − xss ) + |x ,y (y − yss )
∂x ∂ y ss ss
∂ f (.) ∂ f (.)
f (x , y ) − f (xss , yss ) = |xss ,yss (x − xss ) + |x ,y (y − yss )
∂x ∂ y ss ss
d (CA (t ) − CAss )
= f (F (t ), CA (t )) − f (Fss , CAss )
dt
d (CA (t ) − CAss ) ∂ f (.)
= |F ,C (F (t ) − Fss ) . . .
dt ∂ F ss Ass
∂ f (.)
... + |F ,C (CA (t ) − CAss )
∂ CA ss Ass
d (CA (t ) − CAss )
V = (CAI − CAss )(F (t ) − Fss ) . . .
dt
. . . −(Fss + kV )(CA (t ) − CAss )
For the sake of clarity, let’s consider x (t ) = x (t ) − xss . In words, from now on
the used variables are inherently deviation variables,thus:
dCA (t )
V = (CAI − CAss )F (t ) − (Fss + kV )CA (t )
dt
VsCA (s) = (CAI − CAss )F (s) − (Fss + kV )CA (s)
CA (s) (CAI − CAss )/V
=
F (s ) s + (kV + Fss )/V
CA (s) K1
=
F (s ) s + K2
dCP (t )
V = −CPss F (t ) − Fss CP (t ) + kVCA (t )
dt
VsCP (s) = −CPss F (s) − Fss CP (s) + kVCA (s)
K1
VsCP (s) = −CPss F (s) − Fss CP (s) + kV F (s)
s + K2
CP (s) −(CPss s + (CPss K2 − kVK1 ))
=
F (s) (Vs + Fss )(s + K2 )
The obtained transfer function has some interesting features. First, the
response of CP (t ) is over-damped since the system has two real poles.
Second, the system has a zero and the system has negative gain which
means that for positive changes in the input F (t ), the output response exhibits
negative changes.
1 Introduction
2 Non-linear Model
3 Linearized Model
4 Simulation
The table shows the values of the operating points/steady states of the system
variables.
Names Values description
X 80 % Conversion from EO to EG
k 0.311 [1/min] reaction rate constant
V 98.65 [ft3 ] volume
Fss 7.67 [ft3 /min] feed-stream flow
CAi ss 0.5 [lbmol/ft3 ] Feed-stream concentration
CAss 0.1 [lbmol/ft3 ] Reactant concentration EO
CPss 0.4 [lbmol/ft3 ] Product concentration EG
%linear model
Finit = 8; % [ft^3/min] initial inlet flow in the step s
Ffinal = 10; %0.0817*102.9; % [ft^3/min] final value of th
deltaF=Ffinal-Finit;
t1=0:10/52:20;
K1=(CAi-CA0)/V;
K2=(k*V+Finit)/V;
s=tf('s');
G1=K1/(s+K2);
[Yca,t1]=step(deltaF*G1,t1);
G2=-((CP0*s)+((CP0*K2)-(k*V*K1)))/(((V*s)+Finit)*(s+K2));
[Ycp,t1]=step(deltaF*G2,t1);
%plot results
figure(1)
plot(t,CA,t1,Yca+CA0)
legend('CA-nonlinear','CA-linear')
figure(2)
plot(t,CP,t1,Ycp+CP0)
legend('CP-nonlinear','CP-linear')