Physics › Thermodynamics 2D
Processes: pick a process type and drag the state point on the P–V diagram — it slides only along the allowed curve (dashed line). You can also use the buttons to expand/compress or heat/cool. The shaded area under the curve is the work W done by the gas; the bars show Q, W and ΔU with the first law Q = ΔU + W.
Chain several processes and come back to the starting point (white dot) to close a cycle: the enclosed area becomes the net work, and the energy flow (Sankey diagram) shows how much heat went in, how much became work and how much was rejected.
Cycles: choose Carnot, Otto or rectangular, adjust the parameters and press Play to animate the engine. The table lists Q, W and ΔU for each step. Compare the efficiency η = W/Q_in with the Carnot limit 1 − T_c/T_h.
The gas is 1 mol of ideal gas, so P (kPa) × V (L) gives energy directly in joules. Try the challenge: design a cycle with a given efficiency.