UNIHIVE

Study Hub UNIPORT MEG 405

MEG 405 · Principles of Automotive Engineering

Computer-aided analysis of engines

Using spreadsheets and software to model engine cycles, combustion, gas flow and performance, and to analyse test data.

Our notes

3 min read

Why computers

Engine processes are complex (variable properties, heat transfer, unsteady flow, combustion chemistry). Computers let engineers test ideas cheaply before building hardware, analyse test data quickly, and calibrate ECUs.

Levels of engine modelling

  1. Cycle calculations: air-standard and fuel-air cycles stepped through by computer (easy in a spreadsheet, Python or MATLAB).
  2. Zero-dimensional (thermodynamic) models: the cylinder treated as one zone (or two: burnt and unburnt), with a Wiebe function for the burn rate and a heat transfer correlation (for example Woschni's). They predict pressure against crank angle, work and efficiency.
  3. One-dimensional gas dynamics: waves in intake and exhaust pipes, for tuning manifolds and turbochargers (commercial codes such as GT-Power, Ricardo WAVE, AVL BOOST; open-source tools exist for study).
  4. Three-dimensional CFD (computational fluid dynamics): in-cylinder air motion, fuel sprays and combustion (for example ANSYS Fluent, CONVERGE, OpenFOAM). Very detailed, very costly in computing time.

Example: a stepwise compression calculation

Divide the compression stroke into small crank-angle steps. Volume from the slider-crank geometry:
V(θ) = V_c + (πD²/4)[l + a − a cos θ − √(l² − a² sin² θ)], where a is the crank radius (half the stroke) and l the connecting rod length.
For each step, isentropic compression gives p₂ = p₁ (V₁/V₂)^γ. Summing −p dV over the steps gives the compression work; adding a heat release curve and repeating for expansion gives the whole cycle.
Check: at θ = 0 (TDC) the square root equals l and V = V_c ✓; at θ = 180° (BDC) it gives V_c + (πD²/4)(2a) = V_c + V_s ✓.

The Wiebe function

Mass fraction burned: x_b = 1 − exp[−a((θ − θ₀)/Δθ)^(m+1)], with typical a = 5, m = 2, θ₀ the start and Δθ the burn duration. With a = 5, at the end of the burn (θ − θ₀ = Δθ) x_b = 1 − e^(−5) ≈ 0.993, so 99.3% has burned ✓.

Analysing test data

  • Logging pressure, crank angle, speed, torque, fuel and air flow with data acquisition systems.
  • Calculating ip from the pressure trace, heat release rate (from the first law), mass fraction burned and combustion stability (coefficient of variation of imep; above about 5% drivers notice rough running).
  • Producing performance curves and fuel maps automatically.

Design and calibration

  • CAD (computer-aided design) for engine parts; FEA (finite element analysis) for stresses and temperatures in pistons, heads and crankshafts; CAM for machining (MEG 403).
  • Optimisation: searching valve timing, compression ratio or injection settings for best efficiency within emission limits.
  • ECU calibration tools adjust maps on a running engine.
  • Design of experiments (DoE) cuts the number of tests needed.

Limits

Models are only as good as their inputs and assumptions; they must be validated against measured data. Use them to compare options, then confirm on a test bed.

A student project idea

Build a spreadsheet or Python model of the Otto cycle with variable specific heats, then compare its efficiency with the air-standard value for r = 6 to 12, and with published engine data.

Exams usually ask

  • Describe the levels of engine modelling and their uses.
  • Outline a computer programme to calculate the p-V diagram of an engine cycle.
  • Explain how computers are used in engine testing and calibration.

Common mistake

Trusting simulation results without checking them. Always validate a model with measurements or a simple hand calculation.

Written by the UniHive team in our own words. Spotted a mistake? Tell us on WhatsApp.

Read

Watch

We link to free material and never copy it. Every link was opened by our team before it went up; video data is a rough guide at 360p.

All MEG 405 topics

Report

Sign in to report this. It is free.

Is this your work (a lecturer, author or publisher)? Ask us to take it down.