You're reading the public-facing archive of the Category Theory Zulip server.
To join the server you need an invite. Anybody can get an invite by contacting Matteo Capucci at name dot surname at gmail dot com.
For all things related to this archive refer to the same person.
There's some weird stuff going on with the Carnot Engine if we think about it from a statistical mechanical perspective.
While the gas is thermally connected to a heat bath, the ensemble for its state is a canonical ensemble. Thus, when we close the connection with the heat bath, the ensemble should still be a canonical ensemble, because we haven't observed that it is at a specific energy. But now we are in a very weird state, we know that energy can't flow in or out (which is typically accompanied by a microcanonical ensemble), but we are in a canonical ensemble!!
I now am going to see what happens as we slowly expand the chamber by slowly decreasing the external pressure, I expect what will happen is that we evolve to some weird non-canonical ensemble!!
This is an excellent thing to think about! Someone must have studied the stat mech of the Carnot engine, but I haven't seen it.
It'll be interesting to see what happens when you start with a canonical ensemble and then expand that chamber without heat flowing in or out. It's supposed to be changing "isentropically", right?
I wrote a blog article about the Carnot cycle which I can use as cheat sheet:
This is a handwavy physics argument, but I'd naively expect that when you take that microcanonical-ensemble-that-looks-like-a-canonical-ensemble and slowly decrease the external pressure, you'll end up in another microcanonical-ensemble-that-that-looks-like-a-canonical-ensemble at a different temperature. My non-rigorous reasoning is that if that didn't happen then in the next step in the Carnot cycle, when you connect the system to another heat bath at a lower temperature, the system would not be in equilibrium with the new heat bath. So there would be a loss of free energy / gain in the universe's entropy as they equilibriate, and the Carnot cycle wouldn't be reversible.
Or maybe there really are losses of that kind and they vanish in the thermodynamic limit somehow? I don't really know.
That makes a lot of sense to me Nathaniel!
I'm having trouble doing the rigorous mathematical argument behind it though. I.e., if I have one particle whose energy is known, I can compute the decrease in that energy as pressure decreases and the chamber expands. But in order for the pressure to be constant when the energy is random I need to have many particles so I can apply the law of large numbers. Then each of these particles is giving up some kinetic energy when they hit the boundary of the chamber, but figuring out exactly how this works is not obvious to me.
Oh, maybe I have a solution.
We can assume that each particle transfers momentum into the barrier continuously.
There's something else going on that's weird here.
While we are connected to the heat bath, the canonical ensemble assumption is borne out by time-averaging, which means that we can simplify by just working with one particle. However, once we are no longer connected to the heat bath, we can't rely on time-averaging, we can only do particle-averaging. I.e., if we have many particles, each of which are independent, then averaging across all the particles gives us estimates according to the canonical distribution. But averaging a single particle over time no longer does that.
Which means that we have a make a LLN argument to say that there is in fact a well-defined pressure
For any finite number of particles, as soon as we close off the heat bath, pressure becomes a random variable, that approaches a constant as .
I think actually what's going on here is that the canonical ensemble and the microcanonical ensemble end up being the same as , as the energy of the canonical ensemble goes to a constant.
And the distribution energies for an individual particle in the microcanonical ensemble becomes approximately canonical.
So basically, as , we can approximate the Carnot cycle by actually saying that we're in a canonical ensemble when we are in contact with the heat bath, and in a microcanonical ensemble with energy equal to the expectation of energy of the canonical ensemble when we are not in contact with the heat bath.
It then makes sense to say that we shift along microcanonical ensembles as we decrease pressure, as we are giving up energy by doing work on the barrier, but that energy could come from any of the particles, so we know nothing about the new ensembles except for their new amount of energy.
So in practice @Nathaniel Virgo, I think there are losses of free energy somehow, but as , the losses go to because there's no difference between the canonical and microcanonical ensembles.
I'm now going to actually do the calculation for the microcanonical ensemble of why entropy stays constant.
I expect it's because the velocities of the particles lose entropy, because we know that they are getting smaller, but the positions of the particles gain entropy, because they could be over a larger space.
OK, I've done the calculations, and it works out. I now want to know why!!
It feels very quantum actually. As we increase the volume of the box, we know less about the positions of the particles, but more about their momentum
Isentropicness feels very much like the uncertainty principle
I.e., whatever we do, the sum of the entropies of the position and momentums remains constant
@John Baez thoughts about this?
Also, I'll put the derivation here for anyone interested.
Suppose that there are particles in a 1-dimensional box . The total energy of all the particles is . Then if we take the microcanonical distributions, we approximately have independent particles, each of which has position uniformly distributed in and momentum normally distributed with mean and variance , where is the mass of a single particle.
The average velocity of a particle is . This means that each particle impacts the right-hand wall once every seconds, and transfers a momentum of into the wall. Thus, the force on the wall from all the particles is
This gives a differential equation for energy as a function of length that we can solve, because the work done on the wall is equal to the decrease in energy.
Solving this gives
We can now compute the total entropy as a function of . The entropy of the positions of the particles is simply . The entropy of the momenta of the particles is . Recall that , so this reduces to
Thus, the sum of the entropies of position and momentum are
which is a constant.
I feel that this doesn't really answer why the entropy is a constant, it just sort of happened to work out that way.
Of course, the units don't work out, but that's because I haven't bothered to add in various constants for entropy that properly speaking should be in there
I'm going to refresh my memory on the quantum analogue of this system to see if I can dredge any insight from that.
are you sure that ?
It feels like the 2 should be on the numerator, if I understand what you are doing
(This seems also what you did when you derived )
No, I'm not sure, let me check
Yes, you are right
Yeah, I did the correct thing later on though
It feels like this should be related to the general results about the equivalence between ensembles in the thermodynamic limit. (See this paper by Touchette, for example.) I wonder if one could start from those kinds of result and show that the change in entropy always has to be zero, for any system where they hold? (This is just a guess.)
Somehow I don't think so, i.e. I believe that this is relevant to the other issue of the transition between stages of the carnot cycle, but I don't think that has much bearing on the change in entropy within an isentropic stage.
I think what I really need is a statistical-mechanical understanding of , the classical heat transfer.
(which is a 1-form that is not the differential of a 0-form)
(I.e., is not a state function)