Professional Documents
Culture Documents
1
1. Step Input
0 t0 M
us (t ) Us s
M t 0 s
3
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:
0 t 0 a
uR t UR s
at t 0 s2
Ramp a setpoint to a new value. (Why not make a step change?)
XRP
0 for t 0 h
u RP t h for 0 t t w
0 for t tw Tw Time, t 0
h
U RP s (1 e-tw s )
s
Examples:
M
Us s
s
a
UR s
s2
h
U RP s (1 e-tw s )
s
6
4. Sinusoidal Input
0 for t 0 A
usin t U sin s
A sin t for t 0 s2 2
Examples:
7
5. Impulse Input
• Here, u I t t
• It represents a short, transient disturbance.
Examples:
M
u t M for t 0 U s
s
Substitute into (1) and rearrange,
KM
Y s (2)
s τs 1
9
Take L-1,
y t KM 1 e t /τ
Let y = steady-state value of y(t).
From the previous equ. y KM .
y
Large τ means
a slow
response
10
Representing First-Order Systems in MATLAB
>> K=1;
>> M=2;
>> tau=0.1;
>> g=tf(K*M, [tau 1])
Transfer function:
2
---------
0.1 s + 1
>> step(g)
11
Integrating Process
Not all processes have a steady-state gain. For example, an
“integrating process” or “integrator” has the transfer function:
Y s K
K constant
U s s
KM L-1
Y s 2
y t KMt
s
Thus, y(t) is unbounded and a new steady-state value does not
exist.
g=tf(K*M, [ 1 0 0])
12
Common Physical Example:
Consider a liquid storage tank with a pump on the exit line:
- Assume:
1. Constant cross-sectional area, A.
2. q f h
dh
- Mass balance: A qi q (1) 0 qi q (2)
dt
- Eq. (1) – Eq. (2), take L, assume steady state initially,
H s
1
Qi s Q s H s 1
As
Qi s As
1
- For Q (constant q),
s 0 H
s Qi s
As 13
Second-Order Systems
• Standard form:
Y s K
U s τ 2s 2 2ζτs 1
Y s K n2 1
where natural frequency
U s
n
s 2 2ζn s n2 τ
14
• The type of behavior that occurs depends on the numerical
value of damping coefficient, ζ :
It is convenient to consider three types of behavior:
Damping Type of Response Roots of Characteristic
Coefficient Polynomial
ζ 1 Overdamped Real and ≠
ζ 1 Critically damped Real and =
Underdamped Complex conjugates (with
0 ζ 1
negative real parts)
ζ0 Critically stable Complex (0 real parts)
Complex conjugates (with
ζ0 Unstable positive real parts)
16
The response of the system y(t) can be
found by inverting this equation. The
roots sa and sb will be real or complex
depending on value of the parameter .
The nature of the roots will, in turn,
affect the form of y(t).
overdampd
SIMULINK simulation
18
General Remarks
19
Performance characteristics for the step response of
an underdamped process
Overshoot: OS = a/b P
Settling Time: ts
Period of Oscillation: P tr tp ts
20
Terms Used to Describe an Underdamped System
1. Rise Time: tr is the time the process output takes to first reach the new
steady-state value. Some textbooks have another definition: the time the
process output takes to rise from 10% to 90% of the step size.
2. Time to First Peak: tp is the time required for the output to reach its first
maximum value.
3. Settling Time: ts is defined as the time required for the process output to
reach and remain inside a band whose width is equal to ±5% of the total
change in y. The term 95% response time sometimes is used to refer to this
case. Also, values of ±1 and ±2% sometimes are used.
4. Overshoot: OS = a/b (% overshoot is 100a/b).
5. Decay Ratio: DR = c/a (where c is the height of the second peak).
6. Period of Oscillation: P is the time between two successive peaks or two
successive valleys of the response.
21
Analytical expressions can be developed for some of the TF
Characteristics, examples are:
Overshoot (OS):
22
Example
COOLANT OUT Product
TT T
TC
REACTANT, FO
COOLANT IN,
F C , TC
102.5C
P
a 102.03C
y T
K c New SS
102C
u Fo
102 100
C
20 b
0.5 0.4 kg / s
Initial SS
100C
0 1000 3060 time (s)
24
Example
(b) The operator notes that the resulting response is slightly oscillatory with
maxima estimated to be 102.5 and 102.03 °C occurring at times 1000
and 3060 s after the change is initiated. What is the complete process
transfer function?
2
ln OS
2
2 ln OS
102.5 102
OS 0.25
102 100
0.4037 0.4
1 2
P 2 / 1 2 P
2
P 3060 1000 2060 s
300 s
T s K 20
Hence the process TF is:
Fo s 2 2
τ s 2ζτs 1 90000s 2 240s 1
25
Example
(c) The operator failed to note the rise time. Predict tr , based on the results in
(a) and (b).
-t / 1 - 2 1 - 2
Using the time domain y(t ) KM 1 - e cos t sin t
1 - 2
solution for the
underdamped case (0<<1),
-t / 1 - 2 1 - 2
0e cos t sin t
setting y(tr)=KM, then the 1 - 2
bracketed quantity will be
equal to zero at t=tr: 1 2 1 2
0 cos tr sin tr
1 2
Solving for the rise time we get:
tr cos 1
syms tr1 1 2
z=0.4; tau=300;
f=cos((sqrt(1-z^2)/tau)*tr1)+(z/sqrt(1-z^2))*sin((sqrt(1-z^2)/tau)*tr1);
tr=double(solve(f==0,tr1))
>> K=1;
>> M=2;
>> tau=0.1;
>> zeta=0.5;
>> g=tf(K*M, [tau^2 2*zeta*tau 1])
Transfer function:
2
--------------------
0.01 s^2 + 0.1 s + 1
>> step(g)
27
Effect of varying (
K=1; M=2; tau=0.01;
ζ)
zeta=0.1; g1=tf(K*M, [tau^2 2*tau*zeta 1]);
zeta=0.5; g2=tf(K*M, [tau^2 2*tau*zeta 1]);
zeta=1; g3=tf(K*M, [tau^2 2*tau*zeta 1]);
zeta=3; g4=tf(K*M, [tau^2 2*tau*zeta 1]);
step(g1,g2,g3,g4)
OR
K=1; M=2; tau=0.01;
for zeta=[0.1 0.5 1 3]
g=tf(K*M, [tau^2 2*tau*zeta 1]);
step(g); hold on
end
Effect of varying ( )
K=1; M=2; zeta=1;
tau=0.1; g1=tf(K*M, [tau^2 2*tau*zeta 1]);
tau=0.2; g2=tf(K*M, [tau^2 2*tau*zeta 1]);
tau=0.3; g3=tf(K*M, [tau^2 2*tau*zeta 1]);
tau=0.4; g4=tf(K*M, [tau^2 2*tau*zeta 1]);
step(g1,g2,g3,g4)
OR
K=1; M=2; zeta=1;
for tau=[0.1 0.2 0.3 0.4]
g=tf(K*M, [tau^2 2*tau*zeta 1]);
step(g); hold on
end
28
Response of two interacting tanks
Y s K
U s τ 2s 2 2ζτs 1