An adiabatic process trades no heat with the surroundings (Q = 0): the work done on the gas goes into its internal energy, dU = −P dV. For an ideal gas this gives P·Vγ = const and T·Vγ−1 = const, with γ = CP/CV = 1 + 2/f (f = active degrees of freedom: 3 for a monatomic gas, 5 for a diatomic gas at room temperature, giving 5/3 and 7/5).
The orange curve and the readouts V, P, T are this textbook law. The molecules are real, not decoration: 120 particles with 3-D velocities hit a moving piston and exchange energy in random binary collisions (diatomic molecules also exchange rotational energy), so their temperature emerges from the motion. The "T from molecules" readout and the blue ring on the P–V graph show that measurement; because 120 molecules fluctuate by about ±5 % it is smoothed over 0.6 s.
Simplifications: point particles in a 1 × 1 × L box, no wall conduction, no friction or leakage; the ideal adiabat assumes a reversible (slow) piston. Speed the cycle up or drag the slider quickly and the piston gets close to the molecular speed, so the real gas heats more than the curve predicts (irreversible compression). The vibrational modes of air are frozen out below ~1000 K and ignored. Colours: blue = slow, red = fast molecules.
Flat companion to the 3D adiabatic-process-lab simulation. Backdrop, steel wall, piston and molecule sprites were rendered in Blender.