I have a doubt on systems for which the entropy reduces to configurational entropy (no momentum contribution): for example, hard rods (http://www.sklogwiki.org/SklogWiki/index.php/1-dimensional_hard_rods).
For a hard rod gas, the energy is identically $0$ and the entropy does not depend on the energy. The partition function is $$Z = \frac{(L - N \sigma)^N}{N!} $$ $L$ being the length of the available space, $\sigma$ the rod size and $N$ the number of rods. The free energy is then computed as $$ A = -kT \log Z$$.
Ok, but what does it mean for a hard rod gas to be in equilibrium with a heat bath?
Does not thermal equilibrium at a temperature $T$ imposes the condition $$\frac{1}{T} = \Big(\frac{\partial S}{\partial E} \Big) _{L,N}$$ ? For a hard rod gas the entropy $S$ does not depend on the energy $E$, so the inverse of the temperature must equal $0$.
In other words, if I provided heat to a hard rod gas, where would it go? There is nothing in the system that can "warm up", as the total energy equals identically $0$.
What am I missing?