Professional Documents
Culture Documents
Simulation
ME 635/IPD 611
Kishore Pochiraju
Agenda
• Definitions
• Modeling Process
• Introduction to Software Tools
• Project
– Teaming
– Project Objective
Definitions
10
Physical Models
Models Approximate –
They do not contain all the information
Measurement to a Scale
Simulation
14
Parameters/Variables
• Input Parameters: u
• Output parameters: y
• Intermediate or State Variables: q
u
q
y
15
Keep in Mind!
An Approximate Simulation
to an Exact Model is Better than
an Exact Simulation to
An Approximate Model to the Problem
16
Area of the Circle with Polygonal
Approximations
Area = p
R=1
3.1415926535897932384626433832795028841971693
99375105820974944592307816406286208998628034
8253421170679 …
Area = 4R2
2R=2
17
A Polygon Model
2R
Side =
R 3
Area = 1 6. 2 R R 3.464101615137R 2
2 3
16 Sided Polygon
Area: 3.1828 R2 Octagon:
Area: 3.3139 R2
100-Sided Polygon
Area: 3.1428 R2
http://www.1728.com/polygon.htm 18
In Class Exercise #1
100 mm
Find the
area of the
cell A.
100 mm
A
Modeling accuracy!
Models are right about the area only 40% of time (1 day out) –
Area of coverage only 6% of the time.
https://www.wpc.ncep.noaa.gov/verification/mode/mode.php?
vdate=20200121&mdl=hpc&ldt=24&thres=twoi#page=page-1
Verification and Validation are important
26
Modeling Process - II
3. Solve the model: This stage implements the model. It is important not to
jump to this step before thoroughly understanding the problem and
designing the model.
27
Modeling Process - III
28
Simulation Types
• Static vs. Dynamic
– Does time have a role in the model?
• Continuous-change vs. Discrete-change
– Can the “state” change continuously or only at
discrete points in time?
• Deterministic vs. Stochastic
– Is everything for sure or is there uncertainty?
• Most operational models:
– Dynamic, Discrete-change, Stochastic
29
Simulation Types
u u (x)
y y(x)
q q (x) Steady state temperature and
velocity profiles
30
Quasi-Static
u u ( x , t*)
y y ( x , t*)
q q ( x , t*)
31
Dynamic Problem
Periodic thermal
Vibrations of a molecule
32
Transient Response
Anthropomorphic Test Devices; SID-IIs Side Impact Crash Test Dummy; 5th Percentile
Adult Female,, A Rule by the National Highway Traffic Safety Administration 33
Continuous Vs. Discrete Change
• Continuous Change:
– Variable changes continuously. No Sudden jumps.
– e.g. Y = sin(x). X changes continuously between 0-2p,
Y changes continuously.
• Discrete Change:
– Two workers at a toll both are servicing 50 cars an
hours. A third booth opens with the third worker. The
number vehicles serviced jumps “discretely” to 75.
34
Deterministic vs. Stochastic
35
Process Simulations
36
Role of simulation tools
• Simulation tools typically implement models. There are
typically many choices.
– Commercial codes – support, better user experience – but
expensive. Licenses are needed. Code publishers control the
size of the problem and/or how many times/days of use. $$$$
– Open source: Often developed by volunteers – little or no
support – source code is open so extensions, implementation
of new models are possible.
– Avoid Adware.
What tools do we need for this course?
• Simple Scripts.
http://www.mathworks.com/academia/student_center/tutorials/launchpad.htm
l
Matlab/Simulink Example
Matlab/Simulink Solution
Simulink Model
Script with Parameters
Mass= 1; C= 1; K = 1 C=0.1
Stochastic Simulations (Arena/Jaamsim)
Monte Carlo Simulations are easy to do.
SEE PI_ESTIMATE_MONTE.XLS