Chapter 2
Chapter 2
Continuous system simulation uses the notation of differential equation to represent the change on the basic
parameter of the system with respect to time. Hence the Mathematical model for continuous system
simulation is usually represented by differential and partial differential equations.
K D
Here the dependent variable x appears together with first and second derivatives single dot and double dot
respectively.
The simple differential equation can model the simplest continuous system and they can have one or more
linear differential equation with constant coefficients. It is then often possible to solve the model without
using simulation technique i.e. we can solve such equations using analytical methods as (we have done in
Numerical methods)
However when non linearity involves into the model, it may be impossible or at least very difficult to solve
such model without simulation.
Integrator
Inverter
_
Scalar C
Torque = (2)
Where K and D, are constants, the first term on the right hand side is the torque produced by the rudder, and
the second is the viscous drag.
The torque is also given by the product of inertia on body of aircraft and second derivative of the heading,
Torque = (3)
From equation (1), (2), and (3) we get,
(4)
Dividing both sides by I, and making the following substitutions in equation (4)
2 = D/I, = k/I
In discrete systems the changes in the systems state are discontinuous. Each change in the state
of the system is called an event. For example, the arrival or departure of a customer in a queue is
an event. That contrasts to continuous systems in which the state changes smoothly with time.
Simulation is the representation or imitation of a system by a computer for the purpose of
predicting the behaviour of that system under certain conditions.
Discrete-event simulation is commonly used in research to study large, complex systems which
are not suitable for conventional analytic approach. Some examples are the study of sea and
airports, & telephone exchanges. Another use of simulation is for tuning a design, an example is
network design.
In a next-event (or event-to-event) model the computer advances time to the occurrence of the
next event, thus it shifts from one event to the next; the system state does not change in between.
When something of interest happens to the system, the current time is kept track of.
This is equivalent to saying that the number of arrivals per unit time is a random variable with a Poisson’s
distribution. This distribution is used when chances of occurrence of an event out of a large sample is small.
That is if X = number of arrivals per unit time, then, probability distribution function of arrival is given as
Where λ. is the average number of arrivals per unit time (1/ τ), E(X) is the expected number, and x is the
number of customers per unit time. This pattern of arrival is called Poisson’s arrival pattern. τ is inter arrival
time.
Illustrative example
In a single pump service station, vehicles arrive for fueling with an average of 5 minutes between arrivals. If
an hour is taken as unit of time, cars arrive according to Poison’s process with an average of
λ= 12 cars/hr.
The distribution of the number of arrivals per hour is,
Example
As shown in the figure above, the graph of the function is then contained within a rectangle with sides of
length c, and b-a. If we pick points at random within the rectangle, and determine whether they lie beneath
the curve or not, it is apparent that, providing the distribution of selected points is uniformly spread over the
rectangle. The fraction of the points falling on or below the curve should be approximately the ratio of the
area under the curve to the area of the rectangle. If N points are used and n of them fall under the curve, then,
approximately,
The accuracy improves as the number of N increases. When it is decided that the sufficient poits has been
taken, the value of integral is estimated by multiying n/N with the area of rectangle, c(b-a).