Introductory Chapter Computer Simulation
Introductory Chapter Computer Simulation
4,000
Open access books available
116,000
International authors and editors
120M Downloads
154
Countries delivered to
TOP 1%
most cited scientists
12.2%
Contributors from top 500 universities
Dragan Cvetković
Dragan Cvetković
Additional information is available at the end of the chapter
Additional information is available at the end of the chapter
1. Introduction
Information technologies have changed people’s lives to a great extent, so it is almost impos-
sible to imagine any activity which does not depend on computers. Once the first computer
systems appeared, people were trying to take advantage of computers in order to solve com-
plex problems in various areas. With the development of industry, demands for computers
and computational programs in structural analysis have evolved. Traditional methods of
constructing are replaced by computer programs that have the ability to predict the behavior
of structures under different load conditions [1, 2]. Thus, expensive experiments, tests, and
examinations are substituted by cheaper and more powerful computational methods that do
not require the destruction of the structure itself in order to determine its capacity.
Computer programs help in solving this kind of problems. Firstly, the simulation of the real
system should be made, and after that, if the simulation gives satisfactory results, realization
of previously examined system can be carried out. Computer simulation or a computer model
has the task to simulate an abstract model of a particular or equivalent system. Computer
simulations have become a useful part of mathematical modeling of many natural systems in
physics, mechanics, chemistry, biology, economic systems, psychology, and social sciences, as
well as in all branches of engineering, in order to gain a better insight into the work of previ-
ously mentioned systems [1, 3, 4].
In order to have a useful model, it is necessary to determine its behavior for defined and
limited set of variables. This means that for some random input parameters are observed
corresponding output values.
© 2016 The Author(s). Licensee InTech. This chapter is distributed under the terms of the Creative Commons
© 2019 The Author(s). Licensee IntechOpen. This chapter is distributed under the terms of the Creative
Attribution License (http://creativecommons.org/licenses/by/3.0), which permits unrestricted use,
Commons Attribution License (http://creativecommons.org/licenses/by/3.0), which permits unrestricted use,
distribution, and reproduction in any medium, provided the original work is properly cited.
distribution, and reproduction in any medium, provided the original work is properly cited.
2 Computer Simulation
Simulation in everyday life can be related to various activities. If this word is used in the com-
puter technology, then the term simulation represents the process of creating the abstract sys-
tem models from the real environment and carrying out the appropriate number of experiments
on them. When the experiments are carried out on a computer, then they are named computer
modeling and computer simulation (Figure 1).
The input data vary and depend on many factors when the models and simulations are taken
into consideration. For example, some models require very simple inputs (e.g., the input for
the simulation of an AC sinusoid is based on few numbers), while other models require tera-
bytes of input data (e.g., simulation of weather or climate changes).
• Sensors and other physical devices that are connected to the model
• Control panel that directly affect the progress of the simulation itself in some way
• Current or older data brought in manually
• The values that represent the output products from other processes or operations
It should be noted that the systems that receive data from external sources must be “careful”:
they should know what these data represent and to which elements are actually connected.
The precision must be taken into account and the errors should not occur. If the errors appear,
they should be reduced to the minimum. The mathematics integrated in the computer is not
perfect, so the approximate results, result abbreviations, or neutralization of small errors can
lead to an increase of potential errors. It is necessary, in some cases, to analyze the resulting
error in order to verify that the simulation output is valid and that it can be used in further
calculations and simulations. Even small errors in the original input data can accumulate in
significant errors in further simulations [1, 4, 5].
What do we use modeling and simulation for? Are they necessary? These questions are asked
very often, and there are plenty of reasons for their creation and usage, and the most impor-
tant are the following ones:
Introductory Chapter: Computer Simulation 3
• The experiment within a real system or the experiment on the real system is, in most cases,
either unprofitable or too complex. Modeling and simulation can show whether a further
investment in the experiment is justified or not.
• Often the aim of modeling and simulation is to perceive the functionality of the existing
real system, whose structure is barely known or cannot be approached to.
• Sometimes it is necessary to simulate the conditions that lead to the destruction of the
system. The destruction of the real system, in most cases, is not allowed, so the computer
simulation, in such situations, is the only solution.
• When it comes to long-term processes of real system or within the real system, then time
can be a problematic factor. In such situations, computer simulation can “accelerate” the
process and shorten it artificially.
• When it comes to extremely fast processes of the real system or within the real system,
computer simulation is a solution which allows the monitoring of high-speed processes
gradually or slowly. This is very important, since it is not possible in real life or in real
environment.
• Sometimes the experiment should be stopped for various reasons, and it is often impossible
in real terms. When it comes to computer simulation of such an experiment, there is no
problem, because the simulation can be stopped and continued when it is necessary.
Like everything in life, computer simulations are not perfect and there are different problems.
Simulations are, generally speaking, very useful, but they have advantages as well as disad-
vantages. The basic advantages of computer simulations are:
• When a model is created, then it can be used repeatedly for the analysis of required process,
structures, and similar elements.
• Computer simulations can be extremely helpful, even if the input data are incomplete and
with a certain amount of arbitrariness.
• In most cases it is easier and cheaper to get the output data of the simulation than the output
data of the real system.
• Computer simulation generates the necessary data that can be used for the evaluation and
assessment of any system characteristic and without big restrictions.
4 Computer Simulation
• In some cases, the computer simulation may be the only way to resolve the problems
appropriately.
• Computer simulation can describe and solve complex problems by using dynamic random
variables, which are unavailable in mathematical modeling.
The major disadvantages of computer simulations are:
• Making of simulation models as well as computer simulations can be expensive and time
consuming (it refers to the time needed for their development, testing, and verification).
• By using computer simulations, neither the relation between output and input variables
nor optimal solutions can be obtained.
• Knowledge of different tools and methods is required for the development and use of
simulation models and computer simulations as well.
No matter what, computer simulation is a very useful thing, and its use is rapidly increasing in
environments and situations where it is possible. Obviously, the application of computer simu-
lation has many more advantages than disadvantages, and it is certain that computer simula-
tions are going to be dominant in almost every area and environment of everyday life [4, 6].
Author details
Dragan Cvetković
References
[1] Steinhauser MO. Computer Simulation in Physics and Engineering. Berlin: De Gruyter; 2012
[2] Mityushev V, Nawalaniec W, Rylko N. Introduction to Mathematical Modeling and
Computer Simulation. 1st ed. USA: Chapman and Hall/CRC; 2018
[3] Goldman R. An Integrated Introduction to Computer Graphics and Geometric Modeling.
1st ed. USA: CRC Press; 2009
[4] Law AM. Simulation Modeling and Analysis. 5th ed. USA: McGraw-Hill Education; 2014
[5] Zeigler B, Muzy A, Kofman E. Theory of Modeling and Simulation—Discrete Event &
Iterative System Computational Foundations. USA: Academic Press; 2018
[6] Shiflet AB, Shiflet GW. Introduction to Computational Science: Modeling and Simulation
for the Sciences. 2nd ed. USA: Princeton University Press; 2014