3 Continuous System Modeling

Simulation and Modeling ยท Unit 3

Continuous System Modeling

Exam-focused notes for Continuous System Modeling (Simulation and Modeling, BIT407): what the TU syllabus asks and how it has actually been tested, with 1 solved past questions from this unit.

Continuous System Modeling in short

Many physical, chemical, and biological systems change smoothly with time. Continuous system modeling describes them with equations and then solves the equations step by step on a computer.

Continuous System Modeling: notes

Continuous system modeling concepts

A continuous system is one whose state variables can change at every instant of time. Temperature, speed, tank level, and voltage are common examples.

The model is built from:

  • Variables: the quantities that change, such as position or temperature.
  • Rates of change: how fast each variable changes, written as derivatives.
  • Parameters: constants such as a cooling constant or a mass.
  • Initial conditions: the value of each variable at time zero.

The main idea is that the state of the system is found by adding up (integrating) the rates of change over time. A computer cannot do this exactly, so it takes small time steps. This is called numerical integration.

The simplest method is Euler's method. For $\frac{dy}{dt} = f(y,t)$ with step $h$:

$$y_{n+1} = y_n + h,f(y_n, t_n)$$

A smaller step $h$ gives better accuracy but needs more calculation. Better methods, such as Runge-Kutta, use several slope estimates in each step.

Continuous versus discrete systems

BasisContinuous systemDiscrete system
State variablesChange smoothly at every instantChange only at event times
TimeMoves in small fixed stepsJumps from event to event
ModelDifferential equationsQueues, events, random numbers
RandomnessOften noneUsually present
ExampleCooling of hot teaCustomers at a bank
LanguageCSMPGPSS, SIMSCRIPT

Hot tea cools continuously, so its temperature is a continuous variable. The number of customers in a bank is a whole number that changes only when someone arrives or leaves, so it is discrete.

Some systems need both. A fuel tank level changes continuously, while the trucks that refill it arrive at separate times. Such a model is a combined or hybrid simulation.

What this unit covers

  • Continuous system modeling concepts
  • Continuous versus discrete systems
  • Mathematical formulation of continuous systems
  • Continuous system examples and applications

Continuous versus discrete systems

0 ยท 10 marks

What is continuous system modelling? How continuous system differ from discrete system modelling? Explain with suitable example.[10]

Show solved answer

Continuous System Modelling

Definition of Continuous System Modelling

Continuous system modelling is the process of representing and analyzing systems whose state variables change continuously over time. In continuous systems, the variables can take any value within a given range and change smoothly without jumps or discontinuities. The behaviour of such systems is typically described using differential equations, where time is treated as a continuous variable.

A continuous system model mathematically represents:

  • State variables that vary continuously with time
  • System dynamics described by differential or integro-differential equations
  • Time as an independent variable that flows continuously (t โˆˆ โ„)

Key Differences: Continuous vs. Discrete System Modelling

AspectContinuous SystemDiscrete System
TimeTime flows continuously; t โˆˆ [0, โˆž)Time advances in discrete steps; t = 0, 1, 2, 3, ...
State VariablesChange smoothly and continuouslyChange only at specific time intervals
Mathematical ModelDifferential equations (DE)Difference equations
State SpaceInfinite possible statesFinite or countably infinite states
ObservationCan observe system at any instantObserve only at discrete time points
Example Equationdy/dt = f(y, t)y(n+1) = f(y(n), n)

Suitable Examples

Example 1: Temperature Cooling (Continuous System)

Newton's Law of Cooling:

The temperature of a hot object cooling in ambient air follows:

$$\frac{dT}{dt} = -k(T - T_a)$$

Where:

  • T(t) = temperature at time t (continuous)
  • T_a = ambient temperature
  • k = cooling constant

Characteristics:

  • Temperature changes continuously over time
  • Can measure temperature at any instant (t = 2.5 seconds, t = 3.14 seconds, etc.)
  • Solution: T(t) = T_a + (T_0 - T_a)e^(-kt)

Example 2: Population Growth (Continuous System)

$$\frac{dP}{dt} = rP$$

Where P(t) is population at time t, and r is growth rate. Population is modeled as changing continuously.


Example 3: Digital Counter (Discrete System)

A digital counter that increments every second:

$$n(k+1) = n(k) + 1$$

Where:

  • k = discrete time step (k = 0, 1, 2, 3, ...)
  • n(k) = count at step k
  • State changes only at discrete intervals (every 1 second)
  • Cannot observe intermediate values between steps

Example 4: Bank Account Balance (Discrete System)

$$B(n+1) = B(n) + I$$

Where:

  • n = month number (discrete)
  • B(n) = balance in month n
  • I = interest added monthly
  • Balance updates only once per month, not continuously

Summary

Continuous system modelling uses differential equations to describe systems where variables evolve smoothly over continuous time, while discrete system modelling uses difference equations for systems where variables change at specific time intervals. Real-world physical phenomena (temperature, velocity, electrical circuits) are naturally continuous, whereas computational and digital processes are typically discrete.

Open this answer on its own page โ†’