Mathematical Modelling
Mathematical Modelling
mechanical systems
• x : displacement [m] d
vx x
• v : velocity [m/sec] dt
dv d d d 2
• a : acceleration [m/sec2] a x 2 x x
dt dt dt dt
• f : force [N]
d
• p : power [Nm/sec] p f v f x w
dt
• w : work ( energy ) [Nm] t1
w(t1 ) w(t0 ) p(t ) dt
1 [Nm] = 1 [J] (Joule) t0
t1
w(t0 ) ( f x ) dt
t0
Basic (Idealized) Modeling Elements
• Spring – Reality
• Stiffness Element • 1/3 of the spring mass may be
considered into the lumped model.
x2
• In large displacement operation
springs are nonlinear.
K
Linear spring
nonlinear spring
– Idealization broken spring !!
• Massless
• No Damping
• Linear
– Stores Energy Hard Spring
Potential Energy
Soft Spring
1
U k x
2
2
Cntd … …
• Damper • Mass
– Friction Element – Inertia Element
x1 x2
x
fD fD f2
B f3 M f1
. .
f D B( x2 x1 ) B(v2 v1 )
– Dissipate Energy
fD
f s K x 0 Kx M x fs
Massless spring M x Kx
M x Kx 0 Equation of motion
Example. Equivalent spring constants.
k1 x
k1x k 2x F keq k1 k 2
F
k1y F , k 2 (x y ) F
F
k2 k 2 (x ) F
y x k1
F 1
keq
F x 1 1
k1 k2 k1 k 2
b2 (Fig.a)
x y
f b1 (y x ) b2 (y x )
(b1 b2 )(y x )
beq (y x )
(b):
b1 b2
(Fig.b)
x z y
f b1 (z x ) b2 (y z ) (1)
1
(b1 b2 )z b2y b1x z (b2y b1x ) (2)
(b1 b2 )
Since we want to determine the relationship between dy/dt and dx/dt, that
is:
f beq (y x )
where beq is the equivalent viscous friction coefficient, by substituting (2)
into (1) yields.
1
f b2 y (b2y b1x )
(b1 b2 )
bb
1 2
(y x )
(b1 b2 )
bb 1
Hence, beq 1 2
(b1 b2 ) 1 1
b1 b2
Example. Consider the spring-mass-dashpot system mounted
on a massless cart. Let u, the displacement of the cart, be the
input, and y, the displacement of the mass, be the output.
Obtain the mathematical model of the SMD system.
u y u y
Massless cart k
du dy
b k u y
b
dt dt
By Newton’s law: d 2y du dy
m b k u y
dt dt dt
d 2y dy du
m b ky b ku
dt dt dt
Therefore, the system transfer function can be obtained as
u y
Y (s ) bs k
2
U (s ) ms bs k
Massless cart k
b
Example. Mechanical system is shown below. Obtain the transfer
functions X1(s)/U(s) and X2(s)/U(s), where u denotes the force,
and x1 and x2 denote the displacements of the two carts,
respectively.
Solution: By Newton’s second law, we have
u x1 x2
k2
m1 m2
k1 k3
b
Simplifying, we obtain
u x1 x2
k2
m1 m2
k1 k3
b
Taking the Laplace transforms of these two equations, and assuming
zero initial conditions,
Solving Equation (2) for X2(s) and substituting it into Equation (1)
and simplifying, we get
X 1 (s )
U (s )
[m 2s 2 bs (k 2 k 3 )]
[m 1s 2 bs (k1 k 2 )][m 2s 2 bs (k 2 k 3 )] (bs k 2 ) 2
Example: A mass M = 8 kg is supported by a spring with spring
constant k = 400 N/m and a damper with b = 40 N-s/m, as
shown in the figure below. When a mass m = 2 kg is gently
placed on the top of mass M, the system exhibits vibrations.
Assuming that the displacement x of the masses is measured from
the equilibrium position before mass m is placed on mass M,
determine the response x(t) of the system. Determine also the
static deflection δ-the deflection of the spring when the transient
response died out. Assume that x(O) = 0 and X(O) = O.
Solution: The system is at rest before t = 0, and at t = 0+ the masses
start to move up and down. A mathematical model, or equation of
motion, is
or
This solution gives the up-and-down motion of the total mass (M + m).
The static deflection δ is 0.04904 m.
Developing Block diagram
Example.: Consider the mass-spring-friction system shown below. The
linear motion concerned is in the horizontal direction. The free-body
diagram of the system is also shown,
From the free body diagram, we can derive the equation of motion as:
𝐵 𝐾 1
𝑆 2 Y s = − 𝑀SY(s) − 𝑀Y(s) + 𝑀 F(s)
Dividing both sides by 𝑆 2 , we obtain;
𝐵 Y(s) 𝐾 Y(s) 1 F(s)
Y s = − 𝑀 𝑆 − 𝑀 𝑆2 + 𝑀 𝑆2
Which is also the same as:
𝐵1 𝐾 1 1 1 𝐵1 𝐾 11 1 11
Y s = − 𝑀 𝑆 Y(s) − 𝑀 𝑆 2 Y(s) + 𝑀 𝑆 2 F(s) = − 𝑀 𝑆 Y(s) − 𝑀 𝑆 𝑆 Y(s) + 𝑀 𝑆 𝑆 F(s)
Starting from the input F(s), the out put Y(s) can be represented as:
By feedback system theory, we can represent the subsystem in the dotted block to
another equivalent block, i.e.
𝟏
𝐌
𝐒
𝟏𝐁 =
𝟏−𝐒 𝐌 𝐌𝐬−𝐁
We can represent the subsystem in the dotted block to another equivalent block,
i.e.
𝐌 𝟏 𝐌
= 𝟐
𝐌𝐬−𝐁 𝐒 𝐌𝐒 −𝐁𝐬
By feedback system theory, we can represent the subsystem in the dotted block to
another equivalent block, i.e.
𝐌
𝐌𝐒𝟐 −𝐁𝐬 𝐌
𝐊 𝐌 =
𝟏−𝐌 𝐌𝐒 𝟐 −𝐁𝐬 −𝐊
𝐌𝐒𝟐 −𝐁𝐬
Finally, the two series/cascaded blocks can be simplified to a single block by
simply multiplying as follows:
𝟏 𝐌 𝟏
=
𝐌 𝐌𝐒 𝟐 −𝐁𝐬 −𝐊 𝐌𝐒 𝟐 −𝐁𝐬 −𝐊
F(S) Y(S)
From the above block, the transfer function of the system is given by:
Compute the transfer function from the equation of motion and compare it with
the above expression.
Signal Flow Graphs - SFG
X1 is input node.
Answer: