Continuous simulation
   HOME

TheInfoList



OR:

Continuous Simulation refers to simulation approaches where a system is modeled with the help of variables that change continuously according to a set of
differential equations In mathematics, a differential equation is an equation that relates one or more unknown functions and their derivatives. In applications, the functions generally represent physical quantities, the derivatives represent their rates of change, an ...
.


History

It is notable as one of the first uses ever put to computers, dating back to the
Eniac ENIAC (; Electronic Numerical Integrator and Computer) was the first programmable, electronic, general-purpose digital computer, completed in 1945. There were other computers that had these features, but the ENIAC had all of them in one pac ...
in 1946. Continuous simulation allows prediction of * rocket trajectories * hydrogen bomb dynamics ( N.B. this is the first use ever put to the Eniac) * electric circuit simulation * robotics Established in 1952, the Society for Modeling and Simulation International (SCS) is a nonprofit, volunteer-driven corporation dedicated to advancing the use of modeling & simulation to solve real-world problems. Their first publication strongly suggested that the Navy was wasting a lot of money through the inconclusive flight-testing of missiles, but that the ''Simulation Councils analog computer could provide better information through the simulation of flights. Since that time continuous simulation has been proven invaluable in military and private endeavors with complex systems. No Apollo moon shot would have been possible without it.


Clarification of concepts

The distinction between ''continuous'' and ''discrete'' applies both to real-world dynamic systems and to their simulation. A (real-world) dynamic system may be continuous or discrete. ''Continuous dynamic systems'' (like physical systems with material objects moving in space) are characterized by state variables the values of which change continuously, while the state variable values of ''discrete dynamic systems'' (like predator-prey ecosystems) "jump", that is, they are changed at discrete time steps only. In ''continuous simulation'', continuously changing state variables of a system are modeled by differential equations. However, in digital computing, real numbers cannot be faithfully represented and differential equations can only be solved numerically with approximate algorithms (like the method of Euler or Runge–Kutta) using some form of discretization. Consequently, digital computers cannot run truly continuous simulations. Only
analog computers An analog computer or analogue computer is a type of computer that uses the continuous variation aspect of physical phenomena such as electrical, mechanical, or hydraulic quantities (''analog signals'') to model the problem being solved. In ...
can run truly continuous simulations. In many cases though, digital computing approaches based on ''incremental time progression'' (with either fixed or dynamically adjusted increments) for discretizing time into small time steps provide satisfactory approximations. ''
Discrete event simulation A discrete-event simulation (DES) models the operation of a system as a ( discrete) sequence of events in time. Each event occurs at a particular instant in time and marks a change of state in the system. Between consecutive events, no change in t ...
'', on the other hand, changes state variables only in response to events, typically using ''next-event time progression''. Continuous dynamic systems can only be captured by a continuous simulation model, while discrete dynamic systems can be captured either in a more abstract manner by a continuous simulation model (like the Lotka-Volterra equations) or in a more realistic manner by a discrete event simulation model, since birth, death and predator-prey encounters are discrete events. When using a continuous simulation model of the discrete dynamic system of a population of animals, one may get results like 23.7 animals, which first have to be rounded for making sense. In the example shown to the right, the sales of a certain product over time is shown. Using a discrete event simulation makes it necessary to have an occurring event to change the number of sales. In contrast to this the continuous simulation has a smooth and steady development in its number of sales. It is worth noting that "the number of sales" is fundamentally countable and therefore discrete. A continuous simulation of sales implies the possibility of fractional sales e.g. 1/3 of a sale. For that reason, a continuous simulation of sales does not faithfully model reality but may nevertheless capture the system's dynamics approximately.


Conceptual simulation model

Continuous simulations are based on a set of differential equations. These equations define the peculiarity of the state variables, the environment factors so to speak, of a system. These parameters of a system change in a continuous way and thus change the state of the entire system. The set of differential equations can be formulated in a
conceptual model A conceptual model is a representation of a system. It consists of concepts used to help people know, understand, or simulate a subject the model represents. In contrast, physical models are physical object such as a toy model that may be asse ...
representing the system on an abstract level. In order to develop the conceptual model 2 approaches are feasible: * The deductive approach: The behaviour of the system arises from physical laws that can be applied * The inductive approach: The behaviour of the system arises from observed behaviour of an example A widely known example for a continuous simulation conceptual model is the "predator/prey model".


The predator/prey model

This model is typical for revealing the dynamics of populations. As long as the population of the prey is on the rise, the predators population also rises, since they have enough to eat. But very soon the population of the predators becomes too large so that the hunting exceeds the procreation of the prey. This leads to a decrease in the prey's population and as a consequence of this also to a decrease of predators population as they do not have enough food to feed the entire population. Simulation of any population involves counting members of the population and is therefore fundamentally a discrete simulation. However, modeling discrete phenomena with continuous equations often produces useful insights. A continuous simulation of population dynamics represents an approximation of the population effectively fitting a curve to a finite set of measurements/points.


Mathematical theory

In continuous simulation, the continuous time response of a physical system is modeled using
ODE An ode (from grc, ᾠδή, ōdḗ) is a type of lyric poetry. Odes are elaborately structured poems praising or glorifying an event or individual, describing nature intellectually as well as emotionally. A classic ode is structured in three majo ...
s, embedded in a conceptual model. The time response of a physical system depends on its initial state. The problem of solving the ODEs for a given initial state is called the initial value problem. In very few cases these ODEs can be solved in a simple analytic way. More common are ODEs which do not have an analytic solution. In these cases one has to use numerical approximation procedures. Two well known families of methods for solving initial value problems are: * The Runge-Kutta family * The Linear Multistep family. When using numerical solvers the following properties of the solver must be considered: * the stability of the method * the method property of stiffness * the discontinuity of the method * Concluding remarks contained in the method and available to the user These points are crucial to the success of the usage of one method.


Mathematical examples

Newton's 2nd law Newton's laws of motion are three basic laws of classical mechanics that describe the relationship between the motion of an object and the forces acting on it. These laws can be paraphrased as follows: # A body remains at rest, or in moti ...
, F = ''m''a, is a good example of a single ODE continuous system. Numerical integration methods such as
Runge Kutta Runge may refer to: Locations * Runge, Texas, a town, United States *Runge (crater), a lunar crater Mare Smythii Other uses *Runge Newspapers, a newspaper chain in Ontario, Canada *Inspector Heinrich Runge (though it is more often spelled ...
, or Bulirsch-Stoer could be used to solve this particular system of ODEs. By coupling the ODE solver with other numerical operators and methods a continuous simulator can be used to model many different physical phenomena such as * flight dynamics * robotics * automotive suspensions * hydraulics * electric power * electric motors * human respiration * polar ice cap melting * steam power plants * coffee machine * etc. There is virtually no limit to the kinds of physical phenomena that can be modeled by a system of ODE's. Some systems though can not have all derivative terms specified explicitly from known inputs and other ODE outputs. Those derivative terms are defined implicitly by other system constraints such as Kirchhoff's law that the flow of charge into a junction must equal the flow out. To solve these implicit ODE systems a converging iterative scheme such as
Newton–Raphson In numerical analysis, Newton's method, also known as the Newton–Raphson method, named after Isaac Newton and Joseph Raphson, is a root-finding algorithm which produces successively better approximations to the roots (or zeroes) of a real-va ...
must be employed.


Simulation software

To speed creation of continuous simulations you can use graphical programming software packages like
VisSim VisSim is a visual block diagram program for simulation of dynamical systems and model-based design of embedded systems, with its own visual language. It is developed by Visual Solutions of Westford, Massachusetts. Visual Solutions was acquire ...
or
Simcad Pro Simcad Pro simulation software is a product of CreateASoft Inc. used for simulating process-based environments including manufacturing, warehousing, supply lines, logistics, and healthcare. It is a tool used for planning, organizing, optimizing, ...
. The packages provide options for integration method, step size, optimization method, unknowns and cost function, and allow for conditional execution of subsystems to speed execution and prevent numerical errors for certain domains. Such graphical simulation software can be run in real-time and used as a training tool for managers and operators.


Modern applications

Continuous simulation is found * inside
Wii The Wii ( ) is a home video game console developed and marketed by Nintendo. It was released on November 19, 2006, in North America and in December 2006 for most other regions of the world. It is Nintendo's fifth major home game console, ...
stations * commercial flight simulators * jet plane auto pilots * advanced engineering design toolsVisSim Visual Simulation Language for Continuous Simulation and Model Based Development
/ref> Indeed, much of modern technology that we enjoy today would not be possible without continuous simulation.


Other types of simulation

*
Discrete event simulation A discrete-event simulation (DES) models the operation of a system as a ( discrete) sequence of events in time. Each event occurs at a particular instant in time and marks a change of state in the system. Between consecutive events, no change in t ...
*
Computer simulation Computer simulation is the process of mathematical modelling, performed on a computer, which is designed to predict the behaviour of, or the outcome of, a real-world or physical system. The reliability of some mathematical models can be deter ...
*
Process simulation Process simulation is used for the design, development, analysis, and optimization of technical processes such as: chemical plants, chemical processes, environmental systems, power stations, complex manufacturing operations, biological processes, ...
* Instructional Simulation *
Social simulation Social simulation is a research field that applies computational methods to study issues in the social sciences. The issues explored include problems in computational law, psychology, organizational behavior, sociology, political science, e ...


See also

*
Simulation software Simulation software is based on the process of modeling a real phenomenon with a set of mathematical formulas. It is, essentially, a program that allows the user to observe an operation through simulation without actually performing that operation ...
*
System Dynamics System dynamics (SD) is an approach to understanding the nonlinear behaviour of complex systems over time using stocks, flows, internal feedback loops, table functions and time delays. Overview System dynamics is a methodology and mathematica ...
*
List of computer simulation software The following is a list of notable computer simulation software. Free or open-source * Advanced Simulation Library - open-source hardware accelerated multiphysics simulation software. * ASCEND - open-source equation-based modelling environmen ...


References

{{reflist


External links


VisSim - a graphical language for continuous simulation
Simulation Computational science