Gas under the piston
B2(T): zero crossing = Boyle temperature

Real Gas Second Virial Coefficient: Potential, Mayer Integrand and B2(T) (2D)

Compress a real gas in a piston cylinder and see when molecular attraction or repulsion wins. Pick a gas, temperature and density to get the Lennard-Jones second virial coefficient from numerical quadrature of the Mayer function, the Boyle temperature, the compressibility factor and the pressure against an ideal gas. Cylinder, piston, gauge and heater modelled in Blender, with numerical checks built in.

Made with 🟠 Blender