5. Modelling and Simulation

Computational Models Of Physical Systems

Computational Models of Physical Systems

students, engineering often starts with a real object or process that is too complex, too expensive, or too dangerous to test directly in full detail. A bridge in strong wind 🌉, a battery heating up 🔋, water flowing through a pipe 💧, or a robot arm moving in a factory 🤖 all involve many interacting physical effects. A computational model turns that real-world system into a mathematical description that a computer can analyze.

In this lesson, you will learn how computational models represent physical systems, why engineers use them, and how they connect to simulation, time stepping, and ordinary differential equation solvers. By the end, students, you should be able to explain the main ideas, use the right terminology, and describe how these models fit inside the broader engineering computation workflow.

What a computational model is

A model is a simplified representation of a real system. In engineering, a computational model uses mathematics, numerical methods, and computer code to imitate the behavior of a physical system. The goal is not to copy reality perfectly. Instead, the goal is to keep the important features that matter for the engineering question.

For example, imagine a cooling cup of tea ☕. If we want to know how quickly it cools, we may not need every air current in the room. We might only need the temperature of the tea, the room temperature, and a rule for heat loss. That simplified rule becomes part of the model.

Important terms include:

  • System: the physical object or process being studied.
  • State: the values that describe the system at a given time, such as position, temperature, or pressure.
  • Inputs: outside influences such as force, heat, voltage, or flow rate.
  • Outputs: quantities we want to predict or measure.
  • Parameters: fixed values in the model, such as mass, stiffness, resistance, or heat capacity.
  • Assumptions: simplifications made to make the model manageable.

A computational model is useful when the relationship between inputs and outputs can be written mathematically and then solved by a computer.

From physical system to mathematical description

To build a computational model, students, engineers first identify the key physics. Many physical systems follow conservation laws. These say that some quantities are not created or destroyed, only transferred or transformed.

Examples include:

  • Conservation of mass in fluid flow.
  • Conservation of energy in thermal systems.
  • Conservation of momentum in mechanics.
  • Conservation of charge in electrical systems.

A simple mechanical example is a mass attached to a spring. If the mass is pulled and released, it moves back and forth. The force from the spring is often modeled by Hooke’s law:

$$F=-kx$$

Here, $F$ is the spring force, $k$ is the spring constant, and $x$ is the displacement from equilibrium. The minus sign means the force acts opposite the direction of displacement.

Using Newton’s second law,

$$m\frac{d^2x}{dt^2}=F$$

we get the differential equation

$$m\frac{d^2x}{dt^2}+kx=0$$

This equation is a mathematical model of the physical system. It does not directly tell us the motion at each instant, but it gives the rule that the motion must obey.

In many engineering problems, the model is built from a mix of physics, geometry, material properties, and boundary conditions. For example, a beam under load may require information about its length, shape, stiffness, and how it is supported at the ends.

Why computers are needed

Some equations can be solved exactly with algebra or calculus. Many real engineering models are too complicated for simple hand calculations. They may include:

  • nonlinear behavior,
  • many connected components,
  • changing inputs over time,
  • coupled effects such as heat and motion together,
  • irregular shapes and boundaries.

That is where computation comes in 💻. A computer can approximate the solution using numerical methods. Instead of finding one exact formula for all time, it calculates the solution step by step.

This is especially important when the model is part of a simulation. A simulation is the process of running the model over time or under changing conditions so we can predict behavior. For example, a simulation may show how the temperature in an engine block changes during operation, or how a traffic system responds to heavy demand.

The benefit is that engineers can test ideas before building a physical prototype. This saves time, money, and materials. It also allows safe testing of dangerous situations, such as overloading a structure or studying a chemical reactor under extreme conditions.

Time, state, and updating the model

Many physical systems change with time, so computational models often track the state at a sequence of time points. If the current time is $t_n$, then the next time point is often written as

$$t_{n+1}=t_n+\Delta t$$

where $\Delta t$ is the time step.

At each step, the computer uses the current state to estimate the next state. This is the central idea behind time stepping. students, think of it like watching a video frame by frame 🎬. Each frame shows the system at one instant, and the collection of frames gives the overall motion.

Suppose the temperature of a body follows the ordinary differential equation

$$\frac{dT}{dt}=-k(T-T_{\text{env}})$$

where $T$ is the temperature, $T_{\text{env}}$ is the environment temperature, and $k$ is a constant describing cooling speed. A numerical method can estimate how $T$ changes after one small time step. This makes it possible to simulate cooling over minutes or hours.

A small $\Delta t$ usually gives more accurate results, but it also increases the number of calculations. A large $\Delta t$ is faster, but it may miss important behavior or cause instability. Choosing $\Delta t$ is therefore a practical engineering decision.

Ordinary differential equation solvers in models

Many computational models of physical systems are built from ordinary differential equations, or ODEs. An ODE describes how a quantity changes with respect to one independent variable, usually time.

For example, a first-order ODE can look like

$$\frac{dy}{dt}=f(t,y)$$

where $y$ is the system state and $f$ tells us the rate of change.

An ODE solver is a numerical method that approximates the solution. One of the simplest methods is Euler’s method:

$$y_{n+1}=y_n+\Delta t\, f(t_n,y_n)$$

This method uses the current slope to predict the next value. It is easy to understand, but it can be inaccurate if $\Delta t$ is too large.

More advanced solvers, such as Runge-Kutta methods, use extra slope calculations to improve accuracy. These are widely used in engineering software because they are more reliable for many problems.

Let’s use a basic example. Suppose a tank is draining, and the water height $h$ changes according to

$$\frac{dh}{dt}=-0.2h$$

If $h_0=10$ and $\Delta t=1$, Euler’s method gives

$$h_1=h_0+1(-0.2\cdot 10)=8$$

So after one time step, the model predicts the height has dropped to $8$. Repeating the process gives the predicted behavior over time.

Model quality: accuracy, assumptions, and validation

A model is only useful if it matches reality well enough for the task. That does not mean it must be perfect. It must be accurate for the purpose it was designed for.

Three key ideas are:

  • Accuracy: how close the model is to real behavior.
  • Validation: checking whether the model agrees with experimental or real-world data.
  • Verification: checking whether the computer program solves the equations correctly.

These are different tasks. A program can be coded correctly but still use a poor model. Likewise, a good model can be implemented incorrectly.

Assumptions matter a lot. For example, in modeling a falling object, we might ignore air resistance at first. That makes the equations simpler. But if the object is a parachute or a fast-moving vehicle, ignoring drag would lead to poor results. Engineers often start with a simple model and then add more detail if needed.

Model error can come from several sources:

  • simplified physics,
  • measurement noise,
  • imperfect parameter values,
  • numerical approximation,
  • limited computer precision.

Understanding these sources helps students judge whether the simulation is trustworthy.

How computational models fit into modelling and simulation

Computational models are the core of the modelling and simulation process. The broader workflow usually looks like this:

  1. Define the engineering problem.
  2. Choose a physical system to study.
  3. Build a mathematical model using laws and assumptions.
  4. Convert the model into a computational form.
  5. Solve it numerically using time stepping or an ODE solver.
  6. Compare results with data and refine the model.

This workflow connects theory and practice. A model helps explain what is happening. A simulation helps predict what may happen under new conditions. Together, they support design, testing, and decision-making.

For example, in automotive engineering, a model might predict how a suspension system responds to a bump. In electrical engineering, a model might simulate the discharge of a battery. In biomedical engineering, a model might estimate how a drug concentration changes in the bloodstream. In each case, the same general ideas apply: define the system, write the equations, compute the solution, and interpret the output.

Conclusion

students, computational models of physical systems are a central tool in engineering computation. They let engineers represent real-world systems with mathematics, solve the equations on a computer, and use the results to understand and predict behavior. These models rely on physical laws, assumptions, and numerical methods such as time stepping and ODE solvers. They are powerful because they make complex systems easier to study, test, and improve. When used carefully, they connect real physics to reliable simulation and support better engineering decisions ✅

Study Notes

  • A computational model is a simplified mathematical representation of a physical system.
  • Key terms include system, state, inputs, outputs, parameters, and assumptions.
  • Physical models often use conservation laws such as mass, energy, momentum, and charge.
  • Differential equations describe how system states change over time.
  • Time stepping updates the model from one time point to the next using a step size $\Delta t$.
  • An ODE solver is a numerical method for approximating solutions to equations like $\frac{dy}{dt}=f(t,y)$.
  • Euler’s method is a basic solver: $y_{n+1}=y_n+\Delta t\, f(t_n,y_n)$.
  • Smaller $\Delta t$ usually improves accuracy but increases computation cost.
  • Validation compares model predictions with real data.
  • Verification checks whether the computer solution is implemented correctly.
  • Simulation is the process of running the model to predict system behavior under different conditions.
  • Computational models are used across engineering to save time, reduce cost, and study systems safely.

Practice Quiz

5 questions to test your understanding