Professional Documents
Culture Documents
CHAPTER 2
MODELING IN THE
FREQUENCY DOMAIN
Associate Prof. Yen-Chen Liu
Department of Mechanical Engineering
National Cheng Kung University
Outlines
Find the Laplace transform of time functions and the
inverse Laplace transform
Find the transfer function from a differential equation and
solve the differential equation using the transfer function
Find the transfer function for LTI electrical networks
Find the transfer function for LTI mechanical systems
Find the transfer functions for gear systems
Find the transfer function for LTI electromechanical
systems
Linearize a nonlinear system in order to find the transfer
function
Introduction
In Chapter 1, we saw that a differential equation can
describe the relationship between the input and output of
a system.
Although the differential equation relates the system to its
input and output, it is not a satisfying representation from
a system perspective.
We would prefer a mathematical representation such as
Laplace Transform
A system represented by a differential equation is difficult
to model as a block diagram.
Via Laplace transform, we can represent the input, output,
and system as separate entities.
If f(t) is a time-dependent function defined for all values of t>0,
then the Laplace Transform of this function is defined as
F ( s ) f (t )e st dt
0
f (t ) F (s)
t-domain s-domain
1
{ (t )} (t )e st dt
0
0
(t )e st dt (t )e st dt
0 0
0
(t )e st dt 0dt
0 0
e s 0 1 { (t )} 1
Example
f(t)= t
t st 1
{t} te dt e
st
1 e st dt
0
s 0 s0
1 st 1
0 2 e 2 1
{t} 2
s 0 s s
Department of Mechanical Engineering, National Cheng Kung University, Tainan, Taiwan
Automatic Control 8
n!
s n 1
Laplace Transform
Example
Find the Laplace transforms of f(t)= Ae-atu(t)
Since the time function does not contain an impulse function, we can
replace the lower limit with 0
F ( s ) { f (t )} Ae at e st dt
0
A ( s a )t A
A e ( s a )t
dt e
0
sa 0 sa
MATLAB
>> syms t s ans = 2/s^3
>> laplace(t^2,t,s)
Department of Mechanical Engineering, National Cheng Kung University, Tainan, Taiwan
Automatic Control 10
x(0) sX ( s )
Example
Find the Laplace Transform of f(t)=d2x/dt2
d 2 x st dx st dx st
F ( s ) { f (t )} 2 e dt e +s e dt
0
dt dt 0
0
dt
st
x(0) sx(t )e s 2 x(t )e st dt x(0) sx(0) s 2 X ( s )
0
0
Department of Mechanical Engineering, National Cheng Kung University, Tainan, Taiwan
Automatic Control 12
1 1 1
{F ( s a )} e at
tu (t )
( s a)
2
1 1 3t
2
e tu (t )
( s 3)
Department of Mechanical Engineering, National Cheng Kung University, Tainan, Taiwan
Automatic Control 13
f (0 )= lim sF ( s)
s
c1 F1 ( s ) c2 F2 ( s )
Department of Mechanical Engineering, National Cheng Kung University, Tainan, Taiwan
Automatic Control 15
1 2s 2
X (s) 2 2
s ( s 1)
Department of Mechanical Engineering, National Cheng Kung University, Tainan, Taiwan
Automatic Control 16
1 2s 2 1 1
Since X (s) 2 2 2 2 (Partial Fraction Expansion)
s ( s 1) s s 1
1 1 1 1
x(t ) 2 2 x(t ) t sin t
s s 1
t sin t
MATLAB
>> syms t s ans = t+sin(t)
>> ilaplace((1+2*s^2)/(s^2*(1+s^2)),s,t)
MATLAB
>> n=2 r= p= k=
>> d=[1 3 2] -2 -2 0
>> [r, p, k]=residue(n,d) 2 -1
Department of Mechanical Engineering, National Cheng Kung University, Tainan, Taiwan
Automatic Control 19
d2y dy
2
12 32 y 32u (t )
dt dt
32
Taking Laplace transform s Y ( s ) 12 sY ( s ) 32Y ( s )
2
s
32 32
Y (s)
s ( s 12 s 32) s ( s 4)( s 8)
2
Transfer Function
Establishing a transfer function will allow separation of the
input, system, and output into three separate and distinct
parts, unlike the differential equation.
The function will also allow us to algebraically combine
mathematical representations of subsystems to yield a
total system representation.
a sn
n
an 1s n 1 a0 C ( s ) bm s m bm 1s m 1 b0 R ( s )
where C(s) and R(s) are the Laplace transforms of c(t) and
r(t), respectively.
G ( s ) : transferafunction
C ( s ) R( s )G ( s )
Department of Mechanical Engineering, National Cheng Kung University, Tainan, Taiwan
Automatic Control 24
dc(t )
2c(t ) r (t )
dt
Taking the Laplace transform of both sides, assuming
zero initial conditions, we have
sC ( s ) 2C ( s ) R( s )
Thus, the transfer function, G(s), is
C ( s) 1
G (s)
R( s) s 2
Department of Mechanical Engineering, National Cheng Kung University, Tainan, Taiwan
Automatic Control 25
loop gives
L
dt
Ri (t )
C i( )d v(t )
0
dq d 2q dq 1
As i L 2
R qv
dt dt dt C
d 2 vc dv
As q Cvc LC 2 RC c vc v
dt dt
Department of Mechanical Engineering, National Cheng Kung University, Tainan, Taiwan
Automatic Control 29
G ( s ) : transferafunction
Department of Mechanical Engineering, National Cheng Kung University, Tainan, Taiwan
Automatic Control 30
Vc ( s ) 1
V ( s ) ( LCs 2 RCs 1)
Ground
V (s)
As I ( s ) , using Kirchhoffs Current Law at node
Z (s)
Vc ( s ) Vc ( s ) V ( s ) Vc ( s )
1
0
1/ Cs Ls R V ( s ) ( LCs 2 RCs 1)
Impedances
Laplace transform
Department of Mechanical Engineering, National Cheng Kung University, Tainan, Taiwan
Automatic Control 35
Mesh 1:
R1 I1 ( s ) Ls I1 ( s ) I 2 ( s ) V ( s ) ( R1 Ls ) I1 ( s ) LsI 2 ( s ) V ( s )
Mesh 2:
1 1
Ls I 2 ( s ) I1 ( s ) R2 I 2 ( s ) I 2 (s) 0 LsI1 ( s ) Ls R2 I 2 (s) 0
Cs Cs
I 2 (s) LCs 2
By Cramers rule G (s)
V ( s ) ( R1 R2 ) LCs 2 ( R1R2C L) s R1
Department of Mechanical Engineering, National Cheng Kung University, Tainan, Taiwan
Automatic Control 36
Vo ( s ) Z1 ( s ) Z 2 ( s )
Vi ( s ) Z1 ( s ) Noninverting
operational
amplifier
Department of Mechanical Engineering, National Cheng Kung University, Tainan, Taiwan
Automatic Control 37
1 360 103
Z1 ( s )
1 2.016 s 1
C1s
R1
1 107
Z 2 ( s ) R1 220 10
3
C2 s s
Vo ( s ) s 2 45.95s 22.55 The resulting circuit is called a PID
G ( s) 1.232 controller that can be used to improve
Vi ( s ) s the performance of a control system.
VL ( s ) s 2 2 s 1
G (s) 2
V ( s ) s 5s 2
Analogous to
Capacitor
Energy-storage
elements
Inductor
Equation of Motion
Mx f v x Kx f
Taking Laplace Transform
( Ms 2 f v s K ) X ( s ) F ( s )
X ( s) 1
G (s)
F ( s ) Ms 2 f v s K
Transformed Free-body
Free-body diagram
diagram
Mx f v x Kx f
( Ms 2 f v s K ) X ( s ) F ( s )
F ( s ) KX ( s )
F (s)
F ( s ) f v sX ( s ) Z M (s)
X (s)
[ M 1s 2 ( f v1 f v 3 ) s ( K1 K 2 )] X 1 ( s ) ( f v 3 s K 2 ) X 2 ( s ) F ( s )
Department of Mechanical Engineering, National Cheng Kung University, Tainan, Taiwan
Automatic Control 43
( f v 3 s K 2 ) X 1 ( s ) [ M 2 s 2 ( f v 2 f v 3 )s ( K 2 K 3 )] X 2 ( s ) 0
X 2 (s) ( fv3 s K 2 )
By Cramers rule G (s)
F (s)
M 1s 2 ( f v1 f v 3 ) s ( K1 K 2 ) fv3s K 2
where
( f v 3 s K 2 ) M 2 s 2 ( f v 2 f v 3 )s ( K 2 K 3 )
[ M 1s 2 ( f v1 f v 3 ) s ( K1 K 2 )] X 1 ( s ) K 2 X 2 ( s ) f v 3 sX 3 ( s ) 0
K 2 X 1 ( s ) [ M 2 s 2 ( f v 2 f v 4 ) s K 2 ] X 2 ( s ) f v 4 sX s (3) F ( s )
f v 3 sX 1 ( s ) f v 4 sX 2 ( s ) [ M 3 s 2 ( f v 3 f v 4 ) s ] X 3 ( s ) 0
( J1s 2 D1s K )1 ( s ) K 2 ( s ) T ( s )
Department of Mechanical Engineering, National Cheng Kung University, Tainan, Taiwan
Automatic Control 47
K1 ( s ) ( J 2 s 2 D2 s K ) 2 ( s ) 0
2 (s) K
G (s)
T (s)
J1s 2 D1s K K
where
K J 2 s 2 D2 s K
Department of Mechanical Engineering, National Cheng Kung University, Tainan, Taiwan
Automatic Control 48
2 (s) 1
G (s) G (s)
T (s) 2s 2 s 1
N2
Equation of Motion ( Js 2 Ds K ) 2 ( s ) T1 ( s )
N1
N1 N N
As 2 1 ( Js 2 Ds K ) 1 1 ( s ) 2 T1 ( s )
N2 N2 N1
2
N1
( Js Ds K ) 1 ( s ) T1 ( s )
2
2
N
2
Rotational mechanical impedances can be reflected through gear N destination
trains by multiplying the mechanical impedance by the ratio
source
N
Department of Mechanical Engineering, National Cheng Kung University, Tainan, Taiwan
Automatic Control 51
2 ( s) N 2 / N1
G (s)
T (s) J e s 2 De s K e
2 (s) 1/ 2
G (s) G (s)
T (s) s2 s 1
Electromechanical System
A motor is an electromechanical component that yields a
displacement output for a voltage input.
The motors schematic is shown as the figure.
Motor Dynamics
Tm ( s ) ( J m s 2 Dm s ) m ( s )
m ( s) K t / ( Ra J m )
If we assume that the armature
inductance, La, is small compared to Ea ( s ) 1 KK
the armature resistance, Ra, then s s ( Dm t b )
Jm Ra
Department of Mechanical Engineering, National Cheng Kung University, Tainan, Taiwan
Automatic Control 55
2 2
N1 N1
Jm Ja JL Dm Da DL
N2 N2
The other constants Kt, Ra, and Kb can be obtained by using dynamometer,
a device for measuring force, torque, or power.
L ( s) / Ea ( s)
ea 100
2
N1
2
1
Jm Ja JL 5 700 12
2
N 10 no load ea / Kb 50 Kb 2
2
N
2
1 Kt
Dm Da DL 1 2 800 10 Tstall K t ea / Ra 500 5
N2 10 Ra
Department of Mechanical Engineering, National Cheng Kung University, Tainan, Taiwan
Automatic Control 58
1 1
Cs E ( s ) I ( s )
R Ls
Nonlinearities
The models developed in this course are linear time-
invariant (LTI) system.
A linear system possesses two properties
Superposition
Homogeneity
Nonlinearities (cont.)
Some Examples of Nonlinearities
Linearization of Nonlinearities
Using Taylor Series Expansion
df ( x x0 )
f ( x) f ( x0 )
dx x x0 1!
d2 f ( x x0 ) 2
2
dx x x0
2!
df ( x x0 )
f ( x0 )
dx x x0 1!
df df
f ( x) f ( x0 ) ( x x0 ) f ( x) x
dx x x0 dx x x0
f ( x) m x x x
0
df
As f ( x) f ( x0 ) ( x x0 )
dx x x0
df
f ( x) 5cos( x) f ( x0 ) ( x x0 )
dx x x0
5cos( / 2) 5sin( x) x /2 ( x / 2)
5( x / 2)