Lecture 1
Lecture 1
Lecture 1: Introduction
(revision)
Process Control
Process control is the study and application of automatic control in the
field of chemical engineering processes.
Increased profitability
Advantages of Automatic control of a process
Improved Operability
input variables u (t) which affect the system behaviour in some way and
output variables y (t) which give information about the system behaviour
The argument “t” indicates that the values of the variables change over time.
Chapter
Chapter11
Control Terminology
controlled variables - these are the variables which quantify the
performance or quality of the final product, which are also called
output variables.
disturbance
desired value
(set-point)
transmitter
controller
controlled
variable
(measurement)
manipulated
variable
Example: vaporizes liquid butane and mixes
the vapor with compressed air.
Question
a. Identify at least three controlled variables, which must
be measured.
b. Identify at least one manipulated variable for each of
the controlled variables.
Hint: these must be valves.
c. Identify at least three disturbance variables. (These do
not have to be measured.) For each, determine which
controlled variable(s) are influenced, i.e., disturbed.
Illustrative Example: Blending system
Notation:
• w1, w2 and w are mass flow rates
• x1, x2 and x are mass fractions of component A
Assumptions:
1. w1 is constant
2. x2 = constant = 1 (stream 2 is pure A)
3. Perfect mixing in the tank
Control Objective:
Keep x at a desired value (or “set point”) xsp, despite
variations in x1(t). Flow rate w2 can be adjusted for this
purpose.
Terminology:
Controlled variable (or “output variable”): x
Manipulated variable (or “input variable”): w2
Disturbance variable (or “load variable”): x1
Design Question. What value of w2 is required to have
x xSP ?
Overall balance:
0 w1 w2 w (1-1)
Component A balance:
w1x1 w2 x2 wx 0 (1-2)
w2 t w2 K c xSP x t (1-4)
measured glucose
Chapter 1
Chapter 1
Figure 1.6 Block diagram for composition feedback control system on Fig. 1.4.
or
pneumatic controller
Chapter 1
Control strategies
Open-loop control
In some simple applications, open-loop control without measurements
can be used. In this control strategy
the controller is tuned using some a priori information (a “model”) about
the process
after the tuning has been made, the control action is a function of the
setpoint only (setpoint = desired value of the controlled variable)
Open-loop control
Example
Control strategies…
Feedforward control
Control is clearly needed to eliminate the effect of disturbances on the
system output. Feedforward control is a type of open-loop control strategy,
which can be used for disturbance elimination, if
disturbances can be measured
it is known how the disturbances affect the output
It is known how the control signal affects the output
Feedforward is an open-loop control strategy because the output, which
we want to control, is not measured.
Feedforward control
Example
Control strategies…
Feedback control
Lecture 2: (revision)
Mathematical Modeling of Chemical
Processes
Chapter 2
Conservation of Mass
rate of mass rate of mass rate of mass
(2-6)
accumulation in out
Conservation of Component i
rate of component i rate of component i
accumulation in
The total energy of a thermodynamic system, Utot, is the sum of its internal energy,
kinetic energy, and potential energy:
y K 1 e t /
number of parameters affects accuracy of model, but confidence limits on
the parameters fitted must be evaluated
objective function for data fitting – minimize sum of squares of errors
between data points and model predictions (use optimization code to fit
parameters)
nonlinear models such as neural nets are becoming popular (automatic
modeling)
Number of
births (West
Germany)
d Vρx
w1x1 w2 x2 wx (2-3)
dt
The corresponding steady-state model was derived in Ch. 1 (cf. Eqs. 1-1 and 1-2).
0 w1 w2 w (2-4)
0 w1 x1 w2 x2 wx (2-5)
The Blending Process Revisited
dV
w1 w2 w (2-12)
dt
d Vx
w1x1 w2 x2 wx (2-13)
dt
Equation 2-13 can be simplified by expanding the accumulation term using the “chain
rule” for differentiation of a product:
d Vx dx dV
V x (2-14)
dt dt dt
Substitution of (2-14) into (2-13) gives:
dx dV
V x w1x1 w2 x2 wx (2-15)
dt dt
Substitution of the mass balance in (2-12) for dV/dt in (2-15) gives:
dx
V x w1 w2 w w1x1 w2 x2 wx (2-16)
dt
After canceling common terms and rearranging (2-12) and (2-16), a more convenient
model form is obtained:
dV 1
w1 w2 w (2-17)
dt
dx w1 w2
x1 x x2 x (2-18)
dt V V
Stirred-Tank Heating Process
Assumptions:
Hˆ i C Ti Tref (2-34)
Substituting (2-33) and (2-34) into the convection term of (2-10) gives:
wHˆ w C Ti Tref w C T Tref
(2-35)
dT
V C wC Ti T Q (2-36)
dt
steam-heating: Q ws H v
dT
V C wC (Ti T ) ws H v (1)
dt
0 wC (Ti T ) w s H v (2)
subtract (2) from (1)
dT
V C wC (T T ) ( ws ws )H v
dt
divide by wC
V dT H v
T T ( ws ws )
w dt wC
Define deviation variables (from set point)
y (t ) K p 1 e 1
Table 2.2. Degrees of Freedom Analysis
1. List all quantities in the model that are known constants (or parameters that
can be specified) on the basis of equipment dimensions, known physical
properties, etc.
2. Determine the number of equations NE and the number of process
variables, NV. Note that time t is not considered to be a process variable
because it is neither a process input nor a process output.
3. Calculate the number of degrees of freedom, NF = NV - NE.
4. Identify the NE output variables that will be obtained by solving the
process model.
5. Identify the NF input variables that must be specified as either disturbance
variables or manipulated variables, in order to utilize the NF degrees of
freedom.
Degrees of Freedom Analysis for the Stirred-Tank
Model:
3 parameters: V , ,C
4 variables: T , Ti , w, Q
1 equation: Eq. 2-36
Thus the degrees of freedom are NF = 4 – 1 = 3. The process variables are classified as:
1 output variable: T
3 input variables: Ti, w, Q
For temperature control purposes, it is reasonable to classify the three inputs as:
Example 1:
a st a a
L(a)= ae dt e 0
-st
0
s 0
s s
1 1
L(e )= e e dt e
-bt -bt -st -(b+s)t
dt -e ( b s)t
0 0
b+s 0 s+b
df df -st
L(f ) L e dt sL(f) f(0)
dt 0 dt
f(t) F(s)
Table 3.1 Laplace Transforms for Various Time-Domain Functionsa
f(t) F(s)
Table 3.1 Laplace Transforms for Various Time-Domain
Functionsa (continued)
f(t) F(s)
Example 3.1
Solve the ODE,
dy
5 4y 2 y 0 1 (3-26)
dt
First, take L of both sides of (3-26),
5 sY s 1 4Y s
2
s
Rearrange,
5s 2
Y s (3-34)
s 5s 4
Take L-1,
1
5s 2
y t L
s 5s 4
From Table 3.1 (line 11),
y t 0.5 0.5e0.8t (3-37)
Example:
d3y d2y dy
3
6 2 11 6 y 4
dt dt dt
y( 0 )= y( 0 )= y( 0 )= 0
system at rest (s.s.)
s
Rearranging,
4
Y(s)=
( s 3 6s 2 11s 6) s
Multiply by s, set s = 0
4 α α α
α1 s 2 3 4
(s +1 )(s + 2 )(s + 3 ) s 0 s 1 s 2 s 3 s 0
4 2
α1
1 2 3 3
For a2, multiply by (s+1), set s=-1 (same procedure
for a3, a4)
2
α2 2, α3 2, α4
3
2 2 2 2/3
Step 3. Take inverse of L.T. (Y(s)= + )
3s s 1 s 2 s3
2 2
y(t)= 2e t 2e 2t e 3t
3 3
2
t y(t) t 0 y (0) 0. (check original ODE)
3
You can use this method on any order of ODE,
limited only by factoring of denominator polynomial
(characteristic equation)
1. 2
3s 2 4 s 1
1
3s 4 s 1 (3s 1)( s 1) 3( s )( s 1)
2
3
Transforms to e-t/3, e-t
By Laplace transform
1 e s
F ( s)
s s
B. Time-shift theorem
y(t)=0 t < θ L yt- =e -s
Y(s)
C. Initial value theorem
4s+2
For Y(s)=
s(s+1 )(s+2 )(s+3 )
u (t ) y (t )
system
U ( s) Y (s)
u y
input output
forcing function response
“cause” “effect”
Definition of the transfer function:
Let G(s) denote the transfer function between an input, x, and an
output, y. Then, by definition
Y ( s)
G( s)
U ( s)
where:
Y ( s ) L y (t )
U ( s ) L u (t )
0 wC Ti T Q (2)
wC Ti Ti T T Q Q
dT
V C (3)
dt
But,
dT
V C wC Ti T Q (4)
dt
T T T , Ti Ti Ti , Q Q Q
Take L of (4):
V C sT s T 0 wC Ti s T s Q s (5)
K 1
T s Q s Ti s (6)
s 1 s 1
where
1 V
K and
wC w
T (s)=G1(s)Q(s) G2(s)Ti(s)
T
0.05
Q No change in Ti′
2s 1
Step change in Q(t): 1500 cal/sec to 2000 cal/sec
500
Q
s
0.05 500 25
T
2s 1 s s(2s 1)
What is T′(t)? From line 13, Table 3.1
t / 25
T (t ) 25[1 e ]
T ( s)
s( s 1)
t / 2
T (t ) 25[1 e ]
Properties of Transfer Function Models
1. Steady-State Gain
The steady-state of a TF can be used to calculate the steady-
state change in an output due to a steady-state change in the
input. For example, suppose we know two steady states for an
input, u, and an output, y. Then we can calculate the steady-
state gain, K, from:
y2 y1
K (4-38)
u2 u1
K lim G s (14)
s 0
Y s
i
b s i
G s i 0
(4-40)
U s n
i
a s i
i 0
Two IMPORTANT properties (L.T.)
A. Multiplicative Rule
B. Additive Rule
Example 1:
Place sensor for temperature downstream from heated
tank (transport lag)
T(s) K1
Tank: G1 = =
U(s) 1+ 1s
Ts (s) K 2 e - s
Sensor: G 2 = = K 2 1, 2 is very small
T(s) 1 + 2s
(neglect)
Overall transfer function:
Ts Ts T K1K 2 e s
G 2 G1
U T U 1 1s
Linearization of Nonlinear Models
• Required to derive transfer function.
• Good approximation near a given operating point.
• Gain, time constants may change with
• operating point.
• Use 1st order Taylor series.
dy
f ( y, u ) (4-60)
dt
f f
f ( y, u ) f ( y, u ) ( y y) (u u ) (4-61)
y y ,u
u y ,u
dh
A qi q0 qi q0 at s.s.
dt
dh
Use L.T. A qi q0
dt
AsH (s) qi (s) q0 (s) (deviation variables)
suppose q0 is constant
q0 Cv h
nonlinear element
Figure 2.5
Linear model
dh 1
A qi h
dt R
R 2h 0.5
/ Cv
Dynamic Behavior
Dynamic Behavior
In analyzing process dynamic and process control systems, it is important to know how
the process responds to changes in the process inputs.
A number of standard types of input changes are widely used for two reasons:
2. Ramp Input
• Industrial processes often experience “drifting
disturbances”, that is, relatively slow changes up or down
for some period of time.
• The rate of change is approximately constant.
We can approximate a drifting disturbance by a ramp input:
URP
tw Time, t
h
Examples:
0 for t 0
U sin t (5-14)
A sin t for t 0
where: A = amplitude, ω = angular frequency
A
U sin ( s ) 2
s 2
Examples:
U (s)
s2 2
output is...
Kp a0 a1s a2
Y(s) 2 2 2
s 1 s 2
s 1 s s 2
2
K p 2
a0
2 2 1
K p
a1
2 2 1
K p
a2
2 2 1
Inverting,
K p t
Kp
y( t ) e sin(t )
1
2 2
2 2 1
arctan()
note: is not a function of t but of and .
1
(fast vs. slow )
2 2 1
5. Impulse Input
• Here, U I t t and U I ( s ) 1
• It represents a short, transient disturbance.
• It is the limit of a rectangular pulse for tw→0 and h = 1/tw
Examples:
1. Electrical noise spike in a thermo-couple reading.
2. Injection of a tracer dye.
Here,
y T T u=Q-Q Ti fixed
mm e Ce d 2 y m e Ce m e Ce m dy 1
2
y u
wh e A e dt h e Ae wC w dt wC
K
1 2 G(s) =
1 2s 2 + (1 2 )s + 1
1 2
= 1 overdamped
2 1 2
1 underdamped
2 1
roots: 1 critically damped
Second Order Step Change
a. Overshoot
a
exp
b 1 2
d. period of oscillation
2
p
1 2
K1 2 K 2 1
For inverse response 0 (6 21)
K1 K 2
K
G (s)
s ( 1s 1)( 2 s 2 2 s 1)
m
i
b s i
G s i 0
n
(4-40)
i
a s i
i 0
G s
bm s z1 s z2 s zm
(6-7)
an s p1 s p2 s pn
where {zi} are the “zeros” and {pi} are the “poles”.
0 for t θ
y t (6-27)
u t θ for t θ
s Y (s)
G( s) e
U ( s)
H1/Qi has numerator dynamics (see 6-72)
Approximation of Higher-Order Transfer
Functions
In this section, we present a general approach for approximating high-order transfer
function models with lower-order models that have similar dynamic and steady-
state characteristics.
In Eq. 6-4 we showed that the transfer function for a time delay can be expressed as
a Taylor series expansion. For small values of s,
e θ 0 s 1 θ 0 s (6-57)
• An alternative first-order approximation consists of the transfer
function,
θ 0 s 1 1
e (6-58)
e θ0 s 1 θ0 s
SP
LC
LT
Flow out