Modelling and Simulation Lec 1
Modelling and Simulation Lec 1
Lecture-1
16 February 2023
Dr. Sameh Farid
Assistant Professor
Dr. Sameh Farid 1
Ground Rules
• Mute your mobile during the lecture.
• Student’s responsibility to
keep informed of any announcements,
syllabus adjustments,
policy changes.
2/16/2023
Dr.
• Home works will be graded only if they are written neatly. Sam
eh
2 Fari
d
Course Work Grade Distribution
• Simulation.
– Simulation of systems using MATLAB.
– Simulation of systems using Simulink.
4
Outline of this Lecture
• Introduction
5
Outline of this Lecture
• Introduction
6
What is Modelling?
7
Types of Systems
• Static System:
• Dynamic System:
8
Dynamic Systems
• A system is said to be dynamic if:
its current output may depend on the past history as well as the
present values of the input variables.
• Mathematically,
𝑦(𝑡) = 𝑓[𝑢(𝜏)] , 0 ≤ 𝜏 ≤ 𝑡
𝑢: Input, 𝑡: Time
Example: A moving mass
y
Model: Force=Mass x Acceleration u
My u M
Examples of Dynamic Systems
Ways to Study a System
System
Experiment with Experiment with a
actual System model of the System
12
What is Mathematical Model?
A set of mathematical equations (e.g., differential eqs.) that describes the
input-output behavior of a system.
• Simulation
• Prediction/Forecasting
• Prognostics/Diagnostics
• Design/Performance Evaluation
• Control System Design
Black Box Model
• When only input and output are known.
• Internal dynamics are either too complex or unknown.
Input Output
• Easy to Model
14
Grey Box Model
• When input and output and some information about the internal
dynamics of the system is known.
u(t) y(t)
y[u(t), t]
15
White Box Model
• When input and output and internal dynamics of the system is known.
u(t) 2
y(t)
𝑑𝑦(𝑡) 𝑑𝑢(𝑡) 𝑑 𝑦(𝑡)
=3 −
𝑑𝑡 𝑑𝑡 𝑑𝑡 2
• One should have complete knowledge of the system to derive a white
box model.
16
Basic Types of Mechanical Systems
• Translational
–Linear Motion
• Rotational
–Rotational Motion
17
Translational Mechanical
Systems
Part-I
18
Basic Elements of Translational Mech Systems
Translational
Spring
i)
Translational Mass
ii)
Translational
iii) Damper
19
Translational Spring
A translational spring:
• It is a mechanical element that can be deformed by an external force.
• The deformation is directly proportional to the force applied to it.
Translational
Spring
i)
Translational Spring
Circuit Symbols
20
Translational Spring
• If F is the applied force x1
x2
• Or 𝑥1 − 𝑥2 is the deformation. F
21
Translational Mass
Translational
• Translational Mass is an inertia element. ii) Mass
x(t )
F Mx F (t )
M
22
Translational Damper
Translational
iii) Damper
• If damping in the system is not enough then extra elements (e.g. Dashpot)
are added to increase damping.
23
Common Uses of Dashpots
Door Stoppers
Vehicle Suspension
Bridge Suspension
Flyover Suspension
24
Translational Damper
F Cx F C( x1 x 2 )
25
Modeling a Simple Translational System
• Example-1:
Consider a simple horizontal spring-mass system on a frictionless
surface, as shown in figure below.
𝑚𝑥 = −𝑘𝑥
𝑚𝑥 + 𝑘𝑥 = 0
26
Example-2
• Consider the following system (friction is negligible)
k
x
F
M
Where 𝑓𝑘 and 𝑓𝑀 are force applied by the spring and inertial force
respectively.
27
Example-2
fk
M fM
F
𝐹 = 𝑓𝑘 + 𝑓𝑀
• Then the differential equation of the system is:
𝐹 = 𝑀𝑥 + 𝑘𝑥
28
Example-3
• Consider the following system
k
x
• Free Body Diagram F
M
C
𝐹 = 𝑓𝑘 + 𝑓𝑀 + 𝑓𝐶
fk fC
• Differential equation of the system is: M fM
F
𝐹 = 𝑀𝑥 + 𝐶𝑥 + 𝑘𝑥
29
Example-4
• Consider the following system
𝐹 = 𝑓𝑘 + 𝑓𝑀 + 𝑓𝐵
30
Example-5
• Consider the following system
x2
x1 k B
F M
𝑴𝟏 𝑩 𝑴𝟐
32
Example-7
33
Example-8
x2 x3
x1
k1 B3 B4
u(t ) B1 M1 k2 M2 k3
B2 B5
34
Example-9
• Find the mathematical modelling of the mechanical translational system given
in Figure-1.
Free Body Diagram
fk fB
Figure-1 𝑓(𝑡) = 𝑓𝑘 + 𝑓𝑀 + 𝑓𝐵
M
f (t ) fM
35
Example-10
• Restaurant plate dispenser
36
Example-11
• Find the mathematical modelling of the following system.
f k1 f k f B f k1 fB
2
M2 M1
k2 F (t ) f M 2 f M1
38
Automobile Suspension
39
Automobile Suspension
Car Body
Bogie-2
Bogie-1
Secondary
Suspension
Bogie
Frame
Primary
Wheelsets
Suspension
41
Rotational Mechanical
Systems
Part-I
42
Basic Elements of Rotational Mechanical Systems
Rotational Spring
1
2
T k (1 2 )
43
Basic Elements of Rotational Mechanical Systems
Rotational Damper
C
1
2 T
T C(1 2 )
44
Basic Elements of Rotational Mechanical Systems
Moment of Inertia
J T
𝑇 = 𝐽𝜃
45
Example-1:
B1
1 k1 2 3 k2
T J1 J2
46
Example-2:
1 k1 2 B2
3 B4
T J1 J2
B1 B3
47
Example-3:
48
Example-4:
49
Mechanical Linkages
Part-III
50
Gear
Gear is a toothed machine part, such as a wheel or
cylinder, that meshes with another toothed part to transmit
motion or to change speed or direction.
51
Fundamental Properties
• The two gears turn in opposite directions:
one clockwise and the other counterclockwise.
52
Gearing Up and Down
• Gearing up is able to convert torque to velocity.
• The ratio is exactly the same: if you get three times your original
angular velocity, you reduce the resulting torque to one third.
54
Gear Trains
55
Gear Ratio
• You can calculate the gear ratio by using the
number of teeth of the driver divided by the number
of teeth of the follower.
Driver
Follower
• We gear up when we increase velocity and
decrease torque.
Ratio: 3:1
57
Mathematical Modeling of Gear Trains
• Gears increase or reduce angular velocity (while simultaneously
decreasing or increasing torque, such that energy is conserved).
𝑁1 𝜃1 = 𝑁2 𝜃2
58
Mathematical Modeling of Gear Trains
• In the system below, a torque, τa, is applied to gear 1 (with
number of teeth N1, moment of inertia J1 and a rotational
friction B1).
• It, in turn, is connected to gear 2 (with number of teeth N2,
moment of inertia J2 and a rotational friction B2).
• The angle θ1 is defined positive clockwise, θ2 is defined
positive clockwise. The torque acts in the direction of θ1.
• Assume that TL is the load torque applied by the load
connected to Gear-2.
N2
N1
B1
B2 59
Mathematical Modeling of Gear Trains
• For Gear-1
• For Gear-2
B1
• Since
B2
N11 N 2 2
• therefore
N1
2 1 Eq (3)
N2 60
Mathematical Modeling of Gear Trains
• Gear Ratio is calculated as
T2 N2 N1
T1 T2
T1 N1 N2
N2
• Put this value in eq (1) N1
B1
N1
a J11 B11 T2
N2 B2
• Put T2 from eq (2)
N1
a J11 B11 ( J 22 B22 TL )
N2
• Substitute θ2 from eq (3)
N1 N1 N1 N1
a J11 B11 (J2 1 B2 2 TL )
N2 N2 N2 N2 61
Mathematical Modeling of Gear Trains
N1 N1 N1 N1
a J11 B11 (J2 1 B2 2 TL )
N2 N2 N2 N2
• After simplification 2 2
N1 N1 N
a J11 J 21 B11 B21 1 TL
N2 N2 N2
N1
2 N1
2 N1
a J1
J 2 1 B1
B2 1 TL
N2 N2 N2
2 2
N N
J eq J1 1 J 2 Beq B1 1 B2
N2 N2
N1
a J eq1 Beq1 TL
N2 62
Mathematical Modeling of Gear Trains
2 2 2
N1 N1 N3
J eq J1 J 2 J 3
N2 N2 N4
2 2 2
N1 N1 N3
Beq B1 B2 B3
N2 N2 N4
63
Home Work
• Drive relation between applied torque Tm and load torque TL for three gears
connected together (Solved Examples A–5–2. in Ogata 5th Ed).
64
Thanks for your attention
16 February 2023
Dr. Sameh Farid 65