Compression Heating

Set the volume of the gas, V=, and the number of steps nstep= to reach this volume.

Reset

Work is usually done whenever volume is changed.  Change the volume and observe the increase or decrease in temperature.  If you change the pressure very slowly, i.e., use a large number of steps, you can approximate adiabatic compression or expansion.   If, on the other hand, you expand the volume in a single step, you will approximate free expansion into a vacuum.