- #1
Mayan Fung
- 131
- 14
In the discussion of the pressure in macrocanonical ensemble, I found in textbook that:
##dW = \bar p dV## (##dW## is in fact d_bar W, yet I can't type the bar)
The derivation goes like:
##\bar p = \frac{1}{Z} \sum_{r} e^{-\beta E_r} (-\frac{\partial E_r}{\partial V}) = ... = \frac{1}{\beta} \frac{\partial lnZ}{\partial V}##
However, ## E = TdS - pdV## and in macrocanonical ensemble, we have ##T,V,N## as variables. That means ##\frac{\partial E_r}{\partial V} = (\frac{\partial E_r}{\partial V})_{T,N}## but not keeping entropy ##S## constant.
I am confused about why we can use ##\frac{\partial E_r}{\partial V}## in the above derivation
##dW = \bar p dV## (##dW## is in fact d_bar W, yet I can't type the bar)
The derivation goes like:
##\bar p = \frac{1}{Z} \sum_{r} e^{-\beta E_r} (-\frac{\partial E_r}{\partial V}) = ... = \frac{1}{\beta} \frac{\partial lnZ}{\partial V}##
However, ## E = TdS - pdV## and in macrocanonical ensemble, we have ##T,V,N## as variables. That means ##\frac{\partial E_r}{\partial V} = (\frac{\partial E_r}{\partial V})_{T,N}## but not keeping entropy ##S## constant.
I am confused about why we can use ##\frac{\partial E_r}{\partial V}## in the above derivation