b2KIT

Thermodynamics PV Diagram

Draw isothermal, adiabatic, isobaric, and isochoric processes on PV diagrams. Calculate work, heat, and efficiency for cycles.

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.

How the result is produced

1

Work is the area under the curve

Each leg is plotted from its governing relation: isobaric is a horizontal line at fixed P, isochoric a vertical line at fixed V, isothermal follows PV = constant, adiabatic follows PV^gamma = constant. Work for a leg is the integral of P dV, so the tool effectively measures the area beneath the curve; vertical legs contribute zero work.

2

First law accounting for cycles

For an ideal gas, internal energy depends only on temperature, so over a full cycle it returns to its starting value and net heat equals net work. The tool applies the first law leg by leg: isothermal legs exchange Q = W, adiabatic legs exchange Q = 0, isobaric legs split heat between work and internal energy change. Cycle efficiency is net work divided by heat absorbed.

Good uses

  • Checking a hand calculation: enter the same Carnot or Otto cycle you solved on paper and see whether the efficiency and heat values match yours.
  • Comparing paths between the same two states, such as an isothermal versus an adiabatic expansion from the same starting point, to see how much work each delivers and why the adiabat ends at a lower pressure.
  • Sketching cycle candidates before building a real engine model: arrange the four processes into different loops and compare the enclosed area, which is the net work per cycle.

Limits and checks

  • Sign of the work: the tool reports the gas's work, positive when the gas expands. A clockwise cycle gives positive net work, counterclockwise negative. If your answer has the wrong sign, check the traversal direction and whether you are thinking of work by the gas or on the gas.
  • Ideal gas only: the curves are exact for an ideal gas with constant heat capacity. Real gases, phase change, or temperature-dependent gamma change the shapes, so a steam or refrigerant cycle drawn this way is only a schematic.
  • Units: mixing liters and pascals is a natural error. Pressure in pascals times volume in cubic meters gives joules; with liters you need pressure in kilopascals or the conversion 1 L = 10^-3 m^3. Check the axis labels before reading off numbers.

Common questions

Why is the Carnot efficiency never 100 percent even though the adiabatic legs exchange no heat?

Because the adiabatic legs change the gas temperature, and the gas must return to its starting state, so heat must be rejected at the cold temperature. The best possible efficiency is 1 - TL/TH, reaching 100 percent only as TL approaches absolute zero. The tool's Carnot result is an upper bound no real engine can beat.

Can I use this tool for steam or refrigerant cycles?

Not exactly. The tool assumes an ideal gas with constant heat capacity, so the curves and numbers are wrong where real fluids deviate, especially near condensation. For steam and refrigerants, use property tables such as the NIST WebBook or a dedicated steam calculator, and treat the PV drawing as a schematic only.

References and verification

The example and behavioral notes were checked against the browser implementation. Standards and primary references below define the relevant format, formula, or platform behavior.

Related Tools