Computer Simulation
Computer Simulation
History
Computer simulation developed hand-in-hand with the rapid growth of the computer, following its first
large-scale deployment during the Manhattan Project in World War II to model the process of nuclear
detonation. It was a simulation of 12 hard spheres using a Monte Carlo algorithm. Computer simulation is
often used as an adjunct to, or substitute for, modeling systems for which simple closed form analytic
solutions are not possible. There are many types of computer simulations; their common feature is the
attempt to generate a sample of representative scenarios for a model in which a complete enumeration of all
possible states of the model would be prohibitive or impossible.[7]
Data preparation
The external data requirements of simulations and models vary widely. For some, the input might be just a
few numbers (for example, simulation of a waveform of AC electricity on a wire), while others might
require terabytes of information (such as weather and climate models).
"invariant" data is often built into the model code, either because the value is truly invariant
(e.g., the value of π) or because the designers consider the value to be invariant for all cases
of interest;
data can be entered into the simulation when it starts up, for example by reading one or
more files, or by reading data from a preprocessor;
data can be provided during the simulation run, for example by a sensor network.
Because of this variety, and because diverse simulation systems have many common elements, there are a
large number of specialized simulation languages. The best-known may be Simula. There are now many
others.
Systems that accept data from external sources must be very careful in knowing what they are receiving.
While it is easy for computers to read in values from text or binary files, what is much harder is knowing
what the accuracy (compared to measurement resolution and precision) of the values are. Often they are
expressed as "error bars", a minimum and maximum deviation from the value range within which the true
value (is expected to) lie. Because digital computer mathematics is not perfect, rounding and truncation
errors multiply this error, so it is useful to perform an "error analysis" [8] to confirm that values output by the
simulation will still be usefully accurate.
Types
Computer models can be classified according to several independent pairs of attributes, including:
Another way of categorizing models is to look at the underlying data structures. For time-stepped
simulations, there are two main classes:
Simulations which store their data in regular grids and require only next-neighbor access are
called stencil codes. Many CFD applications belong to this category.
If the underlying graph is not a regular grid, the model may belong to the meshfree method
class.
Equations define the relationships between elements of the modeled system and attempt to find a state in
which the system is in equilibrium. Such models are often used in simulating physical systems, as a simpler
modeling case before dynamic simulation is attempted.
Visualization
Formerly, the output data from a computer simulation was sometimes presented in a table or a matrix
showing how data were affected by numerous changes in the simulation parameters. The use of the matrix
format was related to traditional use of the matrix concept in mathematical models. However, psychologists
and others noted that humans could quickly perceive trends by looking at graphs or even moving-images or
motion-pictures generated from the data, as displayed by computer-generated-imagery (CGI) animation.
Although observers could not necessarily read out numbers or quote math formulas, from observing a
moving weather chart they might be able to predict events (and "see that rain was headed their way") much
faster than by scanning tables of rain-cloud coordinates. Such intense graphical displays, which transcended
the world of numbers and formulae, sometimes also led to output that lacked a coordinate grid or omitted
timestamps, as if straying too far from numeric data displays. Today, weather forecasting models tend to
balance the view of moving rain/snow clouds against a map that uses numeric coordinates and numeric
timestamps of events.
Similarly, CGI computer simulations of CAT scans can simulate how a tumor might shrink or change
during an extended period of medical treatment, presenting the passage of time as a spinning view of the
visible human head, as the tumor changes.
Other applications of CGI computer simulations are being developed to graphically display large amounts
of data, in motion, as changes occur during a simulation run.
In science
Generic examples of types of computer simulations in science, which are derived from an underlying
mathematical description:
Notable, and sometimes controversial, computer simulations used in science include: Donella Meadows'
World3 used in the Limits to Growth, James Lovelock's Daisyworld and Thomas Ray's Tierra.
In social sciences, computer simulation is an integral component of the five angles of analysis fostered by
the data percolation methodology,[12] which also includes qualitative and quantitative methods, reviews of
the literature (including scholarly), and interviews with experts, and which forms an extension of data
triangulation. Of course, similar to any other scientific method, replication is an important part of
computational modeling [13]
In practical contexts
Computer simulations are used in a wide variety of practical contexts, such as:
The reliability and the trust people put in computer simulations depends on the validity of the simulation
model, therefore verification and validation are of crucial importance in the development of computer
simulations. Another important aspect of computer simulations is that of reproducibility of the results,
meaning that a simulation model should not provide a different answer for each execution. Although this
might seem obvious, this is a special point of attention in stochastic simulations, where random numbers
should actually be semi-random numbers. An exception to reproducibility are human-in-the-loop
simulations such as flight simulations and computer games. Here a human is part of the simulation and thus
influences the outcome in a way that is hard, if not impossible, to reproduce exactly.
Vehicle manufacturers make use of computer simulation to test safety features in new designs. By building
a copy of the car in a physics simulation environment, they can save the hundreds of thousands of dollars
that would otherwise be required to build and test a unique prototype. Engineers can step through the
simulation milliseconds at a time to determine the exact stresses being put upon each section of the
prototype.[15]
Computer graphics can be used to display the results of a computer simulation. Animations can be used to
experience a simulation in real-time, e.g., in training simulations. In some cases animations may also be
useful in faster than real-time or even slower than real-time modes. For example, faster than real-time
animations can be useful in visualizing the buildup of queues in the simulation of humans evacuating a
building. Furthermore, simulation results are often aggregated into static images using various ways of
scientific visualization.
In debugging, simulating a program execution under test (rather than executing natively) can detect far
more errors than the hardware itself can detect and, at the same time, log useful debugging information such
as instruction trace, memory alterations and instruction counts. This technique can also detect buffer
overflow and similar "hard to detect" errors as well as produce performance information and tuning data.
Pitfalls
Although sometimes ignored in computer simulations, it is very important to perform a sensitivity analysis
to ensure that the accuracy of the results is properly understood. For example, the probabilistic risk analysis
of factors determining the success of an oilfield exploration program involves combining samples from a
variety of statistical distributions using the Monte Carlo method. If, for instance, one of the key parameters
(e.g., the net ratio of oil-bearing strata) is known to only one significant figure, then the result of the
simulation might not be more precise than one significant figure, although it might (misleadingly) be
presented as having four significant figures.
See also
Computational model
Digital Twin
Illustris project
List of computer simulation software
Scene generator
Simulation
Simulation hypothesis
Simulation video game
UniverseMachine
Virtual prototyping
Virtual reality
Web-based simulation
References
1. Strogatz, Steven (2007). "The End of Insight". In Brockman, John (ed.). What is your
dangerous idea?. HarperCollins. ISBN 9780061214950.
2. " "Researchers stage largest Military Simulation ever" (http://www.jpl.nasa.gov/releases/97/
military.html) Archived (https://web.archive.org/web/20080122123958/http://www.jpl.nasa.go
v/releases/97/military.html) 2008-01-22 at the Wayback Machine, Jet Propulsion Laboratory,
Caltech, December 1997,
3. "Molecular Simulation of Macroscopic Phenomena" (http://www.almaden.ibm.com/st/past_pr
ojects/fractures/). Archived (https://web.archive.org/web/20130522082737/http://www.almad
en.ibm.com/st/past_projects/fractures/) from the original on 2013-05-22.
4. "Largest computational biology simulation mimics life's most essential nanomachine"
(news), News Release, Nancy Ambrosiano, Los Alamos National Laboratory, Los Alamos,
NM, October 2005, webpage: LANL-Fuse-story7428 (http://www.lanl.gov/news/index.php/fus
eaction/home.story/story_id/7428) Archived (https://web.archive.org/web/20070704061957/h
ttp://www.lanl.gov/news/index.php/fuseaction/home.story/story_id/7428) 2007-07-04 at the
Wayback Machine.
5. "Mission to build a simulated brain begins" (https://www.newscientist.com/article/dn7470.ht
ml) Archived (https://web.archive.org/web/20150209125048/http://www.newscientist.com/arti
cle/dn7470.html) 2015-02-09 at the Wayback Machine, project of the institute at the École
Polytechnique Fédérale de Lausanne (EPFL), Switzerland, New Scientist, June 2005.
6. Santner, Thomas J; Williams, Brian J; Notz, William I (2003). The design and analysis of
computer experiments. Springer Verlag.
7. Bratley, Paul; Fox, Bennet L.; Schrage, Linus E. (2011-06-28). A Guide to Simulation (https://
books.google.com/books?id=XHnkBwAAQBAJ&q=There+are+many+types+of+computer+si
mulations;+their+common+feature+is+the+attempt+to+generate+a+sample+of+representativ
e+scenarios+for+a+model+in+which+a+complete+enumeration+of+all+possible+states+of+t
he+model+would+be+prohibitive+or+impossible.&pg=PR18). Springer Science & Business
Media. ISBN 9781441987242.
8. John Robert Taylor (1999). An Introduction to Error Analysis: The Study of Uncertainties in
Physical Measurements (https://books.google.com/books?id=giFQcZub80oC&pg=PA128).
University Science Books. pp. 128–129. ISBN 978-0-935702-75-0. Archived (https://web.arc
hive.org/web/20150316103343/http://books.google.com/books?id=giFQcZub80oC&pg=PA1
28) from the original on 2015-03-16.
9. Gupta, Ankur; Rawlings, James B. (April 2014). "Comparison of Parameter Estimation
Methods in Stochastic Chemical Kinetic Models: Examples in Systems Biology" (https://ww
w.ncbi.nlm.nih.gov/pmc/articles/PMC4946376). AIChE Journal. 60 (4): 1253–1268.
doi:10.1002/aic.14409 (https://doi.org/10.1002%2Faic.14409). ISSN 0001-1541 (https://ww
w.worldcat.org/issn/0001-1541). PMC 4946376 (https://www.ncbi.nlm.nih.gov/pmc/articles/P
MC4946376). PMID 27429455 (https://pubmed.ncbi.nlm.nih.gov/27429455).
10. Atanasov, AG; Waltenberger, B; Pferschy-Wenzig, EM; Linder, T; Wawrosch, C; Uhrin, P;
Temml, V; Wang, L; Schwaiger, S; Heiss, EH; Rollinger, JM; Schuster, D; Breuss, JM;
Bochkov, V; Mihovilovic, MD; Kopp, B; Bauer, R; Dirsch, VM; Stuppner, H (2015). "Discovery
and resupply of pharmacologically active plant-derived natural products: A review" (https://w
ww.ncbi.nlm.nih.gov/pmc/articles/PMC4748402). Biotechnol Adv. 33 (8): 1582–614.
doi:10.1016/j.biotechadv.2015.08.001 (https://doi.org/10.1016%2Fj.biotechadv.2015.08.00
1). PMC 4748402 (https://www.ncbi.nlm.nih.gov/pmc/articles/PMC4748402).
PMID 26281720 (https://pubmed.ncbi.nlm.nih.gov/26281720).
11. Mizukami, Koichi ; Saito, Fumio ; Baron, Michel. Study on grinding of pharmaceutical
products with an aid of computer simulation (http://pem.utbm.fr/materiaux_2002/file/pdf/AF01
078.PDF) Archived (https://web.archive.org/web/20110721023918/http://pem.utbm.fr/materia
ux_2002/file/pdf/AF01078.PDF) 2011-07-21 at the Wayback Machine
12. Mesly, Olivier (2015). Creating Models in Psychological Research. United States: Springer
Psychology: 126 pages. ISBN 978-3-319-15752-8
13. Wilensky, Uri; Rand, William (2007). "Making Models Match: Replicating an Agent-Based
Model" (http://jasss.soc.surrey.ac.uk/10/4/2.html). Journal of Artificial Societies and Social
Simulation. 10 (4): 2.
14. Wescott, Bob (2013). The Every Computer Performance Book, Chapter 7: Modeling
Computer Performance (https://books.google.com/books?id=0SD1mgEACAAJ).
CreateSpace. ISBN 978-1482657753.
15. Baase, Sara. A Gift of Fire: Social, Legal, and Ethical Issues for Computing and the Internet.
3. Upper Saddle River: Prentice Hall, 2007. Pages 363–364. ISBN 0-13-600848-8.
Further reading
Young, Joseph and Findley, Michael. 2014. "Computational Modeling to Study Conflicts and
Terrorism." Routledge Handbook of Research Methods in Military Studies (https://books.goo
gle.com/books?id=ENDpAwAAQBAJ&pg=PT23) edited by Soeters, Joseph; Shields,
Patricia and Rietjens, Sebastiaan. pp. 249–260. New York: Routledge,
R. Frigg and S. Hartmann, Models in Science (http://plato.stanford.edu/entries/models-scien
ce/). Entry in the Stanford Encyclopedia of Philosophy.
E. Winsberg Simulation in Science (http://plato.stanford.edu/entries/simulations-science/).
Entry in the Stanford Encyclopedia of Philosophy.
S. Hartmann, The World as a Process: Simulations in the Natural and Social Sciences (htt
p://philsci-archive.pitt.edu/archive/00002412/), in: R. Hegselmann et al. (eds.), Modelling
and Simulation in the Social Sciences from the Philosophy of Science Point of View, Theory
and Decision Library. Dordrecht: Kluwer 1996, 77–100.
E. Winsberg, Science in the Age of Computer Simulation. Chicago: University of Chicago
Press, 2010.
P. Humphreys, Extending Ourselves: Computational Science, Empiricism, and Scientific
Method. Oxford: Oxford University Press, 2004.
James J. Nutaro (2011). Building Software for Simulation: Theory and Algorithms, with
Applications in C++ (https://books.google.com/books?id=WZceCd74GRcC). John Wiley &
Sons. ISBN 978-1-118-09945-2.
Desa, W. L. H. M., Kamaruddin, S., & Nawawi, M. K. M. (2012). Modeling of Aircraft
Composite Parts Using Simulation. Advanced Material Research, 591–593, 557–560.
External links
Guide to the Computer Simulation Oral History Archive 2003-2018 (https://www.lib.ncsu.edu/
findingaids/mc00488)