Virial Coefficients via Emscripten

The pages below compute virial coefficients for simple spherical models:

The code to compute virial coefficients on this site are all written in C and C++. emscripten is used to compile the programs with WebAssembly as the target; the WebIDL Binder is used to expose an object-oriented interface to the C++ code. Performance in JavaScript is slower than the same prorgams compiled as C programs, but still dramatically faster than a native JavaScript implementation. In some cases, (MSMC, computing B(T) parametrically or computing Bn at a single temperatrue with varying accuracy) the work is split into smaller pieces (a short run of steps for MSMC) and control is returned to the browser after each piece.

Please report bugs, errors, suggestions to Andrew Schultz at

Etomica home