exploring bode plots for simple systems -凯发k8网页登录
from the series:
learn how to build bode plots for first-order systems in this matlab® tech talk by carlos osorio. a bode plot describes the frequency response of a dynamic system and displays the magnitude and phase of the system response as a function of frequency in a logarithmic scale. you will learn how to interactively design bode plots to study the effect of adding poles and zeros on the frequency response.
we just saw how a function like bode in matlab can quickly and easily create a frequency response plot directly from the dynamic equations of, or the input, output transfer functions of our system. the key as control engineers is not just to be able to create those plots. the important thing is having a good understanding of what those magnitude and phase traces are telling us about our system behavior and stability.
bode plots were originally developed by dr. hendrik bode, hence the name, while he was working for bell labs in the 1930s, just before world war ii. this guy was a brilliant controls engineer, and he came up with what, at the time, was the groundbreaking idea of using asymptotic magnitude and phase plots to facilitate stability analysis and control system design in the frequency domain.
remember that this was way before computers, so i guess engineers at the time were stuck with slide rulers, using them to manually calculate all those logarithms. the ideas behind the asymptotic approach are quite simple, but extremely powerful. and they will help us gain a better understanding of how those plots are actually built.
the simplest construct i can start with is a pure integrator, which corresponds to 1/s in the laplace domain. if we replace s by jw, our function g becomes a vector on the negative imaginary axis. negative because we are multiplying the numerator and denominator by the square root of -1.
this vector has a constant phase angle of -90 degrees, and a magnitude of 1/w. notice that as the frequency omega goes from 0 to infinity, the magnitude of our vector would go from infinity to 0. in terms of dbs, the log of a fraction is the log of the numerator, in this case, 1, minus the log of the denominator, in this case, w.
we know that log of 1 is 0. so that part goes away and magnitude trace of the bode plot becomes just a line, because we are plotting it on a horizontal axis that represents log of w. notice that this line has a slope of -20 dbs per unit, which is a frequency decade in this case. the phase remains constant and -90 degrees, and is independent of the frequency.
conversely, if we look at a pure differentiator, which corresponds to just s in the laplace domain, because w is in the numerator now. in this case, the magnitude will be a line going up with a slope of 20 dbs per decade. and the phase will be a constant positive 90 degrees.
now let's move on to our first art of construct like a single pole with a time constant of tau. once again, if we want to look at the frequency response, we need to replace s by jw. the magnitude of that vector will be log of 1, which goes to 0, minus 20 times the log of the magnitude of the denominator.
on first impression this looks like it is going to be very hard to draw. but if you think of that expression, on an asymptotic manner, and break the diagram in two parts-- when the frequency is well below the pole, in this case, below 1/tau, radiance per second, tau multiplied by w will become very small and the number 1 will dominate the expression.
note that this makes g become close to 1/1, which will be a vector on the real axis. meaning that the phase will be very close to 0, and the log of its magnitude will be very close to 0, too. when the frequency is way higher than the pole, tau*w will become dominant, in which case, g becomes close to a negative, purely imaginary vector. meaning that the phase will be close to -90 degrees, and the log of the magnitude will be close to a straight line, rolling off at -20 degrees per decade and crossing zero, where w equals to 1/tau.
notice that the actual bode plot deviates very little from our asymptotic approximation. obviously, we are going to see the biggest difference around the cut-off value of 1/tau. from the plot, we can also see that the phase angle takes about two decades to shift 90 degrees. so if you want a little more accuracy on the angle, we can assume that the phase drops 45 degrees per decade before and after the value of a pole.
using the same approach, we can see that a single 0 will result in a similar trace. only in this case, because the 0 is in the numerator, the phase would shift 90 degrees, and the magnet to slope would be 20 dbs per decade.
at this point, i would like to give you a feel for how all of this works in a more interactive fashion. what we are looking at here is the bode diagram for a constant transfer function of 1. our system g, over here, is equal to 1. this means log of 1, which is 0 db magnitude and 0 degrees of phase, because it's a positive real number.
let's see what happens when i add a pole. let's say close to 1 radian per second. we can see how that magnitude plot immediately breaks down with a -20 dbs per decade. and the phase shifts to -90 degrees.
if i move the pole to the right or to the left, making it faster or slower, all i am doing is shifting that kind of frequency. let's erase that pole and bring in a 0. as expected, now we see a positive break in the magnitude and 90 in the phase. notice that the magnitude of a pure 0 goes to infinity at high frequencies.
this is pretty undesirable behavior because, amongst other bad things, it will more than likely be amplifying all kinds of high frequency noise in our system. normally if you have a pure differentiator or a 0, it will always be accompanied by at least a pole somewhere up the frequency range to bring the gain trees down.
because of superposition of the graphs, remember that multiplication becomes sums on a logarithmic scale.
the plus 20 db slope of the 0 gets canceled by the minus 20 db slope of the pole. similarly with the phase, the 90 degrees of the 0 gets pulled down by -90 degrees of the pole. if i actually wanted some attenuation at the higher frequencies, all i need to do is add another pole close to the first one. and now the role of rate becomes minus 20 dbs per decade.
if you want a sharper drop but higher frequencies, just add another pole and, boom, -40 degrees per decade. anyways i think you would agree that this interactive design tool is way better than slide rules and graph paper. i don't know about you, but i like to believe that dr. bode who, by the way, spent many years teaching controls just across the river at harvard, would have truly loved matlab.
您也可以从以下列表中选择网站:
如何获得最佳网站性能
选择中国网站(中文或英文)以获得最佳网站性能。其他 mathworks 国家/地区网站并未针对您所在位置的访问进行优化。
美洲
- (español)
- (english)
- (english)
欧洲
- (english)
- (english)
- (deutsch)
- (español)
- (english)
- (français)
- (english)
- (italiano)
- (english)
- (english)
- (english)
- (deutsch)
- (english)
- (english)
- switzerland
- (english)
亚太
- (english)
- (english)
- (english)
- 中国
- (日本語)
- (한국어)