B11 · Lesson 34 · Real gases and the van der Waals equation
Molecules with size and attraction, the critical point, and why a throttled gas cools
The ideal gas of lesson 19 never condenses, yet a CO₂ fire extinguisher at room temperature holds liquid, and the nitrogen a cryostat runs on was made by letting compressed air expand through a valve until it got cold enough to liquefy. Both depend on the two things the ideal gas leaves out: molecules take up room, and they attract each other. Van der Waals put both into one equation in 1873. It's only roughly right in numbers, but it predicts a critical point above which no pressure can liquefy a gas, it gives the vapor pressure through Maxwell's equal-area rule, and with lesson 31's Maxwell relations it explains why throttling cools nitrogen but warms helium.
- Isotherms of the van der Waals gas in reduced units, pressure against volume, each measured from the critical point: . The dashed curve is an ideal gas at the same temperature.
- Above the isotherm falls steadily: compressing always raises the pressure. Below it, a loop appears where squeezing would lower the pressure. That part is unstable, and the real gas condenses at a constant pressure instead.
- At the curve has a flat inflection at , : the critical point.
Predict
Above what temperature can no amount of compression turn carbon dioxide into a liquid?
CO₂'s critical temperature is 304.1 K, 31 °C. Below it, compressing the gas eventually reaches the vapor pressure and liquid forms; above it, the gas just gets denser without ever separating into two phases. That's why a CO₂ extinguisher on a hot day holds a supercritical fluid instead of a liquid. −78 °C is where solid CO₂ sublimes at one atmosphere, a different point on the phase diagram.
Name it
The van der Waals equation
- is the volume a mole of molecules occupies themselves, so only is free.
- measures the attraction. A molecule near the wall is pulled back by its neighbors, which lowers the pressure by : proportional to the density of molecules hitting the wall times the density pulling them back.
The critical point and corresponding states
The critical isotherm has a flat inflection, , which gives
In reduced variables , , every van der Waals gas obeys the same equation, . Real gases follow this law of corresponding states roughly, which is why engineering charts of compressibility are drawn in reduced units.
Vapor pressure by equal areas
Below the loop is unphysical. The liquid and vapor coexist at the pressure where their Gibbs free energies match (lesson 33), and since along an isotherm, that's the pressure at which the line cuts equal areas above and below the loop: Maxwell's construction. At = 0.9, it gives = 0.647 .
Low density: the virial expansion
Expanding in (molar volume),
At low temperature attraction wins and ; at high temperature size wins. They balance at the Boyle temperature .
Throttling and the Joule–Thomson effect
Gas forced through a valve or porous plug keeps its enthalpy. Lesson 31's relation gives the temperature change per unit pressure drop:
which is zero for an ideal gas. For a van der Waals gas at low pressure, . It's positive (the gas cools as the pressure falls) below the inversion temperature and negative above it.
Worked example
For CO₂, = 0.364 Pa·m⁶/mol² and = 4.267 × 10⁻⁵ m³/mol. Find the van der Waals critical constants and compare them with the measured 304.1 K, 7.38 MPa and 94 cm³/mol.
Show the solution
- Critical temperature.
- Critical pressure.
- Critical volume.
- Compare. The temperature and pressure match almost exactly, but only because tables usually choose and to fit them.
- The real test. The third number is the test: the measured volume is 94 cm³/mol, so the real is against the equation's 0.375.
- Why they differ. Real molecules are softer and pack more tightly than hard spheres with a uniform pull.
Answer van der Waals gives 304.0 K, 7.40 MPa and 128 cm³/mol; the first two match the measured values, but the volume is well above the measured 94 cm³/mol.
Worked example
Nitrogen has = 0.137 Pa·m⁶/mol² and = 3.87 × 10⁻⁵ m³/mol. At 300 K, estimate at 1 MPa from the second virial coefficient, and compare the full van der Waals value at 1 MPa and at a cylinder's 20 MPa.
Show the solution
- Second virial coefficient.
- Z at 1 MPa.
- Compare with the full cubic. Solving the full cubic for gives 0.9937: one term is plenty at low density, and nitrogen at room temperature is below its Boyle temperature (426 K by this equation), so attraction wins slightly.
- At 20 MPa. The cubic gives = 126 cm³/mol and = 1.008, while the one-term expansion says 0.870.
- Why the expansion fails. At that density is 0.31, the higher terms of matter, and the molecules' size has caught up with their attraction.
- For a gas cylinder. A cylinder's contents can't be estimated from to better than a few percent at these pressures, and the truncated expansion is worse.
Answer at 1 MPa the virial estimate gives Z = 0.9935 against the full equation's 0.9937; at 20 MPa the full equation gives Z = 1.008, while the one-term expansion says 0.870.
Worked example
Estimate the Joule–Thomson coefficient of nitrogen at 300 K ( = 29.1 J/(mol·K)), and the inversion temperatures of hydrogen ( = 0.0248, = 2.66 × 10⁻⁵) and helium ( = 0.00346, = 2.38 × 10⁻⁵, SI units).
Show the solution
- Joule–Thomson coefficient of nitrogen. This is close to the measured value for nitrogen near room temperature, about 0.22 K/bar.
- Liquefying air. A throttle from 200 bar cools it by tens of kelvins, which is how the Linde process liquefies air once the cold outflow precools the incoming gas.
- Inversion temperature of hydrogen.
- Inversion temperature of helium. The same formula gives 35 K. Measured values are about 200 K for hydrogen and 40 K for helium.
- What it means for liquefiers. Either way, both gases warm when throttled at room temperature, so a hydrogen liquefier first cools its gas with liquid nitrogen, and helium needs precooling to below about 40 K, which is why the cryocoolers in lesson 49 use expansion engines or regenerators before the final Joule–Thomson stage.
Answer nitrogen's Joule–Thomson coefficient is about 0.245 K/bar at 300 K; the inversion temperatures come out 224 K for hydrogen and 35 K for helium.
Check
A gas has van der Waals constants = 0.364 Pa·m⁶/mol² and = 3.87 × 10⁻⁵ m³/mol. What is its critical temperature?
Write units the way you normally would: 1.5 K and 1500 mK are the same answer.
Check
A gas has = 0.364 Pa·m⁶/mol² and = 3.87 × 10⁻⁵ m³/mol.
(a)
What is its van der Waals critical pressure, in MPa?
Write units the way you normally would: 1.5 MPa, 1500 kPa and 0.0015 GPa are the same answer.
(b)
What is its critical molar volume, in cm³/mol?
Check
Using the second virial coefficient of the van der Waals equation, by what percentage does nitrogen's differ from 1 at 250 K and 0.5 MPa? ( = 0.137 Pa·m⁶/mol², = 3.87 × 10⁻⁵ m³/mol; give a negative number if .)
Check
A gas has = 0.0248 Pa·m⁶/mol² and = 3.87 × 10⁻⁵ m³/mol.
(a)
What is its Boyle temperature, where the second virial coefficient vanishes?
Write units the way you normally would: 1.5 K and 1500 mK are the same answer.
(b)
Below what temperature does throttling at low pressure cool it?
Check
For CO₂ ( = 0.364 Pa·m⁶/mol², = 4.267 × 10⁻⁵ m³/mol), take = 29.1 J/(mol·K). In kelvins per bar, what is the low-pressure Joule–Thomson coefficient at 300 K?
Check
Every van der Waals gas has the same compressibility factor at its critical point. What is it?
Check
Find the van der Waals critical point. Write per mole and set .
Step 1
Dividing the two conditions eliminates . What is ?
Type it the way you would write it, like 3sin(2πft) or 3*sin(2*pi*f*t). Angles can be in radians or carry a degree sign, like 45°.
Step 2
Put back into . What is ? (Use R = 8.314.)
Step 3
And , from the equation of state?
Check
Find the reduced vapor pressure of a van der Waals gas at = t = 0.9 by Maxwell's construction. For a trial pressure between the loop's minimum and maximum, the reduced isotherm crosses it at three volumes; use the smallest and largest, and (the roots of , for instance with numpy.roots). The area between the curve and the line is . Bisect on until it's zero, to 1e-10, and set psat, Vl and Vg.
Python 3.14 with numpy and matplotlib, running in your browser. Tab indents; press Esc and then Tab to move on.
Explain why
A helium liquefier can't just compress room-temperature helium and let it expand through a valve. Use the Joule–Thomson coefficient to explain why, and what the liquefier does instead.
Throttling keeps enthalpy fixed, and the temperature change per unit pressure drop is at low pressure. The attraction term cools the gas, since molecules pulling apart lose kinetic energy, while the size term warms it. Helium's attraction is so weak that the size term wins at any temperature above its inversion temperature, about 40 K, so at room temperature an expansion through a valve warms it slightly. The liquefier therefore first cools the helium below that temperature by other means, such as expansion engines that make the gas do work, regenerators or a liquid-nitrogen precooler, and only then uses a Joule–Thomson valve for the last step, where the effect has the right sign and is large.
Practice
Keep practicing
8 kinds of problem on this topic, dealt one at a time with new numbers every time, for as long as you like.