Home > Computer simulation
A computer simulation or a computer model is a computer program which attempts to simulate an abstract model of a particular system. Computer simulations have become a useful part of modeling many natural systems in physics, chemistry and biology, human systems in economics and social science and in the process of engineering new technology, to gain insight into the operation of those systems. Traditionally, the formal modeling of systems has been via a mathematical model, which attempts to find analytical solution s to problems which enables the prediction of the behaviour of the system from a set of parameters and initial conditions. Computer simulations build on, and are a useful adjunct to purely mathematical models in science and technology and entertainment.1 History
Computer simulation was developed hand-in-hand with the rapid growth of the computer, following its first large-scale deployment during the Manhattan Project in World War IIWorld War II was the most extensive and costly armed conflict in the history of the world, involving the great majority of the world's nations, being fought simultaneously in several major theatres, and costing tens of millions of lives. The war was fough to model the process of nuclear detonationmushroom cloud of the atomic bombing of Nagasaki, Japan, in 1945 lifted nuclear fallout some 60,000 feet (18 km) above the epicenter. A nuclear weapon is a weapon that derives its energy from nuclear reactions and has enormous destructive power a single n. It was a simulation of 12 hard spheresHard spheres are widely used as model particles in the statistical mechanical theory of fluids and solids. They are defined simply as impenetrable spheres that cannot overlap in space. They mimick the extremely strong repulsion that atoms and spherical mo using a Monte Carlo algorithm. Computer simulation is often used as an adjunct to, or substitution for, modeling systems for which simple closed form analytic solutionsIn mathematics, an equation or system of equations is said to have a closed-form solution just in case a solution can be expressed analytically in terms of a bounded number of well-known operations. The classic example involves the two roots of a quadrati are not possible. There are many different types of computer simulation; the common feature they all share 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.
2 Types of computer simulation
Computer models can be classified according to several criteria including:
- StochasticStochastic from the Greek "stochos" or "goal", means of, relating to, or characterized by conjecture; conjectural; random. A stochastic process is one whose behavior is non-deterministic in that the next state of the environment is not fully determined by or deterministic (and as a special case of deterministic, chaotic)
- ContinuousIn mathematics, a continuous function is one in which arbitrarily small changes in the input produce arbitrarily small changes in the output. If small changes in the input can produce a broken jump in the changes of the output, the function is said to be or discrete (and as an important special case of discrete, discrete event or DE models)
- Local or distributed.
For example:
- Stochastic models use random number generators to model the chance or random events; they are also called Monte Carlo simulations.
- A discrete event simulation (DE) manages events in time. Most computer, logic-test and fault-tree simulations are of this type. In this type of simulation, the simulator maintains a queue of events sorted by the simulated time they should occur. The simulator reads the queue and triggers new events as each event is processed. It is not important to execute the simulation in real time. It's often more important to be able to access the data produced by the simulation, to discover logic defects in the design, or the sequence of events.
- A continuous simulation uses differential equations (either partial or ordinary), implemented numerically. Periodically, the simulation program solves all the equations, and uses the numbers to change the state and output of the simulation. Most flight and racing-car simulations are of this type. This may also be used to simulate electrical circuits. Originally, these kinds of simulations were actually implemented on analog computers, where the differential equations could be represented directly by various electrical components such as op-amps. By the late 1980s, however, most "analog" simulations were run on conventional digital computers that emulate the behavior of an analog computer.
- A special type of discrete simulation which does not rely on a model with an underlying equation, but can nonetheless be represented formally, is agent-based simulation. In agent-based simulation, the individual entities (such as molecules, cells, trees or consumers) in the model are represented directly (rather than by their density or concentration) and possess an internal state and set of behaviors or rules which determine how the agent's state is updated from one time-step to the next.
- distributed models run on a network of interconnected computers, possibly through the Internet. Simulations dispersed across multiple host computers like this are often referred to as "distributed simulations". There are several military standards for distributed simulation, including Aggregate Level Simulation Protocol (ALSP), Distributed Interactive Simulation (DIS) and the High Level Architecture (HLA).