Modelling Second Order Systems and Examples: Process Control Prof. Kannan M. Moudgalya
Modelling Second Order Systems and Examples: Process Control Prof. Kannan M. Moudgalya
Process Control
Prof. Kannan M. Moudgalya
IIT Bombay
Wednesday, 31 July 2013
1. Poles
2. Zeros
3. Gain
4. Time constants
Answer: 2. Zeros
5/39 Process Control Second Order Models and Response
Transfer Function
The bj in the following transfer function are known
as
(s − a1 ) · · · (s − am )
G(s) =
(s − b1 ) · · · (s − bn )
1. Poles
2. Zeros
3. Gain
4. Time constants
Answer: 1. Poles
6/39 Process Control Second Order Models and Response
Poles and zeros of two transfer functions
a b
c
d
Poles are indicated by crosses
11/39 Process Control Second Order Models and Response
Step response for pole at a
a
I For the pole at a
place indicated by a,
the response is of the
2
form e−α t
I The exponential part
will decay, reaching a
constant value
12/39 Process Control Second Order Models and Response
Scilab code to plot step response of a
negative pole, a.sce
s = %s
G a = 1 / ( s +3)
t = 1:0.1:5;
y a = csim ( ’ step ’ , t , G a ) ;
plot2d ( t , y a )
b
I For the pole at a
place indicated by b,
the response is of the
2
form eβ t
I The exponential part
will grow unbounded
s = %s
G b = 1 / ( s −2)
t = 0:0.01:6;
y b = csim ( ’ step ’ , t , G b ) ;
plot2d ( t , y b )
s = %s
G c = 1 / ( s −(1+2∗%i ) ) / ( s −(1−2∗%i ) )
t = 0:0.01:10.15;
y c = csim ( ’ step ’ , t , G c ) ;
plot2d ( t , y c )
d
I For the poles at
places indicated by d,
the response is of the
form
2
e−δ t ×(sinusoidal
terms)
I There will be
d
decaying oscillations
s = %s
G d = 1 / ( s −(−1+3∗%i ) ) / ( s −(−1−3∗%i ) )
t = 0:0.01:6;
y d = csim ( ’ step ’ , t , G d ) ;
plot2d ( t , y d )
K M A B C
I Y(s) = = + +
τ 2 s2 + 2ζτ s + 1 s s+a s+b s
2 2
I a and b are roots of τ s + 2ζτ s + 1 = 0
p
−2ζτ ± 4ζ 2 τ 2 − 4τ 2
I a, b =
2τ 2
ζ 1p 2
I =− ± ζ −1
τ τ
I ζ ≥ 1, a, b are real
I ζ < 1, complex, a = b∗ , A = B∗
n
y(t) = KM 1 − e(−ζt/τ ) ∗
" p ! p !#
ζ2 − 1 ζ ζ2 − 1
cosh t +p sinh t }
τ ζ2 − 1 τ
K M
Y(s) =
τ 2 s2 + 2ζτ s + 1 s
K M
Y(s) =
τ 2 s2 + 2ζτ s + 1 s
n
y(t) = KM 1 − e(−ζt/τ ) ∗
" p ! p !#
1−ζ 2 ζ 1−ζ 2
cos t +p sin t }
τ 1 − ζ2 τ
K
G(s) =
τ 2 s2 + 2ζτ s + 1
will also be written as
ωn2
G(s) = 2
s + 2ζωn s + ωn2
I K is taken as 1
I ωn : natural frequency, ζ: damping factor.
I For different ζ, get underdamped (ζ < 1),
critically damped (ζ = 1) and
overdamped (ζ > 1) systems
26/39 Process Control Second Order Models and Response
You should be able to derive all the
previous expressions for y(t)
ωn2
G(s) =
s2 + 2ζωn s + ωn2
p
For ζ < 1, rts of den. = −ζωn ± jωn 1 − ζ 2
The step response is,
y(t) = 1
" p #
e−ζωn t p 1 − ζ2
−p sin ωn 1 − ζ 2 t + tan−1
1 − ζ2 ζ
Mp
y(t)
tr tp ts
29/39 Process Control Second Order Models and Response
Scilab code step-II-order.sce
exec ( ’ second . s c i ’ ) ;
s = %s
omegan = 1 ; t = 1 : 0 . 1 : 1 5 ;
y = s e c o n d ( omegan , 0 . 1 , t ) ;
y = s e c o n d ( omegan , 0 . 5 , t ) ;
y = s e c o n d ( omegan , 1 , t ) ;
y = s e c o n d ( omegan , 2 , t ) ;
f u n c t i o n y = s e c o n d ( omegan , z e t a , t )
G = omegan ˆ 2 / ( s ˆ2+2∗ z e t a ∗ omegan ∗ s+
omegan ˆ 2 )
y = c s i m ( ’ s t e p ’ , t , G) ;
plot2d ( t , y)
endfunction
30/39 Process Control Second Order Models and Response
3. Integrating/capacitive systems
dh
I A = Qi − Q
dt
h(t) I In deviational variables,
Q d∆h
I A = ∆Qi (t) − ∆Q(t)
dt
I Taking Laplace transform,
As∆h(s) = ∆Qi (s) − ∆Q(s)
I ∆h(s) =
1 1
∆Qi (s) − ∆Q(s)
As As
33/39 Process Control Second Order Models and Response
Integrating Process
Qi (t)
In case of a step distur-
bance in feed flow, tank
will
h(t) 1. overflow
Q
2. run dry
3. overflow or run dry
4. stabilise at some
suitable value
Answer: 3: overflow or
run dry
I y(t = ∞) = Ka(t − τ )
I Let K = 1 and plot u(t) and y(t) in the same
plot
M
I Give the following input, u(t): t = 0 t = t1
I u(t) = 1(t) × M − 1(t − t1 ) × M
I 1(t) denotes unit step input
I u(t) = [1(t) − 1(t − t1 )] × M
1 1 −t1 s
I U(s) = − e M
s s
M
I U(s) = [1 − e−t1 s ]
s