WK 01
WK 01
• Challenges in Modelling
• Course Information
Dr Hammad Ur Rahman,
Department of Mechatronics Engineering
NUST College of Electrical and Mechanical Engineering
Rawalpindi, Pakistan
[email protected]
Recommended Text:
• Modeling and Simulation of Dynamic Systems 1st Edition by Robert L Woods, Kent L. Lawrence
• Introduction to Physical System Dynamics by RC Rosenberg and D Karnopp
• Introduction to Physical System Modeling by PE Wellstead
• Introduction to MATLAB for Engineers, 3rd Edition By William J. Palm III, University of Rhode Island
General View of Modelling and Simulation
• General View
• System
• Experiment
• Model
• Simulation
• Why M&S
2
General View of Modelling and Simulation
• General View
▪ System
• System
▪ A system is an object or collection of objects whose properties we
want to study.
▪ Real or virtual environment viewed as a source of observational data
or more specifically, behavior.
▪ Why do we want to study a system?
o Study a system to understand it in order to build it. This is the
engineering point of view.
o Satisfy human curiosity, e.g. , to understand more about nature—the
natural science viewpoint.
▪ A system can contain subsystems which are themselves systems.
▪ Natural and artificial systems
▪ An important property of systems is that they should be observable.
o -Input and output
3
General View of Modelling and Simulation
• General View
▪ System • Concept of a System
o System Concept
▪ A system has certain distinct objects, each of which has properties of
interest.
▪ There are interactions occurring in the system that causes change in
the system.
▪ Object of interest in the system → Entity
▪ Property of entity → Attribute
▪ Process that causes change in system → Activity
▪ Description of entities, attributes, and activities at a point of time →
State of a system
▪ Progress of a system is studied by observing the change in state of a
system
4
General View of Modelling and Simulation
• General View
▪ System • System Environment
o System Concept
o System
▪ Changes occurring outside the system that effect the system are said
Environment
to occur in the system environment
▪ Example : the factors controlling the arrival of orders may be
considered to be outside the influence of the factory and therefore
part of the environment.
▪ Endogenous → describes activities occurring within the system
▪ Exogeneous → Activities in the environment that affect the system
▪ No Exogeneous activity → closed system
▪ Exogeneous activity present → open system
5
General View of Modelling and Simulation
• General View
▪ System
• System Environment
o System Concept
o System
Environment ▪ When the outcome of an activity can be described completely in
terms of its input, the activity is said to be deterministic.
▪ Where the effects of the activity vary randomly over various possible
outcomes , the activity is said to be stochastic.
7
General View of Modelling and Simulation
• General View
▪ System • Steps in the Design of Dynamic System
o System Concept
o System
Environment
o Dynamic Systems Block Classical
❑ Definition
❑ System
Diagrams Methods
Design
Bond
Graphs
8
General View of Modelling and Simulation
• General View
▪ System • Dynamic Systems
o System Concept
o System
Environment
o Dynamic Systems
▪ Electrical
❑ Definition
❑ System
Design
❑ Examples
▪ Mechanical
▪ Electro-Mechanical
▪ Hydraulic
▪ Thermal
▪ Pneumatic 9
General View of Modelling and Simulation
• General View
▪ System
• Examples of Dynamic Systems
o System Concept
o System
Environment
o Dynamic Systems
❑ Definition
❑ System
Design
❑ Examples
10
General View of Modelling and Simulation
• General View
▪ System
o System Concept
o System
Environment
o Dynamic Systems
❑ Definition
❑ System
Design
❑ Examples
𝑑2𝑥 𝑑𝑥
𝑚 +𝑅 + 𝐾𝑥 = 𝐹(𝑡)
𝑑𝑡2 𝑑𝑡2
Differential equations
Engineering model
Physical system
11
General View of Modelling and Simulation
• General View
▪ System
o System Concept
o System
Environment
o Dynamic Systems
❑ Definition
❑ System
Design
❑ Examples
12
General View of Modelling and Simulation
• General View
▪ System • Experiments
▪ Experiments ▪ An experiment is the process of extracting information from a system
by exercising its inputs.
▪ To perform an experiment on a system it must be both controllable (for
inputs) and observable (for outputs).
o Inaccessible and uncontrollable inputs are sometimes called
disturbance inputs.
o Unobservable outputs are sometimes called internal states.
14
General View of Modelling and Simulation
• General View
▪ System • Model
▪ Experiments
▪ Model
http://www.thepoachedegg.net/the-poached-egg/2010/06/christian-
apologetics-blind-men-the-elephant-and-the-zoo.html 15
General View of Modelling and Simulation
• General View
▪ System • Modelling
▪ Experiments
▪ Model
▪ the field of science which formulates a mathematical representation
o Modelling of a system:
• for analysis / understanding (unstable, stable, observable,
controllable, etc.)
• Simulation
• control purposes.
17
General View of Modelling and Simulation
• General View
▪ System • Modelling
▪ Experiments
▪ Model
▪ A model is simplification of reality, careful consideration needs to be
o Modelling given in creating a model.
▪ If model is very detailed and complex, it may be difficult to estimate
its parameters, and if will be very difficult to analyze.
▪ If model is very simple it may not capture important features.
18
General View of Modelling and Simulation
• General View
▪ System • Types of Models
▪ Experiments Models
▪ Model
o Modelling
o Types of Models
Physical Mathematical
Simulation 19
General View of Modelling and Simulation
• General View
▪ System • Types of Models
▪ Experiments
▪ Model
▪ Physical Models
o Modelling
o Types of Models
o These are based on some analogy between such systems as
mechanical and electrical or electrical and hydraulic.
o In physical model of a system, system attributes are represented
by measurements such as voltage or position of shaft.
o The system activities are reflected through the physical laws
through which model has been derived.
20
General View of Modelling and Simulation
• General View
▪ System • Types of Models
▪ Experiments
▪ Model
▪ Mathematical Models
o Modelling o Use symbolic notation and mathematical equations to represent a
o Types of Models
system.
o Attributes are represented by variables and the activities
represented by mathematical functions that interrelate the
variables.
21
General View of Modelling and Simulation
• General View
▪ System • Types of Models
▪ Experiments
▪ Model
▪ Static / Dynamic Models
o Modelling
o Types of Models
o Static Models: represents a system at a particular point in time
when the system is in balance.
o Dynamic Models: represents systems as they change overtime
that result from system activities.
22
General View of Modelling and Simulation
• General View
▪ System • Types of Models
▪ Experiments
▪ Model
▪ Numerical / Analytical Models
o Modelling
o Types of Models
o Numerical Models: Applies computational procedures to solve
equations – Example: The solution may be derived in the form of
a complicated integral which then needs to be expanded as a
power of series for evaluation.
o Analytical Model: To find the model that can be solved and best
fits the system being studied – Example: Linear differential
equations
24
General View of Modelling and Simulation
• General View
▪ System • Types of Models
▪ Experiments
▪ Model
▪ Dynamic Physical Model
o Modelling
o Types of Models
o Dynamic physical models are ones which change with time or
which are function of time
o Example: In wind tunnel, small aircraft models are kept and air is
blown over them with different velocities. Here wind velocity
changes with time.
25
General View of Modelling and Simulation
• General View
▪ System • Types of Models
▪ Experiments
▪ Model
▪ Static / Dynamic Mathematical Models
o Modelling
o Types of Models
o Static mathematical model gives the relationships between the
system attributes when the system is in equilibrium.
o A dynamic mathematical model allows the changes of system
attributes to be derived as a function of time
26
General View of Modelling and Simulation
• General View
▪ System • Types of Models
▪ Experiments
▪ Model
▪ Mathematical models of dynamic systems can also be subdivided
o Modelling into two broad classes
o Types of Models
o parametric models (PM)
o non-parametric models (NPM)
27
General View of Modelling and Simulation
• General View
▪ System • Types of Models
▪ Experiments
▪ Model
▪ Parametric Model
o Modelling
o Types of Models
28
General View of Modelling and Simulation
• General View
▪ System • Types of Models
▪ Experiments
▪ Model
▪ Non-Parametric Model
o Modelling
o Types of Models
o Impulse response of a damped
mechanical oscillator
o Non parametric models have
several drawbacks
❑ require the system to be
accessible for experiments
❑ cannot predict the behavior
of a modified system
❑ not useful for systematic
design optimization
29
General View of Modelling and Simulation
• General View
▪ System • Types of Models
▪ Experiments
▪ Model
o Modelling
o Types of Models
From Michael W. Macy, Social Life in Silico: Population Health from the Bottom Up, presentation in NIH, July 13, 2007
30
General View of Modelling and Simulation
• General View
▪ System
• Model
▪ Experiments ▪ Weather Prediction Example
▪ Model
o Modelling o Possible models to predict the weather tomorrow
o Types of Models ❑ Mystery-based models (e.g., whenever my right eyelid twitches, it is
going to rain tomorrow)
❑ Statistic models (historical temperature on this day of the year; Given
that is rained today, what is the probability that it will rain tomorrow)
❑ Time series models (e.g., moving average)
❑ Neural network (using NN to represent the dynamic system, e.g.,
today‘s weather type, wind level, time of year -> tomorrow’s weather
type)
❑ Expert systems (combining all observations, patterns, rules, and data to
give predictions)
❑ Simulation model (explicitly model the space and the physical process
of the system)
o How do you predict the stock market?
31
General View of Modelling and Simulation
• General View
▪ System
• Simulation
▪ Experiments ▪ A simulation is an experiment performed on a model.
▪ Model
▪ Simulation ▪ Examples:
o An industrial process such as steel or pulp manufacturing, to learn about
the behavior under different operating conditions in order to improve
the process.
o Vehicle behavior, e.g., of a car or an airplane, for the purpose of
providing realistic operator training.
o Simplified model of a packet-switched computer network, to learn
about its behavior under different loads in order to improve
performance.
▪ It is important to realize that the experiment description and model
description parts of a simulation are conceptually separate entities.
▪ The value of the simulation results is dependent on how well the model
represents the system.
32
General View of Modelling and Simulation
• General View
▪ System
• Simulation
▪ Experiments ▪ Simulation is typically considered as a different approach from analytical
▪ Model
▪ Simulation techniques. They differ in the following two ways:
o Ability of dealing with complexity: analytical techniques usually apply
only under a set of simplifying assumptions.
o Way of work: analytical solutions are derived from mathematical
analysis; simulation results are generated from simulations.
34
General View of Modelling and Simulation
• General View
▪ System
• Why M&S
▪ Experiments ▪ Experiments are too expensive, too dangerous, or the system to be
▪ Model
▪ Simulation investigated does not yet exist.
▪ Why M&S
▪ The time scale of the dynamics of the system is not compatible with that
of the experiment. For example, it takes millions of years to observe
small changes in the development of the universe.
▪ Variables may be inaccessible in real system. In simulation all variables
can be controlled.
▪ Easy manipulation of models.
▪ Suppression of disturbances and suppression of second-order effects.
This can allow us to isolate particular effects and thereby gain a better
understanding of those effects
35
Challenges of Modeling
• General View
• Challenges of
• Modeling is to develop an abstraction of a system.
Modelling
• A good model should capture only the relevant information, ignore the
irrelevant information.
• What is relevant (or irrelevant) depends on your modeling goal.
36
Challenges of Modeling
• General View
• Challenges of
• Falling in love with a model – the Pygmalion effect (who falls in love with
Modelling one of his sculpture works).
• Forcing reality into the constraints of a model
o the Procrustes effect (who forces victims to fit into a torturing bed).
o if all you have is a hammer, everything looks like a nail
37
Challenges of Modeling
• General View
• Challenges of
Modelling
from: Michael W. Macy, Social Life in Silico: Population Health from the Bottom Up, presentation in NIH, July 13, 2007
38
Challenges of Modeling
• General View
• Challenges of
Modelling
from: Michael W. Macy, Social Life in Silico: Population Health from the Bottom Up, presentation in NIH, July 13, 2007
39
Course Information - Topics
• General View S.No Topic Week/Lecture
• Challenges of
Modelling
• Course Information 1 Fundamentals of Modelling and Simulation 1
▪ Topics 2 Modeling of mechanical systems (springs, dampers, mass, 2-3
translational and rotational systems, geared systems)
41
Course Information - Evaluation
• General View
• Challenges of
Modelling
• Course Information
▪ Topics
▪ Targets GRADING SYSTEM:
▪ Evaluation
1. Midterm 30%
2. Quizzes 10%
3. Assignments 10%
4. Final 50%
42