Class 11 · Thermodynamics

Compressing a gas slowly, at a fixed temperature

The piston squeezes the gas while the walls are kept at one temperature. Every molecule the piston speeds up soon hits a wall and gives the extra energy away. So the gas ends no hotter: all the work done on it has left as heat.

or open it full screen → Free, in your browser, nothing to install. Topic: isothermal process.

The textbook's answers

At the starting settings. As it runs, the simulation measures each of these and shows its value beside the textbook's.

Pressure before (atm)6.387
Pressure after, P₁V₁/V₂ (atm)12.77
Work done on the gas, NkT ln(V₁/V₂) (×10⁻²¹ J)717.7
Heat given to the gas (×10⁻²¹ J)-717.7
Temperature after, averaged (K)300

What you can change

Every slider changes the physics, not just the picture: the engine works it all out again.

SettingRangeStarts at
Temperature of the walls150 to 800 K300 K
Length to start with10 to 20 nm16 nm
Length to end with5 to 24 nm8 nm

More in Thermodynamics