Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
1
MEC 522: Mathematical Modelling of Dynamic Systems
Linear Systems
Linear systems are ones in which the equations of the model are linear. A
differential equations is linear if the coefficients are constants or functions
of the independent variable. The most important property of linear systems
is that the principle of superposition is applicable. The principle of
superposition states that the response produced by the simultaneous
application of two different forcing forces is the sum of the two individual
responses.
2
MEC 522: Mathematical Modelling of Dynamic Systems
Transfer Function
Y ( s ) | output |
Transfer function= =
X ( s ) | input |
d n c(t ) d n −1c(t ) d m r (t ) d m −1 r (t )
an + a n −1 + ⋅ ⋅ ⋅ + a c (t ) = bm + b m −1 + ⋅ ⋅ ⋅ + b0 r (t )
dt n dt n −1 dt m dt m −1
0
3
MEC 522: Mathematical Modelling of Dynamic Systems
where c(t) is the output, r(t) is the input, and ai’s and bi ’s are constants.
Taking Laplace transform of both sides and assuming all initial conditions are
zero.
(a s
n
n
) ( )
+ a n −1 s n −1 + ⋅ ⋅ ⋅ + a 0 C ( s ) = bm s m + bm −1 s m −1 + ⋅ ⋅ ⋅ + b0 R ( s )
Mathematical
Modelling
Mechanical system
d 2 x(t ) dx(t )
M +C + Kx(t ) = f (t )
dt 2
dt
(
Ms 2 X ( s ) + CsX ( s ) + KX ( s ) = F ( s ) or Ms 2 + Cs + K X ( s ) = F ( s ))
X (s) 1
Transfer function : G ( s ) = =
F ( s ) Ms + Cs + K
2
4
MEC 522: Mathematical Modelling of Dynamic Systems
Mechanical system
5
MEC 522: Mathematical Modelling of Dynamic Systems
An Inverted Pendulum
6
MEC 522: Mathematical Modelling of Dynamic Systems
θ θ
l
u x x
mg
H
V
u
M M
d2
m (x + l sin θ ) = H
dt 2
d2
m (l cos θ ) = V − mg
dt 2
Cart motion
d 2x
M =u−H 1
dt 2
Iθ&& = Vlθ − Hl 2
( )
m &x& + lθ&& = H 3
0 = V − mg 4
7
MEC 522: Mathematical Modelling of Dynamic Systems
( M + m) &x& + mlθ&& = u a
Iθ&& = mglθ − Hl
(
mglθ − l m&x& + mlθ&& )
or
( M + m) s s X ( s ) + mls 2θ ( s ) = U ( s ) and
( I + ml ) s θ ( s ) + mls X ( s ) = mglθ ( s )
2 2 2
X ( s) = −
(I + ml )s
2 2
− mgl
θ (s)
mls 2
and therefore
(
⎛ I + ml 2 s 2 − mgl ⎞
( M + m) s s ⎜⎜ −
)
⎟⎟θ ( s) + mls 2θ ( s) = U ( s)
⎝ mls 2
⎠
θ ( s) 1
= U (s)
U ( s)
( M + m)⎜⎜ −
(
⎛ I + ml 2 s 2 − mgl ⎞
⎟⎟ + mls 2
)
⎝ ml ⎠
Electrical System
8
MEC 522: Mathematical Modelling of Dynamic Systems
L R
C
V
t
di (t ) 1
L + Ri (t ) + ∫ i (t )dt = v(t )
dt C0
dq 2 (t ) di (t ) 1
L +R + q (t ) = v(t ) and q (t ) = Cv c (t ) yields
dt 2
dt C
2
dvc (t ) dv (t )
LC + RC c + v c (t ) = v(t )
dt 2
dt
9
MEC 522: Mathematical Modelling of Dynamic Systems
(LCs 2
)
+ RCs + s Vc ( s ) = V ( s )
1
Vc ( s ) LC
=
V ( s) R 1
s2 + s +
L LC
10
MEC 522: Mathematical Modelling of Dynamic Systems
Example:
11
MEC 522: Mathematical Modelling of Dynamic Systems
12
MEC 522: Mathematical Modelling of Dynamic Systems
Example
13
MEC 522: Mathematical Modelling of Dynamic Systems
Electromechanical system
14
MEC 522: Mathematical Modelling of Dynamic Systems
Vb ( s ) = K b sθ m ( s ) a.
Ra I a ( s ) + La sI a ( s ) + Vb ( s ) = E a ( s ) b.
1
Tm ( s ) = K t I a ( s ) or I a ( s ) = Tm ( s) c.
Kt
e. Substituting (a) and (c) into (b) yields
(Ra + La s )Tm ( s)
+ K b sθ m ( s ) = E a ( s ) d
Kt
f. Figure 6 shows the equivalent loading of motor.
d 2θ m dθ
t m (t ) = J m + Dm
dt 2
dt
15
MEC 522: Mathematical Modelling of Dynamic Systems
Tm ( s ) = (J m s 2 + Dm s )θ m ( s ) e
(Ra + La s )(J m s 2 + Dm s )θ m ( s)
+ K b sθ m ( s ) = E a ( s ) f
Kt
assume that La is small compared to the armature resistance Ra
equation (f) becomes
⎡ Ra ⎤
⎢ ( )
J m s 2 + D m s + K b ⎥ sθ m ( s ) = E a ( s )
⎣ Kt ⎦
θ m (s) K t /( Ra J m )
= g
E a ( s) ⎡ 1 ⎛ KK ⎞⎤
s ⎢s + ⎜⎜ Dm + t b ⎟⎟⎥
⎣ Jm ⎝ Ra ⎠⎦
or simply
θ m (s) K
= h
E a ( s) s( s + α )
16
MEC 522: Mathematical Modelling of Dynamic Systems
2 2
⎛N ⎞ ⎛N ⎞
J m = J a + J l ⎜⎜ 1 ⎟⎟ ; and Dm = Da + Dl ⎜⎜ 1 ⎟⎟ i
⎝ N2 ⎠ ⎝ N2 ⎠
Ra Tm ( s )
+ K b sθ m ( s ) = E a ( s )
Kt
Ra
Tm (t ) + K bω m (t ) = ea (t )
Kt
at steady state:
Ra K K K
Tm + K bω m = ea or Tm = − b t ω m + t ea
Kt Ra Ra
17
MEC 522: Mathematical Modelling of Dynamic Systems
Kt
Tstall = ea j
Ra
ea
ω no −load = k
Kb
K t Tstall ea
= and K b = l
Ra ea ω no −load
Example:
1. Given the system and torque-speed curve below, find the transfer
function.
18
MEC 522: Mathematical Modelling of Dynamic Systems
Gear system
19
MEC 522: Mathematical Modelling of Dynamic Systems
20
MEC 522: Mathematical Modelling of Dynamic Systems
Block Diagrams
21
MEC 522: Mathematical Modelling of Dynamic Systems
In block diagram, all system variables are linked to each other through
functional blocks. The “functional block” or simply “block,” is a symbol for
the mathematical operation on the input signal to the block which produces
the output. The transfer functions of the components are usually entered in
the corresponding blocks, which are connected by arrows to indicate the
direction of the arrows. Thus, a block diagram of a control system explicitly
shows a unilateral property.
X(s) Y(s)
TRANFER
FUNCTION
G(s)
Note that the dimensions of the output signal from the block are the
dimensions of the signal multiplied by the dimensions of the transfer
function in the block.
Block
input output
22
MEC 522: Mathematical Modelling of Dynamic Systems
(a)
input output
Control
element
X X-Y
+
-
Y
In order to employ the same signal or variable as an input to more than one
block or summing point, a takeoff/ branch point is used. This permits the
signal to proceed unaltered along several different paths to several
destinations.
Takeoff
point
23
MEC 522: Mathematical Modelling of Dynamic Systems
Blocks can be connected in series if the output of one block is not affected
by the next following block. It is therefore important to rearrange the block
to simplify the reduction of the block to a single transfer function. In
simplifying the block diagram, the following rules should be adhered.
24
MEC 522: Mathematical Modelling of Dynamic Systems
Tutorial
25
MEC 522: Mathematical Modelling of Dynamic Systems
26
MEC 522: Mathematical Modelling of Dynamic Systems
definitions
27
MEC 522: Mathematical Modelling of Dynamic Systems
x4
Mixed node
x1 a b x3 1
x3
output node
Input node
(sink)
(source)
A signal flow graph of a linear system can be drawn using the foregoing
definitions. In doing so, we usually bring the input nodes (sources) to the left
28
MEC 522: Mathematical Modelling of Dynamic Systems
and the output nodes (sinks) to the right. The independent and dependent
variables of the equations become the input nodes (sources) and output
nodes (sinks), respectively. The branch transmittances can be obtained from
the coefficients.
1. The value of a node with one incoming branch, as shown in figure (a) is
x 2 = ax1
2. The total transmittance of cascaded branches is equal to the product of
the branch transmittances. Cascaded branches can thus be combined into
a single branch by multiplying the transmittances as shown in figure b.
3. Parallel branches may be combined by adding the transmittances, as
shown in figure c
4. A mixed node may be eliminated, as shown in figure d.
5. A loop may be eliminated as shown in figure e.
x3 = bx 2 , x 2 = ax1 + cx3
Hence x3 = abx1 + bcx3
Or
ab
x3 = x1
1 − bc
29
MEC 522: Mathematical Modelling of Dynamic Systems
30
MEC 522: Mathematical Modelling of Dynamic Systems
1
P= ∑ Pk Δ k
Δ k
where,
∑L
a
a = sum of all individual loop gains
∑L L
b ,c
b c = sum of gain products of all possible combinations of two non
touching loops
∑ Ld Le L f = sum of gain products of all possible combination of three non
d ,e , f
touching loops
Example
A signal flow graph for the system above is shown in Figure . Let us obtain
the closed-loop transfer function C(s)/R(s) by use of Mason's gain formula.
31
MEC 522: Mathematical Modelling of Dynamic Systems
32