Chapter 2
Chapter 2
Simulation Concepts
Concepts of Continuous /
Discrete System simulations
From the viewpoint of simulation, there are
two fundamentally different types of system:
Continuous systems
Discrete systems
Continuous systems
State variables change continuously as a function of
time and generally, analytical method like
deductive mathematical reasoning is used to define
and solve the system.
Systems that are continuous usually involve some
sort of fluid or fluid-like substance.
o Fluid-like substances could include any type of
small-particle, high-volume material that flows like a
fluid. These types of materials are usually measured
by weight rather than count. Other examples:
o Water treatment plants
o Chemical industries not including distribution points
Discrete systems
State variables change at discrete points in
time and generally numerical method like
computational procedures is used to solve
mathematical models.
Each change of the state of the system is called
event.
– For example, the arrival or departure of customer in
a queue is an event.
Examples:
Stores, Bank, Service centers, Manufacturing
facilities, Transportation centers
Numerical Integration
vs.
Continuous Simulation
Four distinguishing characteristics
differentiate simulation from any
computer program:
1. simulation objective is to achieve correctness,
simulation is computational intensive, and there
is no typical use of simulation. As time is an
indexing variable, the use of such variable can be
discrete or continues. Such use of the time
variable is reflect in the approaches and method
of simulation.
Four distinguishing characteristics
differentiate simulation from any
computer program:
2. The second feature is reflect in the
discussion of validation and verification of the
simulation program. To achieve correctness is
a major goal of any simulation program;
furthermore, the proof of correctness is a
challenge of simulation
Four distinguishing characteristics
differentiate simulation from any
computer program:
3. Simulation major feature is the time
indexing variable, which is a challenge on its
own. Another element that makes simulation
computational intensive is animation.
Animation in relation with time variable is
very challenging to master in any simulation
program.
Four distinguishing characteristics
differentiate simulation from any
computer program:
4. The fourth feature is distinguishing of
simulation; there is no typical use of
simulation. The uses of simulation range from
transport systems to molecule interactions.
Hence, simulation is colored from within its
use.
Analog vs. Digital Simulation,
and Hybrid Simulation
Computers used for the simulation of
continuous dynamical systems have been
analog, digital, or hybrid, the latter
combining the first two into a single
computing system.
Analog Computers
Electronic analog computers implement
mathematical relations between physical
variables (typically electrical voltages) with
separate (parallel) computing elements
working simultaneously.
Each element effects a simple operation such
as addition, multiplication, and, most
important of all, integration with respect to
time.
Digital Computers
In digital simulation, the state equations are
integrated by discrete approximation, and it
is not by coincidence that great strides were
made in the 1950's and 1960's in the
theoretical aspects of the numerical solution
of differential equations.
Digital computers have the capability to
perform simulation of continuous systems
in increasingly favorable technical
conditions.
Hybrid Computers
Accuracy
– The result from a digital simulation is more
accurate than that from analog simulation.
Analog vs Digital Simulation
(Cont…)
The following is the comparison in terms of:
Needed Scale
The magnitudes of dependent variables are
represented in an analog computer by voltages. This
magnitude scaling is tedious task in an analog
simulation, because there are usually many variables
and their maximum values are not known in
advance.
In a digital computer with floating point arithmetic,
the magnitude scaling problem does not arise
because the quantities that can be represented on a
digital computer have a very large range.
Analog vs Digital Simulation
(Cont…)
The following is the comparison in terms of:
Hardware setup
– In analog simulation, input constants and initial
conditions are incorporated by setting up
voltages and potentiometers.
– A simulation program on a digital computer can
be easily stored for reuse.
Monte Carlo Simulation
Monte Carlo Simulation