Why simulate?

Computer simulations have become a standard instrument of modern science and engineering. They are used to study natural phenomena, to support design decisions, and to explore systems for which we can write down laws, but whose solutions we cannot obtain in closed form. The range of uses is wide and perhaps unexpected: political redistricting is performed using heuristic searches or Monte Carlo approaches; social patterns are simulated using agent based models on geographical settings or networks; disease dynamics are investigated by means of differential equations and agent based models; similar models are used in economics as well as in evolutionary studies of spoken languages.

It is worth stating from the beginning that what a simulation is used for depends on who uses it, and why. The same tool, applied with the same techniques, serves purposes which are quite different in nature.

Forecasting and understanding

Consider an engineer who has to design a skyscraper. He/she will use computer simulations to forecast the behaviour of the structure based on winds, location and environmental factors, and to determine an estimate of what kind of structure, which materials, and which dimensions will be needed. The simulation here is an instrument of design: its value is measured by how well the forecast guides the decision, and what matters is the accuracy of the final answer, validated against experiments and norms. We can call this the engineering, or applied, use of simulations.

A physicist, or more generally a computational scientist, uses simulations on a more fundamental level. The simulation is not an instrument of design but a probe of the theory: we use it to determine what drives a certain phenomenon, or to check whether the solution we expect from a mathematical formula or law is actually correct. Here the quantities of interest are not only the final numbers, but the mechanism: which ingredient of the model is responsible for which feature of the behaviour, and how the solution changes when one ingredient is modified. We can call this the research use of simulations.

The distinction is not sharp: the same methods, and often the same programs, serve both purposes. However the two uses ask different questions of the machinery, and in particular they differ in what they demand of the accuracy of the computation. We will come back to this point in the next article, where it takes a precise form.

Simulations, theory, and experiments

Scientific research has its ground in observation. Relations between observables are inferred from experimental observation, and it is due to these observed relations that a theory about a phenomenon can be built. The theory takes the form of a set of laws described by equations that can be used to obtain predictions: given a snapshot of the system at time $t_0$ , the theory gives a set of equations which, once solved, describe its evolution and predict its state at times $t>t_0$ . Predictions can then be compared with experiments to assess the validity of the theory.

Quite often the set of equations describing a system is not readily solvable. In this case we must seek a numerical solution, and this is where computers prove invaluable, because of their unrivalled ability to perform numerical operations extremely fast.

Sometimes it is possible to introduce an analytical approximation that makes the equations tractable. However, a problem arises if there is a discrepancy between the predictions of the approximated equations and the experiments: it is hard to say whether the theory has an error, or whether the approximation introduced it. Computer simulations are helpful in exactly this situation: they operate on the original set of equations, without the need of analytical approximations, and hence simulate the theory more closely. Some degree of approximation is of course present also in simulations, since we discretize time and space and we use finite precision arithmetic; these approximations are however of a different nature, as their influence can be studied and, to a large extent, controlled. Predictions from simulations therefore tell us whether the theory is wrong, or the analytical approximation is.

Since a simulation is fully controlled by the researcher, the different parameters can be modulated at will, and this provides a deeper understanding of the influence of the various contributions to the observed behaviour. Simulations can hence lead to a better understanding of the theory and, sometimes, to surprising results and discovery. One of the earliest examples of a discovery led by computer simulation is related to the problem of the equipartition of energy, the so called Fermi-Pasta-Ulam problem [1], which is closely connected with the KAM theory [2–5], with the subsequent development of chaos theory, and with the study of solitons. More recently, complexity science has emerged as a result of the application of computational studies.

About these notes

These notes will be written a few pages at a time, and they will fall naturally into a number of distinct domains, starting from the integration of ordinary and partial differential equations. Notes on methods will pertain mostly to the research tradition described above: they will discuss the accuracy, the stability and the efficiency of the algorithms, and how a mathematical problem becomes fast computation. The notes on applications belong mostly to the engineering tradition: concrete problems and applications, treated with the same tools. The computational structure which underlies both is the subject of the next article Computation as a chain of mappings.

References

[1] Enrico Fermi, John Pasta, Stanislaw Ulam. Los Alamos Scientific Laboratory report LA-1940 (1955). Published later in E. Segrè, ed., Collected Papers of Enrico Fermi, Vol. 2, University of Chicago Press, Chicago (1965).

[2] Vladimir Arnol'd, Vladimir Kozlov and Anatoly Neishtadt. Mathematical Aspects of Classical and Celestial Mechanics, Dynamical Systems III Series: Encyclopaedia of Mathematical Sciences. Vol. 3, Third ed., Springer-Verlag (2006).

[3] Andrey N. Kolmogorov. On the persistence of conditionally periodic motions under a small change of the Hamiltonian function, Doklady Akademii Nauk SSSR 98, 527–530 (1954). In Russian; English translation in Stochastic Behavior in Classical and Quantum Hamiltonian Systems, Lecture Notes in Physics 93, Springer-Verlag (1979).

[4] Vladimir I. Arnol'd. Proof of a theorem of A. N. Kolmogorov on the invariance of quasi-periodic motions under small perturbations of the Hamiltonian, Uspekhi Matematicheskikh Nauk 18(5), 13–40 (1963). English translation: Russian Mathematical Surveys 18(5), 9–36 (1963).

[5] Jürgen Moser. On invariant curves of area-preserving mappings of an annulus, Nachrichten der Akademie der Wissenschaften in Göttingen, II. Mathematisch-Physikalische Klasse 1962, Nr. 1, 1–20 (1962).