Lably
Skip to content

Isothermal–isobaric ensemble

  • 4 min read
  • 2 chapters

Related on Lably

Through Gibbs free energy and Ideal gas

In the ensemble, the probability of a microstate i is Z−1e−β(E(i)+pV(i)), where Z is the partition function, E(i) is the internal energy of the system in microstate i, and V(i) is the volume of the system in microstate i.

The probability of a macrostate is Z−1e−β(E+pV−TS)=Z−1e−βG, where G is the Gibbs free energy.

Derivation of key properties

The partition function for the NpT-ensemble can be derived from statistical mechanics by beginning with a system of N identical atoms described by a Hamiltonian of the form p2/2m+U(rn) and contained within a box of volume V=L3. This system is described by the partition function of the canonical ensemble in 3 dimensions:

Zsys(N,V,T)=1Λ3NN!∫0L...∫0LdrNexp⁡(−βU(rN)),

where Λ=h2β/(2πm), the thermal de Broglie wavelength (β=1/kBT and kB is the Boltzmann constant), and the factor 1/N! (which accounts for indistinguishability of particles) both ensure normalization of entropy in the quasi-classical limit. It is convenient to adopt a new set of coordinates defined by Lsi=ri such that the partition function becomes

Zsys(N,V,T)=VNΛ3NN!∫01...∫01dsNexp⁡(−βU(sN)).

If this system is then brought into contact with a bath of volume V0 at constant temperature and pressure containing an ideal gas with total particle number M such that M−N≫N, the partition function of the whole system is simply the product of the partition functions of the subsystems:

Zsys+bath(N,V,T)=VN(V0−V)M−NΛ3MN!(M−N)!∫dsM−N∫dsNexp⁡(−βU(sN)).

The integral over the sM−N coordinates is simply 1. In the limit that V0→∞, M→∞ while (M−N)/V0=ρ stays constant, a change in volume of the system under study will not change the pressure p of the whole system. Taking V/V0→0 allows for the approximation (V0−V)M−N=V0M−N(1−V/V0)M−N≈V0M−Nexp⁡(−(M−N)V/V0). For an ideal gas, (M−N)/V0=ρ=βP gives a relationship between density and pressure. Substituting this into the above expression for the partition function, multiplying by a factor βP (see below for justification for this step), and integrating over the volume V then gives

Δsys+bath(N,P,T)=βPV0M−NΛ3MN!(M−N)!∫dVVNexp⁡(−βPV)∫dsNexp⁡(−βU(s)).

The partition function for the bath is simply Δbath=V0M−N/[(M−N)!Λ3(M−N). Separating this term out of the overall expression gives the partition function for the NpT-ensemble:

Δsys(N,P,T)=βPΛ3NN!∫dVVNexp⁡(−βPV)∫dsNexp⁡(−βU(s)).

Using the above definition of Zsys(N,V,T), the partition function can be rewritten as

Δsys(N,P,T)=βP∫dVexp⁡(−βPV)Zsys(N,V,T),

which can be written more generally as a weighted sum over the partition function for the canonical ensemble

Δ(N,P,T)=∫Z(N,V,T)exp⁡(−βPV)CdV.

The quantity C is simply some constant with units of inverse volume, which is necessary to make the integral dimensionless. In this case, C=βP, but in general it can take on multiple values. The ambiguity in its choice stems from the fact that volume is not a quantity that can be counted (unlike e.g. the number of particles), and so there is no “natural metric” for the final volume integration performed in the above derivation. This problem has been addressed in multiple ways by various authors, leading to values for C with the same units of inverse volume. The differences vanish (i.e. the choice of C becomes arbitrary) in the thermodynamic limit, where the number of particles goes to infinity.

The NpT-ensemble can also be viewed as a special case of the Gibbs canonical ensemble, in which the macrostates of the system are defined according to external temperature T and external forces acting on the system J. Consider such a system containing N particles. The Hamiltonian of the system is then given by H−J⋅x where H is the system's Hamiltonian in the absence of external forces and x are the conjugate variables of J. The microstates μ of the system then occur with probability defined by

p(μ,x)=exp⁡[−βH(μ)+βJ⋅x]/Z

where the normalization factor Z is defined by

Z(N,J,T)=∑μ,xexp⁡[βJ⋅x−βH(μ)].

This distribution is called generalized Boltzmann distribution by some authors.

The NpT-ensemble can be found by taking J=−P and x=V. Then the normalization factor becomes

Z(N,J,T)=∑μ,{ri}∈Vexp⁡[−βPV−β(p2/2m+U(rN))],

where the Hamiltonian has been written in terms of the particle momenta pi and positions ri. This sum can be taken to an integral over both V and the microstates μ. The measure for the latter integral is the standard measure of phase space for identical particles: dΓN=1h3N!∏i=1Nd3pid3ri. The integral over exp⁡(−βp2/2m) term is a Gaussian integral, and can be evaluated explicitly as

∫∏i=1Nd3pih3exp⁡[−β∑i=1Npi22m]=1Λ3N .

Inserting this result into Z(N,P,T) gives a familiar expression:

Z(N,P,T)=1Λ3NN!∫dVexp⁡(−βPV)∫drNexp⁡(−βU(r))=∫dVexp⁡(−βPV)Z(N,V,T).

This is almost the partition function for the NpT-ensemble, but it has units of volume, an unavoidable consequence of taking the above sum over volumes into an integral. Restoring the constant C yields the proper result for Δ(N,P,T).

From the preceding analysis it is clear that the characteristic state function of this ensemble is the Gibbs free energy,

G(N,P,T)=−kBTln⁡Δ(N,P,T)

This thermodynamic potential is related to the Helmholtz free energy (logarithm of the canonical partition function), F, in the following way:

G=F+PV.

Sign in to keep reading

One more chapter is free with a Lably account.

More in Physics