Real Gases, Virial Expansion, and van der Waals Theory
Real gases differ from ideal gases because molecules exclude volume and attract or repel each other. The ideal gas is still the reference point, but corrections encode microscopic interactions. Schwabl develops these corrections through the virial expansion, then uses the van der Waals equation as a simple mean-field model of liquid-gas coexistence.
The main conceptual shift is that the equation of state is no longer determined by one-particle momentum integrals alone. Configurational integrals over interparticle potentials enter, and their low-density expansion produces virial coefficients. These coefficients are measurable thermodynamic quantities and also microscopic integrals over molecular forces.
Definitions
The virial expansion writes the pressure as a density series:
Equivalently,
For a classical pair potential , the Mayer function is
The second virial coefficient is
The van der Waals equation is
or in molar volume ,
Here models excluded volume and models attractive cohesion.
Key results
For hard spheres of diameter ,
Thus inside the hard core and outside, giving
Attractions make smaller and can make it negative at low temperature. The Boyle temperature is defined by , where the leading real-gas correction vanishes.
For the van der Waals equation, the critical point satisfies
Solving gives
Below , the van der Waals isotherm has an unstable segment with positive slope in the - curve. The Maxwell construction replaces it by a horizontal coexistence line whose areas above and below are equal:
This enforces equality of chemical potentials between liquid and gas.
Cluster expansions generalize the virial expansion by organizing many-particle configurational integrals into connected clusters. The physical rule is that disconnected pieces exponentiate into the partition function, while connected clusters contribute to and hence to thermodynamics.
The sign and temperature dependence of give a compact diagnostic of interactions. A purely repulsive potential makes , so and the pressure is larger than the ideal-gas value at the same density. Attractive regions make the Mayer function positive, lowering . At high temperature, attractions are weak compared with and excluded volume tends to dominate. At lower temperature, attractions can dominate and becomes negative, indicating a tendency toward condensation.
The van der Waals parameters are a crude compression of this microscopic information. The excluded-volume parameter is related to short-range repulsion, while approximates the integrated attractive tail. But the model is not a systematic low-density expansion unless its parameters are matched carefully; it is better viewed as a mean-field equation of state. Its greatest value is qualitative: it produces a critical point, metastable branches, and coexistence from a simple analytic formula.
The Maxwell construction can be derived by requiring equality of chemical potential. At fixed ,
Along an isotherm, the difference in chemical potential between two volumes is
After integration by parts, equality of chemical potentials is equivalent to the equal-area rule in the - diagram. Thus the graphical construction is not an arbitrary repair of a bad curve; it enforces phase equilibrium.
Near the critical point, expanding the van der Waals equation gives mean-field critical exponents. For example, the order parameter scales as , and the isothermal compressibility diverges as . Real fluids near criticality cross over to non-mean-field exponents because long-wavelength density fluctuations become important.
The virial and van der Waals approaches therefore answer different questions. The virial expansion is controlled at low density and can be made systematically more accurate by computing more cluster integrals, but it does not by itself give a simple global picture of condensation. The van der Waals equation is uncontrolled near the critical region and inaccurate in detail, but it gives a compact thermodynamic landscape with unstable, metastable, and stable branches. A good statistical-mechanics reader should know which role each approximation is playing.
Liquids remain difficult precisely because neither limit is fully satisfactory. Their density is high, so low-density cluster expansions converge poorly, and their correlations are strong enough that simple mean fields miss structure. This is why liquid-state theory develops separate tools such as correlation functions, structure factors, and integral equations, even though the starting point is still the same canonical configurational integral.
The second virial coefficient can be measured experimentally by fitting low-density pressure data. This makes it a bridge between microscopic potential models and laboratory thermodynamics. If a proposed pair potential gives the wrong over a range of temperatures, it cannot be a reliable molecular model even before higher-density behavior is tested.
The critical-point failure of mean-field theory is also visible experimentally as critical opalescence: long-wavelength density fluctuations scatter light strongly. Such phenomena are outside the smooth van der Waals picture but natural in the scaling picture developed later.
Visual
p
^ T > Tc
| \____
| \__
| T = Tc \__
| \__ \_
| \__
| T < Tc \_/---\_
| Maxwell line
+----------------------------> v
| Model | Microscopic input | Strength | Limitation |
|---|---|---|---|
| Virial expansion | pair and higher cluster integrals | systematic at low density | fails near condensation/criticality |
| Hard spheres | excluded volume only | exact simple | no attraction, no liquid-gas transition |
| van der Waals | two parameters | qualitative coexistence and critical point | mean-field exponents, poor near criticality |
| Cluster expansion | connected Mayer graphs | principled interaction expansion | combinatorially complex |
Worked example 1: Second virial coefficient of hard spheres
Problem: Derive for hard spheres of diameter .
Method:
- For , , so
- For , , so
- Insert into
- Only the excluded sphere contributes:
Checked answer: is four times the physical volume of one hard sphere, because the excluded volume is a two-particle relative-coordinate volume.
Worked example 2: van der Waals critical constants
Problem: Starting from
derive , , and .
Method:
- Differentiate once:
At criticality this is zero:
- Differentiate twice:
At criticality:
- Divide the second condition by the first:
so
- Substitute into the first condition:
- Insert into the equation of state:
Checked answer: the compressibility factor is , the classic van der Waals prediction.
Code
import numpy as np
def vdw_pressure(v, T, a=1.0, b=0.1, kB=1.0):
return kB * T / (v - b) - a / v**2
def hard_sphere_B2(d):
return 2 * np.pi * d**3 / 3
a, b = 1.0, 0.1
Tc = 8 * a / (27 * b)
vc = 3 * b
pc = a / (27 * b**2)
print("critical", Tc, vc, pc)
print("B2 hard sphere d=1", hard_sphere_B2(1.0))
v = np.linspace(0.12, 2.0, 8)
print(vdw_pressure(v, 0.8 * Tc, a=a, b=b))
Common pitfalls
- Using the virial expansion at high density where powers of no longer converge usefully.
- Forgetting that can be negative when attractions dominate.
- Treating the unstable van der Waals loop as physical instead of applying the Maxwell construction.
- Confusing the hard-sphere diameter with the molecular radius.
- Assuming van der Waals critical exponents are exact for real fluids; they are mean-field values.