Nepedia
Back to Discover
Advanced Reader
💻

Computer simulation

technology Maturity 11-13 war conflict Next article →

This article covers sensitive topics: war_conflict. Parents can manage visibility in Parental Controls.

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.

Molecular simulation process
Molecular simulation process

By running these programs, scientists can gain insights into systems that would otherwise be impossible to study.

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.

Osmosis computer simulation
Osmosis computer simulation

There are also agent-based simulations, where individual entities like cells or molecules are represented directly by their own internal rules.

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.

Typhoon Mawar 2005 computer simulation thumbnail
Typhoon Mawar 2005 computer simulation thumbnail

These massive projects demonstrate the power of modern computational physics and biology.

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).

Osmosis computer simulation
Osmosis computer simulation

For example, a moving weather chart allows a person to see that rain is approaching much faster than reading coordinates. In medicine, CGI can simulate how a tumor might change during treatment by providing a spinning view of a human head. This transforms abstract numbers into visual patterns that are easier for the human mind to interpret and understand.

675 words

Where will your curiosity go next?

Keep exploring at your chosen reading level.

🖼️ Images & Media (3)
File:Typhoon Mawar 2005 computer simulation thumbnail.gif
Typhoon Mawar 2005 computer simulation...
File:Molecular simulation process.svg
Molecular simulation process.svg
File:Osmosis computer simulation.jpg
Osmosis computer simulation.jpg
More to explore

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.