Virial criterion for Joule-Thomson cooling (source code)

= Virial criterion for Joule-Thomson cooling

For a dilute <gas> with the truncated <virial expansion>
$$
p=k_BT[n+B_2(T)n^2],\qquad n=N/V,
$$
let $N$ be fixed particle number and let $C_p$ be the whole sample's <heat capacity at constant pressure>. The <Joule-Thomson coefficient> is
$$
\mu_{\rm JT}=\frac{N[TB_2'(T)-B_2(T)]}{C_p[1+2B_2(T)n]}.
$$
This follows by differentiating the <equation of state> at fixed <pressure> and substituting into $\mu_{\rm JT}=[T(\partial V/\partial T)_p-V]/C_p$. On a mechanically stable dilute branch with $C_p>0$ and $1+2B_2n>0$, a pressure drop cools the <gas> exactly when $TB_2'-B_2>0$, equivalently $d(B_2/T)/dT>0$. The expression is exact for the displayed truncated model; neglected higher <virial coefficients> limit its accuracy at greater <number density>.