SlideShare a Scribd company logo
Simulation and
Modeling
Debtanu Pal
Abhishek Chandra
Aman Saraswat
Vivek Kumar Pal
INDEX
● INTRODUCTION
● A MODEL OF A BOUNCING BALL
● A MODEL OF SPRING MASS SYSTEM
● A MODEL OF TRAFFIC FLOW
Introduction to Simulation
System, Model, and Simulation
● System is the articulate object, which exists in the real world and operates under definite
conditions of time and space.
● A model is a simplified representation of a system at some particular point in time or space
intended to promote understanding of the real system.
● Simulation of a system is the operation of a model in terms of time or space, which helps
analyze the performance of an existing or a proposed system. In other words, simulation is the
process of using a model to study the performance of a system.
System State Variables
The system state variables are a set of data, required to define the internal process within the
system at a given point of time.
● In a discrete-event model, the system state variables remain constant over intervals of time
and the values change at defined points called event times.
● In continuous-event model, the system state variables are defined by differential equation
results whose value changes continuously over time.
A Model of Bouncing Ball
Ball Bouncing Model
● The bouncing ball problem is a classic
example of a hybrid dynamic problem,
involving :
○ Continuous dynamics
○ Discrete transitions where the
system dynamics can change and
the state values can jump
Continuous Dynamics of the Model
●
Discrete Transitions of the Model
●
Zeno Phenomenon
● Characterized by an infinite number of events occurring in a finite time interval for
certain hybrid systems.
● As the ball loses energy in the bouncing ball model, a large number of collisions with
the ground start occurring in successively smaller intervals of time. Hence the
model experiences Zeno behavior.
Using Two Integrator Blocks to Model a Bouncing Ball
Bouncing Ball Model
With two integrator blocks
✓ The state port of the position integrator and the corresponding comparison result is used
to detect when the ball hits the ground and to reset both integrators.
✓ The state port of the velocity integrator is used for the calculation of v+
● To observe the Zeno behavior, confirm that 'Algorithm' is set
to 'Non-adaptive' and that the simulation 'Stop time' is set
to 25 seconds, in the 'Zero-crossing options' section of the
Solver pane of the Configuration Parameters dialog box.
● Observation:
○ The simulation errors out as the ball hits the ground
more and more frequently and loses energy.
○ Consequently, the simulation exceeds the default
limit of 1000 for the 'Number of consecutive zero
crossings' allowed.
● Now ,in the 'Zero-crossing options' section, set the
'Algorithm' to 'Adaptive'. This algorithm introduces a
sophisticated treatment of such chattering behavior.
Therefore, we can now simulate the system beyond 20
seconds.
Results:
Using One Second Order Integrator Block to Model a Bouncing Ball
Using One Second Order Integrator Block to Model a Bouncing Ball
Bouncing Ball Model
With one second order integrator block
Results:
● Confirm that 'Algorithm' is set to
'Non-adaptive' in the 'Zero-crossing
options' section and the simulation 'Stop
Time' is set to 25 seconds. Simulate the
model.
● Observation:
○ The simulation encountered no problems. We
were able to simulate the model without
experiencing excessive chatter after t = 20
seconds and without setting the 'Algorithm' to
'Adaptive'.
Comparison between two Models
● Second-Order Integrator Model is the Preferable Approach to Modeling Bouncing Ball.
● We can analytically calculate the exact time t* when the ball settles down to the
ground with zero velocity by summing the time required for each bounce. This time is
the sum of an infinite geometric series given by:
● Here x0
and v0
are initial conditions for position and velocity respectively. The velocity
and the position of the ball must be identically zero for t > t*.
Comparison(Contd):
• Alongside figure conclusively shows that
the second model has superior
numerical characteristics as compared
to the first model.
• In the figure, results from both
simulations are plotted near t*. The
vertical red line in the plot is t* for the
given model parameters.
• For t<t* and far away from t*, both
models produce accurate and identical
results.
• However, the simulation results from
the first model are inexact after t*; it
continues to display excessive
chattering behavior for t>t*. In contrast,
the second model using the
Second-Order Integrator block settles to
exactly zero for t>t*.
• The second differential equation dx/dt = v is internal to the
Second-Order Integrator block. Therefore, the block
algorithms can leverage this known relationship between the
two states and deploy heuristics to clamp down the
undesirable chattering behavior for certain conditions.
A Model of a Spring Mass
System
Spring Mass System
● Objective : To study the motion of a body under
the constraint of a spring and damping effect
● Basic Model :
○ m : mass of the body under consideration
○ F : Force experienced by the body
○ k : stiffness constant of the spring
○ b : damping constant
Working of the Model
●
The State Equation
Undamped Oscillations
●
Simple Harmonic Motion
● Equation
● Natural Frequency
Observations from Simulated Environment
M = 10kg
x0
= 1(Initial disp.)
v0
= 0(initial velocity)
b(damping constant) = 0
A(amplitude of vibration) = 1
K = 100 N/m (stiffness constant)
If Damping Coefficient in not 0
SHM in Spring Mass Damper System
● Equation of Motion (Free Oscillations) and Solution:
● The motion of the system is affected by the magnitude of damping: under-damped,
critically-damped or over-damped.
Under-Damped, Critically-Damped and Over-Damped Conditions
DAMPING COEFFICIENT
Underdamped Oscillation
Critically Damped Oscillation
Over-Damped Oscillation
Comparison:
A Model of Traffic Flow
Car Following Model
● Describes how one vehicle follows
another vehicle in an uninterrupted flow.
● Based on two assumptions;
○ higher the speed of the vehicle,
higher will be the spacing between
the vehicles and
○ to avoid collision, driver must
maintain a safe distance with the
vehicle ahead
Mathematical Model
Let ∆xn
t
is the gap available for nth
vehicle, and let ∆xsafe
is the safe distance, vn
t
and vn-1
t
are the
velocities, the gap required is given by,
∆xn
t
= ∆xsafe
+ τ.vn
t
…(1)
where τ is a sensitivity coefficient. The above equation can be written as :
xn-1
t
− xn
t
= ∆xsafe
+ τ.vn
t
…(2)
Differentiating the above equation with respect to time, we get
vn-1
t
− vn
t
= τ.an
t
an
t
= (vn-1
t
− vn
t
)/τ …(3)
Mathematical Model (contd.)
Now assume that T is the reaction time, or time taken by a driver to observe what is going on around
them and to update his velocity, then :
an
t + T
= λ(vn-1
t
− vn
t
) …(4)
where λ = 1/τ. The solution of (4) can be a steady-state solution, where all vehicles move at a
constant velocity, or it can be a superposition of exponential solutions of the form
vn
t
= eαt
.u …(5)
where u and α are constants. Differentiating, we get :
an
t + T
= αeαT
.eαt
.u …(6)
Mathematical Model (contd.)
Substituting in (3):
αeαT
.eαt
.u = λ(S.eαt
.u − I.eαt
.u) …(4)
where I is the identity matrix of degree equal to the dimensions of the system and S is the “shift”
matrix that, when it multiplies a vector on the left, cyclically permutes the entries of the vector.
[ S − [1 + (α/λ)eαT
] I ] u = 0 …(5)
Thus u is an eigenvector for S with eigenvalue 1 + (α/λ)eαT
.
Simulink Model
Results for λ = 0
Velocities Positions
Results for λ = 0.8
Velocities Positions
Results for λ = 2
Velocities Positions
Thank You !

More Related Content

What's hot

digital control Chapter 2 slide
digital control Chapter 2 slidedigital control Chapter 2 slide
digital control Chapter 2 slide
asyrafjpk
 
Mathematics of nyquist plot [autosaved] [autosaved]
Mathematics of nyquist plot [autosaved] [autosaved]Mathematics of nyquist plot [autosaved] [autosaved]
Mathematics of nyquist plot [autosaved] [autosaved]
Asafak Husain
 
Convolution linear and circular using z transform day 5
Convolution   linear and circular using z transform day 5Convolution   linear and circular using z transform day 5
Convolution linear and circular using z transform day 5
vijayanand Kandaswamy
 
Z transform
Z transformZ transform
Z transform
ayushagrawal464
 
Analysis of algorithn class 3
Analysis of algorithn class 3Analysis of algorithn class 3
Analysis of algorithn class 3
Kumar
 
Lti and z transform
Lti and z transformLti and z transform
Lti and z transform
pranvendra29
 
Seismic data processing lecture 4
Seismic data processing lecture 4Seismic data processing lecture 4
Seismic data processing lecture 4
Amin khalil
 
Discreate time system and z transform
Discreate time system and z transformDiscreate time system and z transform
Discreate time system and z transform
VIKAS KUMAR MANJHI
 
asymptotic analysis and insertion sort analysis
asymptotic analysis and insertion sort analysisasymptotic analysis and insertion sort analysis
asymptotic analysis and insertion sort analysis
Anindita Kundu
 
inverse z transform
inverse z transforminverse z transform
inverse z transform
Zlatan Ahmadovic
 
report
reportreport
report
murali vnv
 
Spline Interpolation
Spline InterpolationSpline Interpolation
Spline Interpolation
aiQUANT
 
z transforms
z transformsz transforms
z transforms
Shahbaz Goshtasebi
 
Z TRANSFORM PROPERTIES AND INVERSE Z TRANSFORM
Z TRANSFORM PROPERTIES AND INVERSE Z TRANSFORMZ TRANSFORM PROPERTIES AND INVERSE Z TRANSFORM
Z TRANSFORM PROPERTIES AND INVERSE Z TRANSFORM
Towfeeq Umar
 
Pseudo Random Number Generators
Pseudo Random Number GeneratorsPseudo Random Number Generators
Pseudo Random Number Generators
Darshini Parikh
 
Asymptotic Notations
Asymptotic NotationsAsymptotic Notations
Asymptotic Notations
Rishabh Soni
 
Dcs lec02 - z-transform
Dcs   lec02 - z-transformDcs   lec02 - z-transform
Dcs lec02 - z-transform
Amr E. Mohamed
 
DSP_FOEHU - MATLAB 01 - Discrete Time Signals and Systems
DSP_FOEHU - MATLAB 01 - Discrete Time Signals and SystemsDSP_FOEHU - MATLAB 01 - Discrete Time Signals and Systems
DSP_FOEHU - MATLAB 01 - Discrete Time Signals and Systems
Amr E. Mohamed
 
Design of sampled data control systems part 2. 6th lecture
Design of sampled data control systems part 2.  6th lectureDesign of sampled data control systems part 2.  6th lecture
Design of sampled data control systems part 2. 6th lecture
Khalaf Gaeid Alshammery
 
Application of Convolution Theorem
Application of Convolution TheoremApplication of Convolution Theorem
Application of Convolution Theorem
ijtsrd
 

What's hot (20)

digital control Chapter 2 slide
digital control Chapter 2 slidedigital control Chapter 2 slide
digital control Chapter 2 slide
 
Mathematics of nyquist plot [autosaved] [autosaved]
Mathematics of nyquist plot [autosaved] [autosaved]Mathematics of nyquist plot [autosaved] [autosaved]
Mathematics of nyquist plot [autosaved] [autosaved]
 
Convolution linear and circular using z transform day 5
Convolution   linear and circular using z transform day 5Convolution   linear and circular using z transform day 5
Convolution linear and circular using z transform day 5
 
Z transform
Z transformZ transform
Z transform
 
Analysis of algorithn class 3
Analysis of algorithn class 3Analysis of algorithn class 3
Analysis of algorithn class 3
 
Lti and z transform
Lti and z transformLti and z transform
Lti and z transform
 
Seismic data processing lecture 4
Seismic data processing lecture 4Seismic data processing lecture 4
Seismic data processing lecture 4
 
Discreate time system and z transform
Discreate time system and z transformDiscreate time system and z transform
Discreate time system and z transform
 
asymptotic analysis and insertion sort analysis
asymptotic analysis and insertion sort analysisasymptotic analysis and insertion sort analysis
asymptotic analysis and insertion sort analysis
 
inverse z transform
inverse z transforminverse z transform
inverse z transform
 
report
reportreport
report
 
Spline Interpolation
Spline InterpolationSpline Interpolation
Spline Interpolation
 
z transforms
z transformsz transforms
z transforms
 
Z TRANSFORM PROPERTIES AND INVERSE Z TRANSFORM
Z TRANSFORM PROPERTIES AND INVERSE Z TRANSFORMZ TRANSFORM PROPERTIES AND INVERSE Z TRANSFORM
Z TRANSFORM PROPERTIES AND INVERSE Z TRANSFORM
 
Pseudo Random Number Generators
Pseudo Random Number GeneratorsPseudo Random Number Generators
Pseudo Random Number Generators
 
Asymptotic Notations
Asymptotic NotationsAsymptotic Notations
Asymptotic Notations
 
Dcs lec02 - z-transform
Dcs   lec02 - z-transformDcs   lec02 - z-transform
Dcs lec02 - z-transform
 
DSP_FOEHU - MATLAB 01 - Discrete Time Signals and Systems
DSP_FOEHU - MATLAB 01 - Discrete Time Signals and SystemsDSP_FOEHU - MATLAB 01 - Discrete Time Signals and Systems
DSP_FOEHU - MATLAB 01 - Discrete Time Signals and Systems
 
Design of sampled data control systems part 2. 6th lecture
Design of sampled data control systems part 2.  6th lectureDesign of sampled data control systems part 2.  6th lecture
Design of sampled data control systems part 2. 6th lecture
 
Application of Convolution Theorem
Application of Convolution TheoremApplication of Convolution Theorem
Application of Convolution Theorem
 

Similar to Simulation And Modelling

Controller design of inverted pendulum using pole placement and lqr
Controller design of inverted pendulum using pole placement and lqrController design of inverted pendulum using pole placement and lqr
Controller design of inverted pendulum using pole placement and lqr
eSAT Publishing House
 
Controller design of inverted pendulum using pole placement and lqr
Controller design of inverted pendulum using pole placement and lqrController design of inverted pendulum using pole placement and lqr
Controller design of inverted pendulum using pole placement and lqr
eSAT Journals
 
10 Discrete Time Controller Design.pptx
10 Discrete Time Controller Design.pptx10 Discrete Time Controller Design.pptx
10 Discrete Time Controller Design.pptx
SaadAzhar15
 
Troubleshooting and Enhancement of Inverted Pendulum System Controlled by DSP...
Troubleshooting and Enhancement of Inverted Pendulum System Controlled by DSP...Troubleshooting and Enhancement of Inverted Pendulum System Controlled by DSP...
Troubleshooting and Enhancement of Inverted Pendulum System Controlled by DSP...
Thomas Templin
 
solver (1)
solver (1)solver (1)
solver (1)
Raj Mitra
 
Transient three dimensional cfd modelling of ceilng fan
Transient three dimensional cfd modelling of ceilng fanTransient three dimensional cfd modelling of ceilng fan
Transient three dimensional cfd modelling of ceilng fan
Lahiru Dilshan
 
modelling_of_mechanical_systems.pptx
modelling_of_mechanical_systems.pptxmodelling_of_mechanical_systems.pptx
modelling_of_mechanical_systems.pptx
DummyDummy74
 
4_5958551478569274735.pptx
4_5958551478569274735.pptx4_5958551478569274735.pptx
4_5958551478569274735.pptx
Liamsila
 
Ballingham_Severance_Lab4
Ballingham_Severance_Lab4Ballingham_Severance_Lab4
Ballingham_Severance_Lab4
Ryland Ballingham
 
Linear Control Hard-Disk Read/Write Controller Assignment
Linear Control Hard-Disk Read/Write Controller AssignmentLinear Control Hard-Disk Read/Write Controller Assignment
Linear Control Hard-Disk Read/Write Controller Assignment
Isham Rashik
 
report
reportreport
som control system ppt.pptx
som control system ppt.pptxsom control system ppt.pptx
som control system ppt.pptx
ssusera74657
 
Experimental verification of SMC with moving switching lines applied to hoisti...
Experimental verification of SMC with moving switching lines applied to hoisti...Experimental verification of SMC with moving switching lines applied to hoisti...
Experimental verification of SMC with moving switching lines applied to hoisti...
ISA Interchange
 
Lar calc10 ch02_sec2
Lar calc10 ch02_sec2Lar calc10 ch02_sec2
Lar calc10 ch02_sec2
Institute of Applied Technology
 
IB Physics IA
IB Physics IAIB Physics IA
IB Physics IA
Anand Sekar
 
Introduction to Control Lec 2 - Modelling of Mechanical Systems- 2024.pptx
Introduction to Control Lec 2 - Modelling of Mechanical Systems- 2024.pptxIntroduction to Control Lec 2 - Modelling of Mechanical Systems- 2024.pptx
Introduction to Control Lec 2 - Modelling of Mechanical Systems- 2024.pptx
Sameh Farid
 
Iaetsd design of a robust fuzzy logic controller for a single-link flexible m...
Iaetsd design of a robust fuzzy logic controller for a single-link flexible m...Iaetsd design of a robust fuzzy logic controller for a single-link flexible m...
Iaetsd design of a robust fuzzy logic controller for a single-link flexible m...
Iaetsd Iaetsd
 
547 Writeup
547 Writeup547 Writeup
547 Writeup
Rian Rustvold
 
Raymond.Brunkow-Project-EEL-3657-Sp15
Raymond.Brunkow-Project-EEL-3657-Sp15Raymond.Brunkow-Project-EEL-3657-Sp15
Raymond.Brunkow-Project-EEL-3657-Sp15
Raymond Brunkow
 
A Detailed Comparative Study between Reduced Order Cumming Observer & Reduced...
A Detailed Comparative Study between Reduced Order Cumming Observer & Reduced...A Detailed Comparative Study between Reduced Order Cumming Observer & Reduced...
A Detailed Comparative Study between Reduced Order Cumming Observer & Reduced...
IJERD Editor
 

Similar to Simulation And Modelling (20)

Controller design of inverted pendulum using pole placement and lqr
Controller design of inverted pendulum using pole placement and lqrController design of inverted pendulum using pole placement and lqr
Controller design of inverted pendulum using pole placement and lqr
 
Controller design of inverted pendulum using pole placement and lqr
Controller design of inverted pendulum using pole placement and lqrController design of inverted pendulum using pole placement and lqr
Controller design of inverted pendulum using pole placement and lqr
 
10 Discrete Time Controller Design.pptx
10 Discrete Time Controller Design.pptx10 Discrete Time Controller Design.pptx
10 Discrete Time Controller Design.pptx
 
Troubleshooting and Enhancement of Inverted Pendulum System Controlled by DSP...
Troubleshooting and Enhancement of Inverted Pendulum System Controlled by DSP...Troubleshooting and Enhancement of Inverted Pendulum System Controlled by DSP...
Troubleshooting and Enhancement of Inverted Pendulum System Controlled by DSP...
 
solver (1)
solver (1)solver (1)
solver (1)
 
Transient three dimensional cfd modelling of ceilng fan
Transient three dimensional cfd modelling of ceilng fanTransient three dimensional cfd modelling of ceilng fan
Transient three dimensional cfd modelling of ceilng fan
 
modelling_of_mechanical_systems.pptx
modelling_of_mechanical_systems.pptxmodelling_of_mechanical_systems.pptx
modelling_of_mechanical_systems.pptx
 
4_5958551478569274735.pptx
4_5958551478569274735.pptx4_5958551478569274735.pptx
4_5958551478569274735.pptx
 
Ballingham_Severance_Lab4
Ballingham_Severance_Lab4Ballingham_Severance_Lab4
Ballingham_Severance_Lab4
 
Linear Control Hard-Disk Read/Write Controller Assignment
Linear Control Hard-Disk Read/Write Controller AssignmentLinear Control Hard-Disk Read/Write Controller Assignment
Linear Control Hard-Disk Read/Write Controller Assignment
 
report
reportreport
report
 
som control system ppt.pptx
som control system ppt.pptxsom control system ppt.pptx
som control system ppt.pptx
 
Experimental verification of SMC with moving switching lines applied to hoisti...
Experimental verification of SMC with moving switching lines applied to hoisti...Experimental verification of SMC with moving switching lines applied to hoisti...
Experimental verification of SMC with moving switching lines applied to hoisti...
 
Lar calc10 ch02_sec2
Lar calc10 ch02_sec2Lar calc10 ch02_sec2
Lar calc10 ch02_sec2
 
IB Physics IA
IB Physics IAIB Physics IA
IB Physics IA
 
Introduction to Control Lec 2 - Modelling of Mechanical Systems- 2024.pptx
Introduction to Control Lec 2 - Modelling of Mechanical Systems- 2024.pptxIntroduction to Control Lec 2 - Modelling of Mechanical Systems- 2024.pptx
Introduction to Control Lec 2 - Modelling of Mechanical Systems- 2024.pptx
 
Iaetsd design of a robust fuzzy logic controller for a single-link flexible m...
Iaetsd design of a robust fuzzy logic controller for a single-link flexible m...Iaetsd design of a robust fuzzy logic controller for a single-link flexible m...
Iaetsd design of a robust fuzzy logic controller for a single-link flexible m...
 
547 Writeup
547 Writeup547 Writeup
547 Writeup
 
Raymond.Brunkow-Project-EEL-3657-Sp15
Raymond.Brunkow-Project-EEL-3657-Sp15Raymond.Brunkow-Project-EEL-3657-Sp15
Raymond.Brunkow-Project-EEL-3657-Sp15
 
A Detailed Comparative Study between Reduced Order Cumming Observer & Reduced...
A Detailed Comparative Study between Reduced Order Cumming Observer & Reduced...A Detailed Comparative Study between Reduced Order Cumming Observer & Reduced...
A Detailed Comparative Study between Reduced Order Cumming Observer & Reduced...
 

Recently uploaded

LAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UP
LAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UPLAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UP
LAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UP
RAHUL
 
Beyond Degrees - Empowering the Workforce in the Context of Skills-First.pptx
Beyond Degrees - Empowering the Workforce in the Context of Skills-First.pptxBeyond Degrees - Empowering the Workforce in the Context of Skills-First.pptx
Beyond Degrees - Empowering the Workforce in the Context of Skills-First.pptx
EduSkills OECD
 
Nutrition Inc FY 2024, 4 - Hour Training
Nutrition Inc FY 2024, 4 - Hour TrainingNutrition Inc FY 2024, 4 - Hour Training
Nutrition Inc FY 2024, 4 - Hour Training
melliereed
 
Lifelines of National Economy chapter for Class 10 STUDY MATERIAL PDF
Lifelines of National Economy chapter for Class 10 STUDY MATERIAL PDFLifelines of National Economy chapter for Class 10 STUDY MATERIAL PDF
Lifelines of National Economy chapter for Class 10 STUDY MATERIAL PDF
Vivekanand Anglo Vedic Academy
 
How to deliver Powerpoint Presentations.pptx
How to deliver Powerpoint  Presentations.pptxHow to deliver Powerpoint  Presentations.pptx
How to deliver Powerpoint Presentations.pptx
HajraNaeem15
 
Benner "Expanding Pathways to Publishing Careers"
Benner "Expanding Pathways to Publishing Careers"Benner "Expanding Pathways to Publishing Careers"
Benner "Expanding Pathways to Publishing Careers"
National Information Standards Organization (NISO)
 
What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...
What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...
What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...
GeorgeMilliken2
 
Electric Fetus - Record Store Scavenger Hunt
Electric Fetus - Record Store Scavenger HuntElectric Fetus - Record Store Scavenger Hunt
Electric Fetus - Record Store Scavenger Hunt
RamseyBerglund
 
A Visual Guide to 1 Samuel | A Tale of Two Hearts
A Visual Guide to 1 Samuel | A Tale of Two HeartsA Visual Guide to 1 Samuel | A Tale of Two Hearts
A Visual Guide to 1 Samuel | A Tale of Two Hearts
Steve Thomason
 
Présentationvvvvvvvvvvvvvvvvvvvvvvvvvvvv2.pptx
Présentationvvvvvvvvvvvvvvvvvvvvvvvvvvvv2.pptxPrésentationvvvvvvvvvvvvvvvvvvvvvvvvvvvv2.pptx
Présentationvvvvvvvvvvvvvvvvvvvvvvvvvvvv2.pptx
siemaillard
 
SWOT analysis in the project Keeping the Memory @live.pptx
SWOT analysis in the project Keeping the Memory @live.pptxSWOT analysis in the project Keeping the Memory @live.pptx
SWOT analysis in the project Keeping the Memory @live.pptx
zuzanka
 
مصحف القراءات العشر أعد أحرف الخلاف سمير بسيوني.pdf
مصحف القراءات العشر   أعد أحرف الخلاف سمير بسيوني.pdfمصحف القراءات العشر   أعد أحرف الخلاف سمير بسيوني.pdf
مصحف القراءات العشر أعد أحرف الخلاف سمير بسيوني.pdf
سمير بسيوني
 
Bonku-Babus-Friend by Sathyajith Ray (9)
Bonku-Babus-Friend by Sathyajith Ray  (9)Bonku-Babus-Friend by Sathyajith Ray  (9)
Bonku-Babus-Friend by Sathyajith Ray (9)
nitinpv4ai
 
REASIGNACION 2024 UGEL CHUPACA 2024 UGEL CHUPACA.pdf
REASIGNACION 2024 UGEL CHUPACA 2024 UGEL CHUPACA.pdfREASIGNACION 2024 UGEL CHUPACA 2024 UGEL CHUPACA.pdf
REASIGNACION 2024 UGEL CHUPACA 2024 UGEL CHUPACA.pdf
giancarloi8888
 
Wound healing PPT
Wound healing PPTWound healing PPT
Wound healing PPT
Jyoti Chand
 
Film vocab for eal 3 students: Australia the movie
Film vocab for eal 3 students: Australia the movieFilm vocab for eal 3 students: Australia the movie
Film vocab for eal 3 students: Australia the movie
Nicholas Montgomery
 
BBR 2024 Summer Sessions Interview Training
BBR  2024 Summer Sessions Interview TrainingBBR  2024 Summer Sessions Interview Training
BBR 2024 Summer Sessions Interview Training
Katrina Pritchard
 
B. Ed Syllabus for babasaheb ambedkar education university.pdf
B. Ed Syllabus for babasaheb ambedkar education university.pdfB. Ed Syllabus for babasaheb ambedkar education university.pdf
B. Ed Syllabus for babasaheb ambedkar education university.pdf
BoudhayanBhattachari
 
Level 3 NCEA - NZ: A Nation In the Making 1872 - 1900 SML.ppt
Level 3 NCEA - NZ: A  Nation In the Making 1872 - 1900 SML.pptLevel 3 NCEA - NZ: A  Nation In the Making 1872 - 1900 SML.ppt
Level 3 NCEA - NZ: A Nation In the Making 1872 - 1900 SML.ppt
Henry Hollis
 
The History of Stoke Newington Street Names
The History of Stoke Newington Street NamesThe History of Stoke Newington Street Names
The History of Stoke Newington Street Names
History of Stoke Newington
 

Recently uploaded (20)

LAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UP
LAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UPLAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UP
LAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UP
 
Beyond Degrees - Empowering the Workforce in the Context of Skills-First.pptx
Beyond Degrees - Empowering the Workforce in the Context of Skills-First.pptxBeyond Degrees - Empowering the Workforce in the Context of Skills-First.pptx
Beyond Degrees - Empowering the Workforce in the Context of Skills-First.pptx
 
Nutrition Inc FY 2024, 4 - Hour Training
Nutrition Inc FY 2024, 4 - Hour TrainingNutrition Inc FY 2024, 4 - Hour Training
Nutrition Inc FY 2024, 4 - Hour Training
 
Lifelines of National Economy chapter for Class 10 STUDY MATERIAL PDF
Lifelines of National Economy chapter for Class 10 STUDY MATERIAL PDFLifelines of National Economy chapter for Class 10 STUDY MATERIAL PDF
Lifelines of National Economy chapter for Class 10 STUDY MATERIAL PDF
 
How to deliver Powerpoint Presentations.pptx
How to deliver Powerpoint  Presentations.pptxHow to deliver Powerpoint  Presentations.pptx
How to deliver Powerpoint Presentations.pptx
 
Benner "Expanding Pathways to Publishing Careers"
Benner "Expanding Pathways to Publishing Careers"Benner "Expanding Pathways to Publishing Careers"
Benner "Expanding Pathways to Publishing Careers"
 
What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...
What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...
What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...
 
Electric Fetus - Record Store Scavenger Hunt
Electric Fetus - Record Store Scavenger HuntElectric Fetus - Record Store Scavenger Hunt
Electric Fetus - Record Store Scavenger Hunt
 
A Visual Guide to 1 Samuel | A Tale of Two Hearts
A Visual Guide to 1 Samuel | A Tale of Two HeartsA Visual Guide to 1 Samuel | A Tale of Two Hearts
A Visual Guide to 1 Samuel | A Tale of Two Hearts
 
Présentationvvvvvvvvvvvvvvvvvvvvvvvvvvvv2.pptx
Présentationvvvvvvvvvvvvvvvvvvvvvvvvvvvv2.pptxPrésentationvvvvvvvvvvvvvvvvvvvvvvvvvvvv2.pptx
Présentationvvvvvvvvvvvvvvvvvvvvvvvvvvvv2.pptx
 
SWOT analysis in the project Keeping the Memory @live.pptx
SWOT analysis in the project Keeping the Memory @live.pptxSWOT analysis in the project Keeping the Memory @live.pptx
SWOT analysis in the project Keeping the Memory @live.pptx
 
مصحف القراءات العشر أعد أحرف الخلاف سمير بسيوني.pdf
مصحف القراءات العشر   أعد أحرف الخلاف سمير بسيوني.pdfمصحف القراءات العشر   أعد أحرف الخلاف سمير بسيوني.pdf
مصحف القراءات العشر أعد أحرف الخلاف سمير بسيوني.pdf
 
Bonku-Babus-Friend by Sathyajith Ray (9)
Bonku-Babus-Friend by Sathyajith Ray  (9)Bonku-Babus-Friend by Sathyajith Ray  (9)
Bonku-Babus-Friend by Sathyajith Ray (9)
 
REASIGNACION 2024 UGEL CHUPACA 2024 UGEL CHUPACA.pdf
REASIGNACION 2024 UGEL CHUPACA 2024 UGEL CHUPACA.pdfREASIGNACION 2024 UGEL CHUPACA 2024 UGEL CHUPACA.pdf
REASIGNACION 2024 UGEL CHUPACA 2024 UGEL CHUPACA.pdf
 
Wound healing PPT
Wound healing PPTWound healing PPT
Wound healing PPT
 
Film vocab for eal 3 students: Australia the movie
Film vocab for eal 3 students: Australia the movieFilm vocab for eal 3 students: Australia the movie
Film vocab for eal 3 students: Australia the movie
 
BBR 2024 Summer Sessions Interview Training
BBR  2024 Summer Sessions Interview TrainingBBR  2024 Summer Sessions Interview Training
BBR 2024 Summer Sessions Interview Training
 
B. Ed Syllabus for babasaheb ambedkar education university.pdf
B. Ed Syllabus for babasaheb ambedkar education university.pdfB. Ed Syllabus for babasaheb ambedkar education university.pdf
B. Ed Syllabus for babasaheb ambedkar education university.pdf
 
Level 3 NCEA - NZ: A Nation In the Making 1872 - 1900 SML.ppt
Level 3 NCEA - NZ: A  Nation In the Making 1872 - 1900 SML.pptLevel 3 NCEA - NZ: A  Nation In the Making 1872 - 1900 SML.ppt
Level 3 NCEA - NZ: A Nation In the Making 1872 - 1900 SML.ppt
 
The History of Stoke Newington Street Names
The History of Stoke Newington Street NamesThe History of Stoke Newington Street Names
The History of Stoke Newington Street Names
 

Simulation And Modelling

  • 1. Simulation and Modeling Debtanu Pal Abhishek Chandra Aman Saraswat Vivek Kumar Pal
  • 2. INDEX ● INTRODUCTION ● A MODEL OF A BOUNCING BALL ● A MODEL OF SPRING MASS SYSTEM ● A MODEL OF TRAFFIC FLOW
  • 4. System, Model, and Simulation ● System is the articulate object, which exists in the real world and operates under definite conditions of time and space. ● A model is a simplified representation of a system at some particular point in time or space intended to promote understanding of the real system. ● Simulation of a system is the operation of a model in terms of time or space, which helps analyze the performance of an existing or a proposed system. In other words, simulation is the process of using a model to study the performance of a system.
  • 5. System State Variables The system state variables are a set of data, required to define the internal process within the system at a given point of time. ● In a discrete-event model, the system state variables remain constant over intervals of time and the values change at defined points called event times. ● In continuous-event model, the system state variables are defined by differential equation results whose value changes continuously over time.
  • 6. A Model of Bouncing Ball
  • 7. Ball Bouncing Model ● The bouncing ball problem is a classic example of a hybrid dynamic problem, involving : ○ Continuous dynamics ○ Discrete transitions where the system dynamics can change and the state values can jump
  • 8. Continuous Dynamics of the Model ●
  • 9. Discrete Transitions of the Model ●
  • 10. Zeno Phenomenon ● Characterized by an infinite number of events occurring in a finite time interval for certain hybrid systems. ● As the ball loses energy in the bouncing ball model, a large number of collisions with the ground start occurring in successively smaller intervals of time. Hence the model experiences Zeno behavior.
  • 11. Using Two Integrator Blocks to Model a Bouncing Ball Bouncing Ball Model With two integrator blocks ✓ The state port of the position integrator and the corresponding comparison result is used to detect when the ball hits the ground and to reset both integrators. ✓ The state port of the velocity integrator is used for the calculation of v+
  • 12. ● To observe the Zeno behavior, confirm that 'Algorithm' is set to 'Non-adaptive' and that the simulation 'Stop time' is set to 25 seconds, in the 'Zero-crossing options' section of the Solver pane of the Configuration Parameters dialog box. ● Observation: ○ The simulation errors out as the ball hits the ground more and more frequently and loses energy. ○ Consequently, the simulation exceeds the default limit of 1000 for the 'Number of consecutive zero crossings' allowed. ● Now ,in the 'Zero-crossing options' section, set the 'Algorithm' to 'Adaptive'. This algorithm introduces a sophisticated treatment of such chattering behavior. Therefore, we can now simulate the system beyond 20 seconds. Results:
  • 13. Using One Second Order Integrator Block to Model a Bouncing Ball
  • 14. Using One Second Order Integrator Block to Model a Bouncing Ball Bouncing Ball Model With one second order integrator block
  • 15. Results: ● Confirm that 'Algorithm' is set to 'Non-adaptive' in the 'Zero-crossing options' section and the simulation 'Stop Time' is set to 25 seconds. Simulate the model. ● Observation: ○ The simulation encountered no problems. We were able to simulate the model without experiencing excessive chatter after t = 20 seconds and without setting the 'Algorithm' to 'Adaptive'.
  • 16. Comparison between two Models ● Second-Order Integrator Model is the Preferable Approach to Modeling Bouncing Ball. ● We can analytically calculate the exact time t* when the ball settles down to the ground with zero velocity by summing the time required for each bounce. This time is the sum of an infinite geometric series given by: ● Here x0 and v0 are initial conditions for position and velocity respectively. The velocity and the position of the ball must be identically zero for t > t*.
  • 17. Comparison(Contd): • Alongside figure conclusively shows that the second model has superior numerical characteristics as compared to the first model. • In the figure, results from both simulations are plotted near t*. The vertical red line in the plot is t* for the given model parameters. • For t<t* and far away from t*, both models produce accurate and identical results. • However, the simulation results from the first model are inexact after t*; it continues to display excessive chattering behavior for t>t*. In contrast, the second model using the Second-Order Integrator block settles to exactly zero for t>t*. • The second differential equation dx/dt = v is internal to the Second-Order Integrator block. Therefore, the block algorithms can leverage this known relationship between the two states and deploy heuristics to clamp down the undesirable chattering behavior for certain conditions.
  • 18. A Model of a Spring Mass System
  • 19. Spring Mass System ● Objective : To study the motion of a body under the constraint of a spring and damping effect ● Basic Model : ○ m : mass of the body under consideration ○ F : Force experienced by the body ○ k : stiffness constant of the spring ○ b : damping constant
  • 20. Working of the Model ●
  • 23. Simple Harmonic Motion ● Equation ● Natural Frequency
  • 24. Observations from Simulated Environment M = 10kg x0 = 1(Initial disp.) v0 = 0(initial velocity) b(damping constant) = 0 A(amplitude of vibration) = 1 K = 100 N/m (stiffness constant)
  • 26. SHM in Spring Mass Damper System ● Equation of Motion (Free Oscillations) and Solution: ● The motion of the system is affected by the magnitude of damping: under-damped, critically-damped or over-damped.
  • 27. Under-Damped, Critically-Damped and Over-Damped Conditions
  • 33. A Model of Traffic Flow
  • 34. Car Following Model ● Describes how one vehicle follows another vehicle in an uninterrupted flow. ● Based on two assumptions; ○ higher the speed of the vehicle, higher will be the spacing between the vehicles and ○ to avoid collision, driver must maintain a safe distance with the vehicle ahead
  • 35. Mathematical Model Let ∆xn t is the gap available for nth vehicle, and let ∆xsafe is the safe distance, vn t and vn-1 t are the velocities, the gap required is given by, ∆xn t = ∆xsafe + τ.vn t …(1) where τ is a sensitivity coefficient. The above equation can be written as : xn-1 t − xn t = ∆xsafe + τ.vn t …(2) Differentiating the above equation with respect to time, we get vn-1 t − vn t = τ.an t an t = (vn-1 t − vn t )/τ …(3)
  • 36. Mathematical Model (contd.) Now assume that T is the reaction time, or time taken by a driver to observe what is going on around them and to update his velocity, then : an t + T = λ(vn-1 t − vn t ) …(4) where λ = 1/τ. The solution of (4) can be a steady-state solution, where all vehicles move at a constant velocity, or it can be a superposition of exponential solutions of the form vn t = eαt .u …(5) where u and α are constants. Differentiating, we get : an t + T = αeαT .eαt .u …(6)
  • 37. Mathematical Model (contd.) Substituting in (3): αeαT .eαt .u = λ(S.eαt .u − I.eαt .u) …(4) where I is the identity matrix of degree equal to the dimensions of the system and S is the “shift” matrix that, when it multiplies a vector on the left, cyclically permutes the entries of the vector. [ S − [1 + (α/λ)eαT ] I ] u = 0 …(5) Thus u is an eigenvector for S with eigenvalue 1 + (α/λ)eαT .
  • 39. Results for λ = 0 Velocities Positions
  • 40. Results for λ = 0.8 Velocities Positions
  • 41. Results for λ = 2 Velocities Positions