CTRL Lecture 02 FirstOrderSystems
CTRL Lecture 02 FirstOrderSystems
Control
First Order Systems
Dr. M. Subramanian
February 8, 2021
q(t)
h(t)
R
qo (t)
Flow through the outlet line (qo ) depends the head (h) and the
total resistance (R) due to friction in the outlet pipeline and valve.
It is related as
2fLρvo2 qo
∆P = ρgh = and vo =
D Ao
From the above it can be noted, that
qo ∝ hn
hn
qo =
R
where R is resistance to fluid-flow.
For simplifying the derivations, we shall consider the above as
h
qo =
R
h dh
q− =A (1)
R dt
Initially the process is operating at steady state, which means that
dh/dt = 0, and with q = qs , h = hs . i.e.,
hs
qs − =0 (2)
R
Eqn.(1) − Eqn.(2) =⇒
1 d(h − hs )
(q − qs ) = (h − hs ) + A (3)
R dt
Let us define the deviation variables as:
Q = q − qs
H = h − hs
H dH
Q= +A (4)
R dt
Taking Laplace transform for the above, we get
H(s)
Q(s) = + AsH(s) (5)
R
Note: L[dH/dt] is simply sH(s), because H(0) = 0. Rewriting the
Eqn.(5) as,
H(s) R
= (6)
Q(s) τs + 1
where τ = AR = time constant of the system.
H(s)
The term = G(s) is called as the transfer function of the
Q(s)
system.
H Qo (s) 1
Qo = =⇒ = (7)
R H(s) R
Qo (s) 1
=
Q(s) τs + 1
From mass or energy balances, we get for the output variable y (t),
dy
a1 + a0 y (t) = bx (t)
dt
dy
a1 + a0 y = bx
dt
where x (t) is the input. If a0 6= 0, then
a1 dy b
+ y = x (t)
a0 dt a0
dy
τp + y = Kp x (t) (1)
dt
where τp is known as time constant of the process, and Kp is
called the steady-state gain or static gain or simply the gain of the
process.
Using the above conditions, and taking the Laplace transform for
Eqn.(1), we get
Y (s) Kp
G(s) = =
X (s) τp s + 1
Because of the usage of deviation variables, the Laplace transform
of the differential equation results in an equation that is free of
initial conditions, because the initial values of X and Y are zero.
System
input A
t
0
t=0 Time
(a) step input (b) sinusoidal input
t t
0
(c) ramp input (d) impulse input
System
input
1/A
A Time
a
Ramp at
s2
ω
Sinusoidal sin(ωt)
s 2 + ω2
Impulse δ(t) 1
0
t<0
A
Rectangular pulse x (t) = A 0<t<T 1 − e −sT
0 t>T s
Solution:
From balance on volumetric flow rate,
d(Ah) dh
Fi − Fo = =A
dt dt
i.e.,
dh
A + F o = Fi
dt
Given: Fo = Fout = 0.1h m3 /min. And,
A = Vtotal /htotal = 0.25/1 = 0.25 m2 . Therefore, the above
equation becomes
dh
0.25 + 0.1 h = Fi (1)
dt
dh
2.5 + h = 10 Fi (2)
dt
At the initial steady state, the above equation becomes,
0 + ho = 10 × Fio
i.e.,
0 + 0.5 = 10 × 0.05 (3)
Eqn.(2)− Eqn.(3) =⇒
dh
2.5 + (h − 0.5) = 10(Fi − 0.05)
dt
i.e.,
h̄(s) 10 Kp
= =
F̄i (s) 2.5s + 1 τp +1
s
Here, Kp = 10 and τp = 2.5.
Dr. M. Subramanian CTRL
Solved Problems (contd..)
i.e.,
h − 0.5 = 1 − e −t/2.5
The tank gets filled when h reaches the htotal of 1 m. i.e.,
1 − 0.5 = 1 − e −t/2.5
i.e,
e −t/2.5 = 0.5
The tank gets filled and starts to overflow, after 1.733 min from
the start of change of flow rate to 0.15 m3 /min from its initial
value of 0.05 m3 /min. (c) X
Solution:
At initial steady state, q = qo . Therefore,
p
0.015 = 0.01 hs =⇒ hs = 2.25 m
From mass balance for the constant density systems (applicable for
liquids),
dh
q − qo = A
dt
For t ≥ 0, q = 0. Therefore,
dh
−qo = A
dt
Substituting for qo and A, we get
√ dh
−0.01 h = 2
dt
From mass balance for the constant density systems (applicable for
liquids),
dh
q − qo = A
dt
At initial state,
p
0.015 − 0.01 hs = 0
Subtracting the above two equations,
p d(h − hs )
(q − 0.015) − (qo − 0.01 hs ) = A
dt
Using deviation variables,
dH
Q − Qo = A (1)
dt √
where Q = q − qs = q − 0.015, Qo = qo − qos = qo − 0.01 hs
and, H = h − hs .
√ √ √
In the above, Qo = qo − 0.01 hs = 0.01 h − 0.01 hs i.e.,
√ p
Qo = 0.01( h − hs ) (2)
√
Since Qo is having non-linear relation with h, i.e., Q ∝ h, we
have to linearize this function before taking Laplace transform.
From Taylor series expansion, for the variable f (x ), around xo , and
considering terms upto f 0 (xo ), we get
√
For h around hs , we get
√ p 1
h = hs + √ (h − hs )
2 hs
1
Qo = 0.01 √ (h − hs )
2 hs
We know that hs = 2.25 m. Therefore,
1 0.01 H
Qo = 0.01 √ (h − hs ) = (h − hs ) =
2 2.25 3 300
where H = h − hs .
H dH
Q− =A
300 dt
Since, A = 2 m2 , we get
dH H
2 + =Q
dt 300
dH
600 + H = 300Q
dt
Taking Laplace transform,
H(s) 300 Kp
= = (2)
Q(s) 600s + 1 τp s + 1
√
qo = C h
√
f (h) = C h
df (h)
f (h) ≈ f (hs ) + (h − hs )
dh hs
C
≈ f (hs ) + √ (h − hs )
2 hs
C
f (h) − f (hs ) ≈ √ (h − hs )
2 hs
C
qo − qos = √ (h − hs )
2 hs
C
Qo = √ H
2 hs
Original ODE:
dy
τp + y = Kp x
dt
ODE in deviation variable:
dY
τp + Y = Kp X
dt
where Y = y − ys is deviation variable of output; X = x − ss is
deviation variable of input.
Laplace transform:
Y (s) Kp
Gp (s) = =
X (s) τp s + 1
Y (s) Kp
Gp (s) = =
X (s) τp s + 1
For step input of magnitude A, X (t) = A; and X (s) = A/s.
A Kp
Y (s) =
s τp s + 1
Taking L−1 ,
Y (t) = AKp (1 − e −t/τp )
Y (s) Kp
Gp (s) = =
X (s) τp s + 1
For impulse input of magnitude 1, X (s) = 1. i.e., unit impulse.
For impulse input of magnitude A, X (t) = Aδ(t), and X (s) = A.
This leads to
AKp AKp /τp
Y (s) = =
τp s + 1 s + 1/τp
Taking L−1 ,
AKp −t/τp
Y (t) = (e )
τp
ṁ, Ti
m, T
ṁ, T
q
heating coil
Assume:
ṁ = mass flow in = mass flow out = constant.
m = mass of tank contents = constant
To find: the variation of T with t for changes in q and/or Ti .
Dr. M. Subramanian CTRL
Stirred Tank Heater (contd..)
Eqn.(1) − Eqn.(2) =⇒
d(T − Ts )
ṁCP (Ti − Tis ) − ṁCP (T − Ts ) + (q − qs ) = mCP (3)
dt
dT 0 Q
τ + T 0 = Ti0 + (4)
dt ṁCP
where τ = m/ṁ
Taking Laplace transform, and rearranging,
1 1/(ṁCP )
T 0 (s) = T 0 (s) + Q(s)
τs + 1 i τs + 1
1 1/(ṁCP )
T 0 (s) = Ti0 (s) + Q(s)
τs + 1 τs + 1
Ti0 (s) 1
τs + 1
+ T 0 (s)
+
Q(s) 1/(ṁCP )
τs + 1
At
(t )=
Y (t) X Aτp
Kp ut,
Inp A
t
Dr. M. Subramanian CTRL
Liquid Level System with Constant Outflow
Consider the case where there is a pump in the outflow line. Here
the outflow doesn’t depend on the head of liquid available, and it
is constant.