ArticleslgStudy

computer science

Continuous simulation

Continuous simulation is a computer science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Continuous simulation rather than just read about it. In short: 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. History It is notable as one of the first uses ever put to computers, dating back to the Eniac in 1946.

Continuous simulation — main illustration
Continuous simulation — illustration

Key takeaways

  • Continuous simulation belongs to computer science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Continuous simulation to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Continuous simulation from memory before moving on to harder problems.

Reference excerpt

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.

History It is notable as one of the first uses ever put to computers, dating back to the Eniac 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 Council's 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 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, 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 for modeling a predator-prey eco-system) or in a more realistic manner by a discrete event simulation model (in a predator-prey eco-system, births, deaths 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 sales are discrete events that come with discrete state changes. 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 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 conceptual simulation 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 population and as a consequence of this also to a decrease of the predator population as they do not have enough food to feed the entire population. Any population dynamics involves the events of births and deaths and is therefore fundamentally a discrete dynamic system. However, modeling discrete state changes with differential equations often produces useful insights. A continuous simulation of population dynamics represents an approximation 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 ODEs, 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.

… excerpt ends here. Continue reading the full article.

Illustrations

Continuous simulation: Continuous simulation
Continuous simulation
Continuous simulation: The predator-prey model
The predator-prey model

Worked examples

Example 1 — a first encounter with Continuous simulation

Start with the simplest possible case. Write down what Continuous simulation claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In computer science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Continuous simulation before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Continuous simulation ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Continuous simulation

In research
Continuous simulation appears in computer science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Continuous simulation in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Continuous simulation is common in secondary-school and first-year university syllabi. It links to neighbouring topics Computational science, Simulation, so understanding it makes those chapters shorter.
In everyday life
Look for Continuous simulation outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Continuous simulation” →

How to study Continuous simulation in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Continuous simulation means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Continuous simulation out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Continuous simulation in simple terms?

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. History It is notable as one of the first uses ever put to computers, dating back to the Eniac in 1946.

Why does Continuous simulation matter?

Because it connects several computer science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Continuous simulation?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Continuous simulation.

Tags

  • Computational science
  • Simulation

Keep exploring