PPolySim OS

Otto Cycle (Engine)

What happens inside a gasoline engine every stroke. The Otto cycle shows why higher compression means more power — right up until the fuel knocks.

Otto Cycle (Engine)Live

Controls

Presets

The Otto cycle idealizes a gasoline engine: adiabatic compression, constant-volume combustion, adiabatic expansion (the power stroke), and exhaust. Its efficiency, η = 1 − 1/r^(γ−1), depends only on the compression ratio. Higher compression means more efficiency — until the fuel pre-ignites and knocks, which is why octane rating matters.

▶ Run in Python

Data Inspector

Efficiency58.5%
Compression ratio9:1
γ1.40

Governing equation

Reading this result: Efficiency (58%) depends only on the 9:1 compression ratio and γ, not on how much fuel you burn — adding heat gives more power at the same efficiency ceiling.

Runs locally in your browser — free forever. Scale to the cloud when reality gets heavy.

or unlock everything with Pro →
★ Sign in to save this setup
Save your tuned setup, or drop this simulation into your own site, docs, or course page.

How it works

The Otto cycle idealizes a spark-ignition engine: adiabatic compression, constant-volume combustion, adiabatic expansion (the power stroke), and exhaust. Its efficiency, η = 1 − 1/r^(γ−1), rises with the compression ratio r. Push too far and the air-fuel mix pre-ignites and knocks — which is what octane rating resists.

Ask the AI about this model

The math, the assumptions, real-world uses, or a code translation — explained for this exact simulation.

More Materials simulations

Frequently asked questions

Is this Otto cycle engine efficiency tool really free?
Yes. Otto Cycle (Engine) runs entirely in your browser using your device's own compute, so local use is free forever. You only pay Compute Tokens if you scale a job to the cloud.
Do I need to install anything?
No. Everything runs client-side in a modern browser — no downloads, no license, no account required to start.
Can I save or share my simulation?
Create a free account to save projects, and use a shareable embed or minted DOI to publish a live, interactive version anywhere.
How accurate are the results?
The solver uses established numerical methods, but results are for research and educational purposes and should be validated against experiment or professional review before you rely on them.