Simulation software is software that models a real phenomenon with a set of mathematical formulas. It allows a user to see the results of an action without actually performing that action. Simulation software is widely used to design equipment so that the final product will be as close to design specifications as possible. Simulation software that runs in real-time is often used in gaming, but also has important industrial applications. When the penalty for improper operation is costly, such as when piloting an airplane or operating a nuclear power plant, a mock- up of the actual control panel is connected to a real-time simulation of the physical response, allowing training without real-world consequences. Advanced computer programs can simulate power system behavior, weather conditions, electronic circuits, chemical reactions, mechatronics, heat pumps, feedback control systems, atomic reactions, light, and even complex biological processes. In theory, any phenomenon that can be reduced to mathematical data and equations can be simulated on a computer. Simulation can be difficult because most natural phenomena are subject to an almost infinite number of influences or unknown causes. Part of developing useful simulations is determining which factors most affect the simulation. In addition to imitating processes to see how they behave under different conditions, simulations are also used to test new theories. After creating a theory of causal relationships, the theorist can codify the relationships in the form of a computer program. If the program then behaves in the same way as the real process, it is likely that the proposed relationships are correct.
General simulation General simulation packages fall into two categories: discrete event and continuous simulation. Discrete event simulations are used to model statistical events such as customers arriving in queues at a bank. By properly correlating arrival probabilities with observed behavior, a model can determine optimal queue count to keep queue wait times at a specified level. Continuous simulators are used to model a wide variety of physical phenomena like ballistic trajectories, human respiration, electric motor response, radio frequency data communication, steam turbine power generation etc. Simulations are used in initial system design to optimize component selection and controller gains, as well as in Model Based Design systems to generate embedded control code. Real-time operation of continuous simulation is used for operator training and off-line controller tuning. There are four main simulation approaches: the Event-Scheduling method, Activity Scanning, Process- Interaction, and the Three-Phase approach. They can be compared as follows: The Event-Scheduling method is simpler and has only two phases, so there are no conditional (C) or bound (B) activities. This allows programs to run faster, since there is no scanning for conditional events. However, because all events are mixed together, the method is not parsimonious, which makes it hard to enhance (Pidd, 1998). The Activity Scanning approach is also simpler than the Three-Phase method since it has no calendar, and it supports parsimonious modeling. However, it is much slower than the Three-Phase approach since it treats all activities as conditional. Its executive has two phases, and it is often confused with the Three-Phase method (Pidd, 1998). The Process- Interaction approach has two advantages: they “ avoid programs that are slow to run" and " avoid the need to think through all possible logical consequences of an event” (Pidd, 1998). However, Pidd states that the approach suffers from the deadlock problem, although it is attractive for novice modelers. Schriber et al. ( 2003) state that “process interaction was understood only by an elite group of individuals and was beyond the reach of ordinary programmers” and that “multi- threaded applications were talked about in computer science classes, but rarely used in the broader community”, indicating that Process-Interaction was difficult to implement. This apparent contradiction is due to confusion between the Process- Interaction approach and the Transaction-flow approach. Schriber et al. ( 2003) describe Gordon’s transaction flow world-view, from which the Gordon Simulator arose, as " a cleverly disguised form of process interaction that put the process interaction approach within the grasp of ordinary users". It used a set of building blocks that could be assembled into a flowchart that graphically depicted the operation of a system, making the flow of elements through the system readily visible. The Three-Phase approach allows one to “simulate parallelism, whilst avoiding deadlock” (Pidd and Cassel, 1998). However, it must scan the schedule for bound activities and then scan all conditional activities, which slows it down. Many modelers accept this cost in order to avoid the deadlock problem. The Three-Phase approach is also used in distributed systems, including operating systems and databases, under different names such as Three-Phase commit (Tanenbaum and Steen, 2002).
… excerpt ends here. Continue reading the full article.