55
Lecture 24 Bode Plot Hung-yi Lee

Lecture 24 Bode Plot Hung-yi Lee. Announcement 第四次小考 時間 : 12/24 範圍 : Ch11.1, 11.2, 11.4

Embed Size (px)

Citation preview

Page 1: Lecture 24 Bode Plot Hung-yi Lee. Announcement 第四次小考 時間 : 12/24 範圍 : Ch11.1, 11.2, 11.4

Lecture 24Bode Plot

Hung-yi Lee

Page 2: Lecture 24 Bode Plot Hung-yi Lee. Announcement 第四次小考 時間 : 12/24 範圍 : Ch11.1, 11.2, 11.4

Announcement

•第四次小考•時間 : 12/24•範圍 : Ch11.1, 11.2, 11.4

Page 3: Lecture 24 Bode Plot Hung-yi Lee. Announcement 第四次小考 時間 : 12/24 範圍 : Ch11.1, 11.2, 11.4

Reference

• Textbook: Chapter 10.4• OnMyPhD: http://www.onmyphd.com/?

p=bode.plot#h3_complex• Linear Physical Systems Analysis of at

the Department of Engineering at Swarthmore College: http://lpsa.swarthmore.edu/Bode/Bode.html

Page 4: Lecture 24 Bode Plot Hung-yi Lee. Announcement 第四次小考 時間 : 12/24 範圍 : Ch11.1, 11.2, 11.4

Bode Plot

• Draw magnitude and phase of transfer function

Magnitude

Phase

Angular Frequency100 10110-1

(log scale)

Deg

ree

dB

a

a

log20

log10 2

(refer to P500 of the textbook)

http://en.wikipedia.org/wiki/File:Bode_plot_template.pdf

g

Page 5: Lecture 24 Bode Plot Hung-yi Lee. Announcement 第四次小考 時間 : 12/24 範圍 : Ch11.1, 11.2, 11.4

Drawing Bode Plot

• By Computer• MATLAB• http://web.mit.edu/6.302/www/pz/• MIT 6.302 Feedback Systems

• http://www.wolframalpha.com• Example Input: “Bode plot of

-(s+200)^2/(10s^2)”• By Hand• Drawing the asymptotic lines by some simple

rules• Drawing the correction terms

Page 6: Lecture 24 Bode Plot Hung-yi Lee. Announcement 第四次小考 時間 : 12/24 範圍 : Ch11.1, 11.2, 11.4

Asymptotic Lines:Magnitude

Page 7: Lecture 24 Bode Plot Hung-yi Lee. Announcement 第四次小考 時間 : 12/24 範圍 : Ch11.1, 11.2, 11.4

Magnitude

21

21KHpsps

zszss

21

21KHpjpj

zjzjj

21

21|jH|)(pjpj

zjzjKa

21

21

log20log20

log20log20log20

)(log20

pjpj

zjzjK

adB

Draw each term individually, and then add them together.

Page 8: Lecture 24 Bode Plot Hung-yi Lee. Announcement 第四次小考 時間 : 12/24 範圍 : Ch11.1, 11.2, 11.4

21

21

log20log20

log20log20log20)(log20

pjpj

zjzjKa

Magnitude – Constant Term

Klog20

Page 9: Lecture 24 Bode Plot Hung-yi Lee. Announcement 第四次小考 時間 : 12/24 範圍 : Ch11.1, 11.2, 11.4

Magnitude – Real Pole

21

21

log20log20

log20log20log20)(log20

pjpj

zjzjKa

Suppose p1 is a real number

|| 1p

1p

If ω >> |p1|

log20log20

log20 1

j

pj

Decrease 20dB per decade

If ω = 10HzIf ω = 100Hz

dBMagnitude 20dBMagnitude 40

If ω << |p1|

11 log20log20 ppj Constant

Page 10: Lecture 24 Bode Plot Hung-yi Lee. Announcement 第四次小考 時間 : 12/24 範圍 : Ch11.1, 11.2, 11.4

Magnitude – Real Pole

21

21

log20log20

log20log20log20)(log20

pjpj

zjzjKa

If ω >> |p1|

log20log20

log20 1

j

pj

Decrease 20dB per decade

If ω = 10HzIf ω = 100Hz

dBMagnitude 20dBMagnitude 40

If ω << |p1|

11 log20log20 ppj Constant

Asymptotic Bode Plot

|p1|Constant

Decrease 20dB per decade

Mag

nitu

de

Page 11: Lecture 24 Bode Plot Hung-yi Lee. Announcement 第四次小考 時間 : 12/24 範圍 : Ch11.1, 11.2, 11.4

Magnitude – Real Pole

Cut-off Frequency(-3dB)

3||log20

2log20||log20

||2log20

log20

log20

1

1

1

11

1

p

p

p

pjp

pjIf ω = |p1|

If ω << |p1|

1log20 p

3dB lower

Page 12: Lecture 24 Bode Plot Hung-yi Lee. Announcement 第四次小考 時間 : 12/24 範圍 : Ch11.1, 11.2, 11.4

Magnitude – Real Zero

21

21

log20log20

log20log20log20)(log20

pjpj

zjzjKa

Suppose z1 is a real number

|| 1z

If ω >> |z1|

log20log20

log20 1

j

zj

Increase 20dB per decade

If ω = 10HzIf ω = 100Hz

dBMagnitude 20dBMagnitude 40

If ω << |z1|

11 log20log20 zzj Constant

1z

Page 13: Lecture 24 Bode Plot Hung-yi Lee. Announcement 第四次小考 時間 : 12/24 範圍 : Ch11.1, 11.2, 11.4

Magnitude – Real Zero

21

21

log20log20

log20log20log20)(log20

pjpj

zjzjKa

If ω >> |z1|

log20log20

log20 1

j

zj

Increase 20dB per decade

If ω = 10HzIf ω = 100Hz

dBMagnitude 20dBMagnitude 40

If ω << |z1|

11 log20log20 zzj Constant

Asymptotic Bode Plot

|z1|Constant

Increase 20dB per decade

Mag

nitu

de

Page 14: Lecture 24 Bode Plot Hung-yi Lee. Announcement 第四次小考 時間 : 12/24 範圍 : Ch11.1, 11.2, 11.4

Magnitude – Real Zero

• Problem: What if |z1| is 0?

|z1|M

agni

tude

1z

Asymptotic Bode Plot

If |z1|=0, we cannot find the point on the Bode plot

Page 15: Lecture 24 Bode Plot Hung-yi Lee. Announcement 第四次小考 時間 : 12/24 範圍 : Ch11.1, 11.2, 11.4

Magnitude – Real Zero

• Problem: What if |z1| is 0?

If |z1|=0

log20

log20

log20 1

j

zj

1

Mag

nitu

de (d

B)

srad /101.0If ω = 1Hz

If ω = 10Hz

If ω = 0.1Hz Magnitude=-20dBMagnitude=0dBMagnitude=20dB

Page 16: Lecture 24 Bode Plot Hung-yi Lee. Announcement 第四次小考 時間 : 12/24 範圍 : Ch11.1, 11.2, 11.4

Simple Examples

1z 1p

1p 2p

+

+

|| 1p

-20dB

|| 2p

-20dB

|| 1p|| 2p

-20dB

-40dB

-20dB

|| 1p

-20dB

|| 1p || 1z

+20dB

|| 1z

Page 17: Lecture 24 Bode Plot Hung-yi Lee. Announcement 第四次小考 時間 : 12/24 範圍 : Ch11.1, 11.2, 11.4

Simple Examples

1p

+-20dB

|| 1p

1z

1p

+20dB

1z

+-20dB

|| 1p

+20dB

|| 1p|| 1z

+20dB

|| 1z

+20dB

|| 1p

Page 18: Lecture 24 Bode Plot Hung-yi Lee. Announcement 第四次小考 時間 : 12/24 範圍 : Ch11.1, 11.2, 11.4

Magnitude – Complex Poles

20

02

1H

sQ

s

s 5.0Q The transfer function has complex poles

constant

2

002

1H

jQ

j

j

Qj 022

0

1

0log40||log20 jH

If 0

If 0

201 jH

21 jH

log40||log20 jH

-40dB per decade

Page 19: Lecture 24 Bode Plot Hung-yi Lee. Announcement 第四次小考 時間 : 12/24 範圍 : Ch11.1, 11.2, 11.4

Magnitude – Complex PolesThe asymptotic line for conjugate complex pole pair.

constantIf 0

If 0 -40dB per decade

The approximation is not good enough peak at ω=ω0

20

02

1H

sQ

s

s

2

002

1H

jQ

j

j

Qj 022

0

1

Qj

j 20

0

1H

0log40||log20 jH

log40||log20 jH

20

log20||log20

QjH

Qlog20log40 0

Page 20: Lecture 24 Bode Plot Hung-yi Lee. Announcement 第四次小考 時間 : 12/24 範圍 : Ch11.1, 11.2, 11.4

Magnitude – Complex Poles

20

02

1H

sQ

s

s

Height of peak:

Qlog20Q dB

constant

-40dB per decade

Only draw the peak when Q>1

Page 21: Lecture 24 Bode Plot Hung-yi Lee. Announcement 第四次小考 時間 : 12/24 範圍 : Ch11.1, 11.2, 11.4

Magnitude – Complex Poles

• Draw a peak with height 20logQ at ω0 is only an approximation• Actually,

20 2

11

Q

The peak is at

24

11Qlog20

Q

The height is

1Q 67.1Q

5.2Q

5Q 10Q

0

Page 22: Lecture 24 Bode Plot Hung-yi Lee. Announcement 第四次小考 時間 : 12/24 範圍 : Ch11.1, 11.2, 11.4

Magnitude – Complex Zeros

constant

+40dB per decade

Qlog20Q dB

Page 23: Lecture 24 Bode Plot Hung-yi Lee. Announcement 第四次小考 時間 : 12/24 範圍 : Ch11.1, 11.2, 11.4

Asymptotic Lines:Phase

Page 24: Lecture 24 Bode Plot Hung-yi Lee. Announcement 第四次小考 時間 : 12/24 範圍 : Ch11.1, 11.2, 11.4

Phase

21

21KHpsps

zszss

21

21KHpjpj

zjzjj

Again, draw each term individually, and then add them together.

K)(

21 pjpj

21 zjzj

Page 25: Lecture 24 Bode Plot Hung-yi Lee. Announcement 第四次小考 時間 : 12/24 範圍 : Ch11.1, 11.2, 11.4

Phase - ConstantK)( 21 pjpj 21 zjzj

K K0K 0K

Two answers

Page 26: Lecture 24 Bode Plot Hung-yi Lee. Announcement 第四次小考 時間 : 12/24 範圍 : Ch11.1, 11.2, 11.4

Phase – Real PolesK)( 21 pjpj 21 zjzj

p1 is a real number

1p

If ω >> |p1|

If ω << |p1|

?1 pj 0

?1 pj 90

If ω = |p1|

?1 pj 45

Page 27: Lecture 24 Bode Plot Hung-yi Lee. Announcement 第四次小考 時間 : 12/24 範圍 : Ch11.1, 11.2, 11.4

Phase – Real PolesK)( 21 pjpj 21 zjzj

1pj

0 |p1|

0.1|p1|

10|p1|

p1 is a real number

If ω >> |p1|

If ω << |p1|

?1 pj 0

?1 pj 90

If ω = |p1|

?1 pj 45

Page 28: Lecture 24 Bode Plot Hung-yi Lee. Announcement 第四次小考 時間 : 12/24 範圍 : Ch11.1, 11.2, 11.4

Phase – Real Poles

Asymptotic Bode Plot

ExactBode Plot

||1.0 1z

|| 1z

||10 1z

Page 29: Lecture 24 Bode Plot Hung-yi Lee. Announcement 第四次小考 時間 : 12/24 範圍 : Ch11.1, 11.2, 11.4

Phase – Real ZerosK)( 21 pjpj 21 zjzj

z1 is a real number

If ω >> |z1|

If ω << |z1| ?1 zj 0

90

If ω = |z1|45

1z

If z1 < 0

?1 zj ?1 zj

1zj

|z1|0

45

90

Page 30: Lecture 24 Bode Plot Hung-yi Lee. Announcement 第四次小考 時間 : 12/24 範圍 : Ch11.1, 11.2, 11.4

Phase – Pole at the Origin

• Problem: What if |z1| is 0?

1z 90

Page 31: Lecture 24 Bode Plot Hung-yi Lee. Announcement 第四次小考 時間 : 12/24 範圍 : Ch11.1, 11.2, 11.4

Phase – Complex Poles

If 0

If 0

If 0

1p

2p

0

0

180

20

02

1H

sQ

s

s

90

Page 32: Lecture 24 Bode Plot Hung-yi Lee. Announcement 第四次小考 時間 : 12/24 範圍 : Ch11.1, 11.2, 11.4

Phase – Complex Poles

Page 33: Lecture 24 Bode Plot Hung-yi Lee. Announcement 第四次小考 時間 : 12/24 範圍 : Ch11.1, 11.2, 11.4

Phase – Complex Poles

(The phase for complex zeros are trivial.)

The red line is a very bad approximation.

Page 34: Lecture 24 Bode Plot Hung-yi Lee. Announcement 第四次小考 時間 : 12/24 範圍 : Ch11.1, 11.2, 11.4

Correction Terms

Page 35: Lecture 24 Bode Plot Hung-yi Lee. Announcement 第四次小考 時間 : 12/24 範圍 : Ch11.1, 11.2, 11.4

Magnitude – Real poles and zeros

Given a pole p

|P| 2|P|0.5|P|0.1|P| 10|P|

Page 36: Lecture 24 Bode Plot Hung-yi Lee. Announcement 第四次小考 時間 : 12/24 範圍 : Ch11.1, 11.2, 11.4

Magnitude – Complex poles and Zeros

1p

2p

0

20

02

1H

sQ

s

s

Q20

Computing the correction terms at 0.5ω0 and 2ω0

Page 37: Lecture 24 Bode Plot Hung-yi Lee. Announcement 第四次小考 時間 : 12/24 範圍 : Ch11.1, 11.2, 11.4

Phase – Real poles and zeros

Given a pole p

|P| 2|P|0.5|P|0.1|P| 10|P|

0 。

(We are not going to discuss the correction terms for the phase of complex poles and zeros.)

Page 38: Lecture 24 Bode Plot Hung-yi Lee. Announcement 第四次小考 時間 : 12/24 範圍 : Ch11.1, 11.2, 11.4

Examples

Page 39: Lecture 24 Bode Plot Hung-yi Lee. Announcement 第四次小考 時間 : 12/24 範圍 : Ch11.1, 11.2, 11.4

Exercise 11.58

• Draw the asymptotic Bode plot of the gain for H(s) = 100s(s+50)/(s+100)2(s+400)

100K 50,0,z 21 z

400,100,100,,p 321 pp

K 40dB|K|20log

1p 2p 3p

100 100 400

40dB- 40dB- 52dB-

If ω >> |p| Decrease 20dB per decade

If ω << |p| plog20

Page 40: Lecture 24 Bode Plot Hung-yi Lee. Announcement 第四次小考 時間 : 12/24 範圍 : Ch11.1, 11.2, 11.4

Exercise 11.58

K40dB 1p

100

40dB-2p

100

40dB-3p

400

52dB-

1z

dBHz 0,1

dBHz 20,10

dBHz 40,100

If ω >> |z1| Increase 20dB per decade

If ω << |z1| 1log20 z

34dB50

2z

100K 50,0,z 21 z

400,100,100,,p 321 pp

Page 41: Lecture 24 Bode Plot Hung-yi Lee. Announcement 第四次小考 時間 : 12/24 範圍 : Ch11.1, 11.2, 11.4

Exercise 11.58

K40dB 1p

100

40dB-2p

100

40dB-3p

400

52dB-

1z

34dB50

2z

e20dB/decad

e40dB/decad e20dB/decad-

100 40050

?Compute the gain at ω=100

Page 42: Lecture 24 Bode Plot Hung-yi Lee. Announcement 第四次小考 時間 : 12/24 範圍 : Ch11.1, 11.2, 11.4

Exercise 11.58

K40dB 1p

100

40dB-2p

100

40dB-3p

400

52dB-

1z

34dB50

2z

Compute the gain at ω=100

dBHz 0,1

dBHz 40,100

100

40dB

6dB

40dB40dB52dB40dB40dB40dB dB12

Page 43: Lecture 24 Bode Plot Hung-yi Lee. Announcement 第四次小考 時間 : 12/24 範圍 : Ch11.1, 11.2, 11.4

Exercise 11.58

K40dB 1p

100

40dB-2p

100

40dB-3p

400

52dB-

1z

34dB50

2z

e20dB/decad

e40dB/decad e20dB/decad-

100 40050

-12dB

Page 44: Lecture 24 Bode Plot Hung-yi Lee. Announcement 第四次小考 時間 : 12/24 範圍 : Ch11.1, 11.2, 11.4

Exercise 11.58

• MATLAB

Page 45: Lecture 24 Bode Plot Hung-yi Lee. Announcement 第四次小考 時間 : 12/24 範圍 : Ch11.1, 11.2, 11.4

Exercise 11.52

• Draw the asymptotic Bode plot of the gain for H(s) = 8000s/(s+10) (s+40)(s+80). Add the dB correction to find the maximum value of a(ω)

8000K 0z1

80,40,10,,p 321 pp

K78dB

1p

10

20dB-2p

40

32dB-3p

80

38dB-

1z

10 40

80

8dB

Page 46: Lecture 24 Bode Plot Hung-yi Lee. Announcement 第四次小考 時間 : 12/24 範圍 : Ch11.1, 11.2, 11.4

• Draw the asymptotic Bode plot of the gain for H(s) = 8000s/(s+10) (s+40)(s+80). Add the dB correction to find the maximum value of a(ω)

Exercise 11.52

10 40

80

8dB

Is 8dB the maximum value?

Page 47: Lecture 24 Bode Plot Hung-yi Lee. Announcement 第四次小考 時間 : 12/24 範圍 : Ch11.1, 11.2, 11.4

• Draw the asymptotic Bode plot of the gain for H(s) = 8000s/(s+10) (s+40)(s+80). Add the dB correction to find the maximum value of a(ω)

Exercise 11.52

K78dB

1p

10

20dB-2p

40

32dB-3p

80

38dB-

1z

Correction 5 10 20 40 80 160

P1 -1dB -3dB -1dB

p2 -1dB -3dB -1dB

p3 -1dB -3dB -1dB

Total -1dB -3dB -2dB -4dB -4dB -1dB

Page 48: Lecture 24 Bode Plot Hung-yi Lee. Announcement 第四次小考 時間 : 12/24 範圍 : Ch11.1, 11.2, 11.4

• Draw the asymptotic Bode plot of the gain for H(s) = 8000s/(s+10) (s+40)(s+80). Add the dB correction to find the maximum value of a(ω)

Exercise 11.52

10 40

80

8dB

Correction 5 10 20 40 80 160

P1 -1dB -3dB -1dB

p2 -1dB -3dB -1dB

p3 -1dB -3dB -1dB

Total -1dB -3dB -2dB -4dB -4dB -1dB

Maximum gain is about 6dB 6dB20loga

210a 20

6

Page 49: Lecture 24 Bode Plot Hung-yi Lee. Announcement 第四次小考 時間 : 12/24 範圍 : Ch11.1, 11.2, 11.4

Homework

• 11.59, 11.60, 11.63

Page 50: Lecture 24 Bode Plot Hung-yi Lee. Announcement 第四次小考 時間 : 12/24 範圍 : Ch11.1, 11.2, 11.4

Thank you!

Page 51: Lecture 24 Bode Plot Hung-yi Lee. Announcement 第四次小考 時間 : 12/24 範圍 : Ch11.1, 11.2, 11.4

Answer

• 11.59

Page 52: Lecture 24 Bode Plot Hung-yi Lee. Announcement 第四次小考 時間 : 12/24 範圍 : Ch11.1, 11.2, 11.4

Answer

• 11.60

Page 53: Lecture 24 Bode Plot Hung-yi Lee. Announcement 第四次小考 時間 : 12/24 範圍 : Ch11.1, 11.2, 11.4

Answer

• 11.63

Page 54: Lecture 24 Bode Plot Hung-yi Lee. Announcement 第四次小考 時間 : 12/24 範圍 : Ch11.1, 11.2, 11.4

• http://lpsa.swarthmore.edu/Bode/underdamped/underdampedApprox.html

Page 55: Lecture 24 Bode Plot Hung-yi Lee. Announcement 第四次小考 時間 : 12/24 範圍 : Ch11.1, 11.2, 11.4

Examples

• http://lpsa.swarthmore.edu/Bode/BodeExamples.html