When an ideal gas undergoes unrestrained expansion, no cooling occurs because the molecules
In case of free expansion of an ideal gas, cooling or heating does not happen because no attractive forces exist between the molecules.
In case of free expansion of real gas, its temperature may increase or decrease depending on the initial temperature and pressure.