Ok, I feel a bit silly asking this. I'm asking in relation to this question here on the molecular basis of hydrostatic pressure in a gas. There's been quite a bit of discussion and one of the commenters has confused me by suggesting that:
The kinetic energy of an ideal gas is only related to the temperature through the internal energy. Typically all contributions to internal energy are ignored other than kinetic energy, however, in this scenario the gravitation contribution to internal energy is not negligible. I agree that a isothermal profile maximizes entropy and thus is the steady state, however that constant temperature means constant internal energy not kinetic energy
He seems to be suggesting that, because internal energy of a gas should include gravitational potential energy (GPE), gas temperature should be related to gravitational potential (not just kinetic energy of the molecules). That would suggest that a region of gas molecules could have more kinetic energy but the same temperature as another region of molecules higher up, because the molecules have lower GPE.
This seems wrong to me, as my understanding is that temperature is linked to the average kinetic energy of the gas molecules and has nothing to do with gravitational potential. If his theory were correct, then if I had a quantity of gas in a sealed, perfectly insulating container and I took it from sea level up Mount Everest, then its temperature would increase just because the gravitational potential has increased. This would seem to violate the conservation of energy (because now the gas has extra thermal energy as well as increased GPE) as well as the ideal gas law (because the pressure and density have not changed, but the temperature has).
I'm looking for some confirmation one way or the other of which of us is correct. If anyone knows of any reliable references that deal with this or can provide a convincing counter-example, that would be great.