Correlation 4.10.0
An Analysis Tool for Liquids and for Amorphous Solids
Loading...
Searching...
No Matches
wasm_bindings.cpp File Reference

Emscripten bindings for running Correlation in the browser. More...

Detailed Description

Emscripten bindings for running Correlation in the browser.

License
SPDX-License-Identifier: AGPL-3.0-only

Compile with the Emscripten toolchain: emcmake cmake .. -DBUILD_WASM=ON -DBUILD_TESTING=OFF cmake –build . –target correlation_wasm

Exposes the following to JavaScript via embind:

  • Cell, Trajectory, DistributionFunctions (construction + calculation)
  • readFromBuffer() — parse a file buffer into a Trajectory
  • Histogram data extraction for plotting