Tested tool guide
Tested browser tools
Checked August 16, 2026
What Thermodynamics PV Diagram does, with a checked example
This is a drawing board for the four textbook ideal-gas processes - isothermal, adiabatic, isobaric, isochoric - rendered on a pressure-volume grid. You enter the gas amount and the endpoints of each leg; the tool plots the curves and reports the work, heat transfer, and thermal efficiency of any closed cycle you assemble. The thing students trip on: work is the area under the path on this diagram, so it depends on the route between two states, and its sign depends on direction. A clockwise loop delivers positive net work; run it backwards and every sign flips.
Worked example
A concrete input and expected output from the current implementation.
Input
Carnot cycle, 1.0 mol ideal gas, R = 8.314 J/(mol K). Hot isothermal leg: 600 K, from 2.0 L to 4.0 L. Cold isothermal leg: 300 K.
->
Expected output
Efficiency: eta = 1 - TL/TH = 1 - 300/600 = 0.50 (50 percent). Heat absorbed at 600 K: QH = nRT ln(V2/V1) = 1.0 x 8.314 x 600 x ln 2 = 3457.7 J. Net work per cycle: W = eta x QH = 1728.8 J. Heat rejected at 300 K: QH - W = 1728.8 J. The hot isotherm is drawn from (2.0 L, 2.49 MPa) to (4.0 L, 1.25 MPa), with the cold isotherm and two adiabats completing the loop.
For a Carnot cycle, efficiency depends only on the reservoir temperatures, eta = 1 - TL/TH, which is exactly 50 percent because 300 K is half of 600 K. The isothermal work formula nRT ln(V2/V1) gives the heat absorbed, and net work is eta times that, so the rejected heat QH - W equals the net work when the efficiency is 50 percent.