lecture 8b frequency response. frequency response the most interesting type of system response uses...

35
Lecture 8B Frequency Response

Upload: lisandro-leaverton

Post on 16-Dec-2015

216 views

Category:

Documents


2 download

TRANSCRIPT

Page 1: Lecture 8B Frequency Response. Frequency Response The most interesting type of system response Uses a sine wave forcing function input Interest is in

Lecture 8BFrequency Response

Page 2: Lecture 8B Frequency Response. Frequency Response The most interesting type of system response Uses a sine wave forcing function input Interest is in

Frequency Response

• The most interesting type of system response• Uses a sine wave forcing function input• Interest is in the steady-state response instead of the

transient response• Steady-state response to a step change only provides

information about process gain• Transient response to sine wave change involves a

fast change (gone within 4 Tp values) to consistent response oscillating at the input frequency

Page 3: Lecture 8B Frequency Response. Frequency Response The most interesting type of system response Uses a sine wave forcing function input Interest is in

Attributes of Frequency Response

• Two major characteristics of frequency response:

1. Output amplitude with respect to the input2. Output phase lag or lead with respect to the input

• Amplitude is attenuated or amplified depending on input frequency

• Output oscillating out of phase with input also depends on input frequency

Page 4: Lecture 8B Frequency Response. Frequency Response The most interesting type of system response Uses a sine wave forcing function input Interest is in

First Order Frequency Response

For a sine wave input to a first order process

the output equals

By partial fraction decomposition, numerators are:

Page 5: Lecture 8B Frequency Response. Frequency Response The most interesting type of system response Uses a sine wave forcing function input Interest is in

First Order Frequency Response

Now, by inverting back to the time domain: dies out as t increases

Note: φ is a function of Tp and ω, but not of t.

So for values of t/Tp ≥ 4.0 (e-4 = 0.018), the process output , is a sine wave attenuated by whose value depends on ω being fast or slow.

Page 6: Lecture 8B Frequency Response. Frequency Response The most interesting type of system response Uses a sine wave forcing function input Interest is in

First Order Frequency Response

Attenuation and time shift between input and output sine waves (Kp=1). The phase angle φ of the output signal is calculated from φ = – 180*Δt/P, where Δt is the time shift and P is the period of oscillation.

Page 7: Lecture 8B Frequency Response. Frequency Response The most interesting type of system response Uses a sine wave forcing function input Interest is in

Bodé Diagrams

Note that ωn = 1/Tp , the natural frequency of the system, so the X-axis is the relative frequency ω/ωn

- for a First Order System

Page 8: Lecture 8B Frequency Response. Frequency Response The most interesting type of system response Uses a sine wave forcing function input Interest is in

Why is Frequency Response Analysis so Useful?

• The amplitude ratio and phase lag provide info about system stability

• These can be determined using the Laplace Transform directly to generate a Bodé Diagram

• Can be used to study:

• System identification (create a model)• Controller tuning• Stability of the control system• Robustness of the control system• Designing noise filters

Page 9: Lecture 8B Frequency Response. Frequency Response The most interesting type of system response Uses a sine wave forcing function input Interest is in

Laplace and Complex Numbers

Consider a complex number W defined as a + bj where a represents the real part of W or Re(W) b represents the imaginary part of W or Im(W).

Define the following terms to characterize this number in the complex domain (polar coordinates) The Modulus The Phase Angle

Page 10: Lecture 8B Frequency Response. Frequency Response The most interesting type of system response Uses a sine wave forcing function input Interest is in

Laplace and Complex Numbers

These two terms can be used to plot the complex number in a polar coordinate plane

a = |W|cosθ and b = |W|sinθ and W = |W|cosθ + j|W|sinθ

Page 11: Lecture 8B Frequency Response. Frequency Response The most interesting type of system response Uses a sine wave forcing function input Interest is in

Laplace and Complex Numbers

Since cosθ = (e+jθ + e-jθ)/2 and sinθ = (e+jθ – e-jθ)/2j Then W = |W|[(e+jθ + e-jθ)/2] + j|W|[(e+jθ – e-jθ)/2j] W = |W|e+jθ

Apply this complex knowledge to a First Order System:

Substitute jω for s:

Page 12: Lecture 8B Frequency Response. Frequency Response The most interesting type of system response Uses a sine wave forcing function input Interest is in

Laplace and Complex Numbers

In polar coordinate form, this becomes:

So by substituting jω for s and rearranging the transform into polar coordinate form, the amplitude ratio and phase angle for the system are obtained directly.

Page 13: Lecture 8B Frequency Response. Frequency Response The most interesting type of system response Uses a sine wave forcing function input Interest is in

Second Order Frequency Response

The original second order transform:

Substitute jω for s:

Page 14: Lecture 8B Frequency Response. Frequency Response The most interesting type of system response Uses a sine wave forcing function input Interest is in

Second Order Frequency Response

In polar coordinate form, this becomes:

So, steady state response is obtained directly for the second order system in a few steps and the Bodé Diagram can be plotted for different values of ωTp and ζ.

Page 15: Lecture 8B Frequency Response. Frequency Response The most interesting type of system response Uses a sine wave forcing function input Interest is in

Bode Diagram- for Second Order System

Note that ωn = 1/Tp , the natural frequency of the system, so the X-axis is the relative frequency ω/ωn

Page 16: Lecture 8B Frequency Response. Frequency Response The most interesting type of system response Uses a sine wave forcing function input Interest is in

Notes on Second Order Frequency Response

2nd order response has maximum lag of 180° - twice a 1st order system. If phase angle exceeds 90°, then it is a higher order.

The real problem faced by 2nd and higher order systems shows up at the natural frequency ωn . The amplitude ratio can be >>>> 1.0 and if ζ approaches 0, the response is amplified to . With a 3rd order system, two critical frequencies may exist while for a 4th order system there can be three. Clearly such system responses are not desired or tolerable and must be avoided.

As well the phase lag of higher order systems for high frequency inputs is equal to -90n where n is the system order. With such high lags, these systems are more difficult to control and design.

Page 17: Lecture 8B Frequency Response. Frequency Response The most interesting type of system response Uses a sine wave forcing function input Interest is in

Bode Diagram for PI Controller

• PI Controller

Page 18: Lecture 8B Frequency Response. Frequency Response The most interesting type of system response Uses a sine wave forcing function input Interest is in

Bode Diagram for PI Controller

• PI Controller with Kc = 2.0 and TI = 10

Page 19: Lecture 8B Frequency Response. Frequency Response The most interesting type of system response Uses a sine wave forcing function input Interest is in

Bode Diagram for PD Controller

• PD Controller

Page 20: Lecture 8B Frequency Response. Frequency Response The most interesting type of system response Uses a sine wave forcing function input Interest is in

Bode Diagram for PD Controller

• PD Controller with Kc = 2.0 and TD = 10

Page 21: Lecture 8B Frequency Response. Frequency Response The most interesting type of system response Uses a sine wave forcing function input Interest is in

Bode Diagram for PID Controller

• PID Controller

Page 22: Lecture 8B Frequency Response. Frequency Response The most interesting type of system response Uses a sine wave forcing function input Interest is in

Bode Diagram for PD Controller

• PID Controller with Kc = 2.0, TI = 10 and TD = 4

Page 23: Lecture 8B Frequency Response. Frequency Response The most interesting type of system response Uses a sine wave forcing function input Interest is in

Notch filters are often used in control systems to eliminate the effects of mechanical resonance.

The general transfer function for many types of filters, including notch filters, is equivalent to the transfer function of a PID controller.

Page 24: Lecture 8B Frequency Response. Frequency Response The most interesting type of system response Uses a sine wave forcing function input Interest is in

Controller Design using Frequency Response

• Advantages1. Applicable to all orders & types of dynamic models2. Designer can specify desired closed-loop response3. Information on stability and sensitivity is obtained

• Disadvantages1. Approach is iterative and hence, is time-consuming–interactive

computer graphics are necessary2. Results often taken to be "gospel" (far from reality of most

processes and plants)3. Diagrams represent expected results for a model – not necessarily

the real process

Page 25: Lecture 8B Frequency Response. Frequency Response The most interesting type of system response Uses a sine wave forcing function input Interest is in

Frequency Response Stability Criteria

Two principal methods to assess stability:- Bode Stability Criterion- Nyquist Stability Criterion

The Bode Stability CriterionThe Bode stability criterion states that a closed-loop system is unstable if the Frequency Response of the open-loop Transfer Function has an amplitude ratio greater than 1.0 at the critical frequency ωc. Otherwise the closed-loop system is stable. For the analysis, ωc is the value of ω where open-loop phase angle is -180°

Page 26: Lecture 8B Frequency Response. Frequency Response The most interesting type of system response Uses a sine wave forcing function input Interest is in

Bode Stability Criteria

• The Bode stability criterion – a closed-loop system is unstable if the Frequency

Response of the open-loop Transfer Function has an amplitude ratio > 1.0 at the critical frequency Cω.

– Otherwise the closed-loop system is stable. – Cω is where the open-loop phase angle = 180°

Page 27: Lecture 8B Frequency Response. Frequency Response The most interesting type of system response Uses a sine wave forcing function input Interest is in

Bode Stability Criteria

Example:• A process has a Transfer Function:

• For proportional control, determine the closed-loop stability for three values of Kc = 1, 4, and 20.

ccvp KGGs

sG

,1,)15.0(

2)(

3

Page 28: Lecture 8B Frequency Response. Frequency Response The most interesting type of system response Uses a sine wave forcing function input Interest is in

Bode Stability Criteria

Solution:• The Open Loop Transfer Function

• The Bode plots for the three values of Kc are shown on the next slide. Note that the phase angle curves are identical for all three cases. (Explain?)

3)15.0(

2)(

s

KsG c

p

Page 29: Lecture 8B Frequency Response. Frequency Response The most interesting type of system response Uses a sine wave forcing function input Interest is in

Bode Stability Criteria

AROL

φOL

ωc

ω/ωn

Page 30: Lecture 8B Frequency Response. Frequency Response The most interesting type of system response Uses a sine wave forcing function input Interest is in

Ultimate Gain and Ultimate Period

The Ultimate Controller Gain, KcU, is the maximum value of Kc that results in stable closed loop system with proportional-only control (continuous oscillation).

The Ultimate Period is the reciprocal of ωc as follows:

KcU is determined from the Open Loop Frequency Response with P-only control and Kc =1. So:

Page 31: Lecture 8B Frequency Response. Frequency Response The most interesting type of system response Uses a sine wave forcing function input Interest is in

Gain Margin

GM is determined from the Amplitude Ratio Bodé Diagram.

1. Determine critical frequency (ωc) where phase lag = 180°.

2. Determine the value of the Amplitude Ratio (Ac) at ωc.

3. The Gain Margin is then defined as:

GM = 1/Ac

4. The Bode Stability Criterion states:

If the value of GM < 1.0, the system is stable for all input sine wave frequencies.

Page 32: Lecture 8B Frequency Response. Frequency Response The most interesting type of system response Uses a sine wave forcing function input Interest is in

Phase Margin

PM is determined from the Phase Lag Bodé Diagram.

1. Find the frequency ωg where the Amplitude Ratio = 1.0.

2. Determine the value of the phase lag φg at this ωg value

3. The phase margin is defined as

PM = 180° + φg

The Bode Stability Criterion states

If PM is less than 0 , the system is stable for all sine wave input frequencies

Page 33: Lecture 8B Frequency Response. Frequency Response The most interesting type of system response Uses a sine wave forcing function input Interest is in

Gain and Phase margin

AROL

φOLφg

ωcωg

ωcωg

ωcω/ωn

ω/ωn

Page 34: Lecture 8B Frequency Response. Frequency Response The most interesting type of system response Uses a sine wave forcing function input Interest is in

Gain Margin and Phase Margin

1.7 or 2.0 ≤ GM 30° or 45°≤ PM

So, one can adjust Kc such that the GM is at least 1.7 or the PM must be more than 30°

Page 35: Lecture 8B Frequency Response. Frequency Response The most interesting type of system response Uses a sine wave forcing function input Interest is in

Comparison of Transient Response

• System response to a step change in set point for a PI controller tuned by frequency response ( ) and by Zeigler-Nichols rules ( ).