Real Gas Second Virial Coefficient: Potential, Mayer Integrand and B2(T) (2D)
The Lennard-Jones potential, the integrand whose area is B2, the B2(T) curve with its sign change at the Boyle temperature, and a box of molecules with live pressure. Same shared model and numerical checks as the 3D version.
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.
The Lennard-Jones potential, the integrand whose area is B2, the B2(T) curve with its sign change at the Boyle temperature, and a box of molecules with live pressure. Same shared model and numerical checks as the 3D version.
2D · HTML5 Canvas 2D · 60 FPS target · runs fully client-side, no install