expansion of a perfect gas into vacuum is related with
Joule expansion The Joule expansion, treated as a thought experiment involving ideal gases, is a useful exercise in classical thermodynamics. It provides a convenient example for calculating changes in thermodynamic quantities, including the resulting increase in entropy of the universe (entropy production) that results from this inherently irreversible process. An actual Joule expansion experiment necessarily involves real gases; the temperature change in such a process provides a measure of intermolecular forces.
Absolute zero At temperatures near 0 K (−273.15 °C; −459.67 °F), nearly all molecular motion ceases and ΔS = 0 for any adiabatic process, where S is the entropy. In such a circumstance, pure substances can (ideally) form perfect crystals as T → 0. Max Planck's strong form of the third law of thermodynamics states the entropy of a perfect crystal vanishes at absolute zero. The original Nernst heat theorem makes the weaker and less controversial claim that the entropy change for any isothermal process approaches zero as T → 0: