📘 CodingMarble Learn

Modelling and Simulation in Engineering

Engineers test a design on a model before making it. A model can be physical (a scale model or prototype), mathematical (equations) or digital (a CAD model). Every model has effort variables (force, voltage, pressure) and flow variables (speed, current, flow rate); effort × flow = power. Simulation software cuts a part into small finite elements, writes equations for each and a solver finds the answer; moving systems are solved in small time steps. Results such as stress, bending and safety factor are read from colour maps and graphs. A finer mesh or smaller time step is more accurate but takes more computing time. Finally, results are checked against real tests with sensors, taking measurement errors into account.

🎬 Step-by-step story

  1. A shelf bracket must hold a load. Testing many real brackets is slow and costly, so engineers first build a digital model of it.
  2. Every model has effort (force, voltage, pressure) and flow (speed, current, flow rate). Effort times flow is power.
  3. The software cuts the part into small elements joined at nodes. The solver solves the equations of all elements together.
  4. Add the load. Colours show stress: blue is low, red is high. The highest stress is at the wall. The bend is drawn bigger.
  5. More elements give a more accurate answer but need much more computing time. Engineers pick a mesh that is good enough.
  6. Your turn: change load, elements and material. Predict first: will the safety factor be 2 or more?

Tip: drag the 3D scene to turn it. Use two fingers to zoom.

🤔 Common doubts, cleared

Why not just build the real thing and test it?

You would need many real parts and could not see inside them. A model lets you test ideas quickly, then build only the best.

What do effort and flow have to do with a bracket?

The load is the effort (force) and the speed at which the tip moves is the flow; their product is the power going into the part.

Why cut the part into elements?

A complicated shape has no simple formula, but each small simple piece does. Joining them gives the whole answer.

Why is the wall end red, not the tip?

The load acts with the longest lever arm at the wall, so the bending stress is greatest there.

Why not always use millions of elements?

Time grows much faster than accuracy. Step 5 shows the error shrinking slowly while time jumps.

Does a stronger material bend less?

Bending depends on stiffness E, not strength. Compare steel and aluminium in free play: similar strength, different bend.

Why model and simulate? Types of models

A model is a simpler copy of a product that keeps what matters for a question ("Will it break?"). A simulation uses the model to predict how the product behaves.

Why? Simulation is cheaper, faster and safer than building and breaking many real parts. It lets you try many ideas and see inside a part, where no sensor can go.

Rapid prototyping (3D printing, laser cutting) turns the best digital model into a real part quickly for the final checks.

Model variables: effort and flow

Many simulation tools describe every kind of system with the same pair of variables:

DomainEffort (pushes)Flow (moves)Power
Mechanical (straight line)force F (N)speed v (m/s)F × v
Mechanical (turning)torque (N·m)angular speed (rad/s)torque × ω
Electricalvoltage U (V)current I (A)U × I
Fluid (hydraulic)pressure p (Pa)flow rate Q (m³/s)p × Q
Thermaltemperature (K)heat flow-

Because effort × flow = power in each domain, a tool can join an electric motor, a gearbox and a pump in one model and follow the energy through it.

How the software solves: mesh, solver and time step

Finite elements

A real part has a complicated shape. The software cuts it into many small, simple pieces: elements (little bricks or triangles) joined at nodes. This net is the mesh. For each element it writes simple equations; together they make thousands of equations.

The solver

The solver is the part of the program that solves all the equations at once and gives values at each node: displacement, stress, temperature.

Time step

For moving or changing systems (a motor starting, a tank filling), the solver goes forward in small time steps Δt. A smaller step follows fast changes better but needs more steps.

Choosing software

Pick the tool by the question: CAD-based FEA for stress and bending, multi-physics / block-diagram tools for motors, circuits and control, CFD for air and water flow, motion tools for mechanisms. Check the cost, the licence (free student versions exist), and whether it can import your CAD file.

Reading results and accuracy versus computing time

Results are shown as colour maps (blue low, red high), exaggerated shapes (the bend is drawn bigger than real) and graphs over time.

Accuracy vs time

MeshAccuracyComputing time
coarse (few elements)rough; can miss the peak stressseconds
fine (many elements)close to the true valueminutes to hours

Doubling the elements roughly halves the error here but can multiply the time by 4 or more. Engineers refine the mesh until the answer stops changing much (a convergence check) and use fine elements only where stress is high.

Formulas behind our bracket

For a beam fixed at one end with load F at the tip: highest stress σ = 6FL / (b h²) at the wall; tip bend δ = FL³ / (3EI) with I = b h³ / 12. E is stiffness (Young's modulus).

Experiment and simulate: checking with real tests

A simulation is only trusted after it is compared with a real experiment.

If simulation and test differ by more than the measurement uncertainty, find out why: wrong material data, wrong fixing, too coarse a mesh. Then improve the model. This loop is called validation.

Try it: a ruler bracket

  1. Clamp a 30 cm plastic ruler to a table so 25 cm sticks out.
  2. Hang 1, 2 then 3 coins (or small bags of rice) from the tip. Measure the tip drop with another ruler each time.
  3. Predict: if one load gives 5 mm, what will twice the load give? (The formula says double.)
  4. Now use 20 cm overhang. The formula says the bend falls by (20/25)³ ≈ 0.5. Check it.
  5. Open the last 3D step and compare steel, aluminium and plastic with the same load.

Key formulas and definitions

Worked examples

1. A motor gives a force of 50 N while moving a load at 2 m/s. What is the power? Name the effort and flow.

Effort = force 50 N, flow = speed 2 m/s. Power = 50 × 2 = 100 W.

2. A pump makes a pressure of 200 000 Pa with a flow rate of 0.001 m³/s. Find the power.

P = p × Q = 200 000 × 0.001 = 200 W.

3. A steel bracket (strength 250 MPa) has a highest stress of 120 MPa. Find the safety factor. Is it acceptable if the rule is at least 2?

SF = 250 / 120 ≈ 2.08. It is just above 2, so it passes.

4. Our bracket: L = 0.3 m, b = 0.03 m, h = 0.01 m, F = 200 N. Find the highest stress.

σ = 6FL / (b h²) = 6 × 200 × 0.3 / (0.03 × 0.0001) = 360 / 0.000003 = 120 000 000 Pa = 120 MPa.

5. A mesh of 8 elements gives 112 MPa, 16 gives 116 MPa, 32 gives 118 MPa. Which would you use and why?

The answer changes by only about 2 MPa (under 2%) from 16 to 32, so it has nearly converged. 16 or 32 elements is good enough; 32 if computing time is not a problem, because peak stress matters for safety.

6. A test with a displacement sensor gives 3.9 ± 0.2 mm; the simulation says 3.6 mm. Is the model validated?

The difference is 0.3 mm, bigger than the 0.2 mm uncertainty, so not quite. Check the fixing (a real clamp is never perfectly rigid) and the material data, then rerun.

Common mistakes

Practice quiz

1. Which is a digital model?
2. In the electrical domain, the effort variable is:
3. In finite element simulation, the small pieces of the part are called:
4. A finer mesh usually gives:
5. Safety factor =

Practice: answer these yourself

Type or choose your answer, then press Check. Use a hint if you are stuck; the full solution appears after you answer.

Frequently asked questions

What is engineering simulation in simple words?

Using a computer model of a product to predict how it will behave (bend, heat up, move, break) before making it.

What is FEA?

Finite element analysis: cutting a part into many small elements, solving simple equations for each and combining them to find stress, bending or temperature.

How accurate is a simulation?

Only as good as its model, material data, mesh and time step. Engineers check convergence and compare with real tests (validation).

Where this is taught

FrancePremière3. Behaviour of products
FrancePremièreCompetences and content
FranceTerminale3. Behaviour of products
China高二Sel.3 Engineering design basics (engineering)

Learn first

Learn next

Related lessons

All Computer Science lessons