B1134 of 55
0 XP
  1. Hook
  2. Play
  3. Predict
  4. Name it
  5. Check
  6. Explain

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: pr=8Tr3Vr−1−3Vr2. The dashed curve is an ideal gas at the same temperature.
  • Above Tr=1 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 Tr=1 the curve has a flat inflection at Vr=1, pr=1: the critical point.

Predict

Above what temperature can no amount of compression turn carbon dioxide into a liquid?

Name it

The van der Waals equation

(p+an2V2)(V−nb)=nRT
  • b is the volume a mole of molecules occupies themselves, so only V−nb is free.
  • a measures the attraction. A molecule near the wall is pulled back by its neighbors, which lowers the pressure by an2/V2: 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, ∂p/∂V=∂2p/∂V2=0, which gives

Vc=3nb,Tc=8a27Rb,pc=a27b2,Zc=pcVcnRTc=38

In reduced variables pr=p/pc, Vr=V/Vc, Tr=T/Tc every van der Waals gas obeys the same equation, pr=8Tr3Vr−1−3Vr2. 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 Tc the loop is unphysical. The liquid and vapor coexist at the pressure psat where their Gibbs free energies match (lesson 33), and since dG=Vdp along an isotherm, that's the pressure at which the line p=psat cuts equal areas above and below the loop: Maxwell's construction. At Tr = 0.9, it gives psat = 0.647 pc.

Low density: the virial expansion

Expanding in 1/Vm (molar volume),

Z=pVmRT≈1+B(T)Vm,B(T)=b−aRT

At low temperature attraction wins and Z<1; at high temperature size wins. They balance at the Boyle temperature TB=a/(Rb)=278Tc.

Throttling and the Joule–Thomson effect

Gas forced through a valve or porous plug keeps its enthalpy. Lesson 31's relation (∂S/∂p)T=−(∂V/∂T)p gives the temperature change per unit pressure drop:

μJT=(∂T∂p)H=T(∂V/∂T)p−VCp

which is zero for an ideal gas. For a van der Waals gas at low pressure, μJT≈2a/RT−bCp,m. It's positive (the gas cools as the pressure falls) below the inversion temperature Tinv=2a/(Rb)=274Tc and negative above it.

Worked example

For CO₂, a = 0.364 Pa·m⁶/mol² and b = 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
  1. Critical temperature. Tc=8a27Rb=8×0.36427×8.314×4.267×10−5=304.0K
  2. Critical pressure. pc=a27b2=7.40MPa
  3. Critical volume. Vc=3b=128cm3/mol
  4. Compare. The temperature and pressure match almost exactly, but only because tables usually choose a and b to fit them.
  5. The real test. The third number is the test: the measured volume is 94 cm³/mol, so the real Zc is Zc=7.38×106×94.1×10−68.314×304.1=0.275 against the equation's 0.375.
  6. 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 a = 0.137 Pa·m⁶/mol² and b = 3.87 × 10⁻⁵ m³/mol. At 300 K, estimate Z 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
  1. Second virial coefficient. B=b−aRT=3.87×10−5−0.1378.314×300=−1.62×10−5m3/mol
  2. Z at 1 MPa. Z≈1+Bp/RT=1−1.62×10−5×106/2494=0.9935
  3. Compare with the full cubic. Solving the full cubic for Vm 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.
  4. At 20 MPa. The cubic gives Vm = 126 cm³/mol and Z = 1.008, while the one-term expansion says 0.870.
  5. Why the expansion fails. At that density b/Vm is 0.31, the higher terms of V/(V−b)=1+b/V+b2/V2+… matter, and the molecules' size has caught up with their attraction.
  6. For a gas cylinder. A cylinder's contents can't be estimated from pV=nRT 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 (Cp,m = 29.1 J/(mol·K)), and the inversion temperatures of hydrogen (a = 0.0248, b = 2.66 × 10⁻⁵) and helium (a = 0.00346, b = 2.38 × 10⁻⁵, SI units).

Show the solution
  1. Joule–Thomson coefficient of nitrogen. μJT≈2a/RT−bCp,m=1.099×10−4−3.87×10−529.1=2.45×10−6K/Pa=0.245K/bar This is close to the measured value for nitrogen near room temperature, about 0.22 K/bar.
  2. 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.
  3. Inversion temperature of hydrogen. Tinv=2aRb=2×0.02488.314×2.66×10−5=224K
  4. Inversion temperature of helium. The same formula gives 35 K. Measured values are about 200 K for hydrogen and 40 K for helium.
  5. 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 a = 0.364 Pa·m⁶/mol² and b = 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 a = 0.364 Pa·m⁶/mol² and b = 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 Z differ from 1 at 250 K and 0.5 MPa? (a = 0.137 Pa·m⁶/mol², b = 3.87 × 10⁻⁵ m³/mol; give a negative number if Z<1.)

Check

A gas has a = 0.0248 Pa·m⁶/mol² and b = 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₂ (a = 0.364 Pa·m⁶/mol², b = 4.267 × 10⁻⁵ m³/mol), take Cp,m = 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 Zc=pcVc/(nRTc) at its critical point. What is it?

Check

Find the van der Waals critical point. Write p=RTV−b−aV2 per mole and set ∂p/∂V=∂2p/∂V2=0.

Step 1

Dividing the two conditions eliminates T. What is Vc?

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°.

Check

Find the reduced vapor pressure of a van der Waals gas at Tr = t = 0.9 by Maxwell's construction. For a trial pressure p between the loop's minimum and maximum, the reduced isotherm p=8t3V−1−3V2 crosses it at three volumes; use the smallest and largest, Vl and Vg (the roots of 3pV3−(p+8t)V2+9V−3=0, for instance with numpy.roots). The area between the curve and the line is ∫VlVg(pvdW−p)dV=8t3ln⁡3Vg−13Vl−1+3Vg−3Vl−p(Vg−Vl). Bisect on p 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.

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.