Professional Documents
Culture Documents
dy
a1 a0 y b f t .
dt
If a0 0 , then:
a1 dy b dy
y f t p y K p f t
a0 dt a0 dt
ys Kp
s 1 y s K f s
p p Gs
f s
p s 1
This transfer function is referred to as 1st order lag, linear lag, or exponential transfer lag.
dy dy b dy
a1 bf t f t K p f t .
dt dt a1 dt
ys K p
sy s K p f s G s .
f s s
Kp K p
f s ys f s ys
p s 1 s
1st Order lag Pure Integrator
mCˆ p dT mCˆ p dT
Ta T T Ta
hA dt hA dt
mCˆ p
p
hA
Kp 1
F0, 0
h1, A1
F1, 1
d 1 Ah dh
0F0 1F1 A F0 F1 .
dt dt
John Jechura (jjechura@mines.edu) -2- © Copyright 2017
April 23, 2017
Colorado School of Mines CHEN403 1st Order Systems
dh h dh
A F0 AR h RF0 .
dt R dt
p AR
Kp R
However, if the flowrate out is controlled separately from the level in the tank, e.g., with a
pump, then:
dh dh F0 F1
A F0 F1 .
dt dt A
f t F0 F1
1
K p .
A
K p
Kp p Kp
ys Gs f s y t
t / p
e
p s 1 1 p
s
p
If pure integrator:
K p'
ys Gs f s y t K p'
s
Kp 1 p
ys Gs f s K p
p s 1 s s s 1
p
1 1
K p
s 1
s
p
y t K p 1 e
t / p
.
Notice that K p is the fraction of the value of the input disturbance that will show up on the
output signal. Also notice that the slope is:
dy K p t / p dy K p
e
dt p dt t 0 p
If the system would maintain its initial rate of change, then it would achieve it ultimate
value in one time constant, i.e., when t p . In reality, the final value is reached in an
exponential decay manner — in reality, it takes about 4 p to reach the ultimate value
(when y 0.98K p ).
1.0
0.9
0.8
0.7
0.6
y/Kp 0.5
0.4
0.3
0.2
0.1
0.0
0 1 2 3 4 5 6 7
t/p
If pure integrator:
K p K p
ys Gs f s 2 y t K p t
s s s
This shows the integrating nature of this type of 1st order process.
m Kp 1 p 2p
ys Gs f s mK p 2
p s 1 s 2 s s p s 1
y t mK p t p pe
t / p
.
At large times, then:
y t mK p t p
Again, K p is the fraction of the value of the input disturbance that will show up on the
output signal. Now p represents a time offset — how far behind the output signal lags
behind the input signal.
K p 2p
Kp 1 p s
ys Gs f s
p s 1 s 2 2 1 2p 2 p s 1 s 2 2
K p t / p 1
y t 2 2 p
e sin t p cos t
1 p
p K p t / p K p p K p
y t e sin t cos t
1 p
2 2
1 p
2 2
1 2p2
where: r p2 q2
p
tan
q
2 2
p K p K p K p 1 2p 2 K p
r
1 1
2 2 2 2
1 p
2 2
1 2p 2
p p
p K p
1 2p 2
tan p tan 1 p
K p
1 2p 2
and:
p K p K p
y t sin t tan 1 p
t / p
e
1 2
p
2
1
2
p
2
K p
y t sin t tan 1 p
1 2
p
2
Again, K p represents part of the fraction of the value of the input disturbance that will
show up on the output signal. p also plays are a part in the gain, but, more importantly,
represents a time offset that manifests itself as a phase angle lag (lag because the angel is
subtracted from the input signal). At most, even with very large p values, the output can
lag by no more than 90°.
Kp
y t
t / p
e
p
K p 1
ln y ln t
p p
Using linear regression of ln y vs. t data, the slope will be 1/ p and the intercept will
be ln K p / p .
y t K p 1 e
t / p
with the initial slope of:
dy K p
dt t 0 p
One would get the gain from the ultimate value, K p y / ; however, this requires that
you take data long enough to be confident of the ultimate value, y . You could then get the
initial slope & determine the time constant:
K p
p
dy / dt t 0
However, then numerical determination of the derivative from data is inherently difficult.
You could also put this equation into “linear form:”
y 1
ln 1 t
K p
p
and linear regression can again be used. The difficulty now is that the form of the
independent variable, ln 1 y / K p , includes one of the variables to be determined, K p .
There are two ways this could be handled:
1. Adjust the value of K p until the intercept from the linear regression is zero.
2. Do the regression by forcing the intercept to be zero & adjust K p to maximize the
regression coefficient, r 2 .
The following table shows the response of a tank when the flow rate is increased from 2
ft³/min to 3 ft³/min. Using deviation variables, the value of will be 3 2 1 ft³/min .
min ft min ft
0 0.0 10 1.8
1 0.2 20 3.2
2 0.4 30 4.3
3 0.6 40 5.2
4 0.8 50 5.5
5 0.9 60 6.0
6 1.1 70 6.7
7 1.4 80 7.0
8 1.5 90 7.1
9 1.6
Doing linear regression with the linear form and allowing an intercept, a value of
K p 7.92 min/ft² gives an intercept of zero; the corresponding slope gives p 39.0 min .
Doing linear regression with the linear form and not allowing an intercept, a value of
K p 8.05 min/ft² gives an intercept of zero; the corresponding slope gives p 41.0 min .
Note that the values were generated with random perturbations added to a linear model
with K p 8 min/ft² and p 40 min . The following chart shows the
8.0
7.0
6.0
5.0
h (ft) 4.0
3.0
2.0
1.0
0.0
0 10 20 30 40 50 60 70 80 90
t (min)
Linearization
Not all dynamic systems are described by linear ODEs — in truth, probably none of the
systems are really linear. To use transfer functions & Laplace transforms, however, we
must linearize the system of equations. We have already looked at an example of this with
flow through a valve. If the flow through a valve is considered to be proportional to h ,
then the material balance around a tank containing a fluid of constant density is described
by:
dV
F0 F1 F0 Cv h
dt
dh
A F0 Cv h .
dt
We’ve discussed ways to linearize the square root term in this ODE. We can effectively do a
Taylor series expansion by first taking the total differential of the right-hand-side:
C
d F0 Cv h dF0 v dh
2 h
Now, replace the differentials with deviation variables & evaluate any coefficients at the
initial steady state. So:
F C h F 2C h
0 v 0
v
*
h
dh C
A F0 v h
dt 2 h
dh Cv
A h F0
dt 2 h*
2A h* dh 2 h*
h F0 .
Cv dt Cv
From this, we see that the linearized ODE is simply a 1st order ODE with the following gain
and time constant:
2 h*
Kp
Cv
2 A h*
p
Cv
Effectively, we have found that the gain and time constant are not constant, but rather
functions of the liquid level. Whether or not the linearized equation is a good
representation depends upon how far we perturb the system from its steady state value.
For example, given a tank with a cross-sectional area of 5 m² which maintains a level of 16
m when the flow in is 2 m³/min, what happens when we shut off the flow? In the full non-
linear solution:
dh C
F0 v h
dt A
where:
h 0 h* 16 m
F0* 2 m³/min
F0 t 0
then:
h 2
dh C dh Cv t C
h
v dt
A
hss h
dt h h* v t
A0 2A
dh Cv h h
*
dh C
A F0* A v h F0*
dt 2 h * dt 2 h*
Cv F0*
As h
2 h* s
K p F0* 2 h* 2 A h*
h where K p and p
p s 1 s Cv Cv
2F0* h*
So: t /
h F0*K p 1 e p h h*
Cv
1 exp
tCv
2A h
*
The chart below shows the difference in the drainage curve for the two equations. Notice
that the linearized equation stays fairly close to the exact solution for the 1st 8 ft change of
level. Also note that even though the ODE is linearized, it does not predict a straight line
answer — there is still curvature to the final h t result.
18
16
14
12
Exact Solution
Level (m)
10
Linearized Equation
0
0 10 20 30 40 50 60 70 80 90
Time (min)