⚙️ Carnot Heat Engine — Efficiency & PV Diagram
Simulate the Carnot cycle — the most efficient heat engine possible. Watch the four-stroke cycle on a PV diagram: isothermal expansion, adiabatic expansion, isothermal compression, adiabatic compression.
About Carnot Engine Animation
The Carnot engine, conceived by French engineer Sadi Carnot in 1824, represents the theoretical upper limit of efficiency for any heat engine operating between a hot reservoir at temperature T_H and a cold reservoir at T_C. Its four-stroke cycle — isothermal expansion, adiabatic expansion, isothermal compression, and adiabatic compression — forms a closed loop on the pressure-volume diagram, and the area enclosed equals the net work output. Real engines such as steam turbines and internal combustion engines are always less efficient than this ideal, motivating engineers to push operating temperatures higher.
This simulator lets you adjust the hot and cold reservoir temperatures, the number of moles of gas, the compression ratio, and a friction loss percentage. Both the animated PV diagram and the T-S (temperature-entropy) diagram update in real time, while the stat bar reports Carnot efficiency η, actual efficiency, net work W_net, heat absorbed Q_H, heat rejected Q_C, and the coefficient of performance for refrigerator or heat-pump mode.
Frequently Asked Questions
What is the Carnot efficiency formula?
Carnot efficiency is η = 1 − T_C / T_H, where temperatures are in Kelvin. For example, a steam power station with T_H = 600 K and T_C = 300 K has a maximum theoretical efficiency of 50%. No real engine can exceed this value while exchanging heat only between those two reservoirs.
Why does the Carnot cycle use only isothermal and adiabatic strokes?
Isothermal processes allow heat transfer without entropy production in the working gas (provided the process is reversible), whilst adiabatic processes transfer no heat at all. Combining them creates a cycle with zero net entropy production — the defining property of the maximum-efficiency Carnot cycle. Any other process would generate entropy and reduce efficiency.
What is the difference between a heat engine and a refrigerator in this model?
Running the Carnot cycle forwards (expanding at T_H, compressing at T_C) produces net work; that is the heat engine. Reversing the cycle consumes work to pump heat from T_C to T_H — that is the refrigerator or heat pump. The coefficient of performance for a Carnot refrigerator is COP = T_C / (T_H − T_C), which can exceed 1 even though a heat engine efficiency can never do so.
What does the T-S diagram show that the PV diagram does not?
The temperature-entropy (T-S) diagram displays the Carnot cycle as a perfect rectangle: heat absorbed Q_H equals T_H × ΔS (the top horizontal line), heat rejected Q_C equals T_C × ΔS (the bottom line), and the enclosed area equals net work W_net = Q_H − Q_C. This makes the efficiency immediately visible as the ratio of rectangle height difference to total height, which is not as intuitive from the curved PV loop.
Why can't a real engine achieve Carnot efficiency?
Real engines suffer from friction, finite-rate heat transfer (which requires a temperature gradient, introducing irreversibility), turbulence, heat leakage through walls, and imperfect combustion. The Carnot cycle assumes every process is perfectly quasi-static and reversible — infinitely slow — which is impossible in practice. The friction loss slider in this simulator lets you see how even small losses dramatically cut actual efficiency below the Carnot limit.
How does increasing the compression ratio affect output?
A higher compression ratio increases the volume swept per cycle, so both Q_H and W_net scale roughly with ln(compression ratio). However, it also raises the maximum pressure, demanding stronger (heavier, more expensive) cylinder walls. Petrol engines typically use compression ratios of 9–12:1, while diesel engines run 14–23:1 to compensate for the lower reactivity of diesel fuel.
What is the significance of absolute zero in the Carnot formula?
If T_C could equal 0 K (absolute zero), the Carnot efficiency would reach 100%. However, the third law of thermodynamics states that absolute zero is unattainable in a finite number of steps, so perfect efficiency is also unattainable. This is not merely a technological limitation — it is a fundamental constraint of nature encoded in the second law of thermodynamics.
How does adding more moles of gas change the simulation?
The number of moles n scales the work done in each isothermal stroke: W = nRT·ln(V₂/V₁). So doubling n doubles both Q_H and W_net while leaving the efficiency unchanged, because efficiency depends only on the temperature ratio. In engineering terms, adding more working fluid increases the power output of an engine without altering its thermal efficiency.
Can the Carnot cycle be applied to non-gas working fluids?
Yes. The Carnot theorem is universal — it applies to any reversible heat engine, whether the working fluid is an ideal gas, steam, a magnetocaloric material, or even photons. Real steam-turbine cycles (Rankine cycles) and gas-turbine cycles (Brayton cycles) are approximations to the Carnot ideal. The simulator models an ideal gas, but the efficiency formula η = 1 − T_C/T_H holds for any reversible cycle between the same two temperatures.
What is entropy and how does it relate to this cycle?
Entropy S is a state function measuring the dispersal of energy among microstates. During isothermal expansion the gas absorbs Q_H at T_H, gaining entropy ΔS = Q_H/T_H. During isothermal compression it rejects Q_C at T_C, losing ΔS = Q_C/T_C. Because the cycle is reversible, these entropy changes are equal, so ΔS_net = 0. The T-S diagram rectangle makes this balance visually explicit: the area added on the top equals the area removed on the bottom.
How is the Carnot engine related to climate and power generation?
Every thermal power station — coal, gas, nuclear — is limited by the Carnot bound. Increasing the steam temperature T_H from 500 K to 700 K raises the maximum efficiency from about 40% to 57%, which is why modern ultra-supercritical coal plants operate at very high steam pressures and temperatures. Ocean thermal energy conversion (OTEC) uses the small temperature difference between warm surface water (~300 K) and cold deep water (~275 K), giving a Carnot efficiency of only about 8%, illustrating how critical a large ΔT is.
Animated Carnot cycle on an interactive PV diagram. Set hot and cold reservoir temperatures, watch the four strokes (isothermal expansion/compression, adiabatic expansion/compression), and measure η = 1 − T_c/T_h.
3D · Three.js / WebGL renderer · 60 FPS target · runs fully client-side, no install