Serv - Chula.ac - TH Tarporn 487 HandOut DynamicC
Serv - Chula.ac - TH Tarporn 487 HandOut DynamicC
Serv - Chula.ac - TH Tarporn 487 HandOut DynamicC
Input signal
x(t)
Sensor
or
system
Output signal
y(t)
m
m
1
1
0
1
1
n
n 1
m
m 1
dt
dt
dt
dt
dt
dt
mn
y(t)
x(t)
t
as and bs
Where
y(0)
The solution
x(t)
Measurement
system
y(t)
y (t ) = y ocf + y opi
Complementary-Function Solution
The solution yocf is obtained by calculating the n roots of the algebraic characteristic
equation
Characteristic equation
an D n + an 1 D n 1 + ... + a1 D + a0 = 0
D = s1 , s2 ,..., sn
Complementary-function solution:
Ce st
(C
2
p 1
st
+
C
t
+
C
t
+
...
+
C
t
e
)
0
1
2
p 1
Ce at sin(bt + )
[C0 sin(bt + 0 ) + C1t sin(bt + 1 ) + C2t 2 sin(bt + 2 )
Particular Solution
Method of undetermined coefficients:
y opi = Af (t ) + B f (t ) + C f (t ) + ...
Where f(t)
= the function that describes input quantity
A, B, C = constant which can be found by substituting yopi into ODEs
Important Notes
Zero-order Systems
All the as and bs other than a0 and b0 are zero.
y (t ) = Kx (t )
a0 y (t ) = b0 x(t )
xm
Vr
+
x=0
y=V
-
x
here, K = Vr / xm
V = Vr
xm
Where 0 x xm and Vr is a reference voltage
First-Order Systems
All the as and bs other than a1, a0 and b0 are zero.
a1
dy (t )
+ a 0 y (t ) = b0 x (t )
dt
dy (t )
+ y (t ) = Kx (t )
dt
y
K
(D) =
x
D + 1
First-Order Systems
Surface
area A
Ti
Sensor
m, Ttf, C
VC
Thermometer based on a mass,m with
specified heat, C
dTtf
dt
+ UATtf = UATi
dTif
dt
+ Tif = Ti
dy (t )
+ y (t ) = KAU (t )
dt
y (t ) = Ce t / + KA
U(t)
yocf
Transient
response
yopi
Steady state
response
-1
2
Time, t
y (t ) = KA + ( y0 KA)e t /
1.0
1.0
.8
.8
Error fraction, em
em (t ) =
0.632
.6
y (t ) y0
= 1 e t /
KA y0
.4
.6
.4
0.368
.2
.2
0.0
y (t ) KA
= e t /
y (0) KA
3
t/
0.0
3
t/
ln em = 2.3 log em =
1
y (t ) KA
= e t /
y (0) KA
0.368
Error fraction, em
em =
.1
Slope = -1/
.01
.001
3
t
Therefore
The complete solution:
t0
0
x(t ) =
q&is t t > 0
dy (t )
+ y (t ) = Kq&is tU (t )
dt
y (t ) = Ce t / + Kq&is (t )
Transient Steady state
response response
em = x(t )
y (t ) = Kq&is (e t / + t )
y (t )
= q&ise t / + q&is
K
Transient
error
Steady
state error
Input x(t)
y(t)/K
Steady state
time lag =
Steady state
error = q&is
2
0
10
t/
dy
+ y = KA sin t
dt
(D + 1) y(t ) = KA sin t
y (t ) = Ce t / +
KA
1 + ( )
Transient
response
sin t tan 1
Steady state
response
)
Frequency
response
If we do interest in only steady state response of the system, we can write the
equation in general form
y (t ) = Ce t / + B( ) sin[t + ( )]
B( ) =
KA
[1 + ( ) ]
2 1/ 2
( ) = tan 1
Where B() = amplitude of the steady state response and () = phase shift
( ) 2 + 1
-2
-3 dB
.6
-4
.4
-6
-8
-10
Cutoff frequency
.1
-20
1
10
100
-20
Phase shift, ()
.8
0.707
( ) = tan 1 ( )
-10
Decibels (dB)
0.0
.01
1.0
.2
Dynamic error
1.2
Amplitude ratio
M ( ) =
B
1
=
KA 1 + ( )2 1/ 2
-30
-40
-50
-60
-70
-80
-90
.01
.1
10
100
x(t)
y(t)/K
K
21.8o = 0.93K 21.8o
0.16 + 1
K
76o = 0.24 K 76o
16 + 1
Second-Order Systems
In general, a second-order measurement system subjected to arbitrary input, x(t)
2
a2
d y (t )
dy (t )
+
+ a0 y (t ) = b0 x(t )
a
1
2
dt
dt
D 2 2
2 +
D + 1 y (t ) = Kx(t )
n n
1 d 2 y (t ) 2 dy (t )
+
+ y (t ) = Kx(t )
2
2
n dt
n dt
The essential parameters
K=
b0
a0
a1
2 a0 a2
n =
a0
a2
Second-Order Systems
Consider the characteristic equation
1 2 2
D +
D +1 = 0
2
n
n
This quadratic equation has two roots:
S1, 2 = n n 2 1
yoc (t ) = C1e
yoc (t ) = Ce nt sin n 1 2 t +
+ C2 e
2 1 t
Second-Order Systems
Case I Underdamped (< 1):
yHtL
S1, 2 = n n 2 1
S1, 2 = 2 1 n
= jd
Ae
S1, 2 = n
sin(d t + )
yHtL
=1
>1
t
Second-order Systems
Example: The force-measuring spring
consider a spring with spring constant Ks under applied force fi
and the total mass M. At start, the scale is adjusted so that xo = 0
when fi = 0;
forces=(mass)(acceleration)
dxo
d 2 xo
fi B
K s xo = M
dt
dt 2
( MD 2 + BD + K s ) xo = f i
the second-order model:
K=
1
Ks
m/N
Ks
rad/s
M
B
=
2 Ks M
n =
D 2 2
2 +
D + 1 y (t ) = KAU (t )
n n
1 d 2 y 2 dy
+
+ y = KAU (t )
2
2
n dt
n dt
+ 2 1 +
y (t )
=
e
2
KA
2 1
y (t )
= (1 + nt )e nt + 1
KA
y (t )
e nt
=
sin 1 2 nt + + 1
KA
1 2
2 1 n t
2 1
2 1
2
2 1 t
+1
= sin 1 1 2
2.0
Ringing frequency:
=0
0.25
1.5
d = n 1 2
0.5
1.0
.5
1.0
2.0
0.0
Td =
10
nt
overshoot
1.2
100% 5%
1.0
.8
.6
.4
settling
time
.2
0.0
rise time
10
15
Time, t (s)
Typical response of the 2nd order system
20
1 d 2 y 2 dy
+
+ y = Kq&is tU (t )
2
2
n dt
n dt
2q&is
y (t )
= q&is t
n
K
2 2 1 2 2 1
1 +
e
4 2 1
Critically damped:
Underdamped:
2q&
y (t )
= q&is t is
n
K
2q&is
y (t )
= q&is t
K
n
2 2 + 1 2 2 1
4 1
2
2 1 n t
+ 2 1 t
nt nt
1
(
1
)e
e nt
sin 1 2 nt +
1
2 1 2
2 1 2
= tan
2 2 1
1
10
8
6
4
= 0.3
1.0
2.0
0
Steady state
time lag = 2
Ramp input
2q&is
0.6
10
Time, t (s)
{[
where
( ) = tan 1
2
/ n n /
B( ) =
KA
{[1 ( / ) ] + (2 / ) }
2 2
1/ 2
( ) = tan 1
2
/ n n /
Where B() = amplitude of the steady state response and () = phase shift
M ( ) =
B
1
=
KA 1 ( / )2 2 + (2 / )2 1/ 2
n
n
{[
( ) = tan 1
{[1 ( / ) ] + (2 / ) }
2 2
1/ 2
2
/ n n /
0.3
1.5
0.5
1.0
.5
3
0
-3
-6
-10
-15
1.0
2.0
0.0
.01
.1
1
/n
10
100
0 = 0.1
-20
Phase shift, ()
= 0.1
Decibel (dB)
Amplitude ratio
2.0
0.3
-40
-60
-80
0.5
1.0
2.0
-100
-120
-140
-160
-180
.01
.1
1
/n
10
100
Second-order Systems
For overdamped ( >1) or critical damped ( = 1), there is neither overshoot nor steadystate dynamic error in the response.
In an underdameped system ( < 1) the steady-state dynamic error is zero, but the speed
and overshoot in the transient are related.
1.4
arctan( d / )
Rise time:
tr =
Maximum
overshoot:
M p = exp / 1 2
Peak time:
tp =
Resonance
frequency:
r = n 1 2 2
Resonance
amplitude:
Mr =
1
2
1.2
2 1
Td
overshoot
1.0
.8
peak
time
.6
.4
settling
time
.2
rise time
0.0
10
Time, t (s)
15
20
Dynamic Characteristics
Speed of response: indicates how fast the sensor (measurement system) reacts
to changes in the input variable. (Step input)
Rise time: the length of time it takes the output to reach 90% of full response when
a step is applied to the input
Time constant: (1st order system) the time for the output to change by 63.2% of its
maximum possible change.
Settling time: the time it takes from the application of the input step until the output
has settled within a specific band of the final value.
Transfer Function: a simple, concise and complete way of describing the sensor
or system performance
H(s) = Y(s)/X(s)
where Y(s) and X(s) are the Laplace Transforms of the input and output respectively.
Sometimes, the transfer function is displayed graphically as magnitude and phase
plots VS frequency (Bode plot).
Dynamic Characteristics
Frequency Response describe how the ratio of output and input changes
with the input frequency. (sinusoidal input)
Bandwidth the frequency band over which M() 0.707 (-3 dB in decibel unit)
Cutoff frequency: the frequency at which the system response has fallen to
0.707 (-3 dB) of the stable low frequency.
tr
0.35
fc
Dynamic Characteristics
Example: A first order instrument is to measure signals with frequency content up to 100 Hz with
an inaccuracy of 5%. What is the maximum allowable time constant? What will be the phase shift
at 50 and 100 Hz?
Solution: Define
M ( ) =
2 2 + 1
1 100%
Dynamic error = (M ( ) 1) 100% =
2 2
+1
1
0
.
95
1.05
From the condition |Dynamic error| < 5%, it implies that
2 2
+1
But for the first order system, the term 1 / 2 2 + 1 can not be greater than 1 so that the
constrain becomes
1
0.95
+1
0 0.33
2 2
The largest allowable time constant for the input frequency 100 Hz is =
The phase shift at 50 and 100 Hz can be found from
= arctan
0.33
= 0.52 ms
2 100 Hz
Dynamic Characteristics
1.05
0.95
Dynamic Characteristics
Example: A temperature measuring system, with a time constant 2 s, is used to
measured temperature of a heating medium, which changes sinusoidal between 350
and 300oC with a periodic of 20 s. find the maximum and minimum values of
temperature, as indicated by the measuring system and the time lag between the output
and input signals
2
Solution: y (t ) = 325 + 21.2 sin( t 0.56) o C
60
x(t), y(t)
x(t)
350oC
350oC
325oC
325oC
300oC
300oC
TL
Dynamic Characteristics
Example: The approximate time constant of a thermometer is determined by immersing
it in a bath and noting the time it takes to reach 63% of the final reading. If the result is
28 s, determine the delay when measuring the temperature of a bath that is periodically
changing 2 times per minute.
t d = 6.7s
Dynamic Characteristics
Example: A pressure transducer has a natural frequency of 30 rad/s, damping ratio of
0.1 and static sensitivity of 1.0 V/Pa. A step pressure input of 8x105 N/m2 is applied.
Determine the output of a transducer.
Solution:
Dynamic Characteristics
Example: An Accelerometer is to selected to measure a time-dependent motion. In particular,
input signal frequencies below 100 Hz are of prime interest. Select a set of acceptable parameter
specifications for the instrument, assuming a dynamic error of 5% and damping ratio =0.7
n 1047 rad/s
Solution:
1.05
0.95
/ n
1.05
0.95
/ n
y (t ) = KA0 +
n =1
xHt L
x(t)
Linear
system
y(t)
|KM()|
|x()|
|Y()|
0
n
20 30 40 50
20 30 40 50
Y()
1
Qo (i ) =
n =1 n
+1
-0.02
-0.01
0.01
0.02
t, sec
-1
1
qo (t ) =
n =1 n
qoH tL
n=7
n=5
n=3
0.5
0.01
-1
n
2
( n o ) + 1
1
sin(n ot + n ) and n
2
( n o ) + 1
= arctan(n o )
qoH tL
-0.5
0.02
0.03
0.04
n = 25
0.5
0.01
-0.5
-1
0.02
0.03
0.04