Professional Documents
Culture Documents
1, JAN-JUN 2010 45
Abstract—Since the last three decades, structure of the chem- III. M ATLAB AND S IMULINK
ical processes has become increasingly complex, due to better
management of energy and raw materials. As a consequence, MATLAB is an interactive system for doing numerical com-
the design of control systems has become the focal point in putations. It has evolved into a successful commercial software
industries today. Any chemical process needs to be controlled package. MATLAB relieves you of a lot of the mundane tasks
for various purposes, such as environmental regulations, safety,
economic considerations; product quality etc. in the present work, associated with solving problems numerically.[4] SIMULINK,
isothermal continuous stirred tank reactor (CSTR) is modeled a companion program to MATLAB, is an interactive system
for first order reactions. The non linear equations so obtained for simulating nonlinear dynamic systems. It is a graphical
were linearized and converted in to the transfer function. These mouse-driven program that allows you to model a system by
model equations were solved at steady and dynamic mode, and drawing a block diagram on the screen and manipulating it
the concentration is obtained as a function of time. The transfer
function developed was used to tune the system. The tuning dynamically.
parameters were then determined by a trial and error method.
Index Terms—Feedback control system, isothermal continuous IV. C ONTROL SYSTEM BASICS [1], [5]
stirred tank reactor, first order reactions, tuning parameters
The different components constituting a control system are
represented by means of a block diagram to develop the
I. I NTRODUCTION functional relationship between the input and output variables
for each component of a control system. The block diagram
Structure of chemical process has seen a major change in of feedback control system is shown in Fig. 1.
the last decade. The change has been due to environmental
legislation, safety considerations, energy and raw material
minimization, product quality to name a few. During its
operation, a chemical plant must satisfy several requirements
imposed by the designers and the general technical, social and
economic conditions in the presence of ever-changing external
disturbances. As a consequence, the design of control systems
Fig. 1. Block diagram of a feedback control system
has become the focal point in industries today [1]. Tuning
of a controller is done by a trial and error method. This can
be very tedious if done manually as the optimum values of
the parameters of the same controller might be different for
V. I NTRODUCTION TO CHEMICAL REACTORS
different processes. Hence, we can use some computer aided
techniques to speed-up the controller tuning. SIMULIK is one Chemical reactors are generally the most important unit
such widely used software provided by Mathworks Inc., which operations in a chemical plant. Chemical reactors come in
is an add on tool of MATLAB. many forms, but two of the most common idealizations are
the continuous stirred tank reactor (CSTR) and the plug flow
reactor (PFR). These two types serve as ’limiting bounds’
II. I NTRODUCTION TO MODELING AND SIMULATION for the behavior of many operating reactors. The CSTR is
Process Simulation includes description of the part of the often used in dynamic modeling studies, because it can be
real world that needs to be simulated, representation of this modeled as a lumped parameter system. A dynamic model of
part of the real world in terms of a model (modeling), and a plug flow reactor consists of partial differential equations
solution of the mathematical model to obtain numbers or (also known as a distributed parameter system).
symbols - Simulation[2], [3]. Consider the continuous stirred tank reactor. We will assume
that the reactor is operating at a constant temperature (it is
Rachit Oza is with Anil Products Limited e-mail:rachitoza@gmail.com, isothermal), so we do not need an energy balance (and can
N.Shah is with Unimark Remedies Limited e-mail:nikhilbk87@yahoo.com, also assume that the reaction rate parameters are constant).
D. G. Tadse is with Hamon Shriram Cottrell Pvt. Ltd.e- In addition, we will assume that the volume is constant.
mail:deepak.tadse@gmail.com and M.H. joshipura is with Department
of Chemical Engineering, Institute of Technology, Nirma University The first order reaction scheme with a number of interesting
e-mail:milind.joshipura@nirmauni.ac.in characteristics is presented below.
46 NIRMA UNIVERSITTY JOURNAL OF ENGINEERING AND TECHNOLOGY, VOL.1, NO.1, JAN-JUN 2010
dCA F
dt = V CAf − ( VF + k)CA
where k is the reaction rate constant. Since V is constant:
dCb F
= − CB + kCA (2)
dt V
The two dynamic modeling equations are 1 and 2. Notice
that the concentration of B does not play a role in equation
1, so equation 1 can be solved independently of 2. Before
analyzing the dynamics of this system, it is important to
understand the steady-state behavior. Fig. 3. Concentration of B as a function of space velocity
in MATLAB - ode45. This basically uses the Runge-Kutta The main task is to determine the tuning parameters. For this
method of the 4th order. The concentration of A is also first we adopt a trial and error method (the Ziegler-Nichols closed
order with respect to CAf , but a second order transfer function loop method [6]). We shall consider tuning the PI controller
relates CAf , to the concentration of B. The transfer function and not the PID controller since the first order process has a
was obtained by first obtaining the state space models4,5 and good speed of response. A PID control is normally used to
then using the inbuilt function ’ss2tf’ in MATLAB to convert increase the speed of closed-loop response.[8]
the state-space form into the transfer function form.As seen The graph obtained for the values mentioned in Table I is
in fig 4 and 5, the response of B to a change in the feed shown in Fig. 7. This shows an unstable nature of the given
composition of A is slower than the response of A for the system.
same change.
TABLE I
PARAMETERS ASSUMED FOR PI C ONTROLLER FOR THE GIVEN SYSTEM
Parameters Value
Proportional 13.9
Integral 5
Fig. 8. Response obtained for step change to set point for First Order System
TABLE II
PARAMETERS ASSUMED FOR PI C ONTROLLER FOR THE GIVEN SYSTEM
Parameters Value
Proportional 13.5
Integral 5
Fig. 11. Response obtained for step change to set point for First Order
System for the Tyreus-Luyben tuning parameters
XI. C ONCLUSION
TABLE III
T UNING PARAMETERS FOR THE SYSTEM XII. F UTURE W ORK
Method kc τI For more accuracy, the system can be checked with different
Ziegler- Nichols Kcu ∗ 0.5 = 6.235875 Pu
1.2
= 0.2 tuning methods and the a comparison can be carried out with
Tyreus-Luyben Kcu
3.2
= 4.33 Pu ∗ 2.2 = 0.528 respect to stability testing.
Rachit Oza has obtained his B.Tech in Chemical Deepak Tadse has obtained his B.Tech and M.Tech
Chemical Engineering from Nirma University in in Chemical Chemical technology from Nagpur Uni-
2009. versity. His research interest include polymer sci-
ence,process equipment design and polymerization
reaction engineering. He is life member of ISTE.
Nikhil Shah has obtained his B.Tech Chemi- Milind H. Joshipura is working as an Assistant
cal ChemicalEngineering from Nirma Universityin Professor in Chemical Engineering Department of
2009. Institute of Technology in Nirma University, Ahmed-
abad. He has obtained his B.E. in Chemical En-
gineering from D.D.I.T ,Nadiad (Autonomous Uni-
versity) in the year 2000 and Masters in Chemical
Engineering from The M S University, Baroda in
year 2002. His research interest also includes Phase
equilibria studies and Modeling and Simulation. He
is a Life member of ISTE and Associate member of
Indian Institute of Chemical Engineers (IIChE).