Professional Documents
Culture Documents
Lect 2 - Modeling of Dynamic Systems
Lect 2 - Modeling of Dynamic Systems
Lect 2 - Modeling of Dynamic Systems
1
TM184521 – Modelling of Dynamic Systems
Chapter objectives :
◼ Review the Laplace transform
◼ Learn how to find a mathematical model, called a transfer
function
◼ Learn how to find a mathematical model, called a state
variable representation
◼ How to convert between transfer function and state space
models
◼ How to linearize a non-linear system
2
TM184521 – Modelling of Dynamic Systems
Definition
The Laplace transform of a function f(t) is defined as
F ( s ) = L f (t ) = f ( t ) e − st dt
0
3
TM184521 – Modelling of Dynamic Systems
f ( t ) = L−1 F ( s )
Important Properties:
Both L and L-1 are linear operators. Thus,
L ax ( t ) + by ( t ) = aL x ( t ) + bL y ( t )
= aX ( s ) + bY ( s )
where:
x(t) and y(t) are arbitrary functions
a and b are constants
Similarly,
L−1 aX ( s ) + bY ( s ) = ax ( t ) + b y ( t )
4
TM184521 – Modelling of Dynamic Systems
2. Step Function
0 for t 0
It is defined as: u (t ) =
1 for t 0
Because the step function is a special case of a “constant”, it
follows from u(t) that
1
L u ( t ) =
s 9
3. Derivatives
This is a very important transform because derivatives appear in
the ODEs we wish to solve.
df
L = sF ( s ) − f ( 0 )
dt
initial condition at t = 0
10
5
TM184521 – Modelling of Dynamic Systems
dk f
f ( ) ( 0) = k
k
Suppose then
dt t =0
f ( 0 ) = f ( ) ( 0 ) = ... = f ( ) ( 0 ) .
1 n−1
dn f n
L n = s F (s)
dt
11
11
4. Exponential Functions
Consider f ( t ) = e−bt where b > 0. Then,
− b+ s t
L e−bt = e−bt e− st dt = e ( ) dt
0 0
1 −( b+ s )t 1
= −e =
b+s 0 s+b
12
6
TM184521 – Modelling of Dynamic Systems
f (t )
The Laplace transform of the rectangular
h pulse is given by
F (s) =
h
s
(
1 − e −t w s )
t w Time, t
6. Impulse Function (or Dirac Delta Function)
The impulse function is obtained by taking the limit of the
rectangular pulse as its width tw going to zero, but holding the area
1
under the pulse constant at one. (i.e., let h = )
tw
( t ) = impulse function
Then, L ( t ) = 1
13
13
14
14
7
TM184521 – Modelling of Dynamic Systems
15
15
f(t) F(s)
16
16
8
TM184521 – Modelling of Dynamic Systems
f(t) F(s)
17
17
Statement of FVT:
18
18
9
TM184521 – Modelling of Dynamic Systems
Example: 5s + 2
Y (s) =
s ( 5s + 4 )
Suppose,
Then,
5s + 2
y ( ) = lim y ( t ) = lim = 0.5
t → s →0 5s + 4
2. Time Delay
Time delays occur due to fluid flow, time required to do an
analysis (e.g. gas chromatograph). The delayed signal can
be represented as
y ( t − θ ) ; θ = time delay
Also,
L y ( t − θ ) = e−θsY ( s ) 19
19
Example 1
Solve the ODE,
dy
5 + 4y = 2 y (0) = 1 (3-26)
dt
5s + 2
Rearrange, Y (s) = (3-34)
s ( 5s + 4 )
5s + 2
Take L-1, y ( t ) = L−1
s ( 5s + 4 )
20
10
TM184521 – Modelling of Dynamic Systems
Example 2
21
21
22
22
11
TM184521 – Modelling of Dynamic Systems
s+5
Example 3 Y (s) =
( s + 1)( s + 4 )
Perform a partial fraction expansion (PFE)
s+5
= 1 + 2
( s + 1)( s + 4 ) s + 1 s + 4
where coefficients 1 and 2 have to be determined.
s+5 4
1 = =
s+4 s =−1 3
Laplace - 23
23
s+5 1
2 = =−
s +1 s =−4 3
A General PFE
N (s) N (s)
Consider a general transfer function, Y ( s ) = =
D(s) n
( s + bi )
i =1
Here D(s) is an n-th order polynomial with the roots ( s = −bi ) all
being real and distinct so there are no repeated roots. N(s) is order
m with n > m
24
24
12
TM184521 – Modelling of Dynamic Systems
Special Situations:
Two other types of situations commonly occur when D(s) has:
i) Complex roots: e.g., bi = 3 4 j j = −1( )
ii) Repeated roots : e.g., b1 = b2 = −3
25
25
Example 4
d3y d2y dy
3
+ 6 2
+ 11 + 6 y = 4
dt dt dt
y( 0 )= y( 0 )= y ( 0 )= 0 system at rest (s.s.)
26
13
TM184521 – Modelling of Dynamic Systems
4
Rearranging, Y(s)=
( s 3 + 6s 2 + 11s + 6) s
Multiply by s, set s = 0
4 α α α
= α1 + s 2 + 3 + 4
(s +1 )(s + 2 )(s + 3 ) s =0 s + 1 s + 2 s + 3 s =0
4 2
= α1 =
1 2 3 3
27
27
You can use this method on any order of ODE, limited only by
factoring of denominator polynomial (characteristic equation)
28
14
TM184521 – Modelling of Dynamic Systems
Example 5
Example 6
For a system described by the differential equations with initial conditions,
c + 7c + 10c = r , c ( 0 ) = 1, c ( 0 ) = 4
Determine (i) the transfer function C/R, (ii) the transient response to the
initial condition, c(t) and its final output.
29
29
Solution to example no 5
Since input is a step input, we have R(s) = 1/s, therefore
5(s + 100) 5(s + 100)
Y (s ) = =
(
s s + 60s + 500
2
)
s (s + 10)(s + 50)
The partial fraction expansion of Y(s) is given by
Y (s ) = 1 +
K K2 K3
+
s s + 10 s + 50
5(s + 100)
K1 = =1
(s + 10)(s + 50) s =0
5(s + 100)
K2 = = −1.125
s(s + 50) s = −10
5(s + 100)
K3 = = 0.125
s (s + 10) s = −50
30
30
15
TM184521 – Modelling of Dynamic Systems
5(s + 100)
lim y (t ) = lim s 2 =1
t → s →0 (
s s + 60s + 500 )
You can also find final value of y(t) by inputting a large value of
t (or infinite) in the equation
31
31
32
16
TM184521 – Modelling of Dynamic Systems
33
33
Any causes acting on the system from the world external to this
boundary are considered to be system inputs. Similarly, a system’s
outputs are the outputs from any one or more of the system
elements that act on the world outside the system boundary.
34
34
17
TM184521 – Modelling of Dynamic Systems
35
35
36
36
18
TM184521 – Modelling of Dynamic Systems
37
37
38
38
19
TM184521 – Modelling of Dynamic Systems
39
39
Types of model
Models of dynamics system can be of many kinds, including
the following:
➢ Mental, intuitive or verbal models
➢ Mathematical models
Constructing a model:
➢ Mathematical modeling or first principle modeling.
➢ Process or system identification.
40
40
20
TM184521 – Modelling of Dynamic Systems
signals
41
41
42
42
21
TM184521 – Modelling of Dynamic Systems
a. Variables
Variables of trans mechanical systems are :
➢ x, displacement in meters (m)
➢ v, velocity in meters per second (m/s)
➢ a, acceleration in meter per second square (m/s2)
➢ f, force in Newton (N)
➢ w, energy in Joule (J)
➢ p, power in watts (W)
43
b. The element laws include in trans systems are mass, friction and
stiffness.
They relate the external force to the acceleration, velocity and
displacement associated with the element.
Mass
Friction → when two bodies slide over each other there is a frictional
force f between them that is a function of the relative velocity between the
sliding surface
44
44
22
TM184521 – Modelling of Dynamic Systems
45
45
46
46
23
TM184521 – Modelling of Dynamic Systems
c. Interconnection Laws
D’Alembert’s law → is developed from Newton’s law for translational system.
For a constant mass :
i ( f ext )i = M dt
dv
where the summation over the index i includes all the external forces (fext)i
acting on the body.
( f ) − M dt = 0
dv
ext i
i
f
i
i = 0 → D’Alembert’s law
47
47
48
48
24
TM184521 – Modelling of Dynamic Systems
49
49
The law for displacements → if the ends of two elements are connected, those
ends are forced to move with the same displacement and velocity.
50
50
25
TM184521 – Modelling of Dynamic Systems
Example 7
51
51
Example 8
52
52
26
TM184521 – Modelling of Dynamic Systems
Example 9
Example 10
53
53
k1k 2 b1b2
k eq = beq =
k1 + k 2 b1 + b2
keq = k1 + k2 beq = b1 + b2
54
54
27
TM184521 – Modelling of Dynamic Systems
55
55
The net torque applied about the fixed axis of rotation is given by
=
d
(J ) where Jω is the angular momentum of a body.
dt
Parallel axis theorem states
J = J 0 + ma 2 where a is the distance between the parallel axes and J0
is the moment of inertia about the principal axis
56
56
28
TM184521 – Modelling of Dynamic Systems
57
(a) Rot stiffness el with one end fixed. (b) Rot stiffness el with ∆θ=θ2-θ1
Potential energy is stored in a twisted element and for a linear spring or shaft
is given by 1
W= k 2
2
58
58
29
TM184521 – Modelling of Dynamic Systems
The lever
59
59
N is a gear ratio
A pair of gears
r2 n2
N= = where r and n denote the radius and number of teeth
r1 n1
θ1 and θ2 are the angular displacements for the
gears
60
60
30
TM184521 – Modelling of Dynamic Systems
1 r2 1 r2
r11 = r2 2 ; = =N; = =N
2 r1 2 r1
θ1 and θ2 are the angular
displacements for the gears
11 + 22 = 0
61
c. Interconnection Laws
D’Alembert’s law → for a body with constant moment of inertia
rotating about a fixed axis,
( ) − J = 0
i
ext i
i
i = 0 → D’Alembert’s law
62
31
TM184521 – Modelling of Dynamic Systems
The law of reaction force → for bodies that are rotating about the same axis,
any torque exerted by one element on another is accompanied by a reaction
torque of equal magnitude and opposite direction on the first element.
The reference marks on the rims are at the top of the two disks when no torque
is applied. The net angular displacement for the shaft K2 with respect to its
unstressed condition is θ2-θ1.
( )
i
i =0 around any closed path
63
63
64
32
TM184521 – Modelling of Dynamic Systems
Example 11 Example 12
65
65
Computer simulation
Diagram for input-output equations
The steps :
1. Solve the given equation for the highest derivative of the
unknown output variable
2. Connect one or more integrator blocks in series to integrate the
derivatives
3. Use the result of step 1 to form the highest output derivative as
the output of a summer and a gain block
Example :
Mx + Bx + Kx = f a (t )
66
66
33
TM184521 – Modelling of Dynamic Systems
67
67
Example 14
A person wearing a parachute jumps out of airplane. Assume there is no
wind and that the parachute provides viscous damping relative to a fixed
reference frame. The parachute has a relatively small mass Mp and a
large damping coefficient Bp. The jumper has a larger mass Mj and
smaller drag coefficient Bj. The cords attaching the parachute to the
jumper are called risers and are assume to be quite springy and the
elastic effects of the risers is represented by a spring Kr. The
deformation of the parachute itself can also be included in the value of
Kr. Write the modeling equation describing the motions of the jumper
and the parachute and then solve the equation using simulink. Take
positive direction to be downward. Use the following parameter values
Mp=10 kg, Mj=60 kg, Bp=100 Ns/m, Bj=10 Ns/m and Kr=400 N/m.
Initial velocity for jumper and parachute is 20 m/s
68
68
34