MAE331 Lecture 16
MAE331 Lecture 16
Linear, Time-Invariant
(LTI) System Model
Dynamic equation (ordinary differential equation)
dim [ Δx(t)] = ( n × 1)
dim [ Δy(t)] = ( r × 1) 2
1
11/15/18
Step input
response
Initial condition
response
Response to
Initial Conditions
2
11/15/18
Unforced Response to
Initial Conditions
Neglecting forcing functions
t
2! 3!
= Φ ( t − t o ) = State Transition Matrix
5
Initial-Condition Response
via State Transition
Incremental propagation of Δx
Δx(t1 ) = Φ (t1 − t o ) Δx(t o ) Δx(t1 ) = Φ (δt ) Δx(t o ) = ΦΔx(t o )
Δx(t 2 ) = Φ (t 2 − t1 ) Δx(t1 ) Δx(t 2 ) = ΦΔx(t1 ) = Φ 2 Δx(t o )
Δx(t 3 ) = Φ (t 3 − t 2 ) Δx(t 2 ) Δx(t 3 ) = ΦΔx(t 2 ) = Φ 3Δx(t o )
…
If (tk+1 – tk) = δt = constant,
state transition matrix is
constant
1 2 1 3
Φ = I + F (δ t ) + #$ F (δ t ) %& + #$ F (δ t ) %& + ...
2! 3!
Propagation is exact
6
3
11/15/18
Discrete-Time
Dynamic Model
Response to continuous controls and disturbances
t k+1
Δx(t k+1 ) = Δx(t k )+ ∫ [FΔx(τ )+ GΔu(τ )+ LΔw(τ )] dτ
tk
Response
x
to piecewise-constant controls and disturbances
t k+1
Λ = ( eFδ t − I ) F −1L
⎛ 1 1 1 ⎞
= ⎜ I − Fδ t + F 2δ t 2 − F 3δ t 3 + ...⎟ Lδ t
⎝ 2! 3! 4! ⎠
Φ ⎯δ⎯⎯
t→0
→ ( I + Fδ t )
As δt becomes
very small Γ ⎯δ⎯⎯
t→0
→ Gδ t
Λ ⎯δ⎯⎯
t→0
→ Lδ t 8
4
11/15/18
δ t = t k +1 − t k
• δt = 0.5 s # 0.0823
Φ=%
−1.475 &
(
$ 0.185 0.0839 '
# −2.492 &
Γ=% (
δt has a large effect on the digital model $ −0.643 '
# −1.475 & 10
Λ=% (
$ −0.916 '
5
11/15/18
⎡ Δq! ( t ) ⎤ ⎡ ⎤ ⎡ Δq ( t ) ⎤ ⎡ ⎤
⎢ ⎥ = ⎢ −1.3 −8 ⎥ ⎢ ⎥ + ⎢ −9.1 ⎥ Δδ E ( t )
⎢ Δα! ( t ) ⎥ ⎣ 1 −1.3 ⎦ ⎢ Δα ( t ) ⎥ ⎣ 0 ⎦
⎣ ⎦ ⎣ ⎦
Difference Equations
Produce State Increments δ t = 0.1sec
Initial-Condition Response
⎡ Δ!x1 ⎤ ⎡ −1.2794 −7.9856 ⎤ ⎡ Δx1 ⎤ ⎡ −9.069 ⎤
⎢
Δ!x ( t ) = FΔx ( t ) + GΔu ( t )
⎥=⎢
⎢⎣ Δ!x2 ⎥⎦ ⎣ 1
⎥⎢ ⎥+⎢
−1.2709 ⎦ ⎢ Δx2 ⎥ ⎣
⎣ ⎦
0
⎥ Δδ E
⎦ Angle of
Δy⎡⎢ (Δy
t ) ⎥== ⎢H0 x Δx⎥ ⎢(t ) + ⎥ Δδ E( t )
Δy ⎤ ⎡ 1 0 ⎤ ⎡ Δx ⎤ ⎡ 0 ⎤ Attack Initial
⎢ u Δu
⎥ +H
1 1
Condition
⎢⎣ 2 ⎥⎦ 1⎣ Δx⎦ ⎢⎣ 0
2 ⎥⎦ ⎣ ⎦
xo = [1;0];
[y1,t1,x1] = initial(sys, xo);
Pitch Rate
xo = [2;0]; Initial
[y2,t2,x2] = initial(sys, xo); Condition
plot(t1,y1,t2,y2), grid
figure
xo = [0;1];
initial(sys, xo), grid
6
11/15/18
Historical Factoids
Commercial Aircraft of the 1940s
• Pre-WWII designs, reciprocating engines
• Development enhanced by military transport and bomber versions
– Douglas DC-4 (adopted as C-54)
– Boeing Stratoliner 377 (from B-29, C-97)
– Lockheed Constellation 749 (from C-69)
13
Bristol Brabazon
“Jumbo Turboprop”
14
7
11/15/18
15
8
11/15/18
Superposition of
Linear Responses
17
Step Input
% Step response
step(sys, sys2), grid
18
9
11/15/18
Superposition of Linear
Step Responses
% Short-Period Linear Model - Superposition
xo = [1; 0];
t = [0:0.2:20];
u = ones(1,length(t));
[y1,t1,x1] = lsim(sys,u,t,xo);
[y2,t2,x2] = lsim(sys,u,t);
u = zeros(1,length(t));
[y3,t3,x3] = lsim(sys,u,t,xo);
plot(t1,y1,t2,y2,t3,y3), grid
2nd-Order Comparison:
Continuous- and Discrete-Time LTI
Longitudinal Models
Differential Equations Produce State Rates of Change
⎡ ΔV! ( t ) ⎤ ⎡ ⎤ ⎡ ΔV ( t ) ⎤ ⎡ ⎤
Phugoid ⎢ ⎥ ≈ ⎢ −0.02 −9.8 ⎥ ⎢ ⎥ + ⎢ 4.7 ⎥ Δδ T ( t )
⎢ Δγ! ( t ) ⎥ ⎣ 0.02 0 ⎦ ⎢ Δγ ( t ) ⎥ ⎣ 0 ⎦
⎣ ⎦ ⎣ ⎦
⎡ Δq! ( t ) ⎤ ⎡ ⎤ ⎡ Δq ( t ) ⎤ ⎡ −9.1 ⎤
Short ⎢ ⎥ = ⎢ −1.3 −8 ⎥ ⎢ ⎥+⎢ ⎥ Δδ E ( t ) δ t = 0.1sec
Period ⎢
⎣
Δα! ( ) ⎥⎦ ⎣
t 1 −1.3 ⎦ ⎢⎣ Δα ( t ) ⎥⎦ ⎣ 0 ⎦
10
11/15/18
Equilibrium Response
21
Equilibrium Response
Dynamic equation
22
11
11/15/18
Steady-State Condition
• If the system is also stable, an equilibrium point
is a steady-state point, i.e.,
– Small disturbances decay to the equilibrium condition
2nd-order example
! f11 f12 $ ! g1 $ ! l1 $
System Matrices F=# &; G = # &; L= # &
#" f21 f22 &
%
g
#" 2 &% #" l2 &%
" f − f12 %
Equilibrium $ 22 '
Response with
" Δx * %
1
$# − f21 f11 '& ") g1 , ) l , %
$ '= − $+ . Δu *+ + 1 . Δw *'
Constant Inputs $# Δx2 * '& ( f11 f22 − f12 f21 ) $#+* g2 .- + l2 . '
* - &
Equilibrium Response of
Approximate Phugoid Model
Equilibrium state with constant thrust and
wind perturbations
Δx P * = −FP−1 ( G P Δu P * +L P Δw P *)
# VN &
# ΔV * & % 0 ( + # Tδ T & # DV & /
LV ( -- % ( % ( * --
% *
( = − %% ( , % Lδ T
*
( Δδ T + % −LV ( ΔVW 0
%$ Δγ (' −1 VN DV
% ( - % VN ( % V ( -
%$ g gLV (' -. $ ' $ N ' -1
24
12
11/15/18
Equilibrium Response of
Approximate Phugoid Model
LδT
ΔV * = − ΔδT * + ΔVW* Steady horizontal wind
LV
affects velocity but not
1% D ( flight path angle
Δγ * = 'TδT + LδT V * ΔδT *
g& LV )
With LδT ~ 0, steady-state velocity perturbation depends only on
the horizontal wind
Constant thrust perturbation produces steady climb rate
Corresponding dynamic response
to thrust step, with LδT = 0
25
Equilibrium Response of
Approximate Short-Period Model
Equilibrium state with constant elevator and
wind perturbations
−1
Δx SP * = −FSP (GSP ΔuSP * +LSP Δw SP *)
# Lα &
% Mα (
% VN (
1# & # Mα & 5
# Δq* & % 1 −M q ( 3 % M δ E ( % ( * 33
(=−$ '3 *
% 2% L ( Δδ E − % −Lα ( Δα W6
%$ Δα * (' * Lα - 3% − δ E ( % V ( 3
,+ V M q + M α /. 34 $ VN ' $ N ' 37
N
26
13
11/15/18
Equilibrium Response of
Approximate Short-Period Model
% Lα (
'& V M δ E *)
N
Δq* = − Δδ E *
% Lα (
'& V M q + M α *) with LδE = 0
N
Δα * = −
( MδE ) Δδ E + Δα W*
% Lα (
'& V M q + M α *)
N
Steady pitch rate and angle of attack response to elevator perturbation are
not zero
Steady vertical wind affects steady-state angle of attack but not pitch rate
Dynamic response to elevator step with LδE = 0
27
28
14
11/15/18
clear
z = 0.1; % Damping ratio
wn = 6.28; % Natural frequency, rad/s
F = [0 1;-wn^2 -2*z*wn];
G = [1 -1;0 2];
Hx = [1 0;0 1];
sys = ss(F, G, Hx,0);
t = [0:0.01:10];
xo = [1;0];
[y1,t1,x1] = initial(sys, xo, t);
plot(t1,y1)
grid on
figure
plot(y1(:,1),y1(:,2))
grid on
15
11/15/18
31
32
16
11/15/18
Speed Control of
Direct-Current Motor
Angular Rate
u(t) = C e(t)
where
e(t) = yc (t) − y(t)
33
Characteristics
of the Motor
• Simplified Dynamic Model
– Rotary inertia, J, is the sum of motor and load
inertias
– Internal damping neglected
– Output speed, y(t), rad/s, is an integral of the
control input, u(t)
– Motor control torque is proportional to u(t)
– Desired speed, yc(t), rad/s, is constant
– Control gain, C, scales command-following
error to motor input voltage
34
17
11/15/18
Model of Dynamics
and Speed Control
Dynamic equation
dy(t) u(t) Ce(t) C
= = = [ yc (t) − y(t)], y ( 0 ) given
dt J J J
Integral of the equation, with y(0) = 0
t t t
1 C C
y(t) = ∫ u(t)dt = ∫ e(t)dt = ∫ [ yc (t) − y(t)] dt
J0 J 0 J 0
Step Response of
Speed Controller
• Solution of the integral, "$ 0, t < 0
yc ( t ) = #
with step command 1, t ≥ 0
%$
( −$ 't +
"C %
*) -, ) ,
• where
– λ = –C/J = eigenvalue or
root of the system (rad/s)
– τ = J/C = time constant of
the response (sec)
36
18
11/15/18
ω n = c1 J ; ζ = ( c2 J ) 2ω n
37
F1 = [0 1;-1 0];
G1 = [0;1];
Hx = [1 0;0 1];
Sys1 = ss(F1,G1,Hx,0);
Sys2 = ss(F1a,G1,Hx,0);
Sys3 = ss(F1b,G1,Hx,0);
step(Sys1,Sys2,Sys3)
38
19
11/15/18
y peak
Amplitude Ratio (AR) =
yC peak
Δt peak
Phase Angle (φ ) = −360 , deg
Period
39
20
11/15/18
41
42
21
11/15/18
Wide Input-
Frequency
Range
§ Long-term response
of a dynamic system
to sinusoidal inputs
over a range of
frequencies
§ Determine
experimentally from
time response or
§ Compute the Bode
plot of the system s
transfer functions
(TBD)
43
Next Time:
Transfer Functions and
Frequency Response
Reading:
Flight Dynamics
342-357
Learning Objectives
• Frequency domain view of initial condition response
• Response of dynamic systems to sinusoidal inputs
• Transfer functions
• Bode plots
44
22
11/15/18
Supplemental Material
45
Δα ! Δw V
N
23
11/15/18
⎡ Δ!r ( t ) ⎤ ⎡ ⎤ ⎡ Δr ( t ) ⎤ ⎡ ⎤
⎢ ⎥ ≈ ⎢ −0.11 1.9 ⎥ ⎢ ⎥ + ⎢ −1.1 ⎥ Δδ R ( t )
⎢ Δβ! ( t ) ⎥ ⎣ −1 −0.16 ⎦ ⎢ Δβ ( t ) ⎥ ⎣ 0 ⎦
⎣ ⎦ ⎣ ⎦
Difference Equations
Produce State Increments δ t = 0.1sec
⎡ Δ!p ( t ) ⎤ ⎡ ⎤ ⎡ Δp ( t ) ⎤ ⎡ ⎤
⎢ ⎥ ≈ ⎢ −1.2 0 ⎥ ⎢ ⎥ + ⎢ 2.3 ⎥ Δδ A ( t )
⎢ Δφ! ( t ) ⎥ ⎣ 1 0 ⎦ ⎢ Δφ ( t ) ⎥ ⎣ 0 ⎦
⎣ ⎦ ⎣ ⎦
Difference Equations
δ t = 0.1sec
Produce State Increments
24
11/15/18
⎡ ΔV! ( t ) ⎤ ⎡ ⎡ ΔV ( t ) ⎤ ⎡
⎢ ⎥ −0.02 −9.8 0 0 ⎤⎢ ⎥ 4.7 0 ⎤
Δγ ( t ) ⎥ ⎢ ⎥⎡ ⎤
Δγ! ( t ) ⎥ ⎢ 0.02 0 ⎥ ⎢ Δδ T ( t )
⎢ ⎥⎢
0 0 1.3 0 ⎥
⎢ ⎥=⎢ ⎥⎢ ⎥+⎢
⎢ Δq! ( t ) ⎥ ⎢ 0 0 −1.3 −8 ⎥⎢ Δq ( t ) ⎥ ⎢ 0 −9.1 ⎥ ⎢ Δδ E ( t ) ⎥
⎢⎣ −0.02 ⎥⎦ ⎢ ⎢ ⎣ ⎦
⎢ ⎥
Δα! ( t ) ⎥ 0 1 −1.3 Δα ( t ) ⎥⎥ ⎣ 0 0 ⎥⎦
⎢⎣ ⎦ ⎢⎣ ⎦
25