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.
Boyle's law Or Boyle's law is a gas law, stating that the pressure and volume of a gas have an inverse relationship, when temperature is held constant. If volume increases, then pressure decreases and vice versa, when temperature is held constant.