← All simulations

Path dependence in a piston

1 mol monatomic ideal gas, state 1 (P1, V1) to state 2 (P2, V2) by two routes

Using the page: Set the two states with the sliders. Play runs path (a) and pauses; the next press runs path (b) and pauses; the next locks both pistons and moves every remaining block onto a shelf, showing the work each path did; the last lets heat flow directly from hot bath (b) to cold bath (b) until both cold baths match, so the hot baths show the net heat each path used. That last step is not part of either path; it is included only to illustrate the difference in heat transfer. The space bar plays and pauses, and the progress bar scrubs through all four stages. Save run adds the current settings' totals to the table at the bottom.

Path (a)

  1. 1. Heat: expand at constant P1
  2. 2. Cool at constant V2, removing weights as P decreases to P2
P = bar V = L T = K
StepqwΔE
1
2
Total
joules; w = −PΔV (work done on the gas)

Path (b)

  1. 1. Cool at constant V1, removing weights as P decreases to P2
  2. 2. Heat: expand at constant P2
P = bar V = L T = K
StepqwΔE
1
2
Total
joules; w = −PΔV (work done on the gas)

P–V diagram

path (a) path (b) shaded area = −w 12states 1 and 2; italic numbers: temperature at each corner dashed curves: isotherms through states 1 and 2

How It's Calculated and Other Details

The gas

1 mol of a monatomic ideal gas, so CV = (3/2)R and CP = (5/2)R, with R = 0.08314 L·bar/(mol·K) = 8.314 J/(mol·K) and 1 L·bar = 100 J. Every step is quasi-static: the gas is always uniform, its pressure always equals the load on the piston, and T = PV/nR at every instant. Quasi-static does not mean reversible here: heat flows between the gas and baths at very different temperatures, which is irreversible. That does not change q, w or ΔE for the gas.

Energy bookkeeping

The main point of this exercise is that the work done is different for the two paths, even though they start and end at the same states. Make sure you understand the work calculation. The heat calculation is more complicated and depends on the working fluid (here, a monatomic ideal gas); your instructor will tell you how much of it you need to know.

w = −PextΔV (work done on the gas), so w = 0 at constant volume. ΔE = nCVΔT = (3/2)Δ(PV) depends only on the end states; for an ideal gas it depends only on T, so if states 1 and 2 lie on the same isotherm, ΔE = 0 for any path. q = ΔE − w, which gives nCPΔT at constant pressure and nCVΔT at constant volume.

Stepqw
(a)1, constant P1(5/2)P1(V2 − V1)−P1(V2 − V1)
2, constant V2(3/2)V2(P2 − P1)0
(b)1, constant V1(3/2)V1(P2 − P1)0
2, constant P2(5/2)P2(V2 − V1)−P2(V2 − V1)

The two paths differ in work by (P1 − P2)(V2 − V1), the area between them on the P–V diagram, and their heats differ by the same amount, so ΔE comes out the same.

The piston and blocks

The drawing is a cross section of the cylinder. Its cross-sectional area is a constant 1000 cm² (0.1 m²), so 1 L of gas fills 1 cm of height; the piston plate adds 1.5 cm, which is why the shelves sit 1.5 cm above the gas volume in liters. Each block weighs 0.05 bar × 0.1 m² = 500 N (a mass of about 51 kg). At 2 bar the 40 blocks total about 2 tonnes, which sounds like a lot but is just what 2 bar means on 0.1 m²: the atmosphere alone presses about 1 tonne on the same area.

For simplicity, the pressure on the gas comes only from the blocks, as if the piston sat in a vacuum. A real piston would also feel the atmosphere pushing down, so part of the load would be air rather than blocks, and part of the work would go into pushing the air back. The piston's own weight is ignored.

Raising one block by Δh stores 500 N × Δh of potential energy; summed over all the blocks during a constant-pressure step, that equals PΔV, the work the gas did. During constant-volume cooling, blocks slide off onto a shelf at the piston's current height whenever the gas pressure decreases by another 0.05 bar, so the load always balances the gas and the piston stays put.

Temperature baths

Each piston sits on a hot temperature bath while it is heated and a cold temperature bath while it is cooled. Each bath has a heat capacity of 400 J/K, so its temperature changes by −q/(400 J/K), where q is the heat the gas takes from it (negative when the gas gives heat to the bath). Both start 10 K beyond the most extreme temperature the gas could need, plus the largest temperature change either path could cause, so heat always flows from hotter to colder. In the equalizing step, path (b)'s hot bath gives its cold bath qout(a) − qout(b), which makes the cold baths match. The thermometer columns are magnified so the changes are visible: the hot thermometers move within the upper part of the tube and the cold ones within the lower part, so they are not drawn to one common scale. What remains between the hot baths is the difference in net heat, which equals the difference in work. This direct transfer is not part of either path; it is included only to illustrate the difference in heat transfer.

Aside: an engine

The molecules

Molecule speeds scale with the rms speed, proportional to √T, and their color shifts from blue to red as T rises. Their number and positions are only illustrative.

Saved runs

RunP1, V1P2, V2 Path (a)Path (b)
qwΔE qwΔE
joules, complete paths; P in bar, V in L. Save run records the current settings.