Thermodynamics
On this page the right-hand wall of the box is a piston, and the walls are either insulated (grey) or held at a temperature (coloured). The side panel keeps the first law’s three numbers: the internal energy of the gas, the work done on it, and the heat given to it. At every moment exactly.
Compressing a gas slowly, at a fixed temperature
Section titled “Compressing a gas slowly, at a fixed temperature”A molecule that bounces off an advancing piston comes away faster than it arrived, as a ball does off a moving bat. That is how pushing a piston gives a gas energy. Here the walls are held at 300 K, so each molecule that has been speeded up soon hits a wall and leaves with an ordinary speed again. The gas ends no hotter than it began. All the work that went in has come out as heat. On the P–V graph the gas climbs the dashed curve .
At fixed temperature is constant and , so
Halving the volume of 250 atoms at 300 K takes J.
The work is added up collision by collision at the piston and comes within 6 % of the formula. The heat is much noisier. A gas of 250 molecules touching a reservoir holds an energy that flickers by about 5 %, and whatever it holds at the two ends of the stroke is counted in the heat: expect it within 15 to 30 %. The temperature averaged afterwards is within 3 % of the walls’.
Compressing a gas with no heat allowed out
Section titled “Compressing a gas with no heat allowed out”The same piston and the same squeeze, but now the walls are insulated: a molecule bounces off them with the speed it came with. The energy the piston gives has nowhere to go. The gas gets hotter, and because it is hotter its pressure rises faster than it did at a fixed temperature. The path on the P–V graph is steeper. A bicycle pump getting warm is this.
With for a gas of single atoms:
Halving the volume from 300 K gives K.
Nobody told the engine the value of . The final temperature comes out within 3 % of the adiabatic law and the heat is exactly zero. The work is a few per cent above the formula, because the piston moves at 4 m/s and not infinitely slowly: it meets the molecules a little harder than a reversible piston would. Set the lengths the other way round and the gas cools as it expands by the same law.
Free expansion
Section titled “Free expansion”The gas starts in half the box. Then the wall holding it is whipped away, faster than any molecule can follow, so nothing ever pushes on it. The gas spreads into the empty half and fills the whole box.
It did no work and no heat passed, so its energy is what it was, and so is its temperature. Its pressure has halved. Now watch for it to go back into the left half. It never will. Nothing forbids it: each molecule would only have to be in the left half at the same moment. With 300 molecules the chance is one in .
The process cannot be run backwards, and the measure of that is the entropy gained:
The temperature afterwards equals the temperature before to twelve figures, and the work is exactly zero. The pressures before and after match within 6 %. The graph shows the share of the molecules in the left half falling from one to a half and staying there.
Two gases mixing
Section titled “Two gases mixing”Neon on the left and argon on the right, at the same temperature and pressure, with a wall between. Take the wall away. Nothing pushes either gas anywhere, the pressure is the same on both sides, and yet within a few hundred picoseconds they are thoroughly mixed. They will not sort themselves out again. This is diffusion, and like free expansion it only goes one way.
Each gas has in effect expanded freely into twice its volume, so
After 400 ps the share of each gas in the left half, averaged, is within 8 % of one half, and the temperature is exactly what it was. The graph shows the two shares starting at one and at zero and meeting in the middle.
The Carnot cycle
Section titled “The Carnot cycle”An engine takes heat from something hot, turns part of it into work, and has to throw the rest away to something cold. Carnot asked how large that part can be, and found the best possible engine: four slow strokes.
- The gas expands touching the hot reservoir. It does work, and takes in exactly that much heat.
- Insulated, it goes on expanding. Now the work comes out of its own energy and it cools, down to the cold reservoir’s temperature.
- Touching the cold reservoir, it is compressed. Work goes in and leaves as heat.
- Insulated, it is compressed until it is hot again, back where it began.
On the P–V graph the path is a closed loop between the two dashed curves, and the area inside it is the work the engine gives.
Between 450 K and 300 K no engine can turn more than one third of the heat it takes in into work.
The work in each of the two fixed-temperature strokes is within 6 % of its formula. The efficiency shown is one minus the work put in at the cold reservoir over the work got out at the hot one, and it comes within 10 % of . It is taken from those two works, and not from the measured heats, for the reason given on the first of these pages: with 400 molecules the heats carry the flicker of the gas’s own energy, which is tens of per cent of the heat of a stroke. For the same reason the two insulated strokes do not cancel exactly in any single cycle, as they would for a real gas. The whole cycle is some nine nanoseconds, shown at three hundred picoseconds a second.