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.
Gas constant The gas constant is also known as the molar, universal, or ideal gas constant, denoted by the symbol R or R and is equivalent to the Boltzmann constant, but expressed in units of energy per temperature increment per mole, i.e. the pressure-volume product, rather than energy per temperature increment per particle. The constant is also a combination of the constants from Boyle's law, Charles's law, Avogadro's law, and Gay-Lussac's law. It is a physical constant that is featured in many fundamental equations in the physical sciences, such as the ideal gas law and the Nernst equation.