
- •Contents
- •Introduction
- •The main knowledge about MATLAB and Simulink
- •MATRIXES
- •Commands sum, transpose, and diag
- •The Colon Operator
- •Numbers
- •The Colon Operator
- •Building Tables
- •Roots
- •MATLAB Commands List
- •Laboratory work Nr. 1
- •Content of the report:
- •Control questions:
- •Laboratory work №2
- •Content of the report
- •Control questions
- •The First Order Dynamic Systems
- •Laboratory work No. 3
- •Content of the report
- •Control questions
- •The second order systems
- •Laboratory work No 4
- •Content of the report
- •Control questions
- •Laboratory work No 5
- •Content of report
- •Control questions
- •References

The second order systems
Laboratory work No 4
Objec tives: to get acquainted with the second order system and to learn to analyze its characteristics in time domain and frequency domain.
Tasks of the work:
1.Elaborate mathematical model of the system, indicated by the teacher.
2.Construct simulation model of the system.
3.Use MATLAB to plot step response, frequency response and the Bode plot.
Theoretic al part
In general case the second order system is described by differential equation:
a |
|
d 2 y |
+ a |
dy |
+ a y = b |
d 2u |
+b |
du |
+b u |
(1) |
||
2 dt |
|
|
|
|
||||||||
|
2 |
dt |
0 |
2 dt2 |
dt |
0 |
|
where: u and y are system input and output signals, a0, a1, a2, b0 and b1 are constants. For practical cases it is convenient to assume b =b0 = 0 and Eq. 1 becomes:
a2 d 22y + a dy + a0 y = b0u dt dt
Demoting b0 / a0 = K, a1 / a0 = 2ρ / ω0 ir is rewritten in this way:
|
|
d 2 y |
+ |
2ρ dy |
+ y = Ku. |
||
|
|
|
|
|
|
||
2 |
|
dt |
2 |
ω dt |
|||
|
|
|
|||||
ω |
|
|
|
0 |
|
|
|
0 |
|
|
|
|
|
|
|
(2)
a2 / a0 = 1 / (ω0)2, Eq. 2
(3)
63

Notations, chosen in this way, take the physical meaning: ω0 is natural frequency of the system, ρ is damping ratio and K is gain.
Solution of Eq. (3) is equal to the sum of solutions of homogenous equation (if the right hand side of Eq. 3 is equal to zero), the so called free movement of the system and solution of non-homog- enous system (the so called forced movement). General solution of homogeneous system depends on roots of characteristic equation. It
is obtained replacing |
d |
→λ in Eq. 3: |
|
|||||
dt |
|
|||||||
|
|
|
|
|
|
|
||
|
|
λ |
2 |
+ |
2ρ |
λ + = 0. |
(4) |
|
|
ω02 |
|
|
ω0 |
||||
|
|
|
|
|
|
|
Characteristic equation (4) is the same polynomial of transfer function denominator therefore its roots in automatic control theory are called system poles:
|
|
|
|
− |
2ρ |
|
± |
|
|
4ρ2 |
− |
4 |
|
|
|
|
|
|
|
|
|||||
|
|
|
|
ω0 |
|
|
ω02 |
ω02 |
|
|
|
|
|
|
|||||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
||||||||||||
|
|
p |
= |
|
|
|
|
|
|
|
|
= −ρω ±ω |
ρ2 − |
. |
(5) |
||||||||||
|
|
|
|
|
|
|
|
|
|
2 |
|
|
|
|
|
|
|||||||||
|
|
,2 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
0 |
0 |
|
|
|
|||
|
|
|
|
|
|
|
|
|
|
|
|
|
ω2 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
0 |
|
|
|
|
|
|
|
|
|
|
|
||
|
If ρ2 − > 0; → |
|
ρ |
|
> and |
p |
R , the general solution of |
||||||||||||||||||
|
|
|
|||||||||||||||||||||||
homogeneous equation |
|
|
|
|
|
|
|
|
|
|
|
,2 |
|
|
|
|
|
||||||||
|
has the form: |
|
|
|
|
|
|||||||||||||||||||
|
|
|
yh =C exp(p t )+C2 exp(p2t ) |
|
|
|
(6) |
||||||||||||||||||
|
Mathematical analysis also considers cases when ρ < – 1, but |
||||||||||||||||||||||||
then |
−ρω |
= ρ ω |
and |
|
|
|
p = ρ ω +ω ρ2 − > 0 , therefore |
the |
|||||||||||||||||
|
0 |
|
0 |
|
|
|
|
|
|
|
|
|
|
0 |
|
|
|
0 |
|
|
|
|
first term of Eq. 6 increases to infinity with rising of t. The automatic control theory discusses just the systems with ρ ≥ 0.
The particular solution depends on system input u. If u = 1(0), then solution of non-homogeneous system has the form:
64
ynh = A |
(7) |
Substituting (7) and its derivatives, that are equal to zero, into Eq. 3 and assuming u = (0) yields:
ynh ≡ A ≡ K |
(8) |
Summing Eq. (6) and Eq. (8), the general solution of differential equation (3) at unit step input is:
y = yh + ynh = C exp(p t )+C2 exp(p2t )+ K. |
(9) |
Constants C1 and C2 can be calculated from initial conditions, i. e. y = 0 and y‘= 0 at t = 0, then the set of equations is obtained:
C +C |
2 |
+ K = 0; |
(10) |
|
|
||
C p +C2 p2 = 0. |
|
Solution of Eq. 10 is obtained as:
C = − |
Kp2 |
; |
|
||||
|
|
||||||
|
|
|
|
p2 − p |
|
||
|
|
|
|
(11) |
|||
|
|
|
|
Kp |
|
|
|
|
|
|
|
|
|
|
|
C2 |
= |
p2 − p |
. |
|
|
||
|
|
|
|
|
|
Finally,ifδ>1andthesystemhaszeroinitialconditions,step response is described as:
y = − |
Kp2 exp(p t ) |
+ |
Kp exp(p2t ) |
|
+ K; |
(12) |
||
|
p |
− p |
||||||
|
p |
− p |
|
|
|
|||
2 |
|
|
2 |
|
|
|
|
where: p1,2 are calculated from Eq. (5).
While p1,2 < 0, the solution is composed from the sum of two terms, decaying by exponential low and gain K. At zero initial con-
65
ditions there is no any overshoot in this case, therefore y has deadbeat shape and with time approaches to gain value K.
The set of second order system responses with ω0 = 5 and K = 2,5 at ρ = [0,5; 0,75; 1; 1,25; 1,5]. Two graphs are presented for ρ = 1,25 and ρ= 1,5. Increase damping ratio increases settling time. The shape of step response remains the same. If ρ2 − = 0; → ρ = 0 , then p ≡ p1= p2 and p R . Then the general solution of homogenous system is described as:
yh = C exp(pt )+C2 exp(pt ) |
(13) |
Particular solution of non-homogeneous equation depends only on the right hand side of Eq. 3, and is equal to the same expression (8), therefore the general solution of Eq. (3) at δ = 1 is:
y =C exp(pt )+C2 exp(pt )+ K |
(14) |
Constants C1 and C2 can be calculated from initial conditions. If the zero initial conditions are assumed, i. e. y = 0 and y‘ = 0 at t = 0, the obtained set has a form:
C + K = 0; |
→ |
C = −K; |
(15) |
|
|
||
C p +C2 = 0; |
|
C2 = Kp. |
|
Finally, if δ = 0, step response at initial zero conditions is expressed as:
y = −K exp(pt )( − pt )+ K. |
(16) |
There is no overshoot in this case also and step response is deadbeat.
Step response of the second order system at ω0 = 5; K = 2,5 and ρ = 1 is shown in Fig. 1. The settling time is shorter, than for system with ρ > 1.
66

Fig. 1. Set of the second order system step responses at different ρ values
The next case |
to |
be |
considered is matching |
condition |
||
ρ2 − < 0; →ρ < and |
p |
C and roots are equal: |
|
|||
|
,2 |
|
|
|
|
|
|
|
|
||||
p |
= −ρω ± ω j |
−ρ2 |
. |
(17) |
||
,2 |
|
0 |
0 |
|
|
|
In this case the general solution of homogeneous equation has the form:
yh C1 exp UZ0t sin Z0 1 U2 t
(18)
C2 exp UZ0t cos Z0 1 U2 t .
If the input is unit step, then the particular solution of nonhomogenous system again will have the form (7). While yh → 0 and t → ∞, then expression (8) is valid also and the general solution is:
y C1 exp UZ0t sin Z0 |
1U2 t |
C2 exp UZ0t cos Z0 |
(19) |
1U2 t K. |
67

Constants C1 and C2 are calculated from initial conditions. If zero initial conditions are assumed , i. e. y = 0 and y‘ = 0 at t = 0, then the set of equations for calculation constants looks like this:
C |
+ K = 0; |
|
|
C2 + K = 0; |
|
|
||
2 |
|
|
→ |
|
|
|
|
(20) |
|
|
= 0; |
|
|
|
|
||
|
|
−ρ2 |
−C |
|||||
C im p ,2 +C2 re p ,2 |
|
C ω |
ω ρ = 0. |
|||||
|
|
|
|
|
0 |
|
2 |
0 |
Solutions of Eq. (18) yields:
|
|
|
Kρ |
|
|
|
|
C |
= − |
|
|
|
. |
(21) |
|
|
|
|
|||||
− ρ2 |
|||||||
|
|
|
|
|
|||
|
= −K. |
|
|
|
|||
C2 |
|
|
|
Thus, finally, solution of differential equation (3) at ρ < 1 is expresses as:
y |
KU |
exp UZ t sin |
|
Z 1 U2 |
t |
|
|
||
1 U2 |
|||||||||
|
0 |
|
0 |
|
|
||||
|
|
|
|
|
|
|
|||
K exp UZ0t cos Z0 |
1 U2 t K. |
|
|
(22) |
|||||
|
|
|
Expession (22) causes difficulties in its application therefore it can be presented in a simpler form. The first two terms of equation, describing the free response is solution of homogenic equation at zero initial conditions and can be rewritten in this way:
y |
|
KU |
exp UZ t |
sin |
|
Z |
1 U2 t |
|
|
|||
1 U2 |
||||||||||||
h |
|
0 |
|
|
0 |
|
|
|||||
|
|
|
|
|
|
|
|
|
||||
K exp UZ0t cos Z0 1 |
U |
2 |
t |
|
|
(23) |
||||||
|
|
|
|
|
|
ª |
|
U |
|
|
sin Z0 |
|
1 U2 t |
|
|
« |
|
|
|
|
|
|
||
|
1 U |
2 |
|
||||||
K exp UZ t « |
|
|
|
|
|||||
0 |
« |
|
|
Z |
|
1 U2 |
t |
|
|
|
¬ |
|
|
||||||
|
«cos |
|
|
|
|||||
|
|
|
|
|
0 |
|
|
|
º» »».
»
¼
68

Demote a = tanφ and apply formula:
cosωt + asin ωt = cosωt − sin ϕ sin ωt = |
cos(ωt +ϕ) |
. |
||||
|
||||||
|
|
cosϕ |
|
cosϕ |
||
|
|
|
|
|
||
If ω= ω |
−ρ2 |
, a = ρ |
−ρ2 |
and |
ϕ = −arctan a |
|
0 |
|
|
|
|
|
|
expression (24) can be applied for portion of Eq. (23):
(24)
, then
U |
|
|
sin |
|
Z 1 |
U2 t |
|
cos |
|
Z |
1 U2 t |
|
||
1 U2 |
||||||||||||||
|
0 |
|
|
|
0 |
|
||||||||
|
|
|
|
|
|
. |
|
|
|
|
|
|||
cos |
Z |
1 U2 t |
M |
|
|
|
|
|
(25) |
|||||
|
|
|
|
|
|
|
||||||||
|
|
|
|
|
|
|
|
|||||||
|
|
|
0 |
|
|
|
|
|
|
|
|
|
|
cos M
In order to express cos φ by parameters of Eq. (3), the set equations must be solved:
|
2 |
ϕ+cos |
2 |
ϕ= ; |
|
|
2 |
ϕ+cos |
2 |
ϕ= ; |
||||||||
sin |
|
|
|
sin |
|
|
||||||||||||
|
|
|
|
|
ρ |
|
|
→ |
|
|
|
|
|
ρ |
|
|
||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|||||
−tan ϕ= |
|
|
|
|
|
; |
|
sin |
ϕ= − |
|
|
|
|
|
cosϕ; |
|||
|
|
|
|
|
|
|
|
|
|
|
||||||||
−ρ2 |
|
−ρ2 |
||||||||||||||||
|
|
|
|
|
|
|
|
|
|
|
→ cosϕ= −ρ2 .
Application of express (25) and (26) for (23) gives:
y |
K |
|
exp UZ t cos |
|
Z |
1 |
U2 t M |
; |
||||
1 U2 |
||||||||||||
h |
|
0 |
0 |
|
|
|
||||||
|
|
|
|
|
|
|
|
|||||
where ϕ= −arctan |
|
ρ |
|
. |
|
|
|
|
|
|||
|
|
|
|
|
|
|
|
|
||||
−ρ2 |
|
|
|
|
|
|||||||
|
|
|
|
|
|
|
|
|
|
(26)
(28)
Expressions (27) and (28) are more suitable for analysis. They show exponentially decaying oscillations. Frequency of oscillations:
69

ω |
s |
= ω |
−ρ2 |
= im p |
(29) |
|
0 |
,2 |
|
is called frequency of selfoscillations.
It is evident from Eq. (28), that at ρ = 0, the system’s output is described in this way:
y = −K cos(ω0t )+ K. |
(30) |
In general magnitude of oscillation is found from expression:
Y = − |
|
K |
|
exp(−ω ρt ). |
(31) |
|
|
|
|||
|
−ρ2 |
0 |
|
||
|
|
|
|
Expression (31) shows that decaying speed is proportional to
ρ, therefore ρ is called damping ratio, and if ρ = const, amplitude also remains constant.
Two step responses, shown in Fig. 1 correspond to systems with ρ < 1. The overshoot appears and its magnitude and frequency increases with reducing ρ.
Generalizing analysis of the second order system in time domain can be concluded:
at ρ ≥ the system has deadbed step response without overshoot and oscillations;
at 0 ≤ ρ < the step response is oscillating with oscilla-
tions frequency ω0 −ρ2 ; the magnitude decays, if
ρ > 0 or remains constant, if ρ = 0.
In most cases for synthesis of controller (oscillating) systems with 0 ≤ ρ < are considered.
In Eq. 3 replacing |
d |
→ s , the transfer function of the system |
|
dt |
|||
gets the form: |
|
||
|
|
70
G(s) ≡ |
Y (s) |
= |
|
|
|
|
K |
. |
(32) |
|
U (s) |
|
s |
2 |
+ |
2ρ |
s + |
||||
|
|
|
|
|
||||||
|
|
|
|
|
|
|
||||
|
|
|
|
ω2 |
|
|
|
|||
|
|
|
|
|
ω |
|
|
|||
|
|
|
|
|
0 |
|
0 |
|
|
|
Substituting s = jω yields the frequency response:
G( jω) = |
|
|
|
K |
|
|
. |
(33) |
|
|
2 |
|
|
||||
|
ω |
+ + |
2ρ |
j |
|
|||
|
− |
|
|
|||||
ω |
|
|
||||||
|
|
|
|
ω |
|
|||
|
0 |
|
0 |
|
|
|
The polar plot of the first order system has two characteristic points. From Eq. (33) at ω = 0 the initial point is calculated as:
G( j0) = K;
and the final point at t → ∞:
G( j∞) = lim |
|
|
|
K |
|
|
= 0. |
|
|
2 |
|
|
|||
ω→∞ |
ω |
+ + |
2ρ |
j |
|||
|
− |
|
|||||
|
ω |
|
|||||
|
|
|
|
ω |
|||
|
0 |
|
0 |
|
|
Denoting real and imaginary part of Eq. (3) as:
α(ω)≡ −(ωω0 )2 + 2ρ j
ω0 + = −(ω
ω0 )2 ;
β(ω)≡ −(ωω0 )2 + 2ρ j
ω0 + = 2ρ/ ω0 ;
Eq. (33) can be rearranged to this form:
|
K |
|
|
|
|
|
G( jω) = |
= |
K α(ω)−β(ω)j |
. |
|||
α(ω)+β(ω)j |
α2 ω |
+β2 |
ω |
|||
|
|
|
( ) |
|
( ) |
|
The real part of complex transfer function is:
(34)
(35)
(36)
(37)
71

G (jω)= |
|
|
Kα(ω) |
|
. |
(38) |
|
|
2 |
( ) |
2 |
( ) |
|||
|
α |
ω +β |
ω |
|
|
||
|
|
|
|
|
Numerator of the real parts in Eq. (38) will be equal to zero only if Kα(ω) = 0 and then:
Kα(ω)= 0; |
→ α(ω)= 0; |
|
ω |
2 |
|
|
→ − |
|
|
= 0; |
(39) |
||
ω |
||||||
|
|
|
0 |
|
|
|
→ ω= ω0.
Imaginary part of Eq. (38) for the frequency ω0 becomes:
G( jω ) = − |
Kβ(ω0 ) |
|
|
= − |
2ρK |
= − |
K |
. |
(40) |
|
α(ω |
)+β(ω |
) |
ρ2 |
|
||||||
0 |
|
|
2ρ |
|
||||||
|
0 |
0 |
|
|
|
4 |
|
|
|
|
Thus, the polar plot of the second order system intersects imaginary axis at the point x = (0,−K/2ρ) where the frequency is equaltoω0. Polar plot of the system with ω0 = 5, K =2,5andρ = [0,5; 0,75; 1; 1,25; 1,5] is presented in Fig. 2.
Fig. 2. Polar plot of the second order system with different ρ values
72

It is evident, that all characteristics begin at point x(0) = (K; 0) = (2,5; 0) and end at point x(∞) = (0; 0). In this figure frequencies ω0 are marked by small squares.
Expression (37) is convenient for analysis of magnitude and phase Bode plots. Frequency response magnitude characteristic is:
|
|
|
|
|
|
|
|
Kα ω |
|
2 |
|
|
Kβ ω |
|
|
|
|
2 |
|
||||||
|
G( jω) |
|
= |
|
|
|
|
|
|
|
|
+ |
|
|
|
|
|
|
|
= |
|||||
|
|
α2 |
|
ω +β2 ω |
α2 |
ω +β2 |
ω |
|
|
|
|||||||||||||||
|
|
|
|
|
|
|
|
|
|
||||||||||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
(41) |
|||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|||
= |
|
|
|
K |
|
|
|
. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|||
|
α2 ω +β2 |
|
ω |
|
|
|
|
|
|
|
|
|
|
|
|
||||||||||
Magnitude (41) is expressed in decibels: |
|
|
|
|
|
|
|||||||||||||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
K |
|
|
|
|
|
|
|
|
L(ω)≡ 20lg |
|
G( jω) |
|
= 20lg |
|
|
|
|
|
. |
(42) |
||||||||||||
|
|
|
|
|
|
|
|
|
|||||||||||||||||
|
|
|
|
|
|
|
|
|
|
||||||||||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
α2 |
ω +β2 |
ω |
|
|
|
|
||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Expression (42) describes the actual characteristic, but it can be plotted just using computer. Asymptotic characteristics have more attractive form and advantages at design of regulators.
Asymptotic magnitude characteristic is constructed of straight lines, intersecting at corner frequency. In low frequency range, when
ω << ω0 , then α(ω) ≈ 1, β(ω) ≈ 0 and expression (42) gives magnitude:
G( jω)ωT << = K; → L(ω)ωT << ≡ 20lg G (jω)
ωT << (43)
= 20lg K.
Thus, in the low frequency range the magnitude is constant and represented by horizontal line parallel to frequency axis with ordinate K dB.
73

In the high frequency range, at ω >> ω0, then α(ω) ≈ − (ω/ ω0)2, therefore magnitude is:
|
G( jω) |
|
ωT >> |
= |
|
|
|
|
K |
|
|
|
|
|
= |
|
|
Kω0 |
|
|
. |
(44) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
||||||
|
|
|
ω |
4 |
|
2 |
|
ω |
2 |
|
ω |
2 |
2 |
||||||||||
|
|
|
|
|
|
|
|
|
|
|
|||||||||||||
|
|
|
|
|
|
|
|
|
|
|
|
||||||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|||||||||||
|
|
|
|
|
|
|
|
|
+ 4ρ |
|
|
|
|
|
|
ω |
|
|
+ 4ρ |
|
|
|
|
|
|
|
|
ω |
|
ω |
ω |
|
|
|
|
||||||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|||
|
|
|
|
|
|
0 |
|
|
0 |
|
|
|
0 |
|
|
|
|
Damping ratio ρ is not limited, but usually it reaches order of units, therefore, if ω >> ω0, then inequality (ω/ω0)2 >> 4 ρ2 and (44) is rewritten in this form:
|
|
|
|
Kω |
|
|
|
|
ω |
2 |
|
||
G( jω) |
|
= |
|
|
|
0 |
|
|
|
= K |
0 |
. |
(45) |
|
|
|
|
|
|
|
|
||||||
ωT >> |
|
|
|
|
2 |
ω |
|||||||
|
|
ω |
|
|
ω |
|
|
|
|
|
|||
|
|
|
|
|
|
|
|
|
|
|
|
||
|
|
ω |
|
|
|
|
|
|
|||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
0 |
|
|
|
|
|
|
Magnitude characteristic (45) is expressed in decibels:
L(ω) |
|
|
|
|
ω |
2 |
|
ω |
|
|
|
|
|
|
|
|
|||||||
|
|
= 20lg K |
0 |
|
|
= 20lg K −40lg |
|
. |
(46) |
||
|
|
|
|||||||||
|
|
ωT >> |
|
|
ω |
|
|
|
ω |
|
|
|
|
|
|
|
|||||||
|
|
|
|
|
|
|
|
|
0 |
|
|
Using semi-log scale for frequency, expression (46) is represented by straight line. If the frequency is increased 10 times, then:
L( 0ω) |
|
|
= 20lg K −40lg 0ω |
= 20lg K −40lg |
ω |
−40 = |
|
|
|
|
|||||
|
|
|
|
||||
|
|
ωT >> |
ω0 |
|
ω0 |
(47) |
|
|
|
|
|||||
|
|
|
|
= L(ω)ωT >> −40;
The magnitude smaller by 40 decibels is obtained. Thus in high frequency range the second order system Bode plot is expressed by straigh line with slope of –40 dB/dec. The Bode plot in the low and high frequencies is constructed of two lines correspondingly according to (43) and (46) expressions intersecting at corner frequency
ωs:
74

|
ω |
2 |
(48) |
K = K |
0 |
; → ωs = ω0. |
|
|
ωs |
|
|
Corner plot ωs is equal to system resonant frequency ω0. |
|
||
The Bode plot of the second order system with ω0 = 5, K = 2,5 |
and ρ = [0,25; 0,5; 0,75; 1,0; 1,25; 1,5] are presented in Fig. 3.
Fig. 3. Bode plot of the second order system with different ρ values
Fig. 3 shows that approaching the damping ratio to zero increases magnitude and frequency at which the maximum is reached and approaches to resonant frequency ω → ωs = ω0. Dependence of phase angle versus frequency is calculated as:
|
|
|
|
|
|
|
−Kβ(ω) |
|
|
|
|
||
ϕ(ω)= arctan |
G( jω) |
= arctan |
|
α2 |
(ω)+β2 |
(ω) |
|
= |
|
||||
G( jω) |
|
|
Kα(ω) |
|
|
(49) |
|||||||
|
|
|
|
|
|
|
|
|
|
||||
|
|
|
|
|
|
α2 |
ω |
+β2 |
ω |
) |
|
||
|
( ) |
|
|
|
|
|
( ) |
|
( |
|
|
||
arctan |
−β ω |
. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
||
α ω |
|
|
|
|
|
|
|
|
|
|
|
||
|
( ) |
|
|
|
|
|
|
|
|
|
|
|
|
75
Substituting (36) to expression (49) yields:
|
−2ρ |
ω |
|
|
|
|||
ϕ(ω)= arctan |
ω |
|
|
|
||||
|
|
|
|
|
||||
|
|
|
0 |
|
. |
(50) |
||
|
ω |
|
2 |
|||||
|
|
|
|
|
||||
|
|
|
|
|
||||
− |
|
|
|
|
|
|||
ω |
|
|
|
|
||||
|
|
|
|
|
|
|
||
|
0 |
|
|
|
|
In low frequency range, i. e. at ω << ω0, and damping ratio is of units order, the phase angle:
ϕ(ω) |
|
|
|
|
ω |
|
≈ arctan (−0)≈ −0 ; |
|
|
|
= arctan |
−2ρ |
|
(51) |
|||
|
ωT << |
ω0 |
||||||
|
|
|
|
|
|
|||
|
|
|
|
|
|
thus, the curve is a bit below frequency axis. At high frequency range, at ω >> ω0, expression (49) is rewritten in this way:
ϕ(ω) |
|
|
= arctan |
−2ρω0 |
≈ − 80 . |
(52) |
|
|
|||||
|
ωT >> |
−ω |
||||
|
|
|
|
|
Thus, the phase angle characteristic with increasing of frequency approaches to –180º. The other characteristic point is
ω = ω0. At this point α(ω) has interrupt, therefore limits analysis should be done of the left hand side and the right hand side of this point:
ϕ(ω) |
|
|
= |
lim |
arctan |
|
−2ρ |
|
= −90 ; |
|||
|
||||||||||||
|
ω→ω |
( ) |
|
|||||||||
|
|
|
|
0− |
|
α(ω)→∞ |
|
|
|
|||
|
|
|
|
|
|
α ω |
|
|||||
and |
|
|
|
|
−2ρ |
|
|
|||||
ϕ(ω) |
|
|
= |
lim |
arctan |
|
= −90 . |
|||||
|
||||||||||||
|
ω→ω |
( ) |
||||||||||
0+ |
α(ω)→−∞ |
|
||||||||||
|
α ω |
|
(53)
(54)
Thus, if the frequency ω acquires value ω0, the phase angle at this frequency reaches –90º. Nevertheless, this result could be obtained from analysis of phase angle versus frequency, i. e. expression (39).
76

Phase angle dependence versus frequency in semilog scale for the second order system with parameters ω0 = 5, K = 2,5 and ρ = [0,25; 0,5; 0,75; 1,0; 1,25; 1,5] are presented in Fig. 4.
Fig. 4. Phase angle Bode plot of the second order system with different ρ values
Mechanical and electrical circuits, shown in Fig. 5 a and 5 b are typical examples of mechanical and electrical second order systems.
Fig. 5. The second order systems
Elaboration of mathematical model of mechanical system shown in Fig. 5 a is based on Newton‘s laws:
m |
dv |
|
m |
dv |
|
|
|
(55) |
|
= ∑F; → |
|
= F |
+ F |
+ F ; |
|||
|
dt |
|
|
dt |
P |
H |
T |
|
|
|
|
|
|
|
|
77

where FP , FH , FT are external impact, elasticity and friction forces correspondingly. Expression (55) can be rewritten as vector projections in x axis:
m dv = F − F |
− F . |
(56) |
|
dt |
P H |
T |
|
|
|
|
Force magnitude of spring elasticity is described by Robert Hooke law:
FH = kH x; |
(57) |
where kH is spring elasticity; x – displacement of body. |
|
Magnitude of sliding friction force is: |
|
FT = kT v. |
(58) |
Substituting (57) and (58) to (56) and expressing speed and acceleration by derivatives of displacement, yields:
|
|
|
m |
d 2 x |
|
+ k |
dx |
+ k |
|
x = F . |
(59) |
||||||||
|
|
|
dt2 |
dt |
|
||||||||||||||
|
|
|
|
|
|
T |
|
|
H |
|
|
|
|
|
P |
|
|||
Damping ratio has order of some units. |
|
||||||||||||||||||
Denoting |
ω−2 |
= m k |
H |
;→ω = |
|
|
k |
H |
m |
|
|||||||||
|
|
|
0 |
|
|
|
|
|
0 |
|
|
|
|
|
|
||||
and 2UZ 1 |
k |
k |
H |
;oU |
k |
|
2 |
mk |
H |
, expression (59) is the |
|||||||||
0 |
T |
|
|
|
|
|
T |
|
|
|
|
|
|
|
conventional form (3) of the second order system.
Mathematical model of electrical system, shown in Fig. 5 b is based on the Kirchhoff‘s law (KVL):
L di |
+u + Ri = u; |
|
|
d 2u |
du |
|
|
||||
|
dt |
|
|
C |
|
|
|
|
|||
|
|
|
|
→ |
LC |
C |
+CR |
C |
+u =u. |
(60) |
|
|
|
|
|
|
|||||||
|
|
|
|
|
dt2 |
dt |
C |
|
|||
|
|
|
|
|
|
|
|||||
uC = |
|
|
∫idt. |
|
|
|
|
|
|
|
|
|
C |
|
|
|
|
|
|
|
|||
|
|
|
|
|
|
|
|
|
|
|
78

Denoting ω0−2 = LC;→ ω0 = / LC
0 |
R C |
|
|
L |
|
expression (60) can be rewrit- |
and 2UZ 1 CR;oG |
|
2 |
|
ten in conventional form of the second order system.
Problems of the sec ond order sy stem analy sis
Practically useful example of the second order system is the second order filter, shown in Fig. 6.
Fig. 6. Second order system
It is required:
1.To describe the filter by differential equation, similar to equation (3), and define its transfer function.
2.Assuming the circuit parameters R1 = 13 kΩ; R2 = 33 kΩ; R3
= 13 kΩ; C1 = 2 μF; C2 = 47 μF, to calculate gain K, ω and
ρ.
3.Using MATLAB plot Bode diagrams of magnitude and phase angle.
Mathematical model of the circuit in Fig. 6 is derived using
Kirchhoff‘s laws. For simplicity the operational form of equations is
79

used and Laplace transform is applied for variables: UI ≡ L[uI]; |
|||||||||||||||
UO |
≡ L[uO]; ΦI |
≡ L[φ1]; Φ |
2≡ L[φ2], where L denotes Laplace |
||||||||||||
transform. Regarding directions of currents, for nodes φ1 and φ2 the |
|||||||||||||||
equations are valid: |
|
|
|
|
|
|
|
|
|
|
|
|
|||
|
UI −Φ |
+ |
UO −Φ |
− |
Φ −Φ2 |
− |
Φ |
|
= 0; |
||||||
|
|
R |
|
|
R |
|
R |
|
|
|
|||||
|
|
|
|
/ (C |
2 |
s) |
|||||||||
|
|
|
|
|
|
|
2 |
|
|
3 |
|
|
|
(61) |
|
|
|
Φ −Φ |
2 |
+ |
U |
O |
−Φ |
2 |
= 0. |
|
|
|
|
||
|
|
|
|
|
|
|
|
|
|
||||||
|
|
R |
|
|
/ (C s) |
|
|
|
|
|
|
|
|||
|
|
3 |
|
|
|
|
|
|
|
|
|
|
|
|
|
Application of virtual ground principle gives assumption φ2 ≈ 0. Then (61) is rewritten in this way:
UI −Φ + UO −Φ − |
Φ −Φ C |
s = 0; |
||||||||
|
R |
|
|
|
R |
|
R |
2 |
|
|
|
|
|
|
|
2 |
3 |
|
|
(62) |
|
|
Φ |
U |
O |
|
|
|
|
|
|
|
|
+ |
|
= |
0, → Φ = −U |
C R s. |
|||||
|
|
|||||||||
|
|
/ (C s) |
|
|
|
|
|
O 3 |
||
R3 |
|
|
|
|
|
|
Substituting the second equation of set (62) to the first one yields:
UI +UOC R3s + UO +UOC R3s +U |
O |
C s + |
|
||
|
R |
R2 |
|
(63) |
|
|
|
|
|||
U |
C C R s2 |
= 0. |
|
|
|
|
O 2 3 |
|
|
|
|
Rearranging the expression by leaving voltages uI and uO in different sides of equation gives:
UI = −UO C C2R R2R3s2 +C s(R2R3 + R R3 + R R2 )+ R . (64) R2
Thus the system transfer function is:
80

G (s)≡ UO = − |
|
R2 |
R |
|
|
. (65) |
|
C C R R s2 |
+C s (R R R + R |
+ R |
)+ |
||||
UI |
|
||||||
|
2 2 3 |
|
2 3 3 |
2 |
|
|
Expression (65) has five variable parameters: R1, R2, R3, C1 and C2, but the second order system is characterized by three parameters: K, ω0 and ρ has no unambiguous solution.
In this case the values of circuit elements R1, R2, R3, C1 and C2 are calculated:
|
= C C R R ; → |
ω = |
|
|
|
|
≈ 5; (66 a) |
ω2 |
|
|
|
|
|||
2 2 3 |
0 |
|
C C R R |
|
|
||
0 |
|
|
|
2 |
2 3 |
|
|
|
2ρ |
= C |
|
R2 R3 |
+ R + R |
|
|
; → |
|
|||||
|
ω |
|
R |
|
|
|
||||||||
|
|
|
|
|
|
3 2 |
|
|
|
|||||
0 |
|
|
|
|
|
|
|
|
|
|
|
|
(66 b) |
|
|
|
|
C |
|
R2 R3 |
+ R + R |
|
|||||||
|
|
|
|
|||||||||||
|
|
|
|
|
||||||||||
|
|
|
|
R |
|
3 |
|
2 |
|
|||||
→ρ = |
|
|
|
|
|
|
|
|
ω ≈ 0,4; |
|
||||
|
|
|
|
|
|
|
|
|
|
|
||||
|
|
|
|
|
|
|
|
|
2 |
|
|
0 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
and |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
R |
|
|
33 03 |
|
|
|
|
|
|
|
|
K = − |
2 |
= − |
3 03 |
≈ −2,54. |
(66 c) |
|||||||
|
|
|
||||||||||||
|
|
|
|
|
R |
|
|
|
|
|
|
|
The similar system has already been analyzed in this work. Bode plots can be constructed using specialized commands:
G_sist = tf(-2.54, [1/25, 2*0.4/5, 1]) Bode(G_sist)
While similar system was already discussed, the plots are not repeated here.
81