cleoanka

an interactive page · engine

Four strokes, one loop

Pressure inside a cylinder, the turn of a crankshaft, and the firing order that gives an engine its voice.

canvas & code, no dependencies · redline on GitHub


1

The area of a loop

A four-stroke engine repeats the same dance every two turns of the crank: intake, compression, power, exhaust. Plot cylinder pressure against volume and the dance becomes a closed loop, and the area inside it is the work handed from the piston to the crank in that cycle. engine-sim simulates each cylinder’s gas in real time to produce this loop, and in the end, the sound.

FIG. 1 — The ideal air-standard Otto cycle. Change compression ratio, throttle and fuel: the golden area is net work, the numbers on the right are efficiency and peak pressure. In a real engine heat loss, friction and timing pull these numbers down.

Ideal efficiency depends only on compression ratio: η = 1 − r1−γ. Raising the ratio from 8 to 12 lifts efficiency from about 56 to 63 percent. It is not free: temperature and pressure at the end of compression rise too, and past a point the mixture ignites on its own before the spark. That is knock, and much of engine design is living just below that line.

2

Firing order

A single cylinder pushes once every two turns; the flywheel carries the rest. Adding cylinders spreads the pushes around. Four cylinders fire every 180 degrees, six every 120, eight every 90. But it is not only how often; which cylinder fires when matters too, because it sets both the vibration and the rhythm you hear in the exhaust.

FIG. 2 — Top: the cylinders and their pistons; the firing cylinder glows. Bottom: each cylinder’s torque over two crank turns (thin) and the total (thick). The ripple figure is how much the total swings around its mean.

With four cylinders the total torque dips nearly to zero; in the straight six and the V12 the pulses overlap and the curve flattens. The two V8s have the same number of cylinders but sound different: with a cross-plane crank each bank fires at uneven intervals, with a flat-plane crank the two banks simply alternate.

3

The voice

Exhaust sound is largely the rhythm of these pulses. Every firing sends a pressure wave down the pipe; the pipe and muffler boost some frequencies and choke others. The synthesiser below does exactly that: it fires pulses at the chosen engine’s firing angles and runs each bank through its own resonant filter. engine-sim does far more, deriving it from the gas dynamics.

FIG. 3 — Press “start engine” (browsers only allow sound after a click). Play with revs and throttle, switch engines. Top: tachometer; bottom: the waveform being played. Better with headphones.

The familiar burble of a cross-plane V8 comes from each bank firing at uneven intervals; the flat-plane V8 shrieks higher and smoother. The four buzzes at high revs, the single is heard as separate thumps at low revs. This little model is not a real engine, but it is enough to hear with your own ears how much the rhythm decides the sound.

p–v
The area of the pressure–volume loop is work per cycle; efficiency grows with compression ratio.
firing
Cylinder count and crank layout set torque ripple and rhythm.
metal
redline renders engine-sim natively with Metal on Apple Silicon and swaps engines live.