Computers can act like a pretend world. 
Computers can act like a pretend world.
A simulation uses a model. A model is a set of rules. The computer runs these rules to see what happens. This helps us study things that are very big or very small.

Computers can also show us pictures. These pictures help us see trends. It is easier to see rain moving on a map than in a list of numbers. Simulations help us learn about our world.
A computer simulation is a way to study the real world.
Simulations help us study things that are too big or too small. For example, they can show a large typhoon. 
Some simulations use a lot of data. Weather models need a huge amount of info. Other models only need a few numbers. 
A computer simulation is a way to study how the real world works. 
How a simulation works depends on the data it uses. Some simulations only need a few numbers to start. Other large models might need terabytes of information to work. 
Computer simulations have a very interesting history. They grew quickly alongside the growth of computers themselves. One of the first large uses was during the Manhattan Project in World War II. During this time, computers were used to model nuclear detonations. That specific simulation used a Monte Carlo algorithm to model 12 hard spheres. As computers became more powerful, the things we could simulate grew much larger. We moved from simple math on paper to huge programs that run for days. These programs often run on groups of computers connected in a network.
There are many amazing examples of what simulations can do. In 1997, a simulation modeled 66,239 vehicles in a desert battle near Kuwait. In 2005, scientists created a model with 2.64 million atoms to show a ribosome. A ribosome is a tiny part of a living cell that produces proteins. In 2012, researchers even simulated the full life cycle of a tiny organism called Mycoplasma genitalium. Another huge project is the Blue Brain project in Switzerland. This project began in May 2005 to simulate the entire human brain. It aims to work all the way down to the molecular level.
Simulations help us see things that are hard to observe directly. Instead of looking at long tables of numbers, we can use computer-generated imagery, or CGI. 
A computer simulation is the process of running a mathematical model on a computer. A model is a set of equations designed to represent the behavior of a real-world or physical system. While the model contains the rules, the simulation is the actual execution of those rules using computer programs and algorithms. This allows researchers to explore new technologies and estimate the performance of systems that are too complex for manual math.
To function, a simulation requires various types of input data. Some simple simulations might only require a few numbers, such as modeling an alternating current (AC) electricity waveform. In contrast, complex weather and climate models may require terabytes of information. Data can be sourced from physical sensors, historical records entered by hand, or values extracted from other processes. Some data is "invariant," meaning it is built directly into the code because the value never changes, like the mathematical constant π. Other data is provided during the simulation run via sensor networks. Because of this complexity, specialized simulation languages like Simula have been developed to manage these tasks.
Accuracy is a critical concern during the data preparation stage. Systems that accept external data must account for the precision and resolution of that information. Scientists often use "error bars" to express the minimum and maximum deviation within which a true value is expected to lie. Furthermore, digital computer mathematics is not perfect. Rounding and truncation errors can multiply during a run, so researchers perform an error analysis. This step ensures that the output of the simulation remains usefully accurate for its intended purpose.
Computer simulations have evolved alongside the history of computing. They saw significant large-scale deployment during the Manhattan Project in World War II. During that time, researchers used a Monte Carlo algorithm to simulate 12 hard spheres to model nuclear detonations. As computing power grew, the scale of simulations expanded far beyond traditional paper-and-pencil modeling. In 1997, a desert-battle simulation used multiple supercomputers to model 66,239 tanks and trucks in terrain around Kuwait. Today, large-scale programs can run for hours or even days on networks of interconnected computers.
There are several ways to classify these models based on their specific attributes. Some are stochastic, meaning they use random number generators to model chance events, while others are deterministic. Models can also be steady-state, which look for a state of equilibrium, or dynamic, which capture changes in response to input signals. In terms of data structures, "stencil codes" store data in regular grids and are often used in computational fluid dynamics (CFD). Other models may be "meshfree" if the underlying graph is not a regular grid. 
Modern simulations reach incredible levels of detail across many scientific fields. In 2005, a model was created using 2.64 million atoms to simulate a ribosome, which is the organelle that produces proteins. In 2012, scientists completed a simulation of the entire life cycle of the organism Mycoplasma genitalium. Another ambitious effort is the Blue Brain project in Switzerland. Started in May 2005, this project aims to create a simulation of the entire human brain down to the molecular level. 
To make sense of the massive amounts of data produced, scientists often use visualization techniques. In the past, output was often presented in static tables or matrices. However, researchers found that humans perceive trends more quickly through computer-generated imagery (CGI). 
🖼️ Images & Media (3)
More to explore
✨ What else?
Related topics you might enjoy
🔬 Go deeper
More advanced topics to explore
🪜 Step back
Simpler topics to build understanding
What is Nepedia?
A free, ad-free encyclopedia for children. Every article is written at five reading levels, so the same page works for a five-year-old and a fifteen-year-old — use the level switcher above to see this one change. No account needed to read.