Home▸Chemistry & Materials▸Real Gas Second Virial Coefficient: Potential, Mayer Integrand and B2(T) (2D)

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.

Chemistry & Materials2DModerate60 FPS📱 Mobile-adapted🟠 Blender⇄ 3D version
Real Gas Second Virial Coefficient: Potential, Mayer Integrand and B2(T) (2D) ↗ Open standalone

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.

⚙ Under the hood

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.

Virial CoefficientLennard-JonesBoyle TemperatureReal GasCompressibility

2D · HTML5 Canvas 2D · 60 FPS target · runs fully client-side, no install

What did you find?

Add reproduction steps (optional)