sketching bode plots by hand

36
1 Sketching Bode Plots by Hand MECH 3140 Lecture #

Upload: others

Post on 21-Oct-2021

3 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Sketching Bode Plots by Hand

1

Sketching Bode Plots by Hand

MECH 3140Lecture #

Page 2: Sketching Bode Plots by Hand

Recall what a bode plot is

β€’ It is the particular solution to a LTI differential equation for a sinusoidal input

β€’ It shows how the output of a system will responds to different input frequencies (including constant inputs, i.e. Ο‰=0)

β€’ It is plotted as gain and phase where gain is the π‘œπ‘œπ‘œπ‘œπ‘œπ‘œπ‘œπ‘œπ‘œπ‘œπ‘œπ‘œ

π‘–π‘–π‘–π‘–π‘œπ‘œπ‘œπ‘œπ‘œπ‘œand phase is the phase

difference between the input sinusoid and output sinusoid

2

Page 3: Sketching Bode Plots by Hand

Why know how to sketch?

β€’ Matlab can plot a bode plot and calculate the gain and phase from any transfer function

β€’ So why do we need to know how to sketch (approximately draw) one?– Its not to be a pain– Its not because we don’t like matlab

β€’ By understanding how to sketch a bode plot we can do two things as systems engineer where we might not have the transfer function to begin with– Design

β€’ If I am designing a system I don’t have a transfer function to put into matlab – I am building the transfer function

β€’ By understanding how to sketch a bode plot, I understand how to make a system with a given response

– Analysisβ€’ I might just be given data to look at and need to understand what the system might

be (i.e. be able to back out the transfer function from frequency response)β€’ I might be analyzing a specific phenomena and by understanding how to sketch a

bode plot I can understand what is happening or how to fix/change the phenomena.3

Page 4: Sketching Bode Plots by Hand

Bode Sketching Rules

β€’ You will notice that these sketching rules essentially come from the gain and phase calculations– The rules for 1st and 2nd order systems are β€œextended” by

understanding how gains multiply and phases add.– From these relationships you will notice that the rule for a

pole is inverted (or flipped) for the rule from a zeroβ€’ Gain and phase of the numerator vs. denominator

𝐺𝐺 πœ”πœ” = 𝐻𝐻(π‘—π‘—πœ”πœ”) =𝑛𝑛𝑛𝑛𝑛𝑛(π‘—π‘—πœ”πœ”)𝑑𝑑𝑑𝑑𝑛𝑛(π‘—π‘—πœ”πœ”)

=π‘Žπ‘Ž(π‘—π‘—πœ”πœ”)𝑏𝑏(π‘—π‘—πœ”πœ”)

𝑐𝑐 π‘—π‘—πœ”πœ”π‘‘π‘‘ π‘—π‘—πœ”πœ”

4

βˆ… πœ”πœ” = ∠𝐻𝐻 π‘—π‘—πœ”πœ” = βˆ π‘›π‘›π‘›π‘›π‘›π‘› π‘—π‘—πœ”πœ” βˆ’ βˆ π‘‘π‘‘π‘‘π‘‘π‘›π‘› π‘—π‘—πœ”πœ” = βˆ π‘Žπ‘Ž π‘—π‘—πœ”πœ” βˆ’ βˆ π‘π‘ π‘—π‘—πœ”πœ” + βˆ π‘π‘ π‘—π‘—πœ”πœ” βˆ’ βˆ π‘‘π‘‘ π‘—π‘—πœ”πœ”

Page 5: Sketching Bode Plots by Hand

Bode Sketching Rules

β€’ Draw your vertical and horizontal axis– Label horizontal axis Ο‰ (rad/s)– Label the top vertical axis Gain– Label the bottom vertical axis Phase (or Ο†)

β€’ Mark the magnitude of all zeros and poles on the frequency axis– It is sometimes helpful to draw the poles and zeros

on the s-plane (or at least calculate their magnitudes and damping ratios if they are under-damped)

5

Page 6: Sketching Bode Plots by Hand

Bode Sketching Rules (Gain)β€’ Start by sketching the asymptotes:

– Start from the DC Gainβ€’ If the DC gain is 0 or ∞ then start with a line of correct

slope (depending on the number of zeros or poles at the origin)

– Move in frequency until you hit the frequency (in magnitude) of a pole or zero

β€’ This is the absolute value of the pole or zero if it is realβ€’ This is the Ο‰n of the pole or zero if it is complex

– The slope then changes +1 for every zero and -1 for every pole

β€’ Note this means the slope would change +2 for a complex zero or -2 for a complex pole.

6

Page 7: Sketching Bode Plots by Hand

Bode Sketching Rules (Gain)– Label the slope of the asymptotes

β€’ Label the gain at DC and at the corners– Use your slopes and start from the DC gain

β€’ This requires you understand logarithmic plots (and their β€œslopes”)

– 𝐺𝐺2𝐺𝐺1 = (πœ”πœ”2

πœ”πœ”1)π‘ π‘ π‘ π‘ π‘œπ‘œπ‘œπ‘œπ‘ π‘  ∴ 𝐺𝐺2 = 𝐺𝐺1(πœ”πœ”2

πœ”πœ”1)π‘ π‘ π‘ π‘ π‘œπ‘œπ‘œπ‘œπ‘ π‘ 

β€’ If the DC Gain is 0 or ∞, then you must select another portion of the graph to start your gain from

– Generally this means calculating the gain from the transfer function for a particular frequency to use as your starting point

7

Page 8: Sketching Bode Plots by Hand

Bode Sketching Rules (Gain)

– Calculate (and label) the gain at the cornersβ€’ Real Pole: 0.707Gc

β€’ Real Zero: 1.414Gc

β€’ Complex Poles: 𝐺𝐺𝑐𝑐2𝜁𝜁

β€’ Complex Zeros: 2πœπœπΊπΊπ‘π‘β€’ Draw the Gain line

8

Page 9: Sketching Bode Plots by Hand

Bode Sketching Rules (Phase)

β€’ Start with the phase at Ο‰=0– This will be zero unless there is a pole or zero at

the originβ€’ In which case the phase will be

90*z (where z is the number of zeros at the origin)-90*p (where p is the number of poles at the origin)

– The phase changes +90/zero and -90/pole at the magnitude of the zero or pole

β€’ Half of the phase change (+45/zero, -45/pole) occurs at the magnitude of the eigenvalue

9

Page 10: Sketching Bode Plots by Hand

Comments

β€’ Note that these sketching rules produce very rough ideas for the bode plot (or the frequency response)– But the provide insight into design and

analysis.

10

Page 11: Sketching Bode Plots by Hand

Maxon DC16 Spec Sheet

https://www.maxongroup.com/medias/sys_master/root/8833376059422/19-EN-94.pdf 11

Page 12: Sketching Bode Plots by Hand

Example #1 (12 V Maxon DC 16 Motor)πœ”πœ”(𝑠𝑠)𝑉𝑉𝑠𝑠(𝑠𝑠)

=𝐾𝐾𝐼𝐼

𝐿𝐿𝐿𝐿𝑠𝑠2 + 𝐿𝐿𝐽𝐽 + 𝐿𝐿𝑏𝑏 𝑠𝑠 + (𝐾𝐾𝐼𝐼𝐾𝐾𝑏𝑏 + 𝐽𝐽𝑏𝑏)=

0.0156.405π‘‘π‘‘βˆ’11𝑠𝑠2 + 2.006π‘‘π‘‘βˆ’6𝑠𝑠 + 2.249π‘‘π‘‘βˆ’4

β€’ Two eigenvalues: S=-3.12e4 , -112β€’ Ο„1=0.032 ms, Ο„2=8.9 msβ€’ Note the dominant time constant is the β€œmechanical”

time constant on the data sheet.β€’ GDC=66.7 rad/sec/Volt (this matches the no load

speed on the data sheet).

12

Im

Re

-112-3.12e4

Page 13: Sketching Bode Plots by Hand

Hand Sketch

13

Page 14: Sketching Bode Plots by Hand

>> bode(Ki,[J*L J*R+L*b Ki*Kb+R*b])

14

Page 15: Sketching Bode Plots by Hand

Example #2 (LRC Circuit)

15

L=1 HR=100 Ξ©C=10 mF

Im

Re-1-99

𝐼𝐼(𝑠𝑠)𝑉𝑉(𝑠𝑠)

=𝐢𝐢𝑠𝑠

𝐿𝐿𝐢𝐢𝑠𝑠2 + 𝐽𝐽𝐢𝐢𝑠𝑠 + 1=

0.01𝑠𝑠0.01𝑠𝑠2 + 𝑠𝑠 + 1

𝐺𝐺 10 =0.1𝑗𝑗

10𝑗𝑗 + (1 βˆ’ 1)= 0.01

Page 16: Sketching Bode Plots by Hand

Hand Sketch

16

Page 17: Sketching Bode Plots by Hand

>> bode([C 0],[L*C R*C 1])

17

Page 18: Sketching Bode Plots by Hand

Example #3 (PID Controller)

𝐹𝐹 𝑑𝑑 = πΎπΎπ‘œπ‘œπ‘‘π‘‘ + 𝐾𝐾𝑑𝑑𝑑 + 𝐾𝐾𝐼𝐼 𝑑𝑑𝑑𝑑𝑑𝑑

𝐹𝐹(𝑠𝑠)𝑑𝑑(𝑠𝑠)

= πΎπΎπ‘œπ‘œ + 𝐾𝐾𝑑𝑑𝑠𝑠 +𝐾𝐾𝐼𝐼𝑆𝑆𝑑𝑑 =

𝐾𝐾𝑑𝑑𝑠𝑠2 + πΎπΎπ‘œπ‘œπ‘ π‘  + 𝐾𝐾𝐼𝐼𝑠𝑠

=𝑠𝑠2 + 15𝑠𝑠 + 50

𝑠𝑠

18

Im

Re-5-10

Page 19: Sketching Bode Plots by Hand

Hand Sketch

19

β€’ Notice positive phase shift (output β€œleads” input)– This is a property of derivative control

β€’ It β€œanticipates” the output by using the derivativeβ€’ However, notice the increasing gain

– Amplifies noise!

-1 +1

Page 20: Sketching Bode Plots by Hand

>> bode([1 15 50],[1 0])

20

Page 21: Sketching Bode Plots by Hand

Example #4 (Random System)

𝐻𝐻 𝑠𝑠 =50

(𝑠𝑠2 + 2𝑠𝑠 + 100)(𝑠𝑠 + 1)=

50𝑠𝑠3 + 3𝑠𝑠2 + 102 + 100

21

Im

Re-1

10

99

βˆ’ 99

Page 22: Sketching Bode Plots by Hand

Hand Sketch

22

Page 23: Sketching Bode Plots by Hand

>>bode(50,[1 3 102 100])

23

Page 24: Sketching Bode Plots by Hand

Example #5 (1/4 Car Model)

β€’ Used to model vehicle ride (vertical motion only)

β€’ For this example, we will ignore the damping

24

m2 F

k2

m1

k1

x2

x1

Page 25: Sketching Bode Plots by Hand

ΒΌ Car Transfer Functionsπ‘₯π‘₯1(𝑠𝑠)𝐹𝐹(𝑠𝑠)

=π‘˜π‘˜1

𝑛𝑛1𝑛𝑛2𝑠𝑠4 + (𝑛𝑛1π‘˜π‘˜1 + 𝑛𝑛1π‘˜π‘˜2 + 𝑛𝑛2π‘˜π‘˜2)𝑠𝑠2 + π‘˜π‘˜1π‘˜π‘˜2π‘₯π‘₯2(𝑠𝑠)𝐹𝐹(𝑠𝑠)

=𝑛𝑛1𝑠𝑠2 + π‘˜π‘˜1

𝑛𝑛1𝑛𝑛2𝑠𝑠4 + (𝑛𝑛1π‘˜π‘˜1 + 𝑛𝑛1π‘˜π‘˜2 + 𝑛𝑛2π‘˜π‘˜2)𝑠𝑠2 + π‘˜π‘˜1π‘˜π‘˜2

25

Im

Re

6

60

60

6

Im

Re

6

60

60

6

Page 26: Sketching Bode Plots by Hand

X1 Hand Bode Sketch (Car)

26

Page 27: Sketching Bode Plots by Hand

X2 Hand Bode Sketch (Wheel)

27

Page 28: Sketching Bode Plots by Hand

X1 Bode Plot (Car)

28

>>bode(k1,[m1*m2 0 m1*(k1+k2)+m2*k2 0 k1*k2])

Page 29: Sketching Bode Plots by Hand

X2 Bode Plot (Wheel)

>>bode([m1 0 k1],[m1*m2 0 m1*(k1+k2)+m2*k2 0 k1*k2])

29

Page 30: Sketching Bode Plots by Hand

Effect of Wheel Imbalance

β€’ What is the force acting on the wheel due to a wheel imbalance– Same as the reaction forces on the pendulum

you did in a prior Matlab homework

30

Rω

m

Ο‰

mg

Ry𝐹𝐹𝑦𝑦 = 𝑛𝑛𝑦 = 𝐽𝐽𝑦𝑦 βˆ’π‘›π‘›π‘šπ‘š

𝑦 = π½π½πœƒ sin πœƒπœƒ βˆ’ π½π½πœƒ2cos(πœƒπœƒ)ΞΈ

𝑦 = βˆ’π½π½πœƒ2cos(πœƒπœƒ)If Ο‰=const

πœƒπœƒ = πœ”πœ”π‘‘π‘‘ + πœƒπœƒ0

𝐽𝐽𝑦𝑦 = π‘›π‘›π‘šπ‘š βˆ’π‘›π‘›π½π½πœ”πœ”2sin(ω𝑑𝑑 + πœƒπœƒ0)

Page 31: Sketching Bode Plots by Hand

Effect of Wheel Imbalance

β€’ It creates a sinusoidal force input!– Frequency of the sinusoidal input is the speed

of the wheel– Notice the magnitude of the input force

increases by frequency (i.e. speed) squared!β€’ 2nd order low pass filter would not remove

31

𝐽𝐽𝑦𝑦 = π‘›π‘›π‘šπ‘š βˆ’π‘›π‘›π½π½πœ”πœ”2sin(ω𝑑𝑑 + πœƒπœƒ0)

Page 32: Sketching Bode Plots by Hand

π‘₯π‘₯1 (Car position)

β€’ Remember the Bode Plot is π‘œπ‘œπ‘œπ‘œπ‘œπ‘œπ‘œπ‘œπ‘œπ‘œπ‘œπ‘œπ‘–π‘–π‘–π‘–π‘œπ‘œπ‘œπ‘œπ‘œπ‘œ

32

Page 33: Sketching Bode Plots by Hand

π‘₯π‘₯2 (Wheel position)

β€’ Remember the Bode Plot is π‘œπ‘œπ‘œπ‘œπ‘œπ‘œπ‘œπ‘œπ‘œπ‘œπ‘œπ‘œπ‘–π‘–π‘–π‘–π‘œπ‘œπ‘œπ‘œπ‘œπ‘œ

33

Page 34: Sketching Bode Plots by Hand

Calculating Gain & Phase Graphically

‒ Also, since the gain and phase are calculated by evaluating the magnitude and phase of the transfer function at jω, you can also do it graphically.

β€’ Recall that jΟ‰ is essentially the imaginary axis on the s-plane– Can find the gain and phase by calculating lengths from

the imaginary axis to the poles and zeros and the angles from the poles and zeros to the frequency on the imaginary axis:

𝐺𝐺 πœ”πœ” =𝑝𝑝𝑝𝑝𝑝𝑝𝑑𝑑𝑛𝑛𝑐𝑐𝑑𝑑 π‘π‘π‘œπ‘œ 𝑑𝑑𝑑𝑑𝑑 π‘™π‘™π‘‘π‘‘π‘›π‘›π‘šπ‘šπ‘‘π‘‘π‘‘π‘ π‘  π‘œπ‘œπ‘π‘π‘π‘π‘›π‘› πœ”πœ” 𝑝𝑝𝑛𝑛 𝑑𝑑𝑑𝑑𝑑 π‘–π‘–π‘›π‘›π‘Žπ‘Žπ‘šπ‘šπ‘–π‘–π‘›π‘›π‘Žπ‘Žπ‘π‘π‘¦π‘¦ π‘Žπ‘Žπ‘₯π‘₯𝑖𝑖𝑠𝑠 𝑑𝑑𝑝𝑝 π‘Žπ‘Žπ‘™π‘™π‘™π‘™ 𝑑𝑑𝑑𝑑𝑑 𝑧𝑧𝑑𝑑𝑝𝑝𝑝𝑝𝑠𝑠𝑝𝑝𝑝𝑝𝑝𝑝𝑑𝑑𝑛𝑛𝑐𝑐𝑑𝑑 π‘π‘π‘œπ‘œ 𝑑𝑑𝑑𝑑𝑑 π‘™π‘™π‘‘π‘‘π‘›π‘›π‘šπ‘šπ‘‘π‘‘π‘‘π‘ π‘  π‘œπ‘œπ‘π‘π‘π‘π‘›π‘› πœ”πœ” 𝑝𝑝𝑛𝑛 𝑑𝑑𝑑𝑑𝑑 π‘–π‘–π‘›π‘›π‘Žπ‘Žπ‘šπ‘šπ‘–π‘–π‘›π‘›π‘Žπ‘Žπ‘π‘π‘¦π‘¦ π‘Žπ‘Žπ‘₯π‘₯𝑖𝑖𝑠𝑠 𝑑𝑑𝑝𝑝 π‘Žπ‘Žπ‘™π‘™π‘™π‘™ 𝑑𝑑𝑑𝑑𝑑 𝑧𝑧𝑑𝑑𝑝𝑝𝑝𝑝𝑠𝑠

βˆ… πœ”πœ” = βˆ…π‘§π‘§π‘ π‘ π‘§π‘§π‘œπ‘œπ‘ π‘  βˆ’βˆ…π‘œπ‘œπ‘œπ‘œπ‘ π‘ π‘ π‘ π‘ π‘ 34

Page 35: Sketching Bode Plots by Hand

Graphical Example #1

35

4

Im

Re

𝐻𝐻 𝑠𝑠 =𝑠𝑠 + 4𝑠𝑠 + 3

-3-4

54 2

Ο•1Ο•2

𝐺𝐺 4 =4 2

5

πœ™πœ™ 4 = βˆ’7 π‘‘π‘‘π‘‘π‘‘π‘šπ‘š

Ξ¦1=53

Ξ¦2=45

Page 36: Sketching Bode Plots by Hand

Graphical Example #2

36

4

Im

Re

𝐻𝐻 𝑠𝑠 =𝑠𝑠 + 3

𝑠𝑠2 + 12𝑠𝑠 + 52

-6 -310

5

Ο•1

Ο•3

𝐺𝐺 4 =5

6 βˆ— 10 = 0.0833

πœ™πœ™ 4 = 0 π‘‘π‘‘π‘‘π‘‘π‘šπ‘š

Ξ¦1=0

Ξ¦2=53

Ο•2-4

Ξ¦3=53