Laplace Transform in Process Control
Laplace Transform in Process Control
and Control
Laplace Transform for Process Control
CTRL
Process Dynamics
CTRL
Transient Nature of Chemical Processes
1
eat
s− a
n!
tne−at
(s + a)n+1
Dr. M. Subramanian CTRL
Laplace Transform of Common Functions (contd..)
Function f (t) F (s)
ω
Sinusoidal sin(ωt)
s2 + ω2
s
cos(ωt)
s2 + ω2
ω
Sin with exponential e−at sin(ωt)
(s + a)2 + ω2
s+a
e−at cos(ωt)
(s + a)2 + ω2
ω
Hyperbolic sinh(ωt)
s2 − ω2
s
cosh(ωt)
s2 − ω2
Dr. M. Subramanian CTRL
Laplace Transform of Common Functions (contd..)
Example
dy
1
Solve by using Laplace transform: = 5 − 2t; y(0) = 1.
dt
(Ans: y = 1 + 5t − t 2 )
2
Solve by Laplace transform method, the initial value problem
y '' = 10; y(0) = y '(0) = 0. (Ans: y = 5t2)
Take Laplace transform on both sides Take Inverse Laplace transform
CTRL
Liquid Level Variation for Changes in In-flow
q(t)
h(t)
R
qo (t)
CTRL
Liquid Level Variation for Changes in In-flow (contd..)
CTRL
Liquid Level Variation for Changes in In-flow (contd..)
CTRL
Liquid Level Variation for Changes in In-flow (contd..)
CTRL
Liquid Level Variation for Changes in In-flow (contd..)
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.
CTRL
Liquid Level Variation for Changes in In-flow (contd..)
CTRL
Liquid Level Variation for Changes in In-flow (contd..)
Qo =
H
=⇒ Qo(s) 1
= (7)
R H(s) R
Qo(s) 1
=
Q(s) τs + 1
CTRL
Response of Thermometer
CTRL
Response of Thermometer
Assumptions:
1. All the resistance to heat transfer resides in
the film surrounding the bulb (i.e., the
resistance offered by the glass and mercury is
neglected).
2. All the thermal capacity is in the mercury.
Furthermore, at any instant the mercury
assumes a uniform temperature throughout.
3. The glass wall containing the mercury does
not expand or contract during the transient
response.
4. Thermometer is initially at steady state
(i.e., before time zero, there is no change in
temperature with time. At time zero, the
thermometer will be subjected to some change
in the surrounding temperature x(t).
CTRL
Response of Thermometer
𝑇∞ = 𝑓𝑙𝑢𝑖𝑑 𝑡𝑒𝑚𝑝
T= thermometer reading
𝑊 𝐽
*𝑚2 *K = kg* ∗ 𝐾/𝑠
𝑚2 𝐾 𝐾𝑔∗𝐾
CTRL
First Order System (Generalization)
CTRL
First Order System
CTRL
First Order System (contd..)
Using the above conditions, and taking the Laplace transform for
Eqn.(1), we get
Y (s) Kp
G(s) = =
X(s) τps + 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.
CTRL
Transfer Function
CTRL
Transfer Function (contd..)
CTRL
Idealized Input Functions
CTRL
First Order System - Response to Step Input
The transfer function of first order system is given by
Y (s) Kp
G(s) = =
X(s) τps + 1
Let us examine how it responds to a unit step change in input,
x(t).
1
For unit step input, X(s) = . Therefore,
s
Kp Kp Kp τp
Y (s) = = −
s(τps + 1) s τps + 1
Taking inverse Laplace transform, we get
y(t) = Kp (1 − e −t/τ p )
For step input of magnitude A,
CTRL
Taking Inverse Laplace
First Order System - Response to Step Input (contd..)
CTRL
Solved Problems (contd..)
Solution:
From balance on volumetric flow rate,
d(Ah) dh
Fi − Fo = =A
dt dt
i.e.,
dh
A + Fo = 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.1h = Fi (1)
dt
CTRL
Solved Problems (contd..)
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)
CTRL
Solved Problems (contd..)
CTRL
Solved Problems (contd..)
CTRL
Solved Problems (contd..)
CTRL
Solved Problems
CTRL
Solved Problems (contd..)
CTRL
Solved Problems (contd..)
CTRL
Solved Problems (contd..)
CTRL
Solved Problems (contd..)
CTRL
Solved Problems (contd..)
CTRL
Solved Problems (contd..)
CTRL
Solved Problems (contd..)
CTRL
Solved Problems (contd..)
CTRL
CTRL
CTRL
Response of First Order System to Step Input
CTRL
Impulse Input to First Order System
CTRL
Impulse Input to First Order System (contd..)
CTRL
Comparison of Responses of Unit Step and Impulse Inputs
CTRL
Tutorial-1
CTRL
Tutorial-1
CTRL
Tutorial-1
CTRL
Tutorial-1
CTRL
Tutorial-2
CTRL
Tutorial-2
CTRL
Tutorial-2
CTRL
Stirred Tank Heater
ṁ,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 .
CTRL
Stirred Tank Heater (contd..)
CTRL
Stirred Tank Heater (contd..)
CTRL
Stirred Tank Heater (contd..)
CTRL
Response of First Order System to Ramp Input
CTRL
Response of First Order System to Ramp Input (contd..)
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.
CTRL
Liquid Level System with Constant Outflow (contd..)
CTRL
Liquid Level System with Constant Outflow (contd..)
CTRL
Linearization
CTRL
Linearization
CTRL
Linearization
CTRL
Linearization
CTRL
UCH 2504 Process Dynamics and
Control
First Order Systems in Series
CTRL
First Order Systems in Series
CTRL
(a) Non-interacting Systems in Series
Tank-1:
Material balance:
dh1
q − q1 = A1 (1)
dt
Relation between q1 and h1:
h1
q1 = (2)
R1
Tank-2:
Material balance:
dh2
q1 − q2 = A2 (3)
dt
Relation between q2 and h2:
h2
q2 = (4)
R2
Writing the above equations in deviation variables
{Q = q −q s ;Q1 = q1 −q 1s H1 = h1 −h 1s ; H2 = h2 −h 2s }, taking
Laplace transforms, and using A1R1 = τ1; A2R2 = τ2, we get
CTRL
Taking Laplace both sides
Assume zero initial condition
H1(s) R1
= (5)
Q(s) τ1s + 1
Q1(s) 1
= (6)
Q(s) τ1s + 1
H2(s) R2
= (7)
Q1(s) τ2s + 1
And,
H2(s) 1 R2
= (8)
Q(s) τ1s + 1 τ2s + 1
Q2(s) 1 1
= (9)
Q(s) τ1s + 1 τ2s + 1
Eqn.(9) can be generalized for multiple (non-interacting) systems
in series as
QN (s) Kp1 Kp2 KpN
= ··· (10)
Q(s) τ1s + 1 τ2s + 1 τN s + 1
CTRL
(a) Non-interacting Systems in Series (contd..)
CTRL
(a) Non-interacting Systems in Series (contd..)
CTRL
(b) Interacting Systems in Series
CTRL
Tank2
Let
(b) Interacting Systems in Series (contd..)
CTRL
(b) Interacting Systems in Series (contd..)
CTRL
Comparison between Non-interacting and Interacting
Systems
CTRL
Comparison (contd..)
Cancel R1
Simplifying
V, y(t), V
UCH 2504 Process Dynamics and
Control
Second Order Systems
CTRL
Second Order System
CTRL
Damping Factor
CTRL
Response of Second-order system to Step Input
1.5
y(t) 1
Kp
0.5
0
0 5 10 15 20 25 30
t/τ
CTRL
Response of Second Order System to Unit Step Input
Overdamped System
CTRL
Overdamped System
CTRL
Response of Second Order System to Unit Step Input
Critically Damped System
CTRL
Response of Second Order System to Unit Step Input
Underdamped System
CTRL
Response of Second Order System to Unit Step Input
CTRL
Characteristics of an Underdamped Response
CTRL
Characteristics of an Underdamped Response (contd..)
CTRL
Characteristics of an Underdamped Response (contd..)
CTRL
Problem
Problem
Dynamics of U-tube Manometer
•Consider a simple manometer as shown in Fig. . The pressure on both legs of the
manometer is initially the same. The length of the fluid column in the manometer
is L.
•At time t =0, a pressure difference is imposed across the legs of the manometer. Assuming
the resulting flow in the manometer to be laminar and the steady-state friction
law for drag force in laminar flow to apply at each instant, we will determine the
transfer function between the applied pressure difference ΔP and the manometer
reading h.
•If we perform a momentum balance on the fluid in the manometer, we arrive at the
following terms:
( Sum of forces causing fluid to move) =(R ate of change of momentum of fluid)
CTRL
Dynamics of U-tube Manometer
The term for the skin friction at the wall is obtained from the Hagen-Poiseuille relationship for laminar flow. Note
that V is the average velocity of the fluid in the tube, which is also the velocity of the interface, which is equal to 1/2
dh/dt
CTRL
The rate of change of momentum of the fluid may be expressed as
• The quadratic term in this equation may be factored into two linear
terms that contain the roots
τ2s2 + 2ζτs + 1 = 0
2 1
s2 + s+ 2 = 0
2 4 2
4
− −
=− 1
2 2
s= 2 −1
2
s1 = (− +
1
2 −1 ) ....(3)
s = (− − −1 )
1
2 ....(4)
1
….. (5)
The response of the system Y(t) can be found by inverting Eq. (5).
The roots s1 and s2 will be real or complex depending on the
parameter ζ.
• The problem may be divided into three cases shown in
Table.
The damping of a system can be described as being one of the following:
Overdamped: The system returns to equilibrium without oscillating.
Critically damped: The system returns to equilibrium as quickly as possible
without oscillating.
Underdamped: The system oscillates (at reduced frequency compared to
the undamped case) with the amplitude gradually decreasing to zero.
Undamped: The system oscillates at its natural resonant frequency (ωo).
CASE I STEP RESPONSE FOR ζ > 1: (Over-damped system). For
this case, the inversion of Eq.(5) gives
Y (t ) =
1 1
L−1
2 s (s − s 1 )(s − s )
2 …(6)
1 A B C
= + +
s(s − s1 )(s− s2 ) s s − s1 s −s2
A(s − s1 )(s− s2 )+ Bs(s − s2 )+ Cs(s − s1 )= 1
1 1 2
Put s = 0 A =
s1s2
=
1
2
(− + )(
−1 − − −1
2 2
) =
− 2 +1
2
= 2
1 2
Put s = s1 B = =
(
s1 (s1 − s2 ) − + 2 − 1 2 2 − 1 )( )
1 2
Put s = s2 C =
s2 (s2 − s1 )
=−
(
− − 2 −1 2 2 −1 )( )
• From Eq(6)
1 2 2 1
Y (t ) =
1 1
2
L−1 2 +
2
(
2
−
2 2
)(
s − + − 1 2 − 1 s − s1 − − − 1 2 − 1 s − s2 ) ( )( )
1 2 2 2
Y (t ) = es t
+
( es t −
)( ) ( )( )
1 2
2 − + −1 2 −1
2 2
− − −1 2 −1
2 2
−t 2 −1
−t −
2 −1
t t
e e e e
Y (t ) = 1 +
(− + )(
2 −1 2 2 −1 ) − (− − − 1)(2 − 1) 2 2
( − 1 )e − (− + − 1 )e
−t 2 −1
−
2 −1
− −
2 t 2 t
e
Y (t ) = 1 +
2 −1 (
2 2 − 2 +1 )
−t
e
2 −1
−
2 −1
2 −1 2 −1
−
2 −1
Y (t ) = 1 + − e −e − e −e
t t t t
− 1 2
2
2
−t
(
−1 t − 2 −1 ) 2 −1 t
2
e
Y(t) =1+ − sinh cosh
−1
2
….(7)
t t
sinh x cosh x
= t =t
lim
x →0 x lim
x →0 1
y (t ) = 1 − e − t / 1 + t ( )
The response is nonoscillatory and the nature of the roots will be real,
and equal.
• CASE III STEP RESPONSE FOR ζ< 1: (Under Damped system)
2 −1 = (− 1)(1 − 2 )= j 1 − 2
….(8)
−t
1− 2
1− 2
Y (t ) = 1 − e
cosh j t+ sinh j t
j 1− 2
−t
e 1− 2
1− 2
Y (t ) = 1 − j 1− 2
cos t + j sin t
j 1− 2
−t
e 1− 2
1− 2
Y (t ) = 1 − 1− 2
cos t + sin t ....(10)
1− 2
• The square bracket in Eq (10) is of the form p Cos A + q Sin A .
p
= tan −1
q
−t
e 1− 2
1− 2
Y (t ) = 1 − sin t + tan −1 …..(11
1− 2
)
Where
r = 1− 2 + 2 =1
1− 2
= tan−1
The response is either under damped or oscillatory and the nature of the roots
will be complex.
• Impulse
Response:
If a unit impulse δ(t) is applied to the second-order system, then the transform of
the response is
…(17)
• As in the case of the step input, the nature of the response to a unit impulse
will depend on whether the roots of the denominator of Eq. (17) are real or
complex.
CASE I IMPULSE RESPONSE FOR ζ < 1. The inversion of Eq. (17) for ζ < 1
yields the result
….(18)
• A simple way to obtain Eq. (18) from the step response of Eq. (11) is to take
e −
t
1− 2 1− 2
+ 1 − 2 cos t + sin t − −
1 − 2
−t
dy e 1− 2 2
= sin t 1 − 2 +
dt 1 − 2
−t
e 1− 2
Y (t ) = sin t ...(19)
Im pulse 1− 2
CASE II IMPULSE RESPONSE FOR ζ = 1. For the critically damped case, the
response is given by
Put ζ = 1 in Eq (19), Y(t) = 0/0,
Use L-Hospital’s rule,
xt
−t sin
Y (t ) =
e
lim x →0 x
Where x = 1 − 2
xt t
−t cos
e
Y (t ) = lim
x →0 1
−t
e t
Y (t ) =
−t
te
Y (t ) = ...( 20)
2
• CASE III IMPULSE RESPONSE FOR ζ > 1.
(−1)( )
Substitute 2
1− =
2 2
−1 = j −1
sinh j = j sinh
in Eq. (19)
−t
e 2 −1
Y (t ) = j sinh t
. j −1 2
−t
e 2 −1
Y (t ) = sinh t ...(21)
−1 2
The impulse-response show the same general behavior as the step- response.
However, the impulse response always returns to zero.
Sinusoidal Response
or Frequency
response
• If :the forcing function applied to the second-order system is sinusoidal, X(t)
= A sin ωt then it follows
…(22)
…(23
Here s1 and s2 are the roots of the denominator of the transfer function and
)
are given by Eqs. (3) and (4). For the case of an underdamped system (ζ < l),
the roots of the denominator of Eq. (23) are a pair of pure imaginary roots
(+jω, - jω) contributed by the forcing function and a pair of complex roots
A C1s + C2 C3 C
Y (s) = + + 4
2 s 2 + 2 s − s1 s − s2
2 −1 2 −1
s1 = − + ; s2 = − −
2 2
1
( ) ( )
(C1s + C2 ) s + s + 2 + C3 s 2 + 2 (s − s2 ) + C4 s 2 + 2 (s − s1 ) = 1
2 1
put s = j (C1 j + C2 ) − 2 + j + 2 =1
2
(C1 j + C2 ) =
(1 −
2 2
) + j 2 ...( 24)
2
put s = − j (− C1 j + C2 ) =
(1 − 2 ) − j 2
2
...( 25)
− j 4
( 24) − ( 25) 2C1 j = 2
1 −
2
(
2 2
)
+ ( j 2 )
2
− 2
C1 = 2
(1 − 2
2
)
2
+ ( j 2 ) 2
( 24) + ( 25) 2C 2 = 2
(
2 1 − 2 2 )
(
1−
2 2 2
)
+ ( j 2 ) 2
(1 − )
2 2 2
C2 =
(1 − 2 )2 + ( j 2 ) 2
2
1
C3 =
(s1 − s2 )(s12 +2 )
put s = s2 C3 s2 + 2 ( 2
)(s 2 − s1 ) = 1
1
C3 =
(
(s2 − s1 ) s2 2 + 2 )
2 (2 ) −1 s 2 1 − 2 2 (
1
L−1 2
)
− L + 2
A
Y (t ) = 2
(
1 − + (2 )
2 2 2 2
) s 2
+ 2
1 − + (2 )
2 2 2
( 2
)
s +
1 1 1 1
+ L−1 + L−1
(s1 − s2 ) s1 +
2 2
( )
s − s1 (s2 − s1 ) s2 +
2 2
(
s − s2 )
(2 ) cos t +
(
1− 2 2
)
sin t
−
1 (
−
2 2 2
) + (2 )2
1 − (
2 2 2
)
+ (2 )
2
Y (t ) = A
2
− 2 −1 2
− 2 −1 t
+ t
−
+ +
( s1 − s 2 ) (
s 1
2
+ 2
e
) ( s 2 − s1 ) s 2
2
+ 2
( e
)
Y (t ) = A−
(2 ) cos t +
1 − 2 2
sin t
( )
(
1 − + (2 )
2 2 2 2
) 1 − + (2 )
2 2 2 2
( )
2 −1 t 2 −1
t
A −t
e
e
+ e 2 − 2
(s1 − s2 )
2
(
s1 +
2
) ( s2 + 2
)
When t →
Y (t ) = A−
(2 ) cos t +
( )
1 − 2 2
sin t
(
1 −
2
)2 2
+ (2 )
2
( 2
)
1 − 2 + (2 )
2 2
Y (t ) =
A
( )
1 − 2 2 + (2 )2 sin (t + )
2
( )
1 − 2 2 + (2 )
2 2
Where p = −2
q = 1 − 2 2
2
= tan −1 − 2
1−
2
• The ratio of the output amplitude to the input amplitude is
• Define critically damped system and write the transfer function of the
same
• Define under damped system and over damped system
• Define overshoot
• Define rise time
• Define settling time
• Define decay ratio
• Define response time
• Define period of oscillation
UNIT II
OPEN LOOP SYSTEMS
Laplace Transform
Laplace Transform enables one to get a very simple and elegant method of solving linear differential
equation by transforming them into algebraic equations. It is well known that chemical processes are
mathematically represented through a set of differential equations involving derivatives of process
states. Analytical solution of such mathematical models in time domain is not only difficult but
sometimes impossible without taking the help of numerical techniques. Laplace Transform comes as a
good aid in this situation.
For this reason, Laplace Transform has been included in the text of this ―Process Control‖ course
material though it is purely a mathematical subject.
Hence, the Laplace Transform is a transformation of a function from the t -domain (time domain) to s -
domain (Laplace domain) where both t and s are independent variables.
The Fig. 1 shows a few basic functions which are frequently used in process control applications
Fig. 1: Few basic functions which are frequently used in process control applications
Step function : See Fig. 1(a) for the schematic of a step function
Hence,
(2)
(3)
Ramp function : See Fig. 1(b) for the schematic of a ramp function f(t)=at for t>0 where a is a constant
(4)
Hence,
(5)
Hence,
(7)
Sinusoidal function :
(8)
Hence,
(9)
Hence,
(12)
Pulse function : See 1(c) for the schematic of an unit pulse function. The area under the pulse is 1. The
duration of pulse is T and hence it achieves maximum intensity of . Thus the function is defined
by
It can also be defined as the ―addition‖ of two step functions which are equal but with opposite intensity,
however, the second function is delayed by T .
Hence,
(14)
Impulse function : See Fig.1(d) for the schematic of an unit impulse function. This is analogous to a
pulse function whose duration is shrinked to zero without losing the strength. Hence the area under the
impulse remains 1. The function can be expressed as the following:
(15)
As the duration of the impulse tends to zero, its maximum intensity ideally tends to . Mathematically
it is termed as Dirac Delta function and is represented as . The following relation holds for unit
impulse:
(16)
Thus the Laplace transform of the impulse function can be derived as the following:
(17)
Unit step
Ramp : f(t)=at
Where f(0) is the value of the function at t=0. Similarly it can be proved that
(20)
Where f'(0) is the value of the derivative of the function at t=0. In general, it can be proved that
(21)
Hence,
(24)
(28)
(30)
(32)
(34)
y(t)
where, are input and output of the process espectively. If , then define the
following: and
Hence, the first order differential equation takes the following form:
(36)
Alternatively,
(39)
Where, and are the deviation forms of the input and output variables
of the process around the steady state, whose initial conditions are assumed to be the
following: .
Taking Laplace Transform of the eq. (III.39) we obtain,
(40)
Rearranging the above we obtain,
(41)
Gp(s) is called the transfer function of the process. Kp and τp are called as gain and time constant of the
process. The unit of gain is the ratio of the units of output to that of input, whereas the unit of time
constant is same as that of time.
Where
= Time Constant [=] hours
Step Responseof a first order system
To examine the response of the thermometer to a step input in temperature, we would note that
Where:
C1 = A
C2 = -A
The solution is
(1)
By translation of functions, we have
It indicates that Process 1 is faster than process 2 as the time constant of Process 1 is smaller than that
of Process 2. The responses of the processes for same unit step change in input are given in the figure
below:
Dynamic profile of two first order processes with same gain but different time constants
Since the gain of the processes are same, the ultimate response reaches the same value. On the other
hand, suppose two first order processes have different static gains but same time constants.
It indicates that Process 2 has higher static gain than Process 1. The responses of the processes are given
in the figure below:
Dynamic profile of two first order processes with different gain but same time constants.
We observe that the processes have same initial slope of response. Process 2 settles at a higher steady
state value due to its higher static gain.
Problem 1
A thermometer having a time constant of 0.5min is placed in a temperature bath and after thermometer
comes to equilibrium with the bath, the temperature of the bath is increased linearly at the rate of
1oC/min.
(i) What is the difference between the indicated and bath temperature at 0.25min and 3min
after the change in temperature begins?
(ii) What is the maximum deviation between the indicated and bath temperature and when does
it occur?
(iii) How many minutes does the response lag the input after long enough time is elapsed?
From the given statement, it is clear that a (unit) ramp input of magnitude 1oC/min [X(t) = t] to a
First order (thermometer) system.
We know, the unit ramp response of a first order system is
Dynamics of CSTR
Considering that a first order homogeneous reaction taking place in a CSTR, at unsteady state
operation, we have
Rate of reactant A entering = Rate of reactant A leaving + Rate of disappearance of A within the
reactor + Rate of accumulation of A within the reactor
Where Co and C1 are the entering and leaving concentrations of reactant A; Vis the volume of reactor;
νo is the volumetric flow rate of A into the reactor.
Or
Co = C1 + (k ) C1 + (dC1/dt)
Where = V/νo, is the space time or the time constant of the reactor.
Consider tank of uniform cross sectional area A to which is attached a flow resistance R such as a valve,
a pipe, or a weir.
Assume that qO, the volumetric flow rate (volume/time) through the resistance, is related to the head h
by the linear relationship
(1)
A resistance that has this linear relationship between flow and head is referred to as a linear resistance.‖
A time-varying volumetric flow 4 of liquid of constant density p enters the [Link] system can be
analyzed by writing a transient mass balance around the tank:
Mass flow in - mass flow out = rate of accumulation of mass in the tank
In terms of the variables used in this analysis, the mass balance becomes
(2)
Combining Eqs. (1) and (2) to eliminate qO(t) gives the following linear differential equation:
(3)
Initially, the process is operating at steady state, which means that dh/dt = 0 and we can write Eq. (3)
as
(4)
where the subscript s has been used to indicate the steady-state value of the variable.
Subtracting Eq. (4) from Eq. (3) gives
(5)
If we define the deviation variables as
(6)
Taking the transform of Eq. (6) gives
(7)
Equation (7) can be rearranged into the standard form of the first order lag to give
(8)
where τ = AR
In comparing the transfer function of the tank given by Eq. (8) with the transfer function for the
thermometer given by Eq. (7), we see that Eq. (8) contains the factor R.
The term R is simply the conversion factor that relates h(t) to q(t) when the system is at steady state.
For this reason, a factor K in the transfer function K/(τs + 1) is often called the steady-state gain.
If the transfer function relating the inlet flow q(t) to the outlet flow is desired, then from Eq. (1)
(9)
Subtracting Eq. (9) from Eq. (1) and using the deviation variable
Q, = q. - qo, gives
(10)
Taking the transform of Eq. (10) gives
(11)
(12)
The steady-state gain for this transfer function is dimensionless, which is to be expected because the
input variable q(t) and the output variable qO(t) have the same units (volume/time).
(1)
At steady state, Eq. (1) becomes
qs - q0 = 0 (2)
Subtracting Eq. (2) from Eq. (1) and introducing the deviation variables
Q = q - qs
and
H = h - hs, gives
(3)
Taking the Laplace transform of each side of Eq. (3) and solving for H/Q gives
(4)
The transfer function, 1/As, in Eq. (4) is equivalent to integration. Therefore, the solution of Eq. (4) is
If a step change Q(r) = u(t) were applied to the system shown in Fig. the result is
(6)
The step response given by Eq. (6) is a ramp function that grows without limit. Such a system that
grows without limit for a sustained change in input is said to have non-regulation.
Systems that have a limited change in output for a sustained change in input are said to have regulation.
Mixing Process:
Consider the mixing process shown in Fig. in which a stream of solution containing dissolved salt flows
at a constant volumetric flow rate q into a tank of constant holdup volume V.
41 Department of Chemical Engineering
UCH2504 Process Instrumentation, Dynamics And Control
The concentration of the salt in the entering stream, x (mass of salt/volume), varies with time. It is
desired to determine the transfer function relating the outlet concentration y to the inlet concentration
X.
Assuming the density of the solution to be constant, the flow rate in must equal the flow rate out, since
the
holdup volume is fixed.
A transient mass balance for the salt; thus
Flow rate of salt in - flow rate of salt out = rate of accumulation of salt in the tank
Expressing this mass balance in terms of symbols give
(1)
• At steady state, Eq. (1) may be written
qxs - qys = 0 (2)
Subtracting Eq. (2) from Eq. (1) and introducing the deviation variables
X = x - xs ,
Y=y-ys
Give
Taking the Laplace transform of this expression and rearranging the result give
(3)
where τ = V/q.
LINEARIZATION
All the examples of physical systems discussed so far , including the liquid-level system have been
linear. Actually, most physical systems of practical importance are nonlinear.
Characterization of a dynamic system by a transfer function can be done only for linear systems For
dynamic analysis, non linear systems can be approximated to linear ones. A very important technique
for such approximation is illustrated by the following discussion of the liquid-level system of Fig.
(2)
Combining Eqs. (1) and (2) gives the nonlinear differential equation
(3)
Owing to the presence of the nonlinear term h1/2, We cannot proceed, for which there is no simple
transform. This difficulty can be circumvented as follows.
By means of a Taylor-series expansion, the function q0(h) may be expanded around the steady-state
value hs; thus
where q0‘(hs) is the first derivative of q0 evaluated at hs, q0‖(hs) the second derivative, etc. Keeping only
the linear term, gives
(4)
Taking the derivative of q0 with respect to h in Eq. (1) and evaluating the derivative at h = hs, gives
q0‘(hs) = (1/2)Chs-1/2
Introducing this into Eq. (4) gives
(5)
where qos = q0(hs)
(R1)-1 =1/[Link]-1/2
Substituting Eq. (5) into (2) gives
(6)
At steady state the flow entering the tank equals the flow leaving the tank; thus
q0 = q0s, (7)
Introducing this last equation into Eq. (6) gives
(8)
Introducing deviation variables Q = q - qs and H = h - hs into Eq. (8) and transforming give
Where
However, in this case, the resistance R1 depends on the steady-state conditions around
Furthermore, the linear approximation given by Eq. (4) is the equation of the tangent line itself. From
the graphical representation, it should be clear that the linear approximation improves as the deviation
in h becomes smaller.
(1)
A balance on tank 2 gives
(2)
The flow-head relationships for the two linear resistances are given by the expressions
(3)
(4)
Steady state balance around tank 1 gives
qs – q1s = 0 (5)
q1s – q2s = 0 (6)
Subtracting (5) from (1) and using (3) gives
(7)
Subtracting (6) from (2) and using (4) gives
(8)
Introducing deviation variables, Q1 = q1 – q1s, Q = q - qs, and τ1= R1A1
(9)
(10)
Taking Laplace transform of Eqns (9) and (10) gives
(11)
(12)
where H2 = h2 - h2s, and τ2 = R2A2
The overall transfer function H2(s)/Q(s) can be obtained by multiplying Eqs. (11) and (12) to eliminate
Q 1(S):
(13)
Generalization for several Non-interacting systems in series:
The overall transfer function of Eq. (13) is the product of two first-order transfer functions, each one of
which is the transfer function of a single tank operating independently of the other.
We may now generalize by considering n non-interacting first-order systems as represented by the block
diagram of Fig.
To obtain the overall transfer function, we simply multiply together the individual transfer functions;
thus
Interacting system:
The flow through R1 depends on the difference between h1 and h2.
The analysis is started by writing mass balances on the tanks as was done for the non-interacting case.
The balances on tanks 1 and 2 are the same as before and are given by Eqs. (1) and (2). However, the
flow-head relationship for tank 1 is now
(14)
The flow-head relationship for R2 is the same as before and is expressed by Eq. (4).
At steady state, Eqs. (1) and (2) can be written
qs – q1s = 0 (15)
q1s – q2s = 0 (16)
Subtracting Eq. (15) from Eq. (1) and Eq. (16) from Eq. (2) and introducing deviation variables give
(17)
(18)
Where,
Q1 = q1 – q1s,
Q = q – qs,
Q2 = q2 – q2s,
H1 = h1 – h1s,
H2 = h2 - h2s,
Expressing Eqs. (14) and (4) in terms of deviation variables gives
(19)
(20)
Transforming Eqs. (17) through (20) gives
Q(s) – Q1(s) = A1sH1(s) (21)
Q1(s) – Q2(s) = A2sH2(s) (22)
R1Q1(s) = H1(s) - H2(s) (23)
R2Q2(s) = H2(s) (24)
Substituting Eq (24) in Eq (22) gives
(25)
Substituting Eqs (23) and (25) in Eq (21) gives
The above equation can be simplified to produce the desired transfer function for the interacting
system.
(26)
The term interacting is often referred to as loading. The second tank of [Link] said to load the first
tank.
Second Order
Transfer Function for Damped vibrator
A block of mass ‗W‗ resting on a horizontal, frictionless table is attached to a linear spring. A viscous
damper (dashpot) is also attached to the block.
Assume that the system is free to oscillate horizontally under the influence of a forcing function F(t).
The origin of the coordinate system is taken as the right edge of the block when the spring is in the
relaxed or un-stretched condition. At time zero, the block is assumed to be at rest at this origin.
the right of Y = 0 and when it is moving toward the
right (positive direction).
Under these conditions, the position Y and the velocity dF/dt are both positive.
At this particular instant, the following forces are acting on the block:
The force exerted by the spring (toward the left) of -KY where K is a positive constant, called Hooke‗s
constant.
The viscous friction force (acting to the left) of -C dY/dt, where C is a positive constant called the
damping coefficient.
The external force F(t) (acting toward the right).
(1)
(2)
Where W= mass of block lbm,
gc = 32.2 (lbm)(ft)/(lbf)(sec2)
(3)
(4)
(5)
(6)
(7)
(8)
(9)
If the block is motionless (dY/dt = 0) and located at its rest position (Y= 0) before the forcing function
is applied , The laplce transform of eq.4 becomes
(11)
(13)
The process response will grossly depend upon the value of ξ and there can be three distinguished cases
of ξ, i.e. ξ >1; ξ = 1 and ξ <1 .
Case A: ξ = 1
In this case the process response equation in the Laplace domain takes the following form:
(14)
(15)
(16)
or
(17)
For ξ ≠ 1, using the following:
(18)
(19)
In the above equations, the following trigonometric identities have been used:
and .
Hence we get the final expression for process response when ξ >1,
(20)
Case C:
(21
)
In the above equations, the following trigonometric identities have been used:
(22)
(23)
One can also use the following trigonometric identity for the above expression:
(24)
Hence,
(25
)
Hence we get the final expression for process response for ξ < 1,
(26)
(28)
Hence,
(30)
For
(31)
Hence,
(32)
Overshoot : The slope at every zenith and nadir of the oscillation would be zero. The first zenith
indicates the value of . The first zenith appears after a time of . Hence,
(102)
and
(103)
Hence,
(104)
and,
(105)
Decay Ratio : The second zenith indicates the values of and that appears at a time .
(106)
Hence,
(107)
and,
(108)
Hence,
(109)
Problem 1
Derive the transfer function H/Q for the liquid level system shown below; [H and Q are the deviation
variables in h (m) and q (m3/min) respectively, Area A = 0.75m2].
Writing the material balance for the given liquid level system, we get
q = h [(1/R1) + (1/R2)] + A (dh/dt) ------------ (1)
At steady state, equation (1) becomes
53 Department of Chemical Engineering
UCH2504 Process Instrumentation, Dynamics And Control
Problem 2
A liquid level process is operating at steady state and the input to the tank is 10m3/min. At t = 0, 1m3 of
water is added suddenly (unit impulse) to the tank; at t = 1, 2m3 of water is added suddenly to the tank.
The resistance (R) at the exit is 0.5 and the time constant, = 1. Plot the response of the level in the
tank and determine the level at t = 0.5, 1 and 1.5
Ans.
Given, Liquid level process (first order) – subjected to two different impulse input at the time interval
of 1 min.
Steady flow rate, qs = qo s = 10 m3/min
Resistance, R = 0.5 min/m2 and
Time constant, = 1 min
We know, the transfer function for a first order liquid level system is
H(s)/Q(s) = R/( s + 1)
Sub. the given data‗s into the above, we get
H(s)/Q(s) = 0.5/(s + 1) ----------- (1)
➢ At t = 0, Q(t) = 1 (impulse) or Q(s) = 1 ----------- (2)
Now, plot the graph between h(t) and ‗t‘. Note: the bold numbers in the tabular column indicates the
answer for the second part.
Problem 3
A process of unknown transfer function is subjected to a unit-impulse input. The output of the process
is measured accurately and is found to be represented by the function y(t) = t e-t. Determine the unit
step response of the process.
Given, Unknown transfer function – subjected to unit-impulse input.
The output of the process is Y(t) = t e-t
We know, the unit-impulse input is
X(t) = 1 or
X(s) = 1
Taking Laplace inverse on the given output, we get
Y(s) = 1/(s + 1)2
From the above, we get the transfer function as
Y(s)/X(s) = 1/(s + 1)2
Now, we know the unit step input is
X(t) = 1 or X(s) = 1/s
Substituting this X(s) into the above transfer function, we get
Y(s) = 1/[s (s + 1)2]
By partial fraction technique, the above equation becomes
Y(s) = (1/s) – [1/(s + 1)] – [1/(s + 1)2]
Taking Laplace inverse on both sides, we get Y(t) = 1 – e-t – t e-t = 1 – (1 + t) e-t
Problem 4
A step change of magnitude 4 is introduced into the system having the transfer function;
Determine (i) Percent overshoot (ii) Decay ratio (iii) Period of oscillation (iv) Rise time and (v) Settling
time.
Ans:
G(s) = Y(s)/X(s) = 10/(s2 + 1.6s + 4)
Writing the given second order transfer function in its standard form as
Y(s)/X(s) = 2.5/[0.25s2 + 0.4s + 1] --------- (1)
On comparing equation (1) with the standard second order transfer function,
we get 2 = 0.25 or = 0.5
And 2 ξ = 0.4 or ξ = 0.4/2 = 0.4/(2*0.5) = 0.4 or ξ < 1
Therefore, the given second order system is under damped.
(i) Overshoot = exp [(-π ξ)/√(1 – ξ2)]
Sub. overshoot = 0.2538 into the above, we get Decay ratio = 0.0644
(iii)Period of oscillation, T = 2π/ω = (2 π )/√(1 – ξ2)
Sub. = 0.5 and ξ = 0.4 into the above, we get T = 3.4278 time/cycle
(iv) Rise time, tr = (π – φ)/ω
Where, ω = √(1 – ξ2)/ and φ = tan-1[√(1 – ξ2)/ξ] Sub. = 0.5 and ξ = 0.4 into the above, we get ω =
1.833 rad/min and φ = 1.1593 rad
Then, Rise time, tr = 1.0815 Now,
Given (step input) X(t) = 4 or
X(s) = 4/s----------- (2) Sub. equation (2)
into (1), we get
Y(s) = 10/[s (0.25s2 + 0.4s + 1)]
Where Ultimate value, Yult = 10
We know, the step response of an under damped second order system is
Y(t) = Yult {1 – [e- ξt//√(1 – ξ2)] sin(ωt + φ)}
Sub. the known values into the above, we get
Y(t) = 10 {1 – [(1.0911 e-0.8t) sin(1.833t+1.1593)]} ----------- (3)
(v) Response time (tR): It is the time requires for the response to come within ± 5 percent of its
ultimate value and remain there.
At t = tR, Y(t) = 0.95 Yult = 0.95 * 10 = 9.5 ----------- (4)
Sub. equation (4) into equation (3), we get e-0.8tR sin(1.833t+1.1593) = 0.04583
This on solving by trial and error method gives tR ≈ 3.8