If we take an enormous amount of molecules (an ensemble), the laws of statistical thermodynamics become valid: we can use them to make predictions of the macroscopic behavior of the ensemble.
I was thinking, a galaxy has an enormous amount of stars and planets. If we consider them to be particles (in a galactic ensemble, made of stars instead of molecules), then we should be able to use the same laws of statistical thermodynamics as before.
We will be replacing microscopic with astronomic dynamics, to make predictions about how the galaxy behaves. We could have analogous versions of temperature, entropy, partition functions, etc. But for a star-gas instead of an oxygen-gas.
Has this model been tried? Could it provide new insight on astronomy?