Download as pdf or txt
Download as pdf or txt
You are on page 1of 5

The Petroleum Institute

Chemical Engineering Department


Process Control CHEG461L/spring 2014

Solved problem Time delay { Mat Lab + Simulink}


Problem 1:Model the system shown below in Simulink for a change of unit step to the function.
Consider the numerator component a time delay function.

2
() = 2
+ 1.2 + 1

1- SIMULINK:

Cl ock

1
s2 +1.2s+1
Step T ransfer Fcn T ransport
Del ay
Y

T o Workspace

1.4

1.2

0.8

0.6

0.4

0.2

0
0 5 10 15

Salah Abu Yahya


2- Mat Lab:

syms s
Gs=1/(s^2+1.2*s+1)
Y=Gs*exp(-2*s)/s
Yt=ilaplace(Y)
ezplot(Yt,[0 15])
grid on

-heaviside(t - 2) (exp(6/5 - (3 t)/5) (cos((4 t)/5 - 8/5) + (3 sin((4 t)/5 - 8/5))/4) - 1)


1.2

0.8

0.6

0.4

0.2

0 5 10 15
t

Salah Abu Yahya


Problem 2:
The liquid-level process shown in the figure below is operating at steady state when the
following disturbance occurs: at time t = 0, 1 ft3 water is added suddenly (unit impulse) to the
tank; at t =1, 2 ft3 of water is added suddenly to the tank. Sketch the response of the level in the
tank versus time and determine the level at t = 0.5, 1, and 1.5.

Solution:
At steady state

0 = 10 = 5

0.5 ()
() = () = =
+ 1 + 1 ()


() =
1 + 2


=1 =2
=0
1

1- Mat lab:

ho=5;
syms s
Gs=0.5/(s+1);
Qis=1+2*exp(-s);
hs=Gs*Qis;
ht=ilaplace(hs)
H=ht+ho
ezplot(H,[0 7])
grid on

Salah Abu Yahya


exp(-t)/2 + heaviside(t - 1) exp(1 - t) + 5

5.9

5.8

5.7

5.6

5.5

5.4

5.3

5.2

5.1

0 1 2 3 4 5 6 7
t

2- SIMULINK:

Salah Abu Yahya


0.5
Pulse s+1 Transport Clock
Generator Transfer Fcn1 Delay1
H
To Workspace

0.5
Pulse s+1
Generator1 Transfer Fcn3 Scope

5
Constant

Salah Abu Yahya

You might also like