Chapter 1 Introduction To Modelling and Simulation
Chapter 1 Introduction To Modelling and Simulation
Simulation
[First Draft CBPrice September 22 2011]
[Revised Oct 3]
[Revised Dec 11]
The Nature of Modelling and Simulation
The Purpose of Modelling and Simulation
We view modelling and simulation as a tool to solve problems, e.g.,(i) how to hit a badminton shuttle-cock
to just clip over the net, or (ii) how to design a wind turbine farm to most optimally extract energy from the
wind and convert it into electricity, (iii) how to design a car suspension system to provide the best ride. You
will experience all of these problems in this module. We also view the problem as relating to a system, a
number of components whose individual behaviour can be described in some way, but also where the
interactions between the individual components can be described. Think of a car as a system. You may
conclude that its components are the engine, the gearbox, the suspension, the wheels the interior. Thats not
a bad choice, and we shall return to this example later.
You may have noticed some common elements in the examples given above. There was first the statement
of the problem context (car suspension) but an associated problem goal (to provide the best ride). Thats
what modelling and simulation is about. First you have to identify the problem context and then you have to
identify the problem goal. The goal may be something like striving for the best or optimal solution, or it
may be a what-if question, such as to find out what happens if the car hits a sleeping policeman at high
speed. If you were working in a company, then more than likely, the context and the goal will be given to
you. This is the approach we shall take in this Workbook, where we shall consider some models in the fields
of (i) Physics, (ii) Engineering, (iii) Biology and (iv) Sociology. These fields are all highly significant in our
contemporary world; they are the focus of much academic and industrial/commercial research, and your
study of these fields will enhance your own employability!
Today, modelling and simulation is based on the use of the computer. A correctly crafted computer
simulation of a problem will provide a deep understanding of the problem and therefore an advantage to a
commercial company. For example, a deep understanding of car suspension systems (obtained through
modelling and simulation) will give a motorcar manufacturer a competitive advantage in the design of their
suspension systems. Yes, this is also true of Formula 1.
Indeed, the existence of the computer has allowed us to simulate (and therefore understand) systems of a
high degree of complexity (that means having a large number of components) such as weather prediction,
climate change, nuclear power station controls and even social interactions (marriage, divorce, panic, riot
behaviour).
The whole point of a simulation of a system is to provide some data showing how that system behaves,
without having to engage with or experiment with the real system in the real world. This data will help us
understand the real system. A modelling and simulation of a potential riot situation would not replicate the
actual riot, by conducting experimental riots (which would involve harm or even loss-of-life). It would be
through the riot model, and its simulation that an understanding of this situation could be obtained, and
therefore used to plan how best manage the real riot situation. So the results of modelling and simulation
have a real use.
A correct simulation of a wind-turbine farm could accurately predict the power output of a particular wind-
turbine design. The simulation would be able to investigate the effects of changing the mechanical design
details of the rotor blades, the power conversion system structure and of expected wind conditions. This
would not be possible in the real physical world, since it is not economically viable to construct real physical
wind turbines to investigate all design possibilities.
Not convinced? You may ask what is the point of simulating a system when the system exists in the real
world? That system exists and can be investigated and analysed. Continuing our example of a car
suspension system, well cars exist and so do their suspension systems in the real world, so why simulate?
Think about it. How much time and effort is required to produce 100 variants of a real suspension system,
involving all the associated processes of mechanical engineering? How much time is needed to investigate
these systems and analyse their properties? This will typically involve years and many engineers working on
the project. This is where modelling and simulation realises its power. The investigation of these 100
variants may take one week using the modelling and simulation approach.
Application of Modelling and Simulation
As hinted above, a model and its simulation provide a surrogate for a system in the real world, which means
that it replaces the real-world system in some sense. You may ask again what is the point of working with
this surrogate when the real-world system exists and can be observed? Well, remember that simulation
involves experimentation, finding out what happens when some aspect of the system changes, e.g., when a
wind-turbine is subject to very high speed winds. Performing real-world experiments may not be appropriate
because of the following reasons:
(i) It is impossible to perform the real-world experiments, e.g., we cant control the wind speed near
a wind-turbine. Yet within a simulation we can!
(ii) An experiment may have irreversible consequences, e.g., allowing student doctors to perform
treatments may be harmful to real patients. Simulated treatments (such as laparoscopy) within a
simulation can be reversed through a click on the reset button.
(iii) The problem context may render real-world experimentation too dangerous. Think about
investigating the limits of a nuclear reactor control system, or subjecting a 747 to a real partial
loss of hydraulic pressure. Simulations are safe
(iv) A real-world problem exists and there may only be one attempt to solve it; there is no room for
experimentation. Think about the Apollo 13 mission where an internal explosion in the fuel tanks
destroyed much of the Command Module functionality. Here there was no opportunity to test out
various ideas. Thanks to a ground-based series of planned simulation experiments, the correct
power-up sequence was obtained, uploaded and executed with the successful return of the Apollo
13 astronauts.
(v) The context may make real-world experimentation too costly, e.g., changing the number of
express checkout counters in all supermarkets of a particular chain, to investigate the possible
gains in customer throughput.
(vi) There may be moral or ethical implications. Is it ethical to try to control the population of one
species in an ecological environment by the introduction of a predator?
This list of justifications for the need for modelling and simulation (which you are invited to extend) leads in
to possible areas of application of modelling and simulation. Heres some possible examples:
(i) Education and Training. There is currently research into the use of computer game technology in
the training of doctors (e.g., laparoscopy) and of triage within a disaster scenario. Other
approaches used simulated bodies. My own research group is developing physics and
engineering simulations to be used in secondary school and undergraduate courses. Training of
pilots using simulations is important since this avoids the cost of training in real-world planes
and the safety issues involved.
(ii) Forecasting. Super-computers are used in weather forecasting with the results we know. It is
impossible to experiment with the weather, so forecasting relies on simulations.
(iii) Engineering design. Simulations are used in many engineering disciplines, including the design
of bridges, aircraft, cars as well as medical devices. These simulations avoid the problem of
development costs.
(iv) Safety and Risk assessment. Good examples are the evacuation of buildings when there is a
spreading fire, or a terrorist attack; the control of nuclear power stations.
(v) Prototyping. The design and development of a new system usually will involve a cycle of
producing and evaluating prototypes. This may be costly for the development of a new product
which starts out at the concept stage, which means it is not based on a previous product. For
example, a manufacturer of solar panels wishes to move into the wind-turbine market. Their
development team suggests that they have a novel product with unique features, but they cannot
construct a real-world prototype, since they do not have the manufacturing skills. Modelling and
simulation would help them to evaluate their concept, to produce a prototype and refine this and
so decide on a new business plan, which leads onto
(vi) Making decisions. Continuing the above example, the manufacturer can make a business
decision, whether or not they should extend their product range, into the wind-turbine market.
What is a Model?
You may already have experience of commercial computational models, for example trying out Flight
Simulators, or playing computer games where you control the behaviour of cars. You may have felt that the
underlying simulation was perfect (in the sense that it totally reproduced reality) where you experienced a
high-fidelity graphical display and responsive interaction. Those of you who really drive cars or fly planes
(or even *board) will realise that this is nonsense, in reality the simulations you experienced were far from
perfect.
A model and its computational simulation is not intended to reproduce reality in all of the details of the real
physical world. This is impossible, since the real physical world works on the level of atoms and whereas
the simulation of an atom in computer code is possible (and has been done), this requires a computer
programme, which in itself requires many, many atoms when compiled and stored in memory. So a
computer simulation of reality which reproduces reality requires more atoms that exist in reality. This
implies an increase in complexity, or dimensionality which cannot help us in understanding real-world
scenarios since ultimately it would create a world larger than the world we live in. That is nonsense, and
therefore is the subject of a philosophical reflection. What we need in our modelling and simulation
enterprise is a reduction in the complexity or the dimensionality of the system.
Lets consider this from the point of view of an automobile manufacturer who wishes to develop a new
suspension system [goal ???] which will enable its cars to negotiate bends at an increased speed. This is a
realistic goal and has been attempted before in the rail industry, where the first attempts at the Advanced
Passenger Train (did they simulate?) failed, but the Virgin Pendulino system worked (did they simulate?).
To return to our example, the question is, at what level of detail does the automobile manufacturer need to
model? The suspension system comprises at least, springs and shock absorbers. But springs are made of
geometrical structures (helices) and metals which are also systems. Shock absorbers comprise pistons and
cylinders and gases; clearly they are systems. You get the idea, each system is composed from a number of
(sub-) systems. And moving down the levels of (sub-) systems we experience an increase in complexity.
So what the automobile manufacturer needs to know is which level of complexity, ie which system
description is appropriate to solve the problem goals. This defines the model and its associated simulation. It
is therefore important to understand the problem goals before stepping down to create a model and a
programmed simulation.
Historical Overview
The original computer technology used in modelling and simulation was the analogue computer. Such
computers implemented the required models through various electrical circuits which were connected with
wires. Lets consider how we would write a computer programme to calculate the change in speed of a
projectile (ball, shuttle-cock or missile) as a function of time. We would code the equivalent of the physics
acceleration = rate of change in speed as