08.11.04 · stat-mech / real-gases

Real gases — the virial expansion and van der Waals

shipped3 tiersLean: none

Anchor (Master): Mayer & Mayer Statistical Mechanics (Wiley, 1940); Hansen & McDonald Theory of Simple Liquids, 4th ed. (Academic Press, 2013) Ch. 3-4; Pathria & Beale Statistical Mechanics, 3rd ed. (Elsevier, 2011) Ch. 10-12

Intuition Beginner

An ideal gas treats its molecules as points that never touch and never attract. Real molecules are different. Each one blocks a small volume of space — other molecules cannot enter it — and each one pulls weakly on its neighbours. At high temperature and low density these effects are invisible and the ideal-gas law is accurate. Squeeze the gas or cool it, and the two effects show up as measurable departures from ideal behaviour.

The cleanest way to describe the departure is the compressibility factor , equal to one for an ideal gas. For a real gas depends on density and temperature, and the curve of against pressure is a fingerprint of the fluid. The virial expansion writes as one plus a sequence of density corrections. Each correction carries a coefficient that the microscopic interactions fix.

The van der Waals equation is the simplest model that captures both effects at once. It replaces the volume by to subtract the space the molecules occupy, and it lowers the pressure by to model the attraction. The two parameters and are fit to data. Below a critical temperature the model predicts a liquid-vapor transition, and the same reduced equation then describes every simple fluid once and are scaled away.

Visual Beginner

A compressibility-factor chart. On the horizontal axis the reduced pressure, on the vertical axis . Several isotherms (constant-temperature curves) are drawn. Above the Boyle temperature every isotherm rises above as pressure grows, because repulsion dominates. Below the Boyle temperature each isotherm first dips below , because attraction dominates, then climbs back through and above as the molecules are forced together.

The virial expansion is the Taylor-like series for each isotherm in powers of density around . The second virial coefficient is its first slope: negative when attraction wins, positive when repulsion wins, and zero at the Boyle temperature.

Worked example Beginner

Take carbon dioxide, whose critical temperature K sits just above room temperature — the reason supercritical CO2 is a practical industrial solvent. The measured critical point is atm and molar volume cm³ per mole. These three numbers anchor the van der Waals fit.

Step 1 — fit the two parameters from and , the most accurately measured constants. The relations and with J/(mol K) give m³/mol and Pa m⁶/mol². These are the excluded volume and the attraction strength per mole squared.

Step 2 — predict the critical volume from cm³/mol. The measured value is cm³/mol. The model overshoots by about 36 percent, the same systematic error for every simple fluid.

Step 3 — check the critical compressibility factor . The model forces . The measured value for CO2 is . The gap is the signature failure of mean-field theory at the critical point.

Step 4 — predict the second virial coefficient at K from . With cm³/mol and cm³/mol, the model gives cm³/mol. The measured value is about cm³/mol: attraction dominates, and the model lands within 15 percent.

The lesson: a two-parameter fit captures the qualitative shape of the whole liquid-vapor transition. Quantitatively it is rough near the critical point and accurate enough far from it. The virial expansion tightens the quantitative picture order by order.

Check your understanding Beginner

Formal definition Intermediate+

This unit complements the sibling treatment in 08.11.03, which derives the virial coefficients from the grand-canonical cluster expansion and resums them into the van der Waals equation. Here the emphasis is dual: the virial equation of state as a phenomenological series in the compressibility factor, and the equation of state as reconstructed from the pair correlation function through two independent exact routes that must agree.

The compressibility factor of a fluid is the dimensionless ratio

equal to one for an ideal gas. Kamerlingh Onnes (1901) proposed [Kamerlingh Onnes 1901] a systematic density expansion of — the virial equation of state:

with the virial coefficients functions of temperature alone. The series converges for sufficiently low density and develops a singularity at condensation. The Boyle temperature is defined by ; there to first order and the gas behaves ideally across a wide density range.

For a classical gas with pairwise potential the configurational integral is

with the Mayer -function . Expanding the product generates all labelled graphs on . Ursell (1927) [Ursell 1927] first showed, and Mayer (1937) [Mayer 1937] reframed graph-theoretically, that organises by connected-graph topology into a density series whose coefficients are the cluster integrals

The virial coefficients are polynomials in the ; equivalently each is the sum of all irreducible (biconnected) cluster integrals on vertices. The first is

The pair correlation function measures, relative to random, the probability of finding a second molecule at distance from a tagged one:

It is directly measurable by X-ray and neutron scattering: is the Fourier transform of the static structure factor . The equation of state can be reconstructed from by either of two exact routes that must agree for the exact .

  • Virial (pressure) route. Scaling the container and differentiating the configurational integral gives
  • Compressibility route. The isothermal compressibility satisfies the compressibility equation

where is the long-wavelength structure factor; integrating with respect to recovers a second expression for .

The Ornstein-Zernike equation [Ornstein-Zernike 1914] splits the total correlation into a direct correlation and an indirect chain,

a convolution equation whose Fourier form encodes the critical divergence when .

Van der Waals equation (phenomenological). Rather than derive from a specified , van der Waals (1873) [van der Waals 1873] proposed the two-parameter closed form

with the molar volume, an attraction parameter, and an excluded-volume parameter. Expanding for large recovers the virial series with and for , so the model compresses the entire interaction into two constants. The critical point satisfies , giving , (per mole), , and .

Law of corresponding states. In reduced variables , , , the van der Waals equation collapses to

with no microscopic parameters remaining. Guggenheim (1945) [Guggenheim 1945] showed that the reduced coexistence curves of Ne, Ar, Kr, Xe, N2, O2, CO, and CH4 collapse onto a single universal curve to within a few percent — the empirical content of the corresponding-states principle.

Common slips

  • is temperature-dependent and changes sign at the Boyle temperature. Treating it as a fixed constant of the gas is wrong.
  • The virial and compressibility routes give identical results only for the exact . Approximate integral-equation closures (Percus-Yevick, hypernetted-chain) break the equality, and the size of the disagreement is a standard diagnostic of closure quality.
  • is a universal van der Waals prediction. Real simple fluids cluster near to . The discrepancy is not measurement error but the failure of mean-field theory at the critical point.
  • The density virial expansion does not converge through the two-phase region. Below the gas-liquid coexistence must be inserted (Maxwell construction) before any virial description applies to the homogeneous branches.

Key derivation Intermediate+

Theorem (virial equation of state). For a classical fluid with pair potential and pair correlation function , the compressibility factor is

Derivation. From with , the pressure is . Scale the container isotropically by , so at fixed , while the integration variables are held in their scaled positions. Then and the Jacobian contributes a factor that cancels against the rescaled domain, leaving

The first term is ideal; the second is the ensemble average of the virial of the pair force. By the definition of , the pair average of any radial function is . Setting and using converts the sum into the stated integral, and dividing by yields the formula.

Theorem (mean-field critical exponents of the van der Waals equation). Write the reduced van der Waals equation in deviations and from the critical point. To leading order

This single Landau-form expansion yields the four mean-field critical exponents , , , .

Derivation. Set , , in and expand, keeping terms up to combined order three in . The linear terms cancel by the critical-point conditions ; the quadratic terms cancel by the same conditions; what remains is the stated cubic. Each exponent is read off as follows.

  • Critical isotherm (). At , , so and .
  • Order parameter (). Below () the gas-liquid coexistence densities are the two non-zero roots of at the coexistence pressure, equivalently where the odd part vanishes: . The density gap , giving .
  • Compressibility (). Along the critical isochore , , so , giving .
  • Specific heat (). In the van der Waals model the molar internal energy is ; along the critical isochore it is linear in with no singularity, so stays finite (a jump, not a divergence): .

Bridge. The two routes to the equation of state — the virial theorem applied to and the compressibility integral of — build toward the whole machinery of liquid-state theory, and the requirement that they agree is the foundational reason that approximate closures are tested for thermodynamic consistency. The virial expansion itself appears again in 08.01.01 (the partition function is the generating object whose logarithm the cluster expansion computes) and in 08.02.01 (mean-field theory, where the same resummation produces the Curie-Weiss equation of the magnet). The central insight is that is the meeting point: a microscopic two-body integral on one side and the leading term of the phenomenological van der Waals fit on the other. The bridge is that any short-ranged interaction admits this dual description — graph-resummed (Ursell-Mayer) on the microscopic side, parameter-fit (van der Waals, Redlich-Kwong, Peng-Robinson) on the macroscopic side — and putting these together identifies the van der Waals equation as the Landau mean-field theory of the liquid-gas transition whose critical exponents 08.05.01 generalise beyond mean field via the Wilson renormalisation group.

Exercises Intermediate+

Advanced results Master

Theorem (two pressure routes and thermodynamic consistency). For a classical fluid the compressibility factor admits two integral representations in terms of the pair correlation function: the virial route and the compressibility route . For the exact the two routes coincide; for any approximate closure they differ, and the residual is the standard diagnostic of closure quality.

The equivalence is not a coincidence: both routes are rearrangements of the same configurational integral . The virial route differentiates with respect to volume at fixed particle number; the compressibility route differentiates twice with respect to chemical potential in the grand-canonical ensemble (where number fluctuates). Each manipulation is exact, so the exact satisfies both. Integral-equation theories (Percus-Yevick, hypernetted-chain, Rogers-Young) replace the exact by an approximate solution of the Ornstein-Zernike equation plus a closure, and the closure breaks one of the two identities. The Rogers-Young closure repairs this by mixing the Percus-Yevick and hypernetted-chain closures with a parameter tuned to set .

Theorem (hard-sphere virial series and Carnahan-Starling). For hard spheres of diameter the virial coefficients are temperature-independent pure numbers times : , , , and so on. The Carnahan-Starling Pade resummation [Carnahan-Starling 1969]

recovers the exact and matches simulation data for the hard-sphere fluid to within the percent level up to the freezing transition at .

The hard-sphere fluid is the reference system of liquid-state physics: its equation of state is known from simulation to high precision, and the Carnahan-Starling formula captures it with a closed-form rational function. Real fluids are then treated as a hard-sphere reference plus a perturbative attractive tail (Barker-Henderson, Weeks-Chandler-Andersen theories), a separation that supersedes the van der Waals excluded-volume term with a quantitatively accurate repulsive backbone. The van der Waals form is the crudest possible approximation to the Carnahan-Starling result, valid only at low packing fraction where and .

Theorem (mean-field universality of the liquid-gas transition). The four van der Waals critical exponents , , , are the Landau saddle-point values of the Ising universality class. They are exact above the upper critical dimension and are corrected below by the Wilson-Fisher fixed point to the three-dimensional values , , , .

The identification of the liquid-gas transition with the Ising universality class is structural: both have a scalar order parameter (density deviation for the fluid, magnetisation for the magnet), a symmetry (particle-hole in the lattice-gas formulation of the fluid, spin-flip in the magnet), and a Landau free energy of the same quartic form. The van der Waals equation is the saddle-point evaluation of that Landau functional, and its exponents are the mean-field values. Fluctuations renormalise them below , so the experimental exponents of CO2, argon, and every other simple fluid match the Ising values rather than the van der Waals values. The corresponding-states law survives because it concerns the shape of the coexistence curve in reduced variables, which is universal within the Ising class, while the exponents quantify its singularity at .

Theorem (Joule-Thomson inversion from ). The Joule-Thomson coefficient of a real gas at low pressure is determined by the second virial coefficient: . The inversion temperature at which (the boundary between cooling and heating on expansion) satisfies .

The Joule-Thomson effect — the temperature change of a gas on throttled expansion — is the engineering signature of non-ideality, and its low-pressure behaviour is governed entirely by . For the van der Waals form , the inversion temperature is ... more directly, at inversion gives , so . Every van der Waals gas inverts at twice its Boyle temperature. For CO2 this predicts K, far above room temperature — which is why CO2 cools on expansion at K and is the working fluid of most refrigeration cycles. Hydrogen and helium, with very low , have below room temperature and heat up on expansion at K, a classic exception that any liquefier design must respect.

Synthesis. The virial expansion is the foundational reason that the macroscopic equation of state of any simple fluid is reconstructible from the pair potential and the pair correlation function, and the van der Waals equation is exactly the leading two-term resummation of that expansion into a closed phenomenological form. The central insight is that the two exact routes — the virial theorem applied to and the compressibility integral of — are dual to each other and must agree for the exact , with their disagreement under approximate closures the standard diagnostic of liquid-state theory. Putting these together, the same density-expansion structure generalises to the mean-field critical exponents , which are the Landau saddle-point values that the Wilson-Fisher renormalisation group 08.05.01 corrects below the upper critical dimension . The bridge is that the liquid-gas transition, the Curie-Weiss magnet 08.02.01, and the field theory are three presentations of one mean-field structure whose virial expansion is the Mayer-Ursell cluster series and whose phenomenological closure is the van der Waals equation; the same structure appears again in 08.01.01, where the partition function is the generating object from which all of these expansions descend.

Full proof set Master

Proposition (compressibility equation from number fluctuations). In the grand canonical ensemble the isothermal compressibility satisfies

Proof. In the grand canonical ensemble with . The mean particle number is and its variance is . Since and , differentiating again gives the variance identity. Now . The Gibbs-Duhem relation at fixed gives , so . Substituting: . Dividing by and using together with yields the first equality. For the second, write the pair count with , and subtract the ideal (Poisson) contribution to obtain , which after division by gives the second equality.

Proposition (low-density consistency of the two routes). At low density the virial route and the compressibility route both yield , with .

Proof. The compressibility-route computation is Exercise 4. For the virial route, substitute the low-density form into and isolate the correction. Integrate by parts in : . After inserting and using , the boundary terms vanish for a short-ranged potential and the surviving integral collapses to . A second integration by parts on the thermal piece returns . Multiplying by and collecting: the term is ; the piece is a boundary term that vanishes, and the piece reduces by the above to . Converting to three dimensions, , matching the compressibility route and the cluster result.

Proposition (Ornstein-Zernike divergence at criticality). In the Ornstein-Zernike framework , the structure factor is . At the critical point , so and ; this is the microscopic origin of the mean-field compressibility exponent .

Proof. Fourier-transform the Ornstein-Zernike equation: , giving . The structure factor . The compressibility equation gives . As from above, diverges, which requires the denominator to vanish: . Expanding gives , hence and at mean-field level. The renormalisation group modifies the relation to a non-analytic approach and replaces the exponent with the three-dimensional Ising value .

Connections Master

  • Partition function 08.01.01. The configurational integral is the spatial half of the canonical partition function, and its logarithm is the object that the Ursell-Mayer expansion reorganises into the density series whose coefficients are the virial coefficients . Without the partition function as generating object, neither the cluster expansion nor the two routes to pressure has a setting.

  • Sibling unit on the cluster derivation 08.11.03. The sibling derives the virial coefficients from the grand-canonical Mayer expansion and resums them into the van der Waals equation, then pursues the Yang-Lee zero theorem and the Wilson renormalisation-group view. This unit supplies the complementary side: the phenomenological virial series in the compressibility factor, the pair-correlation-function reconstruction, and the full four-exponent mean-field critical analysis.

  • Mean-field theory 08.02.01. The van der Waals equation is the mean-field equation of state of the liquid-gas transition in the precise sense that the attractive term replaces the actual pair attraction by its density average. This is structurally the same move as the Weiss molecular field of ferromagnetism, and both share the upper-critical-dimension story .

  • Critical exponents 08.05.01. The mean-field exponents derived here are the Landau values that the critical-exponents unit corrects to the three-dimensional-Ising numbers via the Wilson-Fisher fixed point. The liquid-gas transition belongs to the Ising universality class.

  • Correlation functions 08.05.02. The pair correlation function that drives both pressure routes here is the same object whose long-distance behaviour defines the correlation length and its critical divergence . The Ornstein-Zernike tail of is the bridge between the equation of state and the correlation-function singularity.

  • Free energy 08.01.04. Both pressure routes differentiate the Helmholtz free energy , and the Maxwell construction that resolves the van der Waals loop below is the convexification of in at fixed , equivalently the Legendre transform to the Gibbs free energy whose common-tangent construction sets the coexistence pressure.

Historical & philosophical context Master

Johannes Diderik van der Waals presented his equation in his 1873 Leiden thesis Over de Continuiteit van den Gas- en Vloeistoftoestand [van der Waals 1873], introducing the excluded-volume parameter and the attractive-mean-field parameter and deriving the law of corresponding states from the universal reduced form of the equation. The work earned him the 1910 Nobel Prize and supplied the first molecular theory of the liquid-gas transition.

The phenomenological side was completed by Heike Kamerlingh Onnes, who in 1901 [Kamerlingh Onnes 1901] proposed the virial expansion as a systematic, purely empirical description of real-gas isotherms fit from the precise measurements of the Leiden cryogenic laboratory. The virial coefficients became the standard language in which experimental equation-of-state data are reported to this day.

The microscopic foundation arrived in two steps. Harold Ursell in 1927 [Ursell 1927] gave the first expansion of the configurational integral in powers of density using connected-cluster functions, and Joseph Mayer in 1937 [Mayer 1937] reframed it graph-theoretically with the -function , showing that each virial coefficient is a sum over irreducible cluster integrals. The Ornstein-Zernike split of correlations into direct and indirect pieces [Ornstein-Zernike 1914] then turned the compressibility route into a workable computational tool, and its long-range tail at explained critical opalescence. Guggenheim's 1945 corresponding-states compilation [Guggenheim 1945] confirmed that the reduced coexistence curves of eight simple fluids collapse onto a single universal curve — the empirical anchor of the universality hypothesis that the renormalisation group later explained. The Carnahan-Starling resummation [Carnahan-Starling 1969] closed the loop for the hard-sphere reference system, giving liquid-state theory the accurate repulsive backbone that the van der Waals excluded-volume term only crudely approximates.

Bibliography Master

@phdthesis{vanderWaals1873,
  author = {van der Waals, Johannes Diderik},
  title  = {Over de Continu{\"i}teit van den Gas- en Vloeistoftoestand},
  school = {Universiteit Leiden},
  year   = {1873}
}

@article{KamerlinghOnnes1901,
  author  = {Kamerlingh Onnes, Heike},
  title   = {Expression of the Equation of State of Gases and Liquids by Means of Series},
  journal = {Communications from the Physical Laboratory of the University of Leiden},
  number  = {71},
  year    = {1901}
}

@article{Ursell1927,
  author  = {Ursell, Harold D.},
  title   = {The Evaluation of {G}ibbs' Configuration Integral},
  journal = {Proc. Cambridge Phil. Soc.},
  volume  = {23},
  year    = {1927},
  pages   = {685--697}
}

@article{Mayer1937,
  author  = {Mayer, Joseph E.},
  title   = {Statistical Mechanics of Condensing Systems. {I}},
  journal = {J. Chem. Phys.},
  volume  = {5},
  year    = {1937},
  pages   = {67--73}
}

@article{OrnsteinZernike1914,
  author  = {Ornstein, Leonard S. and Zernike, Frits},
  title   = {Accidental Deviations of Density and Opalescence at the Critical Point of a Single Substance},
  journal = {Proc. K. Akad. Wet. Amsterdam},
  volume  = {17},
  year    = {1914},
  pages   = {793--806}
}

@article{Guggenheim1945,
  author  = {Guggenheim, Edward A.},
  title   = {The Principle of Corresponding States},
  journal = {J. Chem. Phys.},
  volume  = {13},
  year    = {1945},
  pages   = {253--261}
}

@article{CarnahanStarling1969,
  author  = {Carnahan, Norman F. and Starling, Kenneth E.},
  title   = {Equation of State for Nonattracting Rigid Spheres},
  journal = {J. Chem. Phys.},
  volume  = {51},
  year    = {1969},
  pages   = {635--636}
}

@book{MayerMayer1940,
  author    = {Mayer, Joseph E. and Mayer, Maria Goeppert},
  title     = {Statistical Mechanics},
  publisher = {John Wiley \& Sons},
  year      = {1940}
}

@book{HansenMcDonald2013,
  author    = {Hansen, Jean-Pierre and McDonald, Ian R.},
  title     = {Theory of Simple Liquids},
  edition   = {4},
  publisher = {Academic Press},
  year      = {2013}
}

@book{PathriaBeale2011,
  author    = {Pathria, R. K. and Beale, Paul D.},
  title     = {Statistical Mechanics},
  edition   = {3},
  publisher = {Elsevier},
  year      = {2011}
}

@book{McQuarrie2000,
  author    = {McQuarrie, Donald A.},
  title     = {Statistical Mechanics},
  publisher = {University Science Books},
  year      = {2000}
}

@book{Kubo1965,
  author    = {Kubo, Ryogo},
  title     = {Statistical Mechanics},
  publisher = {North-Holland},
  year      = {1965}
}