You are on page 1of 14

A continuous stirred tank heater simulation model with applications

Nina F. Thornhill a, Sachin C. Patwardhan b, Sirish L. Shah c

a
Centre for Process Systems Engineering, Department of Chemical Engineering, Imperial College London, London SW7 2AZ, UK
b
Department of Chemical Engineering, I.I.T. Bombay, Powai, Mumbai 400 076, India
c
Department of Chemical and Materials Engineering, University of Alberta, Edmonton, Canada T6G 2G6

Abstract

This article presents a rst principles simulation of a continuous stirred tank heater pilot plant at the University of Alberta. The model
has heat and volumetric balances, and a very realistic feature is that instrument, actuator and process non-linearities have been carefully
measured, for instance to take account of the volume occupied by heating coils in the tank. Experimental data from step testing and
recordings of real disturbances are presented. The model in Simulink and the experimental data are available electronically, and some
suggestions are given for their application in education, system identication, fault detection and diagnosis.

Keywords: Benchmark simulation; Disturbance; Experimental validation; First-principles model; Hybrid model; Performance analysis; System identi-
cation

1. Introduction fore provides a realistic platform for data-driven identica-


tion and fault detection. Code and data for the simulation
Process simulations are of value to university teachers presented in this article are available from the CSTH sim-
and academic researchers because they allow comparisons ulation website [38]. The model has been implemented in
and demonstrations of the merits of dierent approaches the Simulink simulation platform with a view to easy acces-
in areas such as control design, system identication and sibility by students and researchers.
fault diagnosis. The next section of the paper reviews benchmark models
This paper has an educational purpose. It describes a from the process systems literature and places the CSTH
simulation of an experimental continuous stirred tank hea- model in context. Section 3 presents the pilot plant, rele-
ter (CSTH) pilot plant. Volumetric and heat balance equa- vant equations and the calibrations. Section 4 describes
tions are presented along with algebraic equations derived implementation of the model in the Simulink simulation
from experimental data for calibration of sensors and actu- platform. Section 5 presents experimental data for model
ators and unknown quantities such heat transfer through validation while Section 6 shows the time trends of process
the heating coils. Many of these relationships have non- and measurement disturbances captured from the experi-
linearities, and hard constraints such as the tank being full mental plant. All of these data sets are available at the
are also captured. A valuable feature is that the model uses CSTH web site. The model is then explored mathematically
measured, not simulated, noise and disturbances and there- to give a linearized state-space representation at the operat-
ing point and also an inputoutput transfer function
matrix representation. Finally, Section 8 suggests some
applications for the simulation and presents a challenge
in the form of a system identication problem.
348

2. Background and context 2.3. Linear dynamic models

2.1. Introduction The non-linear distillation model paper of [35] oered


transfer function models linearized at dierent operating
Process simulations in the public domain have been points as well as the rst principles model.
used in education and academic research for many years Models expressed in the form of a transfer function
to compare the performance and applicability of methods matrix are helpful for demonstrating multivariable prob-
for control, identication and diagnosis. Broadly speak- lems where interactions are the key issue. Their clear cap-
ing, the simulations fall into two categories: (i) models ture of these eects also gives them value for teaching
in which the dynamics are captured through rst princi- purposes. For instance, [33] use the WoodBerry two-by-
ples, and (ii) linear models presented as transfer func- two transfer function model of a pilot-scale distillation
tions or in state-space form. Also available are detailed [42]. The model relates plant inputs (reux rate and steam
models for individual components of a process such as ow rate) to outputs (top and bottom product composi-
control valves and rotating machinery. Commercial train- tions). It is expressed as transfer functions in the form of
ing simulators are a further important category of pro- rst order lags plus time delays (FOPTD). [21] used the
cess simulation. The following sections review the WoodBerry model to demonstrate performance monitor-
literature and place the CSTH simulation in the context ing of a model predictive controller.
of other work. The Shell challenge problem [28] is a transfer function
representation of an industrial debutanizer. Again, each
2.2. First principles models transfer function is a rst order lag with delay where some
of the delays are very long, giving a considerable challenge
A very widely used model is the classic continuous stir- for multivariable control. The paper by [3] concerned
red tank reactor simulation with Van de Vusse reaction worst-case bounds and statistical uncertainty in the evalu-
kinetics [39]. It appears in text books [26,10] and has been ation of the Relative Gain Array. It presented results from
used for demonstration of control schemes and fault diag- several transfer function benchmark models including a
nosis. The reaction equations are non-linear because they simplied model for the Shell challenge problem and a
include the bilinear products of ow rates, composition three-by-three model for a pilot scale distillation column
and temperature as well as the temperature dependence which originated with [27].
of reaction rate [26]. Other authors have made realistic State-space benchmarks are used for the testing of model
additions such as the dynamics of a reactor with a cooling reduction algorithms in which the aim is to derive a smaller
jacket [31,32]. representation with many fewer states which has almost the
At the time of writing, more than 150 articles in the same dynamic inputoutput behaviour as the original prob-
Science Citation index are using the Tennessee Eastman lem. The SLICOT collection [37] created as part of the
challenge problem [9]. This simulation represents a com- European Unions BRITE-EURAM III NICONET pro-
plete process comprising a reactor and several separation gramme gives some huge state-space models as challenges
columns and heat exchangers. The process presents signif- for this purpose and the Oberwolfach model reduction
icant plant-wide multivariable control challenges and the benchmark collection [18] has similar uses.
authors also provided simulations of process faults. A
baseline control system was reported by [24] and the sim- 2.4. Hybrid and data-based models
ulation has been widely used for demonstration of
advanced control schemes (e.g. [23,30,22,20,40]), and for An issue with the use of simulations for applications in
testing of fault detection and diagnosis schemes, both fault diagnosis and robust control can be that noise and
data driven and model-based [19,12,5,1416,34]. The ori- disturbances are dicult to model accurately. There is a
ginal code was written in Fortran, while [29] has made tendency to model these as ltered or integrated Gaussian
an implementation in Simulink available to other random noise or as piecewise linear disturbances, but in
researchers. many case such simple signals fail to capture real eects.
Other rst principles models from the literature are: For instance, time trends of instruments measuring the out-
put of a non-linear system typically have a non-Gaussian
The vinyl acetate process [4]; distribution and a spectrum characterized by phase cou-
The reactor/regenerator section of a Model IV uid cat- pling. Real data captured from processes provide more
alytic cracking unit [25]; realistic tests than simulated data.
Emulsion polymerization with population and particle [41] provided benchmark data for a non-linear dynamic
balance [11]; model identication challenge problem. The data are from
The ALSTOM gasier that produces gas from carbon- a laboratory surge tank which generated non-linear input
based feedstock [8,7]; output data for the comparison of non-linear modeling
Non-linear distillation model [35]. Matlab code is avail- methods. A specic issue was that models should be robust
able for this simulation [36]. to noise in the identication data.
349

The approach taken by [17] combined measurements It is a small model in comparison with many of those
from a real process with a simulated exothermic reaction. reviewed above, and there is no chemical reaction. It does,
The process is a tank that behaves as if an exothermic however have a complete characterization of all the sensors
reaction is taking place. There are no real reactants and and valves and the heat exchanger. Its simplicity makes it
instead the reaction is simulated. The reactant feed rate primarily of value in a classroom setting, while the incorpo-
in the model is set to the measured cold water feed rate, ration of constraints and non-linearities and the use of real
while directly injected steam provides the heat released noise sequences provide a practical benchmark for control-
by the simulated reaction. The partially simulated reac- ler design and data-driven identication and diagnosis.
tor provides a platform for testing of control strategies
under realistic conditions of process constrains, measure- 3. Process description and model
ment noise, quanitized measurements and sampled data
control. 3.1. The continuous stirred tank heater

2.5. Equipment models The pilot plant in the Department of Chemical and
Materials Engineering at the University of Alberta is a stir-
Published models are available for components and red tank experimental rig in which hot and cold water are
items of equipment. The DAMADICS simulation [2] pro- mixed, heated further using steam through a heating coil
vides a benchmark challenge in identication of control and drained from the tank through a long pipe. The cong-
valve faults. It comprises a Simulink model of a specic uration is shown in Fig. 1. The CSTH is well mixed and
valve in a sugar renery with properties such as friction therefore the temperature in the tank is assumed the same
together with data from the renery that capture normal as the outow temperature. The tank has a circular cross
running and several valve faults. [6] created an empirical section with a volume of 8 l and height of 50 cm.
model of a valve with parameters that specify deadband
and the amount of stick-slip without the need for determin- 3.2. Utilities and instrumentation
ing friction forces, the mass of the moving parts or the
spring constant. Its behaviour matched closely to that of The utilities of the CSTH are shared services and there-
a rst principles model. fore subject to disturbances from other users. The cold and
Models for items of equipment such as motor drives, hot water (CW and HW) in the building are pressurised
generators and turbines are well developed and commer- with a pump to 6080 psi, and the hot water boiler is
cially available in Simulink SimPower Systems from the heated by the university campus steam supply. The steam
Mathworks. The documentation gives an example of the to the plant comes from the same central campus source.
use of a steam turbine model within an IEEE benchmark Control valves in the CSTH plant have pneumatic actu-
simulation [1] for a synchronous generator. ators using 315 psi compressed air supply, the seat and
stem sets being chosen to suit the range of control.
2.6. Models for teaching and training Flow instruments are orice plates with dierential pres-
sure transmitters giving a nominal 420 mA output. The
Benchmark simulations have a role in teaching and sev- level instrument is also a dierential pressure measurement.
eral of those mentioned above feature in mainstream pro- Finally, the temperature instrument is a type J metal
cess control text books. sheathed thermocouple inserted into the outow pipe with
In the workplace, simulators are used to train process a Swagelock T-tting.
control operators especially in start-up and shut-down pro-
cedures and dealing with emergencies. Such simulators are
specic for the process for which they were designed and
generally include constraints and detailed representations FT
TC hot water
of instruments, valves and equipment such as pumps. The FC
Honeywell Shadow Plant simulator [13] is an example of
a commercial training simulator. FT
steam
cold water
2.7. Motivation for the CSTH simulation
flow sp
LC
The stirred tank heater model presented in this article is a
hybrid simulation which uses measured data captured from LT
a process to drive a rst principles model. The noise and dis-
turbances signals therefore have more complex and more
realistic characteristics than if they were created by a ran- TT
dom number generator. There are also experimentally mea-
sured data available for the purposes of identication. Fig. 1. The continuous stirred tank heater.
350

3.3. Volumetric and heat balance 3.4.5. Heat transfer from steam system
The heat transfer from the steam system depends on the
The dynamic volumetric and heat balances are shown in steam valve setting. The relationship was determined
the following equation: empirically from steady state running at dierent steam
dV x valve settings since the heat exchange area and heat trans-
fcw fhw  fout x 1 fer coecient could not be measured. The heat balance
dt
dH when the CSTH is in a steady state running with a cold
W st hhw qhw fhw hcw qcw fcw  hout qout fout x 2 water inow only is:
dt
where x is the level; V the volume of water; fhw the hot W st hout qout fout  hcw qcw fcw
water ow into the tank; fcw the cold water ow into the
tank; fout the outow from tank; H the total enthalpy in and fcw = fout in steady state.
the tank; hhw the specic enthalpy of hot water feed; hcw The calculations for Wst are in Table 1. The steady
the specic enthalpy of cold water feed; hout the specic en- state ow in these experiments was 9.04 105 m3 s1 , the
thalpy of water leaving the tank; qcw the density of incom- incoming cold water temperature was 24 C with hcw =
ing cold water; qhw the density of incoming hot water; qout 100.6 kJ kg1 and qcw = 997.1 kg m3.
the density of water leaving the tank; and Wst the heat in- The results of the calculations are used in a piecewise-
ow from steam. linear look-up table that determines the amount of steam
The temperatures of the hot and cold water feeds were set heating for a given steam valve setting. The data in Table
to 50 C and 24 C respectively in the base case simulation. 1 may be used in simulation under non-steady conditions
given some assumptions:
3.4. Related equations
(i) That the tank is well mixed so the temperature of the
The following algebraic equations also apply. outow is the same as that in the tank. The assump-
tion is reasonable, because stirrer provides a high
3.4.1. Specic enthalpy liquid velocity across the heating coils and distributes
In the well mixed case: heat quickly throughout the tank.
H (ii) That the amount of heat transferred at a given steam
hout 3 valve setting is not dependent on the temperature of
V qout
the water in the tank. The assumption is reasonable
since most of the heat in the steam is its latent heat
3.4.2. Level, x of 2257 kJ kg1 compared to, say, the dierence of
The relationship between level and volume is not linear 62.7 kJ kg1 between water at 25 C and 40 C.
because of the volume occupied by heating coils in the lower (iii) That all the steam condenses and that circumstances
half of the tank. The relationship between level and volume do not arise where steam goes to waste. This assump-
was measured experimentally, as discussed in Section 3.5. tion is reasonable unless the level is very low so that
the heating coils are signicantly exposed. It was
3.4.3. Outow observed that the maximum achievable temperature
The manual outow valve was xed at 50% as a stan- at the standard operating conditions was 65 C when
dard operating condition. At this xed setting, the empiri- the steam valve was fully open. The steam should
cal expression below was derived experimentally by seeking condense fully under these conditions.
a square root relationship between the head of water in cm
above the manual outow valve and the measured ow in 3.5. Sensor and valve calibration
m3 s1.
 p  The inputs to the CSTH are electronic signals in the
fout 104 0:1013  55 x 0:0237
range 420 mA that go to the steam and cold water valves.
The outputs are measurements from the temperature, level
The expression has this particular form because the manual
outow valve is 55 cm below the bottom of the tank and
Table 1
the head of water therefore is 55 + x where x is the level Relationship between heat transfer rate and steam valve setting
in the tank in cm.
Valve/mA T/C hout/kJ kg1 qout/kg m3 Wst/kJ s1
4 24 100.6 997.1 0
3.4.4. Thermodynamic properties
7.5 30 125.7 995.2 2.24
The relationships between specic enthalpy, density and 9 31 129.9 994.8 2.61
temperature in liquid water were taken from steam tables 11 36.5 152.8 992.9 4.65
and used for the conversions of h to T, T to h, and T to 14 48 200.9 988.7 8.89
q in piecewise linear look-up tables. Specic enthalpies 17 61 255.3 982.3 13.60
20 65 272.0 980.2 15.04
are referenced to 0 C.
351

and cold water ow instruments, nominally in the range 4 the level in the tank to an instrument output on a 420 mA
20 mA. Calibration models were determined by measure- scale while the volume calibration gives a look-up table
ment at several points in the range, and are represented converting level in the tank to volume. The steam heating
in the model as piece-wise linear look-up tables. The level coils occupied a noticeable volume in the lower half of
of detail presented in this section was found necessary to the tank and became fully covered when the level was
provide a high delity match between experimental obser- 16.9 cm. Therefore the volume versus level characteristic
vations and the simulation. is not linear when the level is low.

3.5.1. Level and volume 3.5.2. Cold and hot water ow calibration
Data for the calibration of level and volume are plotted Calibration of the cold and hot water valves is shown
in Fig. 2a and b. The level instrument calibration converts in Fig. 2c and d in which the volumetric ow rate is

50 50
measured level/cm

measured level/cm
40 40

30 30

20 20

10 10

0 0
0 5 10 15 20 25 0 2 4 6 8
level output current/mA volume/litre

0.25 0.25
measured flow/litre.s1
measured flow/litre.s-1

0.2 0.2

0.15 0.15

0.1 0.1

0.05 0.05

0 0
0 5 10 15 20 25 0 2 4 6 8 10 12
CW valve demand/mA HW valve demand/mA
-5
x 10
0.25 11
measured flow/litre.s-1

0.2
10
outflow/(m3.s-1 )

0.15
9
0.1

0.05 8

0 7
0 5 10 15 20 25 7.5 8 8.5 9 9.5 10
flow output/mA (55+x)/cm
1/2

15 70
measured temperature/ oC

60
13
TI output/mA

50
11
40
9
30

7 20
5 10 15 20 6 8 10 12 14
Steam valve demand/mA TI output/mA

Fig. 2. Calibration graphs. (a) output of the level instrument and measured level, (b) measured volume and measured level, (c) cold water valve demand
and measured cold water ow, (d) hot water valve demand and measured hot water ow, (e) cold water ow instrument output and measured cold water
ow, (f) calibration of the outow, (g) steam valve demand and thermocouple output and (h) thermocouple output and temperature measured with a
thermometer.
352

plotted against the signal to the valve (valve demand). 4. Simulation


The CW valve becomes fully open when the demand sig-
nal is 20 mA and is fully shut at 4 mA. The ow rate 4.1. The Simulink platform
was calculated by observation of the time taken to ll
the tank with a known volume of water when the out- An equation-based simulator is needed for numerical
ow valve was fully shut. The hot water valve is over- solution of the CSTH model equations and in this article
sized and calibration beyond 12 mA was not possible the simulation was carried out in Simulink. This section
because of splashing and the possibility of the tank gives some details of the implementation. Simulink is a
overowing. sequential solver, and therefore it is necessary to specify
Calibration of the cold water ow instrument is pre- which variables are independent inputs into the equations
sented in Fig. 2e. It is almost linear over the 420 mA range and which are dependent outputs that will be calculated
of the instrument but the maximum cold water ow rate during the simulation.
when the valve is fully open gives a measurement beyond
the end of 420 mA scale. This calibration error has been 4.2. Inputs and outputs
reproduced in the CSTH simulation.
As in the real plant, the simulation inputs and outputs
3.5.3. Outow represent electronic signals on 420 mA scale. The inputs
Section 3.4 stated the relationship between the level in are the CW, HW and steam valve demands. Outputs are
the tank and the ow through the outlet pipe as having the electronic measurements from the level, cold and hot
the form: water ow and temperature instruments. The aim of simu-
p lation is to determine the dynamic responses of the outputs
fout m 55 x c for specied time-varying or steady inputs.
Look-up tables derived from Fig. 2c and d convert the
The parameters m and c in the above expression were deter-
420 mA CW and HW valve demand to fcw and fhw values
mined from the slope and vertical axis intercept of the best
in m3 s1 and the steam valve demand is converted to a
t straight line to the graph in Fig. 2f p
which shows fout plot-
steam enthalpy ow rate in kJ s1. At the output, the cali-
ted against the constructed quantity 55 x, where x is
bration look-up tables convert level, water ow rates and
the level of water in the tank in cm. The experimental pro-
temperature to 420 mA values.
cedure used closed loop control of level. The steady state
inow that balanced the outow at each level set point
was determined from the cold water ow instrument and 4.3. Heat and volumetric balances
converted to engineering units via Fig. 2e. Each level set
point gave one plotted point in Fig. 2f. The measured ow The volumetric balance transforms the current value of
was variable during each experiment because of a distur- the cold water inow into volume, level and outow by
bance to the cold water ow (to be discussed in Section integration of Eq. (1). The volume and outow become
6). It also was not fully reproducible between experiments, inputs to the heat balance model along with the steam
possibly because the ow regime in the outow tube is valve setting and cold water inow. The heat balance
turbulent. model integrates Eq. (2) while the temperature is deter-
mined from the algebraic relationship in (3) together with
3.5.4. Temperature calibration a piece-wise linear look-up table for the thermodynamic
Fig. 2g shows outputs of the thermocouple for various properties of water.
steady state steam valve demand settings, while Fig. 2h
shows an almost linear relationship between thermocouple 4.4. Controllers
output and temperature in the tank measured with a mer-
cury thermometer. The control system is not part of the CSTH model. It is
straightforward to construct closed loop control of the
3.5.5. Cold water valve model implemented Simulink model using the inputs and outputs
From step testing, the cold water valve dynamics were provided.
found to be those of a rst order lag with time delay.
The time delay is 1 s and the time constant of the valve is 4.4.1. Controller formulation
3.8 s. Thus the valve transfer function is: The standard form in process control for a proportional
plus integral controller is
es  
MV s OP s 4
3:8s 1 1
Cs K c 1
si s
where MV(s) represents the valve position. In closed loop,
OP(s) is the controller output while in open loop it is a where Kc is the controller gain and si is the integration
valve demand signal applied directly to the valve. time. The PI controller provided by Simulink, by contrast,
353

requires specication of the control and integrator gain, as between simulation and experiment is generally acceptable
follows: giving condence that the simulation can act as a reliable
I proxy for the physical CSTH plant.
Cs P
s
6. Disturbances
where P = Kc and I = Kc/si. A consequence of the Simulink
form is that both P and I must change in proportion if the
Disturbances to the experimental pilot plant comprise a
controller gain Kc is adjusted.
deterministic oscillatory disturbance to the cold water ow
rate, a random disturbance to the level, and temperature
5. Model validation
measurement noise. The strategy used for preparation of
the benchmark simulation was to capture data from the
This section presents a comparison between simulation
experimental pilot plant and to feed those data into the
and experimental results in open and closed loop.
simulation from data les in order to provide realistic
disturbances.
5.1. Open loop testing

Open loop testing involved steps in the positions of the 6.1. Cold water ow disturbance
cold water ow and steam valves and observation of the
cold water ow rate and temperature. For the temperature The cold water ow in the experimental plant had a
tests, the level was held constant at a set point of 12 mA deterministic oscillatory disturbance with a period of about
(20.48 cm). The results are shown in Fig. 3 where it can 40 s that originated elsewhere in the building. This distur-
be seen that the steady state gains and the dynamics of bance was captured by measuring the cold water ow
the transients are generally simulated accurately especially through the valve with the cold water valve open at its
in the middle of the operating range. The lower left panel of mid-point on the 420 mA scale. The outlet valve of the
Fig. 3 suggests the steam valve sometimes behaves dier- tank was opened fully during the experiment, therefore
ently when closing, an eect that has not been captured the tank ran empty. A portion of the disturbance is shown
by the simulation. in the top panel of Fig. 6 where its oscillatory nature can be
seen.
5.2. Closed loop testing
6.2. Level disturbance caused by bubbles
Closed loop tests were made on the temperature and
level control loops at dierent controller settings. The P The experimental plant has the facility to blow com-
and I values were chosen to span the range from sluggish pressed air into the tank. The compressed air causes bubbles
to overly tight control. Figs. 4 and 5 show the match which disturb the level in the tank. The bubble disturbance

20
20
steam valve/mA

CW valve/mA

15
15

10
10

5
0 1000 2000 3000 4000 0 500 1000 1500
time/s time/s
20
14
temperature/mA

CW flow/mA

15
12

10
10

8
5
0 1000 2000 3000 4000 0 500 1000 1500
time/s time/s

Fig. 3. Open loop tests. Left hand panels: temperature steps, Right hand panels: steps in the cold water ow. Black lines are the simulation, grey lines are
experimental results.
354 N.F. Thornhill et al. / Journal of Process Control 18 (2008) 347360

12 12

temperature/mA
P = 1, I = 0.1 P = 1, I = 0.2

10 10

8 8
0 200 400 600 0 200 400 600 800 1000

12 12
temperature/mA

P = 3, I = 0.1 P = 3, I = 0.2

10 10

8 8
0 100 200 300 400 0 100 200 300 400 500

12 12
temperature/mA

P = 6, I = 0.1 P = 6, I = 0.2

10 10

8 8
0 100 200 300 400 0 200 400 600 800
time/s time/s

Fig. 4. Comparison of closed loop step tests in the temperature loop, simulation and experiment. Black lines are the simulation, grey lines are experimental
results.

P = 4, I = 0
16
level/mA

12

0 50 100 150 200 250

P = 1, I = 0.1 P = 1, I = 0.15
16 16
level/mA

12 12

8 8

0 200 400 600 0 200 400 600 800

P = 4, I = 0.1 P = 4, I = 0.15
16 16
level/mA

12 12

8 8

0 100 200 300 400 0 100 200 300 400


time/s time/s

Fig. 5. Comparison of closed loop step tests in the level loop, simulation and experiment. Black lines are the simulation, grey lines are experimental results.

was monitored as the output from the level instrument with 6.4. Simulation with disturbances
the tank half full and with the inlet and outlet valves both
closed. The nature of the disturbance is random. The disturbances can be added to the simulation as follows:

6.3. Temperature measurement noise The cold water ow disturbance dcw in mA is added to
the cold water valve position to give mvd(t) = mv(t) +
The temperature measurement noise was monitored with dcw, where mv is the time domain output of the valve
the tank half full and under closed loop level and tempera- transfer function (4).
ture control. It has high frequency components and some The level disturbance in mA is converted to a
medium term lower frequency uctuations can also be seen. disturbance in volume dV by means of an algebraic
355

CW flow deviation/mA

temperature/mA
10.7
0.2
10.5
0
10.3
-0.2
5.52

HW Valve/mA
5.50
level deviation/mA

0.2
5.48
0
12.02

level/mA
-0.2
12.00
11.98
temp deviation/mA

0.2

CW Valve/mA
7.8
0
7.7

-0.2 7.6
0 200 400 600 800 1000 0 500 1000 1500 2000
time/s time/s

Fig. 6. Upper panel: CW ow disturbance, Middle: level disturbance due Fig. 7. Simulated demonstration of a controller interaction in which
to bubbles, Bottom: temperature measurement noise. temperature noise upsets level and cold water ow.

Fig. 7 shows the behaviour of the closed loop simulation


relationship based on Fig. 2a and b. It is added to
when temperature noise is present. The temperature noise
output of integration of the volumetric balance Eq.
leads to persistent activity of the hot water ow valve via
(1). Hence the equations for the disturbed level xd
the temperature control loop, which upsets the level. The
become:
lower two panels show that the dynamics of the closed loop
dV level control system lter the disturbance and amplify some
fcw fhw  fout
dt frequencies relative to others to give a smooth and rather
xd t xV t dV oscillatory disturbance in the cold water valve position
and level.
The temperature noise is converted rst to dT, a temper-
ature deviation in C using the algebraic relationship in
Fig. 2h. It is added to the temperature calculated from 7. Linearization
the heat balance to give a noisy temperature measure-
ment Td. The necessary steps are numerical integration 7.1. Standard operating conditions
to determine H and the conversion of H to T by means
of Eq. (3) and a look-up table for the thermodynamic Many simulation examples from the literature are pre-
properties of water. sented in the form of a state-space model or as a matrix
of transfer functions. These forms are also presented here
dH to make the stirred tank heater model accessible for linear
W st hhw qhw fhw hcw qcw fcw  hout qout fout multivariable control design and analysis. Two operating
dt
points have been linearized, one with the stirred tank
T d t T H t d T t
Table 2
6.5. Example of simulation with a disturbance Operating points for linearization
Variable Op Pt 1 Op Pt 2
An advantage of a simulation with noise or a distur- Level/mA 12.00 12.00
bance is that the disturbance can excite and drive dynamic Level/cm 20.48 20.48
eects in other parts of the model. An example is shown CW ow/mA 11.89 7.330
CW ow/m3 s1 9.038 105 3.823 105
which demonstrates a controller interaction when the tem-
CW valve/mA 12.96 7.704
perature is controlled via the hot water inow rather than Temperature/mA 10.50 10.50
via steam heating. An interaction arises between the level Temperature/C 42.52 42.52
control loop and the hot water ow loop because the Steam valve/mA 12.57 6.053
action of the hot water temperature control aects the HW valve/mA 0 5.500
HW ow/m3 s1 0 5.215 105
level.
356

heater operating with only a cold water feed and the other 7.3. Operating point 2
with both hot and cold water feed.
The steady state valve positions and instrument condi- 7.3.1. Open loop state-space model
tions in each case are shown in Table 2. Variables in the lin- The state-space model is
earized models are deviations from the operating point.
dx
Time delays are present at the input and output. The CW Ax Bu0
valve has a time delay of 1 s while the temperature mea- dt
surement delay is 8 s. y0 Cx
0 0 1 0 1 0 1 0 0 1
u1 t u1 t  1 y 1 t y 1 t
7.2. Operating point 1 B 0 C B C B C B C
@ u2 t A @ u2 t A and @ y 2 t A @ y 02 t A
u03 t u3 t y 3 t y 02 t  8
7.2.1. Open loop state-space model
The state-space model is
dx where u1 is the cold water valve position in mA; u2 the
Ax Bu0 steam valve position in mA; u3 the hot water valve position
dt
y0 Cx in mA; y1 the level measurement in mA; y2 the cold water
0 1 0 0 1 ow measurement in mA; y3 temperature measurement in
 0    y 1 t y 1 t
u1 t u1 t  1 mA; x1 the tank volume, output of the integrator in Eq.
and @ y 2 t A @ y 02 t A
u02 t u2 t (1); x2 the output of the integrator in the valve transfer
y 3 t y 02 t  8
function in Eq. (4) and x3 the total enthalpy in the tank,
where u1 is the cold water valve position in mA; u2 the output of the enthalpy integrator in Eq. (2).
steam valve position in mA; y1 the level measurement in 0 1
mA; y2 the cold water ow measurement in mA; y3 the tem- 3:7313  103 1:5789  106 0
B C
perature measurement in mA; x1 the tank volume, output A@ 0 2:6316  101 0 A
of the integrator in Eq. (1); x2 the output of the integrator 4:1580  103 1:5842  101 2:7316  102
in the valve transfer function in Eq. (4); x3 the total enthal- 0 5
1
0 0 4:2900  10
py in the tank, output of the enthalpy integrator in Eq. (2). B C
0 1 B @1 0 0 A
3:7313  103 3:6842  106 0
B C 0 6:4000  101 8:8712
A@ 0 2:6316  101 0 A 0 1
3 1 2 2690:0 0 0
4:1580  10 3:6964  10 2:7316  10 B C
0 1 C@ 0 1:5132  101 0 A
0 0
B C 1979:2 0 1:1226  102
B @1 0 A
0 1:4133
0 1
2690:0 0 0
B C 7.3.2. Open loop transfer function model
C@ 0 2:8421  101 0 A 0 1
1979:2 0 1:1226  10 2 G11 s 0 G13 s
B C
Ys GsUs @ G21 s 0 0 AUs
7.2.2. Open loop transfer function model G31 s G32 s G33 s
The transfer function model has the following form
where
where U(s) and Y(s) are the Laplace transforms of the vec-
tors of input and output variables. 1 4:2474  103 es
0 G11 s
G11 s 0 s 3:731  103 s 2:632  101
B C
Ys GsUs @ G21 s 0 AUs 1:5132  101 es
G21 s
G31 s G32 s s 2:632  101
where 3:1466  103 e9s
G31 s
9:9105  103 es s 2:732  102 s 2:632  101
G11 s
s 3:731  103 s 2:632  101 7:1849  103 e8s
2:8421  101 es G32 s
G21 s s 2:732  102
s 2:632  101
3:1422  103 e9s 1:1540  101
G31 s G13 s
s 2:732  102 s 2:632  101 s 3:731  103
1:5867  102 e8s 1:4683  102 e8s
G32 s G33 s
s 2:732  102 s 2:732  102
357

8. Example applications exploration of new or modied control algorithms that


are robust to windup, non-linearity and model-
8.1. Suggested applications mismatch.

There are several possible educational and academic 8.2. System identication task
applications for a benchmark simulation that has accurate
measurement of non-linearities and constraints, real noise This section gives an illustration of the use of the CSTH
sequences captured from the plant, and full experimental simulation in a system identication experiment. The data
validation. Suggested uses include: are presented and a challenge laid down to identify the lin-
earized dynamics.
a teaching resource for a control systems course;
generation of realistic data for testing of data-driven 8.2.1. Closed loop system identication
methods; Simulation and experimental runs from a system iden-
testing of fault detection and diagnosis algorithms; tication experiment were carried out. The aim is to iden-
in conjunction with a valve model [6], generation of real- tify the two-by-two system with level and temperature as
istic data for valve fault diagnosis; measured outputs and level loop setpoint and temperature

13
Level set point/mA

12.5

12

11.5

11

13

12.5
Level/mA

12

11.5

11
0 200 400 600 800 1000 1200 1400 1600 1800 2000
time/s
Temperature set point/mA

12

11.5

11

10.5

10

12
Temperature/mA

11.5

11

10.5

10
0 200 400 600 800 1000 1200 1400 1600 1800 2000
time/s

Fig. 8. System identication. Upper panels: Level set point and measurement, Lower panels: Temperature set point and measurement. Black lines are the
simulation, grey lines are experimental results.
358

loop setpoint as manipulated inputs. The level and the The Simulink model and experimental data are available
temperature setpoints were simultaneously perturbed with electronically, and a some suggestions are given for appli-
random binary inputs of amplitude 0.5 mA and 1 mA cations including a system identication task.
respectively generated using the idinput function in System
Identication Toolbox of MATLAB. The level and temper- Acknowledgements
ature variations are presented in Fig. 8 which shows the
simulation generally matches the experimental results The authors thank Mr Walter Boddez, Instrument Shop
well. The match suggests the simulation can provide a Supervisor in the Department of Chemical and Materials
resource for the investigation of new system identication Engineering, University of Alberta, for technical inputs
methods. and insights about the CSTH equipment. The rst author
The data and a simulation for system identication are gratefully acknowledges the support of the Royal Academy
provided at the simulation web site. As well as providing of Engineering (Foresight Award). The authors are grateful
the random binary inputs, it allows the additional distur- for the support of the Natural Science and Engineering Re-
bances from Fig. 6 to be activated to test the robustness search Council (Canada), Matrikon (Edmonton, Alberta)
of the system identication methods. and the Alberta Science and Research Authority through
Linearization of the closed loop model gives the trans- the NSERC-Matrikon-ASRA Industrial Research Chair
fer function presented below. The CW valve and temper- in Process Control. The authors thank the editors for the
ature instrument time delays cannot be referred to the opportunity to prepare a paper for this Special Issue of
input and output in this example because the level and the Journal of Process Control, and we oer Dale the most
temperature are under closed loop control. They are sincere congratulations and best wishes on the occasion of
handled as rst order Pade approximations giving rise his 65th birthday.
to right half plane zeros in the linearized transfer
functions. Appendix A1. The CSTH web site
The task is to use the simulated data of Fig. 8 (available at
the CSTH web site) to identify transfer functions which closely A web page has been prepared to house the CSTH sim-
match those derived from direct linearization of the model. ulation models and data. Its location is: http://www.ps.
ic.ac.uk/~nina/CSTHSimulation/index.htm. The contents
8.2.2. Transfer function model from direct linearization include
 
G11 s G12 s A general purpose Simulink model with level and tem-
Gs
0 G22 s perature control loops;
where A general purpose Simulink model with level and tem-
perature control loops and disturbances;
0:029732s  2s 0:0375 Open loop Simulink models for the operating points in
G11 s Table 2, together with MATLAB code to organize the
s 2:033s 0:05799s2 0:1881s 0:01139
linearization;
0:013915ss  2s  4s  0:2667
G12 s A Simulink model with level and temperature control
s 3:931s 2:033s 0:05799s 0:04015 loops for the system identication task of Section 8.2;
s 0:0375s 0:003731 Data les for the disturbance sequences in Fig. 6;
 2
s 0:1881s 0:01139s2 0:1761s 0:01892 Data les for the input sequences in Fig. 8.
0:050561s  4s  0:2667s 0:03333
G22 s Additional materials are also available. These are (i) a
s 3:931s 0:04015s2 0:1881s 0:01139
set of data for fault identication, (ii) a simulation of a
5
modied continuous stirred tank heater from the labora-
tory of Professor Patwardhan at IIT Bombay, as described
9. Summary and concluding remarks briey in Appendix A2. This CSTH system has a recycle
and shows non-minimum phase behaviour at some operat-
A simulation of a continuous stirred tank heater at the ing points.
University of Alberta has been presented, and a Simulink
implementation used to generate results in open and closed Appendix A2. A modied CSTH model
loop. Instrument, actuator and process non-linearities have
been characterized and the simulation has a hybrid nature A modied CSTH has been developed in the Automa-
because real process and measurement noise sequences are tion Laboratory at Department of Chemical Engineering,
used as disturbances. Linearized state-space and transfer IIT Bombay. The reason for presenting the modied CSTH
function models are also provided for the purposes of lin- here is that a simulation is provided at the CSTH web site.
ear multivariable controller design and other activities This system consists of an additional stirred tank
where linear approximations are utilized. upstream of the CSTH (Fig. 9). The cold water entering
359

CV-2 Recycle Flow (FR)


3-15 psi
Inpu t (u 2)
Cold Waterr
In-Fl ow (F2)
3-15 psi TT-4
Input (u1)
CV-1

Tank1
TT-1

STH
4-20 mA Thyrister (Tank 2) LT
Power
Input Signal (u4) Heating
Controller
Coi l

TT-2 E-1
Thyrister
Power
Controller
Hot Water
Out-Flow 4-20 mA
TT-3 Input Signal (u3)
4-20 mA
Input Signal (u5)

Fig. 9. Modied CSTH system in IIT Bombay.

Tank 1 and Tank 2 is heated using two separate electrical Table 3


heaters. A portion of hot water from Tank 2 is recycled Nominal model parameters and steady state
to Tank 1, which introduces additional multivariable inter- Parameter Description Value
actions and additional complexity in the system, including V1 Volume of tank 1 1.75 103 m3
an inverse response at some operating points. A2 Cross sectional area of tank 2 7.854 103 m2
A grey-box model has been developed for the modied r2 Radius of tank 2 0.05 m
U Heat transfer coecient 235.1 W/m2 K
STH system as follows Tc Cooling water temperature 30 C
dT 1 Q u4 Ta Atmospheric temperature 25 C
V1 F 1 u1 T c  T 1 F R u3 T 2  T 1 1 u1 Flow F1 (% Input) 60%
dt qC p u2 Flow F2 (% Input) 55%
dT 2 u3 Flow FR (% Input) 50%
A2 h 2 F 1 u1 T 1  T 2 F 2 u2 T c  T 2  F R u3 u4 Heat input Q1 (% Input) 60%
dt
u5 Heat input Q2 (% Input) 80%
1 T1 Steady state temperature (tank 1) 49.77 C
 T 2  T 1 Q u5  2pr2 h2 U T 2  T a 
qC p 2 T2 Steady state temperature (tank 2) 52.92 C
dh2 h2 Steady state level 0.3599 m
A2 F 1 u1 F 2 u2  F out h2
dt
F out h2 0:1  103
q Q1 u4 7:9798u4 0:9893u24  7:3  103 u34
 0:406h32 0:8061h22  0:01798h2 0:1054 Q2 u5 104 14:44u5 0:96u25  8  103 u35
6
It may be noted that inputs u1, . . . , u5 in all the correlations
The ow rates are functions of inputs u1, u2 and u3 as given by stated above are expressed in terms of % values between 0
the following correlations, where the ow rates are in m3 s1: and 100%. The model parameters and steady states are
listed in Table 3.
F 1 u1 42379u1  456:85u21 8:0368u31  1011
F 2 u2 196620u2  8796:8u22 190:64u32  1:294u42  1011 References

F R u3 2u3  1=3600  103 [1] Anon, Second benchmark model for computer simulation of SSR,
IEEE Transactions on Power Apparatus and Systems PAS-104 (1985)
10571066.
Also, the heat inputs are functions of inputs u4 and u5 as [2] M. Bartys, R. Patton, M. Syfert, S. de Las Heras, J. Quevedo,
given by following correlations, where the heat ows Q1 Introduction to the DAMADICS actuator FDI benchmark study,
and Q2 are in J s1: Control Engineering Practice 14 (2006) 577596.
360

[3] D. Chen, D.E. Seborg, Relative gain array analysis for uncertain [22] M.L. Luyben, B.D. Tyreus, W.L. Luyben, Plantwide control design
process models, AIChE Journal 48 (2002) 302310. procedure, AIChE Journal 43 (1997) 31613174.
[4] R. Chen, K. Dave, T.J. McAvoy, M. Luyben, A non-linear dynamic [23] P.R. Lyman, C. Georgakis, Plant-wide control of the Tennessee
model of a vinyl acetate process, Industrial and Engineering Chem- Eastman problem, Computers and Chemical Engineering 19 (1995)
istry Research 42 (2003) 44784487. 321331.
[5] L.H. Chiang, E.L. Russell, R.D. Braatz, Fault diagnosis in chemical [24] T.J. McAvoy, N. Ye, Base control for the Tennessee Eastman
processes using Fisher discriminant analysis, discriminant partial least problem, Computers and Chemical Engineering 18 (1994) 383413.
squares, and principal component analysis, Chemometrics and [25] R.C. McFarlane, R.C. Reineman, J.F. Bartee, C. Georgakis,
Intelligent Laboratory Systems 50 (2000) 243252. Dynamic simulator for a model-IV uid catalytic cracking unit,
[6] M.A.A.S. Choudhury, N.F. Thornhill, S.L. Shah, Modelling valve Computers and Chemical Engineering 17 (1993) 275300.
stiction, Control Engineering Practice 13 (2005) 641658. [26] B.A. Ogunnaike, W.H. Ray, Process Dynamics, Modeling, and
[7] R. Dixon, A.W. Pike, Alstom benchmark challenge II on gasier Control (Topics in Chemical Engineering), Oxford University Press,
control, IEE Proceedings-Control Theory and Applications 153 1994.
(2006) 254261. [27] B.A. Ogunnaike, J. Lemaire, M. Morari, W.H. Ray, Advanced
[8] R. Dixon, A.W. Pike, M.S. Donne, The ALSTOM benchmark multivariable control of a pilot plant distillation column, AIChE
challenge on gasier control, Proceedings of the Institution of Journal 29 (1983) 632640.
Mechanical Engineers Part I-Journal of Systems and Control [28] D. Prett, M. Morari, The Shell Process Control Workshop, Butter-
Engineering 214 (2000) 389394. worths, Houston, London, TX, 1987, December 1518.
[9] J.J. Downs, E.F. Vogel, A plant-wide industrial-process control [29] N.L. Ricker, Tennessee Eastman challenge archive, 1999, On-line:
problem, Computers and Chemical Engineering 17 (1993) 245255. http://depts.washington.edu/control/LARRY/TE/download.html.
[10] F.J. Doyle III, R.K. Pearson, B.A. Ogunnaike, Identication and Accessed 29th July 2007.
Control Using Volterra Models, Springer, 2001, ISBN 978- [30] N.L. Ricker, J.H. Lee, Non-linear model-predictive control of the
1852331498. Tennessee-Eastman challenge process, Computers and Chemical
[11] J. Gao, A. Penlidis, Mathematical modeling and computer simulator/ Engineering 19 (1995) 961981.
database for emulsion polymerizations, Progress in Polymer Science [31] L.P. Russo, B.W. Bequette, Impact of process design on the
27 (2002) 403535. multiplicity behavior of a jacketed exothermic CSTR, AIChE Journal
[12] J. Gertler, W.H. Li, Y.B. Huang, T. McAvoy, Isolation enhanced 41 (1995) 135147.
principal component analysis, AIChE Journal 45 (1999) 323334. [32] L.P. Russo, B.W. Bequette, Eect of process design on the open-loop
[13] Honeywell, 2006, Shadow Plant System. On-line: http://hpsweb.hon- behavior of a jacketed exothermic CSTR, Computers and Chemical
eywell.com/Cultures/en-US/Support/SystemProducts/Simulation/default. Engineering 20 (1996) 417426.
htm . Accessed 29th July 2007. [33] D.E. Seborg, T.E. Edgar, D.A. Mellichamp, Process Dynamics and
[14] B.C. Juricek, D.E. Seborg, W.E. Larimore, Identication of the Control, second ed., John Wiley, Hoboken, NJ, 2004.
Tennessee Eastman challenge process with subspace methods, Con- [34] A. Singhal, D.E. Seborg, Evaluation of a pattern matching method
trol Engineering Practice 9 (2001) 13371351. for the Tennessee Eastman challenge process, Journal of Process
[15] M. Kano, S. Hasebe, I. Hashimoto, H. Ohno, A new multivariate Control 16 (2006) 601613.
statistical process monitoring method using principal component [35] S. Skogestad, M. Morari, Understanding the dynamic behavior of
analysis, Computers and Chemical Engineering 25 (2001) 11031113. distillation columns, Industrial and Engineering Chemistry Research
[16] M. Kano, K. Nagao, S. Hasebe, I. Hashimoto, H. Ohno, R. Strauss, 27 (1988) 18481862.
B.R. Bakshi, Comparison of multivariate statistical monitoring [36] S. Skogestad, MATLAB Distillation column model (ColumnA),
methods with applications to the Eastman challenge problem, Online: http://www.nt.ntnu.no/users/skoge/book/matlab_m/cola/cola.
Computers and Chemical Engineering 26 (2002) 161174. html. Accessed 29th July 2007.
[17] L.S. Kershenbaum, P. Kittisupakorn, The use of a partially simulated [37] SLICOT, 2005, The Control and Systems Library, On-line: http://
exothermic (PARSEX) reactor for experimental testing of control www.slicot.de/index.php?site=benchmarks. Accessed 29th July 2007.
algorithms, Chemical Engineering Research and Design 72 (1994) 55 [38] N.F. Thornhill, S.C. Patwardhan, S.L. Shah, 2007, The CSTH
63. simulation website, online: http://www.ps.ic.ac.uk/~nina/CSTHSim-
[18] J. Korvink, 2004. Oberwolfach model reduction benchmark collection, ulation/index.htm. Accessed 29th July 2007.
On-line: http://www.imtek.de/simulation/index_en.php. Accessed 29th [39] J.G. Van de Vusse, Plug-ow type reactor versus tank reactor,
July 2007. Chemical Engineering Science 19 (1964) 994997.
[19] W.F. Ku, R.H. Storer, C. Georgakis, Disturbance detection and [40] P. Wang, T. McAvoy, Synthesis of plantwide control systems using a
isolation by dynamic principal component analysis, Chemometrics dynamic model and optimization, Industrial and Engineering Chem-
and Intelligent Laboratory Systems 30 (1995) 179196. istry Research 40 (2001) 57325742.
[20] T. Larsson, K. Hestetun, E. Hovland, S. Skogestad, Self-optimizing [41] B.M. Wise, D. Haesloop, A non-linear dynamic model identication
control of a large-scale plant: The Tennessee Eastman process, challenge problem, Chemometrics and Intelligent Laboratory Systems
Industrial and Engineering Chemistry Research 40 (2001) 48894901. 30 (1995) 9196.
[21] F. Loquasto, D.E. Seborg, Monitoring model predictive control [42] R.K. Wood, M.W. Berry, Terminal composition control of a binary
systems using pattern classication and neural networks, Industrial distillation column, Chemical Engineering Science 28 (1973) 1707
and Engineering Chemistry Research 42 (2003) 46894701. 1717.

You might also like