Thermodynamic Cycles Simulator.

Nine cycles, three machines, one stage. Set the compression ratio and watch the loop change shape — the area inside it is the work you get out.

Mode
Cycle

The machine — The spark-ignition cycle — heat added at constant volume, and efficiency that depends on the compression ratio alone.

Diagram
0.1000.2000.3000.4000.5000.6000.7000.8000.9000100020003000400050001→2: Adiabatic compression2→3: Heat added at constant volume3→4: Adiabatic expansion — the power stroke4→1: Heat rejected at constant volume1State 1 — Start of compression2State 2 — Compressed3State 3 — Peak — spark has fired4State 4 — Fully expandedSpecific volume vPressure P

Press Run to turn the machine over. Space runs and pauses, R resets, and the arrow keys step through the cycle one process at a time.

isentropic 1→2 · Adiabatic compression q 0 w -303.1 kJ/kg

Thermal efficiency

58.48%

Carnot limit, same span

83.33%

Net work

452.1 kJ/kg

Heat added

773.1 kJ/kg

Heat rejected

321 kJ/kg

Peak temperature

1,800 K

Lowest temperature

300 K

Mean effective pressure

590.7 kPa

Every setting is inside its sensible range for this cycle. Push a slider to an extreme and anything worth knowing about will appear here.

State points — the cycle, one corner at a time

State What just happened P kPa v m³/kg T K s kJ/kg·K
1 Start of compression 100 0.861 300 0
2 Compressed 2,167 0.0957 722 0
3 Peak — spark has fired 5,400 0.0957 1,800 0.655
4 Fully expanded 249.1 0.861 747 0.655

Adiabatic compression · Constant-volume heat addition · Adiabatic expansion · Constant-volume heat rejection

Starting points Pick one, then move any slider from there.

A naturally aspirated car engine on ordinary pump fuel. Compression is limited by knock, not by anything the cycle cares about.

9
1,800 K
300 K

How to read a thermodynamic cycle

  1. Pick a cycle. Otto is the petrol engine, Diesel the compression-ignition one, Brayton the gas turbine and Rankine the steam power station; Carnot, Stirling and Ericsson are the ideal limits, and Dual and Atkinson are what real engines actually approach.
  2. Set the compression or pressure ratio. Watch the loop on the P–v diagram change shape — the area it encloses is the net work per kilogram, so a fatter loop is a more powerful engine.
  3. Compare the thermal efficiency with the Carnot limit beside it. No cycle can beat that number, and how far short it falls is the honest measure of the design.
  4. Switch to the T–s diagram. There the area inside the loop is the net heat instead, and the shape tells you at what temperature the heat went in — which is what really sets the efficiency.
  5. Read the state-point table underneath. Every corner of the loop is a real pressure, volume, temperature and entropy, and the arithmetic joining them is the whole subject.

What a cycle is, and why it has to close

An engine is not a thing that burns fuel. It is a thing that takes a working fluid — air, steam, helium — around a loop of processes and returns it to exactly the state it started in, over and over. That closing is not a detail; it is the entire constraint. Because the fluid comes back to where it began, its internal energy is unchanged over a full loop, and the first law collapses to something remarkably simple: the net work out equals the net heat in minus the net heat rejected.

That is why the loop on a P–v diagram matters so much. The work done in any process is the area under its path, so going around a closed loop leaves you with the area enclosed by it. A fat loop is a powerful engine and a thin one is a feeble engine, and you can see which you have at a glance without computing anything. Run the compression-ratio slider above and watch the loop stretch.

The T–s diagram does the same job for heat. Area under a path there is heat transferred, so the enclosed area is the net heat — which, by the first law, is the same number as the net work. Two completely different pictures of the same cycle, and they have to agree. That they do is one of the more satisfying facts in the subject, and switching between the two views above is the fastest way to feel it.

The nine cycles, and what each one is for

They are not nine variations on a theme. Each isolates a different idea, and the differences are almost entirely about when the heat goes in.

Cycle Where it lives η at our defaults Carnot limit
Otto cycle Petrol engines 58.5% 83.3%
Diesel cycle Lorry, ship and locomotive engines 63.2% 84.3%
Dual cycle Modern high-speed diesel engines 65.0% 86.3%
Brayton cycle Jet engines and power-station gas turbines 50.8% 80.0%
Rankine cycle Coal, gas, nuclear and solar-thermal power stations 40.2% 63.5%
Carnot cycle Nowhere — it is a limit, not a machine 62.5% 62.5%
Stirling cycle Submarine power, cryocoolers, solar dishes 66.7% 66.7%
Ericsson cycle Intercooled, reheated and regenerated gas turbines approximate it 66.7% 66.7%
Atkinson cycle Hybrid petrol engines 65.4% 83.3%

Those efficiency figures are computed by the same solver that drives the machine above, at each cycle's own standard set-up — so they move if the model moves, and they cannot quietly disagree with what the instrument shows.

Why the Carnot limit is not a suggestion

Beside every efficiency on this page sits a second number: the Carnot limit for that cycle's own temperature span. It is the most important number here, and it is worth being precise about what it claims.

Carnot's 1824 result says that no heat engine operating between a hot reservoir at T_H and a cold one at T_C can exceed 1 − T_C/T_H, with both temperatures absolute. Not "no engine we have built yet" — no engine, ever, of any design, using any working fluid, made of anything. It falls out of the second law, and an engine that beat it could be run backwards to move heat from cold to hot for free.

Two consequences catch people out. First, the limit depends only on the two temperatures, so the way to a better engine is almost always to run it hotter, not to be cleverer about the middle. Second, real efficiency is bounded well below Carnot anyway, because a real cycle does not add all its heat at T_H — the Otto cycle adds heat over a rising temperature, and the average temperature of heat addition is what actually counts. Watch the gap between the two figures above as you move the sliders: it never closes, and understanding why is most of a thermodynamics course.

Compression ratio, and the one result nobody believes

Set the Otto cycle running above and change the peak temperature. The net work moves. The efficiency does not move at all.

That is not a bug in this simulator. For an ideal Otto cycle the efficiency is 1 − 1/r^(γ−1), and there is no temperature in that expression anywhere. Adding more fuel makes the engine more powerful — a bigger loop, more work per cycle — without making it any more efficient, because the extra heat you put in comes back out of the exhaust in the same proportion. Efficiency belongs to the geometry of the engine, not to how hard you drive it.

Which leads to the obvious question: why not just raise the compression ratio forever? Two reasons, and both are real. In a petrol engine the mixture ignites on its own once it gets hot enough, and that pre-ignition — knock — destroys engines; it is why road petrol engines sit around 9 to 12 and why higher-octane fuel allows more. In a diesel there is no mixture to pre-ignite, since only air is compressed and fuel arrives at the end, which is exactly why diesels run at 16 to 22 and why they are more efficient in practice despite the Diesel cycle being less efficient than Otto at the same compression ratio. Compare them above at equal r and you will see the crossover.

Reading the two diagrams

The diagram pane switches between P–v and T–s, and the same cycle changes costume. On the pressure–volume plot the area inside the loop is the net work per kilogram of working fluid, because work is the integral of P dv. On the temperature–entropy plot the area inside the loop is the net heat, because reversible heat is the integral of T ds.

Those two areas are the same number, and that is the first law applied to a closed loop: the fluid ends where it started, its internal energy has not changed, so everything that entered as heat left as work. Two pictures, one quantity.

Every leg on both diagrams is sampled along its true path rather than drawn corner to corner. An adiabatic expansion follows Pv^γ = constant and is visibly bowed; the gap between that curve and a straight chord between the same two points is where the work actually is. The constant-volume leg on a T–s plot climbs faster than the constant-pressure one because c_v < c_p — and that gap, drawn, is the entire difference between the Otto and Diesel cycles.

Thermodynamic cycles — common questions

What is a thermodynamic cycle?

A sequence of processes that takes a working fluid through changes of pressure, volume and temperature and returns it to exactly the state it started in. Because it closes, its internal energy is unchanged over the loop, so every joule of heat that went in has left again — as work, or as waste heat. That is why net work equals heat in minus heat out on the panel above, exactly, for every cycle here.

Which cycle is the most efficient?

Carnot, and it is not a machine — it is the limit. Of the buildable ones, the Stirling and Ericsson cycles reach that limit with a perfect regenerator, which no real regenerator is. Comparing cycles by efficiency alone is misleading anyway: they are quoted at different temperature spans, and a cycle's efficiency only means something against its own Carnot ceiling.

Why is efficiency compared to a Carnot limit rather than to 100%?

Because 100% is not the relevant bar. No engine working between a hot and a cold reservoir can exceed 1 − T_C/T_H, whatever it is made of. A power station at 40% against a ceiling of 62% is doing well; a waste-heat engine at 12% against a ceiling of 20% is doing well too. The ratio between the two cards on the panel is the honest measure.

What does the area inside the loop mean?

On the P–v diagram it is the net work per kilogram of working fluid, because work is the integral of P dv. On the T–s diagram it is the net heat, because reversible heat is the integral of T ds. They are the same number — two pictures of one quantity. Switch the diagram pane above and compare.

Are these ideal cycles or real engines?

Ideal, and deliberately so. These are air-standard cycles: no friction, no heat loss through the walls, constant specific heats, and air as the working fluid throughout. A real petrol engine returns roughly half what the Otto cycle predicts. The model's job is to show which variables matter and in which direction, not to predict a dynamometer reading.

Why do the diagrams here show curves rather than straight lines?

Because the processes are curves. An adiabatic expansion follows Pv^γ = constant, which is visibly bowed, and the gap between that curve and a straight chord between the same two corners is where the work actually is. Every leg on both diagrams is sampled along its true path rather than drawn corner to corner.

All tools