Fundamentals / Physics / Thermodynamics and statistical physics

Equations of state and response functions

Use compressibility and thermal expansion to predict what a pressure gauge will record when a material is heated in a closed vessel.

From first principles

Derive ideal-gas pressure from impacts on a wall

Pressure is the normal force on a wall per unit area. Consider \(N\) classical molecules of mass \(m\) in a cubic box of side \(L\). Neglect intermolecular forces and molecular volume. For an elastic collision at a wall perpendicular to the \(x\) axis, a molecule transfers normal momentum \(2m|v_x|\). It visits the same wall once in a round trip of duration \(2L/|v_x|\). Its time-averaged force there is

\[F_{x,1}=\frac{2m|v_x|}{2L/|v_x|}=\frac{mv_x^2}{L}.\]

Sum all contributions and divide by the wall area \(L^2\). With \(V=L^3\), equilibrium isotropy gives

\[\langle v_x^2\rangle=\langle v^2\rangle/3.\]

Classical thermal equilibrium assigns mean energy \(k_BT/2\) to each quadratic velocity component. These inputs give

\[p=\frac{Nm}{V}\langle v_x^2\rangle=\frac{Nm}{3V}\langle v^2\rangle,\]
\[pV=Nk_BT .\]

This equation of state connects three directly measurable quantities at fixed particle number. The kinetic calculation also identifies where a real gas can differ: intermolecular forces transfer momentum, and dense molecules occupy an appreciable fraction of the volume.

Derivation and applications

Connect a sound-speed measurement to two compressibilities

A slowly compressed sample has time to exchange heat with its surroundings. A small sound pulse usually compresses a fluid element faster than heat can diffuse across a wavelength. The elastic response relevant to sound is then nearly adiabatic. Consider a homogeneous single-phase fluid at equilibrium and a small-amplitude pulse. Assume negligible viscosity and thermal diffusion over one oscillation, so the specific entropy of a moving element remains constant.

Let \(v\) be volume per unit mass, \(c_p\) the specific heat at constant pressure, \(\alpha=v^{-1}(\partial v/\partial T)_p\), and \(\kappa_T=-v^{-1}(\partial v/\partial p)_T\). From the specific Gibbs differential \(dg=-s\,dT+v\,dp\), equality of mixed derivatives gives

\[(\partial s/\partial p)_T=-(\partial v/\partial T)_p.\]

The entropy differential determines a fluid element’s temperature change under isentropic compression,

\[ds=\frac{c_p}{T}dT-v\alpha\,dp=0,\qquad \left(\frac{\partial T}{\partial p}\right)_s=\frac{Tv\alpha}{c_p}.\]

Insert this derivative into the volume response \(dv/v=\alpha\,dT-\kappa_T\,dp\). The resulting isentropic compressibility is

\[\kappa_s=-\frac{1}{v}\left(\frac{\partial v}{\partial p}\right)_s=\kappa_T-\frac{Tv\alpha^2}{c_p}=\kappa_T\frac{c_v}{c_p}.\]

The last step uses the heat-capacity difference for a simple compressible material. For \(\rho=1/v\), a density perturbation gives

\[p'=(\partial p/\partial\rho)_s\rho'.\]

Linear momentum balance and continuity then combine into a wave equation with speed \(c\),

\[\partial_t^2\rho'=c^2\nabla^2\rho',\]
\[c^2=\left(\frac{\partial p}{\partial\rho}\right)_s=\frac{1}{\rho\kappa_s}.\]

Adiabatic heating adds a pressure response on compression for an ordinary expanding fluid. The two compressibilities coincide where thermal expansion vanishes.

Worked example

Predict the speed in an ideal gas

For dry model air at \(p=1.00\times10^5\,\mathrm{Pa}\), take \(\rho=1.20\,\mathrm{kg/m^3}\) and \(c_p/c_v=1.40\). Since \(\kappa_T=1/p\), sound propagates at \(\sqrt{1.40p/\rho}=342\,\mathrm{m/s}\). An isothermal model gives \(289\,\mathrm{m/s}\). Comparing the two speeds measures the square root of the heat-capacity ratio under these gas assumptions.

Second application

Infer a heat-capacity ratio for a liquid

An ultrasonic pulse travels at \(1480\,\mathrm{m/s}\) through a liquid of density \(998\,\mathrm{kg/m^3}\). It gives

\[\kappa_s=1/(998\times1480^2)=4.57\times10^{-10}\,\mathrm{Pa^{-1}}.\]

A slow isothermal experiment gives \(4.65\times10^{-10}\,\mathrm{Pa^{-1}}\). Their ratio yields \(c_p/c_v=1.017\), which explains why the choice of compressibility produces a much smaller acoustic correction for this liquid.

Try it · Sound compressibility

Vary the physical parameters in the derived relation. Use the units and assumptions in the readout to connect the curves to the two worked examples. A parameter study can test the forward prediction; the same relation can then be inverted to infer a parameter from a measurement.

Decide which variables specify a state

An equilibrium sample of one simple phase and fixed composition can be described by pressure, volume and temperature related by an equation of state. A piston experiment can prescribe pressure while changing volume; a sealed rigid vessel instead fixes volume. The distinction matters because the same temperature change can lead to expansion in one apparatus and a large pressure increase in the other. Assume quasistatic measurements so that a single pressure and temperature describe the sample.

An equation of state is a constitutive statement. The ideal-gas relation \(pV=nRT\) treats particles as dilute enough for their mutual interactions to have negligible effect on the measured pressure. An incompressible-liquid approximation often gives an adequate volume balance at a chosen pressure but can make a constrained heating problem ill posed if applied literally. Both small thermal expansion and small but finite compressibility may be needed to compute the pressure response.

Describe a neighbourhood of equilibrium

Treat volume as a differentiable function \(V(T,p)\) near a reference state. Its total differential contains the two independent slopes \((\partial V/\partial T)_p\) and \((\partial V/\partial p)_T\). Define the two responses at their respective fixed controls,

\[\begin{aligned} \alpha &= \frac{1}{V}\left(\frac{\partial V}{\partial T}\right)_p,\\ \kappa_T &= -\frac{1}{V}\left(\frac{\partial V}{\partial p}\right)_T. \end{aligned}\]

Ordinary mechanically stable material contracts when pressure increases, which gives positive isothermal compressibility. Inserting both definitions into the volume differential gives

\[\frac{dV}{V}=\alpha\,dT-\kappa_T\,dp.\]

Both terms are dimensionless. Expansion has units of inverse kelvin, while compressibility has units of inverse pascal. For fixed volume the pressure slope is

\[(\partial p/\partial T)_V=\alpha/\kappa_T.\]

This relation is a consequence of using the same volume differential. It does not assume a particular molecular model and it remains informative for a liquid for which the ideal-gas equation would give a poor answer.

For an ideal gas at fixed amount, differentiating \(V=nRT/p\) gives

\[\alpha=1/T,\]
\[\kappa_T=1/p.\]

Their ratio is \(p/T\), as follows independently from \(p=nRT/V\). At 300 K and 100 kPa, warming a sealed ideal gas by 3.0 K raises the pressure by 1.0 kPa. At fixed pressure instead the relative volume increase is one percent.

Background · Why do slow compression tests and sound measure different moduli?

For a sealed ideal gas in thermal contact with a bath, a sufficiently slow compression allows heat to escape and fixes \(T\). Then \(pV\) is constant. During a short, nearly reversible acoustic oscillation in the bulk there can be too little time for heat to leave the compressed fluid element. For this adiabatic limit \(pV^\gamma\) is constant. Differentiate at the same initial pressure.

\[K_T=-V\left(\frac{\partial p}{\partial V}\right)_T=p,\]
\[K_S=-V\left(\frac{\partial p}{\partial V}\right)_S=\gamma p.\]

At one bar and \(\gamma=1.4\) the moduli are 100 and 140 kPa. Each measures the response at the same equilibrium state, under a different thermal constraint. In a narrow tube heat can diffuse to the wall during a cycle. The appropriate limit depends on whether the thermal diffusion length is small or large compared with the tube radius.

Separate intensive, extensive and measured responses

Doubling the amount of material at the same temperature and pressure doubles volume but leaves the two normalised coefficients unchanged. Such intensive coefficients can be compared across samples. A vessel’s own volume, however, can respond to both pressure and temperature. If its expansion coefficients are appreciable, the measured pressure slope describes the coupled sample and vessel. One cannot simply substitute the unconstrained expansion of the sample into a rigid-vessel formula.

To see this, let the vessel’s fractional volume response be \(\alpha_v\,dT+C_v^{\rm vessel}dp\), where its mechanical compliance is positive for an internal pressure increase. Equal fractional changes of vessel and sample give

\[(\alpha-\alpha_v)dT=(\kappa_T+C_v^{\rm vessel})dp.\]

A compliant wall reduces the pressure rise, and a vessel that expands just as much as the sample can nearly cancel the temperature signal. Here the symbol for vessel compliance denotes a mechanical quantity and has different units from heat capacity.

Compare liquid and container data

Take a representative liquid with \(\alpha=2.5\times10^{-4}\) K⁻¹ and \(\kappa_T=5.0\times10^{-10}\) Pa⁻¹ near its operating point. In an ideally rigid container, a 2.0 K increase gives \(\Delta p\simeq1.0\) MPa. The unconstrained volume change at fixed pressure would be only 0.050%. This combination explains how a small fractional expansion can produce a significant pressure response when the fluid is only weakly compressible.

If the container has \(\alpha_v=5.0\times10^{-5}\) K⁻¹ and \(C_v^{\rm vessel}=3.0\times10^{-10}\) Pa⁻¹, the same warming gives about 0.50 MPa. Inverting a measured slope without the vessel data could thus give a misleading estimate of compressibility. These are local linear predictions. Over a broad pressure or temperature range the coefficients must be evaluated along the path, and crossing a phase boundary can invalidate the single-phase differential altogether.

Convert an isobaric calorimeter reading into an isochoric one

A sample can absorb different amounts of heat per kelvin depending on which variable is held fixed. For a fixed amount of a simple, single-phase material in equilibrium,

\[C_V=T(\partial S/\partial T)_V,\]
\[C_p=T(\partial S/\partial T)_p.\]

Apply the chain rule to \(S(T,V)\) along the constant-pressure path. Subtracting the two derivatives leaves the effect of expansion. From \(dF=-S\,dT-p\,dV\) equality of mixed derivatives gives

\[(\partial S/\partial V)_T=(\partial p/\partial T)_V.\]

Therefore

\[C_p-C_V=T\left(\frac{\partial p}{\partial T}\right)_V\left(\frac{\partial V}{\partial T}\right)_p=\frac{TV\alpha^2}{\kappa_T}.\]

Here \(\alpha\) is the volume expansion coefficient and \(\kappa_T\) the isothermal compressibility. The last equality uses \(dV/V=\alpha dT-\kappa_Tdp\). For a mechanically stable material \(\kappa_T>0\), so the difference is nonnegative even for a material that contracts when warmed. For one mole of ideal gas, inserting \(\alpha=1/T\), \(\kappa_T=1/p\) and \(pV=RT\) gives

\[C_p-C_V=R.\]

At 300 K a solid has molar volume \(1.20\times10^{-5}\) m³/mol, volumetric expansion coefficient \(6.00\times10^{-5}\) K⁻¹ and bulk modulus \(B_T=1/\kappa_T=100\) GPa. The molar difference is \(TV_m B_T\alpha^2=1.30\) J/(mol K). A constant-pressure measurement of 25.0 J/(mol K) thus implies \(C_{V,m}=23.7\) J/(mol K). For a cubic solid the linear expansion coefficient is approximately one third the volume coefficient. Using it directly in this formula would underestimate the correction ninefold. This conversion matters when comparing a tabulated calorimetric result with a vibrational model calculated at fixed volume.

Practise on sheet 1 · Test a calorimeter conversion near zero expansion. Further reading · University of Edinburgh · Junior Honours Thermodynamics · Topic 9, “How to find the difference in heat capacities, CP − CV”.

Predict the temperature change of a throttled gas

Some pressure changes take place in flowing rather than closed matter. Consider a well-insulated porous plug that sustains a pressure difference between two steady streams of the same single-phase gas. There is no shaft work and inlet and outlet speeds and heights have negligible differences in kinetic and gravitational energy. Flow work at each end is already included in the molar enthalpy \(h=u+pv\). The steady energy balance then gives

\[h_{\rm out}=h_{\rm in}.\]

A pressure drop through the restriction can nevertheless change temperature if the gas is nonideal.

From \(dh=T\,ds+v\,dp\) and the Maxwell relation \((\partial s/\partial p)_T=-(\partial v/\partial T)_p\), write the enthalpy differential in terms of \(T,p\). The coefficient of \(dT\) at fixed pressure is the molar heat capacity \(c_p\). Setting \(dh=0\) gives the Joule–Thomson coefficient

\[\mu_{\rm JT}=\left(\frac{\partial T}{\partial p}\right)_h=\frac{T(\partial v/\partial T)_p-v}{c_p}=\frac{v(T\alpha-1)}{c_p}.\]

For an ideal gas \(\alpha=1/T\), so an isenthalpic throttle produces no temperature change. Isentropic expansion in a turbine is a different process. A throttle's pressure drop is irreversible; constant enthalpy follows here from the steady energy balance and does not imply constant entropy.

Estimate a small temperature drop from gas data

Near a chosen operating point let the low-pressure molar volume be \(v=RT/p+B(T)\), retaining a second virial coefficient \(B=b-a/(RT)\). Here \(a\) and \(b\) characterize an approximate real-gas equation of state. The ideal-volume term cancels in \(T(\partial v/\partial T)_p-v\). The remaining numerator is \(TB'-B=2a/(RT)-b\). At fixed local heat capacity, attractions and excluded volume therefore compete in determining the sign of the temperature response.

Take \(a=0.140\) Pa m⁶/mol², \(b=4.00\times10^{-5}\) m³/mol, \(T=300\) K and \(c_p=29.0\) J/(mol K). Then \(2a/(RT)=1.12\times10^{-4}\) m³/mol and \(\mu_{\rm JT}=2.49\times10^{-6}\) K/Pa, or 0.249 K/bar. A pressure change of \(-2.0\) bar predicts temperature change \(-0.50\) K if the properties remain close to these values. The leading model changes sign at \(T=2a/(Rb)=842\) K. This inversion estimate should not be extrapolated into a dense or multiphase region. A proper finite pressure drop integrates the measured local coefficient along an isenthalp. Recording both enthalpy balance and inlet-to-outlet entropy increase offers an independent test of whether unwanted heat transfer through the apparatus affected the result.

The entropy change of the throttled stream can be checked without a calorimeter. Along an isenthalp the Gibbs relation gives

\[ds=-v\,dp/T.\]

Since molar volume and temperature are positive, any pressure decrease raises the molar entropy. Even when an ideal gas shows zero temperature change, its pressure decrease leaves a positive entropy difference. This reveals precisely why absence of observed cooling is insufficient evidence for thermodynamic reversibility. A pressure reading, inlet temperature and appropriate volume data together supply a sign test independently of the small temperature slope used to estimate the Joule–Thomson coefficient.

An independent heat-leak estimate is particularly important near inversion, where a small parasitic heat flow can dominate the intrinsic temperature change.

Find the mechanically unstable part of an isotherm

Use the reduced van der Waals equation \(p=8t/(3v-1)-3/v^2\). At fixed temperature a stable homogeneous phase must have positive isothermal compressibility, which requires a negative slope on this graph. Locate any interval in which the model reverses that slope.

Find the mechanically unstable part of an isotherm. Horizontal axis: Molar volume / critical volume. Vertical axis: Pressure / critical pressure. Data follow the figure.
Below the critical temperature, larger pressures along the rising segment of the formal loop correspond to larger volumes. This implies negative isothermal compressibility. The homogeneous state is mechanically unstable there, and equilibrium coexistence replaces part of the curve with a constant-pressure tie line.
Try it · Vdw

Change the inputs and compare the recalculated curves with the preceding derivation and baseline figure. The axes give the units; the numerical readout states the model assumptions and any limiting cases. Reset the inputs to return to the reference setting.

Read values from the plot
Pressure / critical pressure at selected values of Molar volume / critical volume.
Molar volume / critical volumeT/Tc = 0.9T/Tc = 1T/Tc = 1.1
0.531.52342.87944.2353
1.39970.719360.969441.2195
2.26930.657130.794870.93261
3.13030.551910.647250.74259
40.467050.539770.6125

Download all 400 plotted samples (CSV)

Study the full derivation

Pair correlations, the virial gas and a pressure measurement · Statistical mechanics from microscopic counting to material response

A dilute nonideal gas can display almost ideal pressure while its particles strongly avoid one another at short distance. Connect a two-particle interaction to pressure, internal energy and a measurable pair correlation. Then use the resulting integral equations to ask which features of a potential can actually be inferred from a limited set of pressure readings.