This chapter introduces some basic concepts used in the computations in this text. It is not a programming guide, as each software system has its own language and defined functions. We discuss some general methodologies that are common among programming languages and that crop up in a number of the methods in this text, for example the calculation of random numbers. We also discuss a few numerical methods. Specific implementations of the various methods are presented online at http://www.cambridge.org/lesar.
SOME BASIC CONCEPTS
Computers are discrete and thus all problems, whether discrete or continuous in space or time, must be converted to discrete methods on a computer. The requirement of having discrete methods presents challenges and guides the development of most of the models seen in this text. Some methods, such as molecular dynamics in Chapter 6, may be continuous in one dimension (space), but are solved with discrete time steps. Others, such as the Potts model of grain growth in Chapter 10, are discrete in both space and time.
RANDOM-NUMBER GENERATORS
A common need in essentially all of the methods discussed in this text is for random numbers. It is in many ways odd to discuss random numbers when talking about computers, which are precise and anything but random. Algorithms have been developed, however, that yield series of numbers that look random, at least relative to certain statistical measures of randomness. These algorithms are generally referred to as random-number generators. The challenge is that generators are not all of the same quality.
Review the options below to login to check your access.
Log in with your Cambridge Higher Education account to check access.
If you believe you should have access to this content, please contact your institutional librarian or consult our FAQ page for further information about accessing our content.