Professional Documents
Culture Documents
For
PhD Programme
(1)
Course Description
(2)
Course Objectives
The computer tools will be used MATLAB and COMSOL Multiphysics; the
focus will be on developing and solving models existing in various field of
science, engineering and Technology.
(3)
Attendance and Assessment
Lecture Schedule
(4)
Course Outlines
• Introduction to Mathematical Modeling and Simulation
– Different Real World Systems and Natural Phenomena
– Modeling Process and Model Classification
– Some General Concepts
(5)
Course Contents
• Applications of ODEs, PDEs and State Equations
– Initial and boundary value problems
– Wave Motion
– Vibration of a Stretched and Flexible String
– The Vibrating Membrane
– Longitudinal vibration of an Elastic Bar
– Transmission-Line Equations
– Diffusion
– Gravitational Potential
– Electric Potential
– Heat Conduction
– Heat Transfer
– And many others
• Simulation Techniques in 1D and 2D Problems
– Simulation by Finite Difference Method (FDM)
– Simulation by Finite element method (FEM)
– Curve fitting
– Optimization
(7)
Course Contents
• Modeling and Simulation of Various Engineering Problems
using COMSOL Multiphysics
– AC/DC
– Diffusion
– Wave Propagation
– Electromagnetism
– Acoustic
– Batteries and Fuel Cells
– Computational Fluid Dynamics (CFD)
– Chemical Reactions
– Heat Transfer
– Plasma
– Radio Frequency
– Structural Mechanics
– Quantum Mechanics
– Subsurface Flow
– Microelecromechanical systems (MEMS)
– Equation Based Models
(8)
Recommended Books
(9)
Week-01, Lectures:1-4
INTRODUCTION TO
(10)
What Is A Model ?
A representation of an object, a
system, or an idea in some form
other than that of the entity itself.
(11)
Types of Models
Physical
(Scale models, prototype plants,…)
Mathematical
(Analytical queueing models, linear
programs, simulation)
(12)
What is Simulation?
(13)
Applications
(14)
Applications
(15)
Why Teach with Simulations?
Deep Learning
• Instructional simulations have the potential to engage
students in "deep learning" that empowers
understanding as opposed to "surface learning" that
requires only memorization.
(16)
Why Teach with Simulations?
Deep learning means student can learn scientific methods including
(18)
Why Teach with Simulations?
Learn to reflect on and extend knowledge by:
• actively engaging in student-student or
instructor-student conversations needed to
conduct a simulation. Instructional simulations by
their very nature cannot be passive learning.
• Students are active participants in selecting
parameter values, anticipating outcomes, and
formulating new questions to ask.
• transferring knowledge to new problems and
situations. A well done simulation is constructed to
include an extension to a new problem or new set of
parameters that requires students to extend what
they have learned in an earlier context.
(19)
Why Teach with Simulations?
• understanding and refining their own
thought processes. A well done simulation
includes a strong reflection summary that
requires students to think about how and why
they behaved as they did during the
simulation.
• seeing social processes and social
interactions in action. This is one of the
most significant outcomes of simulation in
social science disciplines such as sociology
and political science.
(20)
Steps In Simulation and
Model Building
(23)
Put together a complete
mix of skills on the team
We Need:
-Knowledge of the system under investigation
-System analyst skills (model formulation)
-Model building skills (model Programming)
-Data collection skills
-Statistical skills (input data representation)
(24)
Put together a complete
mix of skills on the team(continued)
We Need:
-More statistical skills (output data
analysis)
-Even more statistical skills (design of
experiments)
-Management skills (to get everyone
pulling in the same direction)
(25)
Involve the end user
(26)
Choose the Appropriate Simulation Tools
(27)
Modeling with general purpose languages
Advantages:
– Little or no additional software cost
– Universally available (portable)
– No additional training (Everybody knows…(language X) ! )
Disadvantages:
– Every model starts from scratch
– Very little reusable code
– Long development cycle for each model
– Difficult verification phase
(28)
General Purpose Languages Used for Simulation
FORTRAN
– Probably more models than any other language.
PASCAL
– Not as universal as FORTRAN
MODULA
– Many improvements over PASCAL
ADA
– Department of Defense attempt at standardization
C, C++
– Object-oriented programming language
(29)
Modeling with general simulation languages
Advantages:
– Standardized features often needed in modeling
– Shorter development cycle for each model
– Much assistance in model verification
– Very readable code
Disadvantages:
– Higher software cost (up-front)
– Additional training required
– Limited portability
(30)
General purpose simulation languages
SIMSCRIPT II.5
– English-like Problem Description Language
– Compiled Programs
– Complete language (no other underlying language)
– World-view: Processes/ Resources/ Continuous
(31)
GEN. PURPOSE SIMULATION LANGUAGES (continued)
MODSIM III
– Modern Object-Oriented Language
– Modularity Compiled Programs
– Based on Modula2 (but compiles into C)
– World-view: Processes
SIMULA
– ALGOL (Algorithmic Language) -based Problem Description
Language
– Compiled Programs
– World-view: Processes
(32)
Gen. Purpose Simulation Languages (continued)
(33)
Modeling with Special-Purpose Simulation Packages
Advantages
– Very quick development of complex models
– Short learning cycle
– No programming--minimal errors in usage
Disadvantages
– High cost of software
– Limited scope of applicability
– Limited flexibility (may not fit your specific
application)
(34)
Special Purpose Packages Used for Simulation
NETWORK II.5
– Simulator for computer systems
OPNET
– Simulator for communication networks, including
wireless networks
COMNET III
– Simulator for communications networks
SIMFACTORY
– Simulator for manufacturing operations
(35)
The Real Cost of Simulation
(36)
MODEL THE APPROPRIATE LEVEL(S) OF DETAIL
(37)
START EARLY TO COLLECT THE NECESSARY INPUT DATA
(38)
PROVIDE ADEQUATE AND ON-GOING DOCUMENTATION
(39)
DEVELOP PLAN FOR ADEQUATE MODEL VERIFICATION
(40)
DEVELOP A PLAN FOR MODEL VALIDATION
(41)
DEVELOP A PLAN FOR STATISTICAL OUTPUT ANALYSIS
Acoustic
Magnetic Field
(43)
Different Real World Systems and Natural Phenomena
(44)
Different Real World Systems and Natural Phenomena
(45)
Modeling Process and Model Classification
(46)
Modeling Process and Model Classification
(47)
Terminology
System
– A group of objects that are joined together
in some regular interaction or
interdependence toward the
accomplishment of some purpose.
– Entity
– An object of interest in the system.
– E.g., customers at a bank
(48)
TERMINOLOGY (continued)
Attribute
– a property of an entity
– E.g., checking account balance
Activity
– Represents a time period of specified
length.
– Collection of operations that transform the
state of an entity
– E.g., making bank deposits
(49)
TERMINOLOGY (continued)
Event:
– change in the system state.
– E.g., arrival; beginning of a new execution;
departure
State Variables
– Define the state of the system
– Can restart simulation from state variables
– E.g., length of the job queue.
(50)
TERMINOLOGY (continued)
Process
– Sequence of events ordered on time
Note:
– the three concepts (event, process, and
activity) give rise to three alternative ways of
building discrete simulation models
(51)
EXAMPLES OF SYSTEMS AND COMPONENTS
B a n k in g C u s to m e r s C h e c k in g M a k in g A r r iv a l; # o f bu sy
account d e p o s its D e p a r tu r e te lle r s ; # o f
b a la n c e c u s to m e r s
w a itin g
(52)
Classification of Mathematical Models
(53)
Classification of Mathematical Models
Discrete vs. continuous
A discrete model treats objects as discrete (integer
values); while a continuous model represents the objects
in a continuous manner (intervals of real numbers).
0 .2 x 1 0 .4 x 2
0 . 2 x 3 60
0 .5 x 1 0 .6 x 2
0 . 5 x 3 125
Subject to
0 .3 x 1 0 .6 x 2
0 . 5 x 3 132
0 .3 x 1 0 .1 x 0 . 2 x 3 30
2
and
x1 , x 2
, x3 0
Formulating Mathematical Models using constraints
4 x 1 6 x 2 720
6 x 1 3 x 2 480
Subject to
x 1 20
x 30
2
and
x1 , x 2 0