The calculation of the thermodynamic properties of the van der Waals fluid is not trivial and most of its properties are rarely discussed because of mathematical difficulties. I describe a numerical approach that produces the full thermodynamic behavior of the van der Waals fluid with little effort. The numerical approach is particularly useful for showing the behavior of the specific heat, the isothermal compressibility, and the coefficient of thermal expansion at and near the critical point. The results of these computations show some surprising properties and give new insights into the mean-field description of the liquid-gas transition.

1.
J. D.
van der Waals
, “Over de Continuteit van den Gas-en Vloeistoftoestand” (On the continuity of the gas and liquid state), Doctoral thesis,
University of Leiden
,
1873
.
2.

Figures similar to those in this paper were made with vpython during my thermal physics courses and can be produced from the vpython programs that are included in the supplemental materials. The figures in this paper were produced with matplotlib (<matplotlib.org>), which is a Python 2D plotting library that produces figures of higher quality for publication. Both vpython and matplotlib are excellent for teaching.

3.
R. H.
Swendsen
,
An Introduction to Statistical Mechanics and Thermodynamics
(
Oxford U.P.
,
New York
,
2012
).
4.
See supplemental material at http://dx.doi.org/10.1119/1.4819166 for plots for the figures in this paper plus additional plots and the vpython program listings that produced the plots.

Supplementary Material

AAPT members receive access to the American Journal of Physics and The Physics Teacher as a member benefit. To learn more about this member benefit and becoming an AAPT member, visit the Joining AAPT page.