PocketSim
C++20 • WebAssembly • WebGL2 • Android GLES3

Interactive Multi-Physics in Your Pocket with PocketSim

A unified 2D hybrid continuum mechanics (MLS-MPM), Eulerian gas dynamics, heat transfer, phase change, and stoichiometric chemistry engine running natively on mobile and the web.

Continuum Mechanics & Fluids

Coupled Moving Least Squares Material Point Method (MLS-MPM) for elastic solids, Drucker-Prager granular powders, incompressible liquids, and buoyant rigid bodies.

Thermodynamics & Phase Transitions

Fourier thermal conduction, radiative heat transfer, latent heat of fusion and vaporization, melting, freezing, boiling, and condensation.

Stoichiometric Chemistry

Arrhenius combustion kinetics, aqueous dissolution, saturation and precipitation, acid-base neutralization, and thermite reactions.

Embeddable Web Components

Drop interactive simulations into any article or course with declarative <pocketsim-sim>, <pocketsim-region>, and <pocketsim-controls> elements.