Lecture 23 Introduction to Bode Plots
CL-417 Process Control
- Prof. Kannan M. Moudgalya
IIT Bombay Wednesday, 25 September 2013
1/51 CL-417 Process Control Introduction to Bode Plot
Lecture 23 Introduction to Bode Plots CL-417 Process Control Prof. - - PowerPoint PPT Presentation
Lecture 23 Introduction to Bode Plots CL-417 Process Control Prof. Kannan M. Moudgalya IIT Bombay Wednesday, 25 September 2013 1/51 CL-417 Process Control Introduction to Bode Plot Outline 1. Recall frequency response, including s = j
1/51 CL-417 Process Control Introduction to Bode Plot
2/51 CL-417 Process Control Introduction to Bode Plot
3/51 CL-417 Process Control Introduction to Bode Plot
◮ Excited a linear system G(s) with sin ω0t ◮ yss(t) = |G(ω0)| sin (ω0t + φ(ω0)) ◮ Input is sinusoid ⇒ output is sinusoid ◮ Frequencies of input and output are same ◮ |G(ω0)| multiplies output amplitude ◮ Output sinusoid shifts by
4/51 CL-417 Process Control Introduction to Bode Plot
◮ yss(t) = |G(ω0)| sin (ω0t + φ(ω0)) ◮ How did this term |G(ω0)| come about? ◮ Recall that
△
◮ So, we substitute s = jω in all frequency
5/51 CL-417 Process Control Introduction to Bode Plot
◮ What is the long time response of the
◮ Solve it using
◮ yss(t) = |G(jω0)| sin (ω0t + φ(ω0))
6/51 CL-417 Process Control Introduction to Bode Plot
7/51 CL-417 Process Control Introduction to Bode Plot
8/51 CL-417 Process Control Introduction to Bode Plot
◮ Fan speed is constant at 100 ◮ Oscillated at 25 heater units (40units =
9/51 CL-417 Process Control Introduction to Bode Plot
◮ Same conditions as before, but for a lower
10/51 CL-417 Process Control Introduction to Bode Plot
◮ Make use of
◮ Repeat this for a large number of ω ◮ Evaluate |G(jω)| for every ω ◮ Note down ∠G(jω) = φ(ω) at every ω ◮ Plot these
◮ |G(jω)| vs. ω is known as the magnitude plot ◮ ∠G(jω) = φ(ω) vs. ω is known as the phase
◮ Black plot in the next figure
11/51 CL-417 Process Control Introduction to Bode Plot
12/51 CL-417 Process Control Introduction to Bode Plot
◮ Bode plot is developed for plant
◮ Can also be used as an analysis tool ◮ Recall our mathematical experiment:
◮ yss(t) = |G(jω0)| sin (ω0t + φ(ω0)) ◮ Can excite G(s) for different frequencies ◮ Obtain Bode plots of G(s) ◮ In the previous page, compared
◮ Experimentally obtained Bode plot with ◮ that obtained using fitted transfer function 13/51 CL-417 Process Control Introduction to Bode Plot
14/51 CL-417 Process Control Introduction to Bode Plot
◮ Draw the Bode plot for G(s) =
◮ Magnitude plot: draw |G(jω)| vs. ω ◮ Phase angle plot: draw ∠G(jω) vs. ω
15/51 CL-417 Process Control Introduction to Bode Plot
Magnitude 0.0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1.0 5 10 15 20 25 30 35 Normal scale Phase(deg)
5 10 15 20 25 30 35 w(rad/sec)
16/51 CL-417 Process Control Introduction to Bode Plot
◮ G(s) = N1(s)
◮ G(jω) = N1(jω)
◮ Plots of composite functions cannot be
17/51 CL-417 Process Control Introduction to Bode Plot
◮ Cannot see the behaviour well at high
◮ Solution: use log scale ◮ Log scale on the y-axis provides the
18/51 CL-417 Process Control Introduction to Bode Plot
◮ G(s) = N1(s)
◮ G(jω) = N1(jω)
◮ log |G(jω)| =
◮ ∠G(jω) = ∠N1(jω) + · · · + ∠Nm(jω) ◮ −∠D1(jω) − · · · − ∠Dm(jω) ◮ Large frequency range is covered ◮ Addition rule is available with log scale ◮ Can do constituent to composite plots
19/51 CL-417 Process Control Introduction to Bode Plot
10 10 Magnitude 10
10 1
2 10 10 10 10 10 10
Loglog
Phase(deg)
10 10 10 10 10 10
1 2
w(rad/sec)
20/51 CL-417 Process Control Introduction to Bode Plot
1
2 3
4 num = 1 ; 5 den = (10∗ s +1) ; 6 7 w = 0 . 0 0 1 : 0 . 0 0 2 : 1 0 ∗ %pi ; 8 LF = ” normal ”
/ / W a r n i n g : C h a n g e t h i s a s n e c e s s a r y
9 10 bodegen (num , den ,w, LF ) ; 21/51 CL-417 Process Control Introduction to Bode Plot
1
/ / B o d e p l o t
2
/ / N u m e r a t o r a n d d e n o m i n a t o r a r e p a s s e d a s i n p u t a r g u m e n t s
3
/ / B o t h a r e p o l y n o m i a l s i n p o w e r s
s ( s a y )
4 5
6 7 G = num/den ; 8 G1 = horner (G, %i∗w) ; 9 G1p = phasemag (G1) ; 22/51 CL-417 Process Control Introduction to Bode Plot
10 11
12
13
14
15
16
17
18
23/51 CL-417 Process Control Introduction to Bode Plot
19
20
21
22
23
24
25
26
27
24/51 CL-417 Process Control Introduction to Bode Plot
28
29
30
31
32
33
34
35
25/51 CL-417 Process Control Introduction to Bode Plot
36
37
38
39
40
41 end 42 43
26/51 CL-417 Process Control Introduction to Bode Plot
27/51 CL-417 Process Control Introduction to Bode Plot
◮ Bode plots mean the following:
◮ Magnitude and phase vs. frequency plots ◮ x axis (frequency): should be in log scale ◮ Magnitude plot should be in logarithmic scale
◮ The phrase Bode Plot implies logarithmic
28/51 CL-417 Process Control Introduction to Bode Plot
29/51 CL-417 Process Control Introduction to Bode Plot
10 10 Magnitude 10
10 1
2 10 10 10 10 10 10
Loglog
Phase(deg)
10 10 10 10 10 10
1 2
w(rad/sec)
30/51 CL-417 Process Control Introduction to Bode Plot
◮ Gives information on low frequencies also ◮ Covers a large range of frequencies ◮ Requires a log-log scale for magnitude ◮ Requires a semilog scale for phase angle ◮ Normally plot both magnitude and phase
◮ Convenient for computer (e.g. Scilab)
◮ This approach is followed in Franklin and
◮ Inconvenient to do in a single graph paper
31/51 CL-417 Process Control Introduction to Bode Plot
◮ G(jω) = N1(jω)
◮ log |G(jω)| =
◮ 20 log |G(jω)| =
◮ log is to the base 10 ◮ Unit is decibel - some people call it
32/51 CL-417 Process Control Introduction to Bode Plot
33/51 CL-417 Process Control Introduction to Bode Plot
2
Magnitude (dB)
10 10 10 10 10 10
1
Semilog
Phase(deg)
10 10 10 10 10 10
1 2
w(rad/sec)
34/51 CL-417 Process Control Introduction to Bode Plot
1
/ / B o d e p l o t
2
/ / N u m e r a t o r a n d d e n o m i n a t o r a r e p a s s e d a s i n p u t a r g u m e n t s
3
/ / B o t h a r e p o l y n o m i a l s i n p o w e r s
s ( s a y )
4 5
6 7 G = num/den ; 8 G1 = horner (G, %i∗w) ; 9 G1p = phasemag (G1) ; 35/51 CL-417 Process Control Introduction to Bode Plot
10 11
12
13
14
15
16
17
18
36/51 CL-417 Process Control Introduction to Bode Plot
19
20
21
22
23
24
25
26
27
37/51 CL-417 Process Control Introduction to Bode Plot
28
29
30
31
32
33
34
35
38/51 CL-417 Process Control Introduction to Bode Plot
36
37
38
39
40
41 end 42 43
39/51 CL-417 Process Control Introduction to Bode Plot
◮ Gives information on low frequencies also ◮ Covers a large range of frequencies ◮ Requires a semilog paper for magnitude
◮ Convenient to do in a single graph paper ◮ This approach is followed in B. C. Kuo,
40/51 CL-417 Process Control Introduction to Bode Plot
41/51 CL-417 Process Control Introduction to Bode Plot
◮ Drew Bode plots for G(s) =
◮ Let us generalise for
42/51 CL-417 Process Control Introduction to Bode Plot
◮ G(s) =
◮ |G(jω)| =
◮ ω ≪ 1, |G(jω)| = 1, M = 20 log |G(jw)| = 0 ◮ Asymptote is M = 0 ◮ ω ≫ 1, |G(jω)| =
◮ Asymptote is M = −20 log ωτ ◮ ω = ω1 ⇒ M = −20 log ω1τ ◮ ω = 10ω1 ⇒ M = −20 log ω1τ − 20 ◮ Slope of −20 dB per decade
43/51 CL-417 Process Control Introduction to Bode Plot
◮ G(jω) =
◮ |G(jω)| =
◮ For ω ≪ 1, the asymptote is |G(jω)| = 1 ◮ ω ≫ 1, the asymptote is |G(jω)| =
◮ Two asymptotes intersect at ω = 1/τ ◮ w = 1/τ is known as the corner frequency
44/51 CL-417 Process Control Introduction to Bode Plot
◮ |G(jω)| =
◮ ω = 1/τ is known as the corner frequency ◮ At ω = 1/τ, what is M? ◮ M = −20 log
45/51 CL-417 Process Control Introduction to Bode Plot
2
Magnitude (dB)
10 10 10 10 10 10
1
Semilog
Phase(deg)
10 10 10 10 10 10
1 2
w(rad/sec)
46/51 CL-417 Process Control Introduction to Bode Plot
◮ G(s) =
◮ ω ≪ 1, G(jω) = 1, φ = ∠G(jw) = 0 ◮ ω ≫ 1, G(jω) =
◮ For ω = τ, G(jω) =
◮ φ = −45◦
47/51 CL-417 Process Control Introduction to Bode Plot
48/51 CL-417 Process Control Introduction to Bode Plot
◮ Draw the Bode plot for G(s) =
◮ Draw the Bode plot for G(s) =
◮ Do this manually ◮ Also repeat using Scilab
49/51 CL-417 Process Control Introduction to Bode Plot
◮ Introduction to Bode plots ◮ Reason to use logarithmic and
◮ A first order example
50/51 CL-417 Process Control Introduction to Bode Plot
51/51 CL-417 Process Control Introduction to Bode Plot