Beruflich Dokumente
Kultur Dokumente
Class 4
1st Order Systems
1st Order Systems
dx
x f t
dt
x 0 xo
dx
x f t
dt
x 0 xo
Step Input f ( t ) K s us t
Ramp Input f (t ) K r tus t
Harmonic Input f (t ) K h cos t
1st Order Systems with Step Input
dx
x K su t
2
dt u(t)
x 0 xo 1
0, t 0
u t 0
-1 0 1 2
1, t 0
Time, t
1st Order Systems with Step Input
Solution by Integration
dx
x t
x Ks dx
dt x K s x 0 dt
x 0 xo
o
u K s x, du dx
u t
du
dt ,
dx u 0
Ks x uo
dt u u
dx ln t , ln t
dt uo uo
Ks x
Ks x x Ks
x t e t Error Ratio
dx K s xo xo K s
x K s x 0 dt x t K s xo K s e t
o
1st Order Systems with Step Input
Error Ratio and Excitation Ratio
1
Error: 0.8
Excitation Ratio
Output deviation from input
0.6
0.4
Excitation:
Error Ratio
Output deviation from its initial value 0.2
time, t
0
0 1 2 3 4 5
K x
rex 1 s 1 rerr 1 e t
K s xo
1st Order Systems with Step Input
Solution by Superposition
Assume a solution of the form
dx x t xh t x p t
x Ks
dt where
x 0 xo x h xh 0
and
x p x p K s Solution of the particular equation
x p x p K s
For the homogenoeu s ODE is found by observatio n
x h xh 0 xp t Ks
Assume The complete solution is thereofore
x h t Ce rt x h t rCe rt x t x p t xh t K s Ce t
Substituti ng into homogeneou s ODE To satisfy the initial condition,
x h xh 0,rCe Ce 0, r 1 Ce 0
rt rt rt
x 0 K s C xo , C xo K s
r 1, r 1 xh t Ce t
x t K s xo K s e t
1st Order Systems with Step Input
Solution by Laplace Transform
s K s xo
dx X ( s ) xo
x Ks s s 1
dt A B
x 0 xo X ( s ) xo
s s 1
Ks
sX ( s ) xo X ( s ) s K s xo
A s 0 K s xo
s s s 1 s 0
Ks
sX ( s ) X ( s ) xo s K s xo
B s 1
s s s 1
s1
K sxo
X ( s )s 1 s B
1 K s xo
1 K s xo
s 1
K sxo
X ( s) s K x 1 K s xo
s s 1 X ( s ) xo s o
s s 1
x s K s xo K x Ks
X ( s) o X ( s) s o
s s 1 s s 1
x t K s xo K s e t
1st Order Systems with Unit Step Input and Unit Time Constant
>> num=1;
dx
x f t >> den=[1 1];
dt
x 0 0
>> sys = tf(num,den);
>> step(sys)
sX ( s ) X ( s ) F s 1
>> grid Step Response
X ( s )s 1 F s 0.9
0.8
X ( s) 1
0.7
Transfer Function 0.6
F s s 1
Amplitude
0.5
0.4
0.3
0.2
0.1
0
0 1 2 3 4 5 6
Time (sec)
1st Order Systems with Unit Step Input and Unit Time Constant
dx
x u t
dt
dx 1
u t x
dt
1st Order Systems with Ramp Input
dx
x xo K r tu t tu t
dt
x 0 xo
0, t 0
u t
1, t 0
1st Order Systems with Ramp Input
Solution by Superposition
Solution of the particular equation
Assume a solution of the form x p x p xo K r t
dx
x xo K rt x t xh t x p t Assume a solution of the form
dt
x p t At B , x p t A
x 0 x o
where
x h xh 0 Substitute into the ODE
and A At B xo K r t
x p x p xo K r t A Kr
A B x o ,
For the homogenoeu s ODE B xo A xo K r
x h xh 0 x p t K r t xo
Assume The complete solution is thereofore
xh t Ce rt x h t rCe rt x t x p t x h t xo K r t Ce t
Substituti ng into homogeneou s ODE To satisfy the initial condition,
x h xh 0,rCe Ce 0, r 1 Ce 0
rt rt rt
x 0 x o K r C x o , C K r
r 1, r 1 xh t Ce t x t xo K r t K r e t
x t xo K r t K r 1 e t
1st Order Systems with Ramp Input
Steady State Error and Relative Error
x t xo Krt Kr 1 et
dx
x xo K r tu t
dt
x 0 xo
1
error Input - Output 0.9
error x o K r t x t 0.8
Err r
error K r 1 e t
0.7
e ss lim K r 1 e t
0.4
t
0.3
e ss K r 0.2
Error
Relative error 0.1
Steady State Error t
K r 1 e t
0
0 0.5 1 1.5 2 2.5 3 3.5 4
Errr 1 e t
K r
1st Order Systems with Ramp Input
Relative Input and Relative Excitation
dx
x xo K r tu t 4
dt
x 0 xo
3.5
t
Current Excitation 0
Relative Excitation ex r 0 0.5 1 1.5 2 2.5 3 3.5 4
Steady State Error
K r t K r 1 e t
ex r t 1 e t
K r
1st Order Systems with Ramp Input
Solution by Laplace Transform
dx
x xo K rt, x 0 xo 2 1
s s r
K
dt xo
A s2 2 K x
x K s s 1 r o
sX ( s ) x o X ( s ) o 2r
s s s 0
x K 2 1 K
sX ( s ) X ( s ) o 2r x o s s r
s s d
B s2 2
xo xo K r
xo s 2 xo s K r ds s s 1 xo
X ( s ) s 1
s 0
s2
2 1 K
xo s 2 xo s K r s s r
X (s) xo
s 2 s 1 C s 1 2 K r xo
s s 1
1 K
s2 s r s1
xo K r xo K r K r
X ( s ) xo X ( s)
s 2 s 1 s 2
s s 1
A B C x t K r t xo K r K re t
X ( s ) x o 2
s s s 1 x t xo K r t K r 1 e t
1st Order Systems with Unit Ramp Input and Unit Time Constant
dx
x f t
dt >> num = [0 0 1];
MATLAB does not have a ‘ramp’ command to plot the ramp
x 0 0 >> den = [1 1 0];
sX ( s ) X ( s ) F s
response of the system. However, note that the response, R (s)
st
>> t=0:0.1:5;
of a system with transfer function G(s) to unit step input is R (s) X ( s )s 1 F s
st
X ( s) 1 >> sys = step(num,den,t);
= G(s)/s, and its response to a unit ramp input is R (s) =
G( s)
rmp
F s s 1 >> plot(t,sys,'o',t,t,'-')
G(s)/s2 = (G(s)/s)/s . Thus, the response of G(s) to unit ramp is
G( s) 1 1
equal to the response of H(s) = G(s)/s to unit step. H ( s) 2 >> grid
s s(s 1) s s
3.5
2.5
1.5
0.5
0
0 1 2 3 4 5
1st Order Systems with Unit Step Input and Unit Time Constant
dx
x tu t
dt
dx 1
tu t x
dt
1st Order Systems with Harmonic Input
dx
x K h cos t
dt 0
x 0 0
-1
0 2 4 6 8 10 12
1st Order Systems with Harmonic Input
Solution by Superposition
sin 2 sin cos 2 cos sin 2 cos
cos 2 cos cos 2 sin sin 2 sin
Solution of the particular equation
dx x p x p K h cos( t )
x K h cos t
dt Assume a solution of the form
x 0 0 x p t A cos(t )
Assume a solution of the form x p t A sin(t )
x t xh t x p t x p t A cos( t 2 )
where x h xh 0 and x p x p xo K r t Substitute into the ODE
For the homogenoeus ODE A cos( t 2 ) A cos( t ) K h cos( t )
x h xh 0 From the vector plot
A 2 A K h
2 2
Assume τAω
r 1, r 1 xh t Cet
1st Order Systems with Harmonic Input
Amplitude Ratio and Phase
f(t)
1
dx
x K h cos t
x(t)
dt r
a
x 0 0
0
ϕ
x t A cos(t )
1
2
A Kh -1
tan 1 0 2 4 6 8 10 12
1.5
ϕ (τω)
Output Amplitude r (τω)
AmplitudeRatio ra 1 a
Input Amplitude
1
2
ra A K h 1
Phase tan 1 0.5
0
-2 -1 0 1 2
10 10 10 τω 10 10
1st Order Systems with Harmonic Input
Solution by Complex Exponential
Euler’s Identity
z Aeit z1 A1ei1
A
z = Aeiωt
z Aeit
A Power Rules
it
z* Ae ωt
1
x Re z A cos t z z * z Aei
x
-ωt
2 z n Aei An ein
n
z1 n Aei
1n 1n
A ei n
z* = Ae-iωt
Second Order Systems
In the system shown, the input displacement, x , will
i
cause a deflection in the spring, and some time will be
x x
i o
c
k
Second Order Systems
F mx o x
k xi xo c x i x o mxo
i x
o
c
m c
xo x o xo cx i kxi k
k k
If m/k << 1 s2 and c/k << 1 s, the system may be approximated as a zero order system with unity gain.
If, on the other hand, m/k << 1 s2 , but c/k is not, the system may be approximated by a first order system. Systems with a
storage and dissipative capability but negligible inertial may be modeled using a first-order differential equation.
Example – Automobile Accelerometer
Consider the accelerometer used in seismic and vibration engineering to
attached.
The acceleration of the large body places the piezoelectric crystal into
x x
i
o
c
k
Zero-Order systems
Can we model the system below as a zero-order system? If the mass, stiffness, and damping coefficient satisfy certain
conditions, we may.
x x
i o
c
F mx o
k xi xo c x i x o mxo
k xi xo c x i x o m xi xo mxi
k c m mx i
First Order Systems
Measurement systems that contain storage elements do not respond
example. When the ambient temperature changes, the liquid inside the
bulb will need to store a certain amount of energy in order for it to reach
𝑑𝑥
𝜏 + 𝑥 = 𝐾𝑢(𝑡)
𝑑𝑡
Excitation ratio may also be called response ratio = current response / desired
𝑥ሺ0ሻ = 𝑥0
response
Note that the excitation ratio also represents the system response in case of
change in the input temperature. Find the time needed for the response
𝑥ሺ𝑡ሻ− 𝑥0
= 1 − 𝑒 −𝑡/𝜏 = 0.9
𝐾 − 𝑥0
𝑥ሺ𝑡 ሻ− 𝐾
= 𝑒 −𝑡/𝜏 = 0.1
𝑥0 − 𝐾
𝑡Τ𝜏 = lnሺ10ሻ = 2.3
𝑡 = 2.3 × 𝜏 = 230 𝑠.
≈ 4 minutes
1st Order Systems with Ramp Input
𝑑𝑥
𝜏 + 𝑥 = 𝑥0 + 𝐾𝑟 𝑡𝑢(𝑡)
𝑑𝑡
current excitation
𝑥ሺ0ሻ = 𝑥0 excitation ratio =
desired (input) excitation
𝑥 ሺ𝑡ሻ = 𝑥0 + 𝐾𝑟 𝑡 − 𝐾𝑟 𝜏(1 − 𝑒 −𝑡/𝜏 )
Error = 𝑥ሺ𝑡ሻ− 𝑓ሺ𝑡ሻ= −𝐾𝑟 𝜏(1 − 𝑒 −𝑡/𝜏 ) current deviation from initial value
excitation ratio =
Steady State Error input deviation from initial value
𝑆. 𝑆. 𝐸 = 𝐾𝑟 𝜏
𝑥ሺ𝑡ሻ− 𝑥0
𝐸𝑥𝑐𝑖𝑡𝑎𝑡𝑖𝑜𝑛 𝑅𝑎𝑡𝑖𝑜 =
𝐾𝑟 𝑡
(1 − 𝑒 −𝑡/𝜏 )
𝐸𝑥𝑐𝑖𝑡𝑎𝑡𝑖𝑜𝑛 𝑅𝑎𝑡𝑖𝑜 = 1 −
𝑡 Τ𝜏
Note that using L’Hospital rule
(1 − 𝑒 −𝑡/𝜏 )
lim ቆ1 − ቇ
ሺ𝑡 Τ𝜏 ሻ→0 𝑡 Τ𝜏
൫1 − 𝑒 −𝑡/𝜏 ൯
= lim ሺ1ሻ− lim
ሺ𝑡 Τ𝜏 ሻ→0 ሺ𝑡 Τ𝜏 ሻ→0 𝑡Τ𝜏
𝑒 −𝑡/𝜏
= 1 − lim = 1−1= 0
ሺ𝑡 Τ𝜏 ሻ→0 1
1st Order Systems with Harmonic Input
𝑑𝑥
𝜏 + 𝑥 = 𝐹 cos(ωt)
𝑑𝑡
𝑥 ሺ𝑡ሻ = 𝐶𝑒 −𝑡/𝜏 + 𝑋cos(ωt − φ)
C depends on the initial conditions and the
exponential term will vanish with time. We
are interested in the particular steady
solution 𝑋cos(ωt − φ). Solving for 𝑋 and φ,
we find
𝐹
𝑋=
ඥ1 + ሺ𝜏𝜔ሻ2
φ = tan−1 ሺ𝜏𝜔ሻ
1st Order Systems with Harmonic Input
Define the amplitude ratio 𝐴𝑟 = 𝑋 Τ𝐹 and
the time ratio 𝑇𝑟 = 𝜏Τ𝑇 where 𝑇 = 2𝜋Τ𝜔 is
the period of the excitation function,
𝑋 1 1
𝐴𝑟 = = =
𝐹 ඥ1 + ሺ𝜏𝜔 ሻ2 ඥ1 + 4𝜋 2 𝑇𝑟 2
of the input signal amplitude to the output and with very little
amplitudes, which is seen by the small Ar(ω) , and by large time delays, as evidenced by increasingly nonzero ϕ.
1st Order Systems with Harmonic Input
Any equal product of ω and τ produces
cost.
dB = 20 log Ar(ω)
1st Order Systems with Harmonic Input
The dynamic error,δ(ω), of a system is defined as
δ(ω) = Ar(ω) –1
It is a measure of the inability of a system to adequately reconstruct the amplitude of the input signal for a particular input frequency.
We normally want measurement systems to have an amplitude ratio at or near unity over the anticipated frequency band of the input
As perfect reproduction of the input signal is not possible, some dynamic error is inevitable. We need some way to quantify this. For a
first-order system, we define a frequency bandwidth as the frequency band over which Ar(ω) > 0.707; in terms of the decibel defined as
dB = 20 log Ar(ω)
behave as a simple periodic waveform with a frequency somewhere between 1 and 5 Hz. Sensors of several sizes are available, each
with a known time constant. Based on time constant, select a suitable sensor, assuming that a dynamic error of 2% is acceptable.
Example 2. Solution
A temperature sensor is to be selected to measure ȁ𝛿 ሺωሻȁ ≤ 0.02
temperature within a reaction vessel. It is suspected that the
−0.02 ≤ 𝛿 ሺωሻ ≤ 0.02
temperature will behave as a simple periodic waveform with a
𝜔 = 2𝜋𝑓 = 2𝜋(5)
0 ≤ 2𝜏𝜋(5) ≤ 0.2
𝜏 ≤ 6.4 × 10−3 s.
Example 2. Solution
A temperature sensor is to be selected to measure ȁ𝛿 ሺωሻȁ ≤ 0.02
temperature within a reaction vessel. It is suspected that the
−0.02 ≤ 𝛿 ሺωሻ ≤ 0.02
temperature will behave as a simple periodic waveform with a
𝜔 = 2𝜋𝑓 = 2𝜋(5)
0 ≤ 2𝜏𝜋(5) ≤ 0.2
𝜏 ≤ 6.4 × 10−3 s.
2nd Order Systems
Example:
RLC Circuits
Accelerometers
Mathematical Model:
𝑑2 𝑥 𝑑𝑥
2
+ 2𝜁𝜔𝑛 + 𝜔𝑛 2 𝑥 = 𝑓 ሺ𝑡ሻ
𝑑𝑡 𝑑𝑡
𝜁 Damping ratio (dimensionless)
𝜔𝑛 Natural frequency (1/s)
𝑓 ሺ𝑡ሻ: Input (quantity to be measured)
𝑥: Output (instrument response)
2nd Order Systems with step input
𝑓ሺ𝑡ሻ = 𝐾𝑢(𝑡)
𝑑2 𝑥 𝑑𝑥
+ 2𝜁𝜔𝑛 + 𝜔𝑛
2
𝑥 = 𝐴𝑓ሺ𝑡ሻ
𝑑𝑡 2 𝑑𝑡
0 𝑡<0
𝑢ሺ𝑡ሻ = ቄ 𝜁 Damping ratio (dimensionless)
1 𝑡≥0
𝜔𝑛 Natural frequency (1/s)
ds 𝑓ሺ𝑡ሻ: Input (quantity to be measured)
𝑥: Output (instrument response)
𝐴: Arbitrary constant
2nd Order Systems with step input
2nd Order Systems with step input
2nd Order Systems with periodic input
2nd Order Systems with step input